blob: 75eae3bf1061ed2f7e09b9107ff0ca4ab08d492a [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristydc0f0892009-12-29 02:21:55 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.5.9.
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'
cristydc0f0892009-12-29 02:21:55 +0000708PACKAGE_VERSION='6.5.9'
709PACKAGE_STRING='ImageMagick 6.5.9'
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
cristy430a7312010-01-21 20:44:04 +0000807dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000808PrintDelegate
809ZipDelegate
810XPSDelegate
811WWWDecodeDelegate
812WMFDecodeDelegate
813TXTDelegate
814SCANDecodeDelegate
815RMDelegate
816RLEEncodeDelegate
817PSDelegate
818POVDelegate
819PGPDecodeDelegate
820PCLDelegate
821MVDelegate
822MPEGEncodeDelegate
823MPEGDecodeDelegate
824MANDelegate
825LaunchDelegate
826LZWEncodeDelegate
827LZWDecodeDelegate
828LPRDelegate
829LPDelegate
830ILBMEncodeDelegate
831ILBMDecodeDelegate
832HTMLDecodeDelegate
833HPGLDecodeDelegate
834HDRDecodeDelegate
835GnuplotDecodeDelegate
836MogrifyDelegate
837DisplayDelegate
838ConvertDelegate
839FIGDecodeDelegate
840EditorDelegate
841EchoDelegate
842DVIDecodeDelegate
843GVCDecodeDelegate
844DNGDecodeDelegate
845CatDelegate
846CGMDecodeDelegate
847BrowseDelegate
848BZIPDelegate
849BlenderDecodeDelegate
850AVIDecodeDelegate
851AutotraceDecodeDelegate
852SHARE_CONFIGURE_PATH
853SHARE_PATH
854DOCUMENTATION_PATH
855FILTER_PATH
856CODER_PATH
857CONFIGURE_PATH
858LIBRARY_PATH
859EXECUTABLE_PATH
860PERLMAINCC
861XML_LIBS
862XML_DELEGATE_FALSE
863XML_DELEGATE_TRUE
864xml2_config
865WMF_LIBS_DEPS
866WMF_LIBS
867WMF_DELEGATE_FALSE
868WMF_DELEGATE_TRUE
869TIFF_LIBS
870TIFF_DELEGATE_FALSE
871TIFF_DELEGATE_TRUE
872CAIRO_DELEGATE_FALSE
873CAIRO_DELEGATE_TRUE
874RSVG_DELEGATE_FALSE
875RSVG_DELEGATE_TRUE
876CAIRO_SVG_LIBS
877CAIRO_SVG_CFLAGS
878RSVG_LIBS
879RSVG_CFLAGS
880PNG_LIBS
881PNG_DELEGATE_FALSE
882PNG_DELEGATE_TRUE
883OPENEXR_DELEGATE_FALSE
884OPENEXR_DELEGATE_TRUE
885OPENEXR_LIBS
886OPENEXR_CFLAGS
887LQR_DELEGATE_FALSE
888LQR_DELEGATE_TRUE
889LQR_LIBS
890LQR_CFLAGS
891LCMS_LIBS
892LCMS_DELEGATE_FALSE
893LCMS_DELEGATE_TRUE
894JP2_LIBS
895JP2_DELEGATE_FALSE
896JP2_DELEGATE_TRUE
897JPEG_LIBS
898JPEG_DELEGATE_FALSE
899JPEG_DELEGATE_TRUE
900JBIG_LIBS
901JBIG_DELEGATE_FALSE
902JBIG_DELEGATE_TRUE
903GVC_DELEGATE_FALSE
904GVC_DELEGATE_TRUE
905GVC_LIBS
906GVC_CFLAGS
907GS_LIBS
908GS_DELEGATE_FALSE
909GS_DELEGATE_TRUE
910FREETYPE_LIBS
911FREETYPE_DELEGATE_FALSE
912FREETYPE_DELEGATE_TRUE
913freetype_config
914FONTCONFIG_DELEGATE_FALSE
915FONTCONFIG_DELEGATE_TRUE
916FONTCONFIG_LIBS
917FONTCONFIG_CFLAGS
918FPX_LIBS
919FPX_DELEGATE_FALSE
920FPX_DELEGATE_TRUE
921FFTW_LIBS
922FFTW_DELEGATE_FALSE
923FFTW_DELEGATE_TRUE
924DJVU_LIBS
925DJVU_DELEGATE_FALSE
926DJVU_DELEGATE_TRUE
927DPS_LIBS
928DPS_DELEGATE_FALSE
929DPS_DELEGATE_TRUE
930AUTOTRACE_DELEGATE_FALSE
931AUTOTRACE_DELEGATE_TRUE
932AUTOTRACE_LIBS
933AUTOTRACE_CFLAGS
934LIB_DL
935ZLIB_LIBS
936ZLIB_DELEGATE_FALSE
937ZLIB_DELEGATE_TRUE
938XEXT_LIBS
939X11_LIBS
940X11_DELEGATE_FALSE
941X11_DELEGATE_TRUE
942X_EXTRA_LIBS
943X_LIBS
944X_PRE_LIBS
945X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000946XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000947BZLIB_LIBS
948BZLIB_DELEGATE_FALSE
949BZLIB_DELEGATE_TRUE
950MATH_LIBS
951CCMALLOCDelegate
952UMEM_LIBS
953HasUMEM_FALSE
954HasUMEM_TRUE
955THREAD_LIBS
956GOMP_LIBS
957WITH_MAGICK_PLUS_PLUS_FALSE
958WITH_MAGICK_PLUS_PLUS_TRUE
959OPENMP_CXXFLAGS
960POW_LIB
961LIBOBJS
962UINTPTR_T
963UINTMAX_T
964UINT64_T
965INT64_T
966UINT32_T
967INT32_T
968UINT16_T
969INT16_T
970UINT8_T
971INT8_T
972LIBRARY_EXTRA_CPPFLAGS
973MODULE_EXTRA_CPPFLAGS
974LIBSTDCLDFLAGS
975PERL_MAKE_OPTIONS
976QUANTUM_DEPTH
977MAINT
978MAINTAINER_MODE_FALSE
979MAINTAINER_MODE_TRUE
980MAGICK_HDRI
981DLLDFLAGS
982WITH_LTDL_FALSE
983WITH_LTDL_TRUE
984WITH_MODULES_FALSE
985WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000986WITH_SHARED_LIBS_FALSE
987WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000988LTDLOPEN
989LT_CONFIG_H
990CONVENIENCE_LTDL_FALSE
991CONVENIENCE_LTDL_TRUE
992INSTALL_LTDL_FALSE
993INSTALL_LTDL_TRUE
994ARGZ_H
995sys_symbol_underscore
996LIBADD_DL
997LT_DLPREOPEN
998LIBADD_DLD_LINK
999LIBADD_SHL_LOAD
1000LIBADD_DLOPEN
1001LT_DLLOADERS
1002INCLTDL
1003LTDLINCL
1004LTDLDEPS
1005LIBLTDL
1006LIBTOOL_DEPS
1007CXXCPP
1008OTOOL64
1009OTOOL
1010LIPO
1011NMEDIT
1012DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001013lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001014RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001015AR
1016NM
1017ac_ct_DUMPBIN
1018DUMPBIN
1019LIBTOOL
1020OBJDUMP
1021DLLTOOL
1022AS
1023LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001024CL_LIBS
1025CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001026OPENMP_CFLAGS
1027PTHREAD_CFLAGS
1028PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001029PTHREAD_CC
1030acx_pthread_config
1031WinPathScript
1032USING_CL_FALSE
1033USING_CL_TRUE
1034CYGWIN_BUILD_FALSE
1035CYGWIN_BUILD_TRUE
1036WIN32_NATIVE_BUILD_FALSE
1037WIN32_NATIVE_BUILD_TRUE
1038WINGDI32_DELEGATE_FALSE
1039WINGDI32_DELEGATE_TRUE
1040GDI32_LIBS
1041PKG_CONFIG
1042LN_S
cristy3ed852e2009-09-05 21:47:34 +00001043LD
1044FGREP
cristy3ed852e2009-09-05 21:47:34 +00001045SED
cristy95646052009-11-28 23:05:30 +00001046am__fastdepCXX_FALSE
1047am__fastdepCXX_TRUE
1048CXXDEPMODE
1049ac_ct_CXX
1050CXXFLAGS
1051CXX
cristya0b81c32010-01-22 02:54:33 +00001052EGREP
1053GREP
1054CPP
cristy3ed852e2009-09-05 21:47:34 +00001055am__fastdepCC_FALSE
1056am__fastdepCC_TRUE
1057CCDEPMODE
1058AMDEPBACKSLASH
1059AMDEP_FALSE
1060AMDEP_TRUE
1061am__quote
1062am__include
1063DEPDIR
1064OBJEXT
1065EXEEXT
1066ac_ct_CC
1067CPPFLAGS
1068LDFLAGS
1069CFLAGS
1070CC
1071DIRSEP
1072MAGICK_FILTER_MODULE_PATH
1073MAGICK_CONFIGURE_BUILD_PATH
1074MAGICK_CONFIGURE_SRC_PATH
1075MAGICK_CODER_MODULE_PATH
1076MAN_DIR
1077INFO_DIR
1078PERSISTINCLUDE_DIR
1079INCLUDE_DIR
1080LIB_DIR
1081LOCALSTATE_DIR
1082SHAREDSTATE_DIR
1083SYSCONF_DIR
1084DATA_DIR
1085LIBEXEC_DIR
1086SBIN_DIR
1087BIN_DIR
1088EXEC_PREFIX_DIR
1089PREFIX_DIR
1090CONFIG_STATUS_DEPENDENCIES
1091MAGICK_LIB_VERSION_NUMBER
1092MAGICK_LIB_VERSION_TEXT
1093MAGICK_LIB_VERSION
1094AM_BACKSLASH
1095AM_DEFAULT_VERBOSITY
1096am__untar
1097am__tar
1098AMTAR
1099am__leading_dot
1100SET_MAKE
1101AWK
1102mkdir_p
1103MKDIR_P
1104INSTALL_STRIP_PROGRAM
1105STRIP
1106install_sh
1107MAKEINFO
1108AUTOHEADER
1109AUTOMAKE
1110AUTOCONF
1111ACLOCAL
1112VERSION
1113PACKAGE
1114CYGPATH_W
1115am__isrc
1116INSTALL_DATA
1117INSTALL_SCRIPT
1118INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001119PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001120PACKAGE_RELEASE_DATE
1121PACKAGE_LIB_VERSION_NUMBER
1122PACKAGE_LIB_VERSION
1123PACKAGE_CHANGE_DATE
1124PACKAGE_RELEASE
1125MAGICK_LIBRARY_AGE
1126MAGICK_LIBRARY_REVISION
1127MAGICK_LIBRARY_CURRENT
1128target_os
1129target_vendor
1130target_cpu
1131target
1132host_os
1133host_vendor
1134host_cpu
1135host
1136build_os
1137build_vendor
1138build_cpu
1139build
1140CONFIGURE_ARGS
1141DISTCHECK_CONFIG_FLAGS
1142target_alias
1143host_alias
1144build_alias
1145LIBS
1146ECHO_T
1147ECHO_N
1148ECHO_C
1149DEFS
1150mandir
1151localedir
1152libdir
1153psdir
1154pdfdir
1155dvidir
1156htmldir
1157infodir
1158docdir
1159oldincludedir
1160includedir
1161localstatedir
1162sharedstatedir
1163sysconfdir
1164datadir
1165datarootdir
1166libexecdir
1167sbindir
1168bindir
1169program_transform_name
1170prefix
1171exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001172PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001173PACKAGE_BUGREPORT
1174PACKAGE_STRING
1175PACKAGE_VERSION
1176PACKAGE_TARNAME
1177PACKAGE_NAME
1178PATH_SEPARATOR
1179SHELL'
1180ac_subst_files=''
1181ac_user_opts='
1182enable_option_checking
1183enable_silent_rules
1184enable_dependency_tracking
1185with_gnu_ld
1186with_maximum_compile_warnings
1187with_dmalloc
1188enable_bounds_checking
1189enable_osx_universal_binary
1190with_threads
1191enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001192enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001193enable_largefile
1194enable_shared
1195enable_static
1196with_pic
1197enable_fast_install
1198enable_libtool_lock
1199with_included_ltdl
1200with_ltdl_include
1201with_ltdl_lib
1202enable_ltdl_install
1203with_modules
1204enable_delegate_build
1205enable_deprecated
1206enable_installed
1207enable_cipher
1208enable_embeddable
1209enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001210enable_assert
1211enable_maintainer_mode
1212enable_ccmalloc
1213enable_efence
1214enable_prof
1215enable_gprof
1216enable_gcov
1217with_method_prefix
1218with_quantum_depth
1219with_cache
1220with_frozenpaths
1221with_magick_plus_plus
1222with_perl
1223with_perl_options
1224with_umem
1225with_libstdc
1226with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001227with_x
cristy3ed852e2009-09-05 21:47:34 +00001228with_zlib
1229with_autotrace
1230with_dps
1231with_djvu
cristy430a7312010-01-21 20:44:04 +00001232with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001233with_fftw
1234with_fpx
1235with_fontconfig
1236with_freetype
1237with_gslib
1238with_fontpath
1239with_gs_font_dir
1240with_gvc
1241with_jbig
1242with_jpeg
1243with_jp2
1244with_lcms
1245with_lqr
1246with_openexr
1247with_png
1248with_rsvg
1249with_tiff
1250with_windows_font_dir
1251with_wmf
1252with_xml
1253'
1254 ac_precious_vars='build_alias
1255host_alias
1256target_alias
1257CC
1258CFLAGS
1259LDFLAGS
1260LIBS
1261CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001262CPP
cristy3ed852e2009-09-05 21:47:34 +00001263CXX
1264CXXFLAGS
1265CCC
1266PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001267CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001268XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001269AUTOTRACE_CFLAGS
1270AUTOTRACE_LIBS
1271FONTCONFIG_CFLAGS
1272FONTCONFIG_LIBS
1273GVC_CFLAGS
1274GVC_LIBS
1275LQR_CFLAGS
1276LQR_LIBS
1277OPENEXR_CFLAGS
1278OPENEXR_LIBS
1279RSVG_CFLAGS
1280RSVG_LIBS
1281CAIRO_SVG_CFLAGS
1282CAIRO_SVG_LIBS'
1283
1284
1285# Initialize some variables set by options.
1286ac_init_help=
1287ac_init_version=false
1288ac_unrecognized_opts=
1289ac_unrecognized_sep=
1290# The variables have the same names as the options, with
1291# dashes changed to underlines.
1292cache_file=/dev/null
1293exec_prefix=NONE
1294no_create=
1295no_recursion=
1296prefix=NONE
1297program_prefix=NONE
1298program_suffix=NONE
1299program_transform_name=s,x,x,
1300silent=
1301site=
1302srcdir=
1303verbose=
1304x_includes=NONE
1305x_libraries=NONE
1306
1307# Installation directory options.
1308# These are left unexpanded so users can "make install exec_prefix=/foo"
1309# and all the variables that are supposed to be based on exec_prefix
1310# by default will actually change.
1311# Use braces instead of parens because sh, perl, etc. also accept them.
1312# (The list follows the same order as the GNU Coding Standards.)
1313bindir='${exec_prefix}/bin'
1314sbindir='${exec_prefix}/sbin'
1315libexecdir='${exec_prefix}/libexec'
1316datarootdir='${prefix}/share'
1317datadir='${datarootdir}'
1318sysconfdir='${prefix}/etc'
1319sharedstatedir='${prefix}/com'
1320localstatedir='${prefix}/var'
1321includedir='${prefix}/include'
1322oldincludedir='/usr/include'
1323docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1324infodir='${datarootdir}/info'
1325htmldir='${docdir}'
1326dvidir='${docdir}'
1327pdfdir='${docdir}'
1328psdir='${docdir}'
1329libdir='${exec_prefix}/lib'
1330localedir='${datarootdir}/locale'
1331mandir='${datarootdir}/man'
1332
1333ac_prev=
1334ac_dashdash=
1335for ac_option
1336do
1337 # If the previous option needs an argument, assign it.
1338 if test -n "$ac_prev"; then
1339 eval $ac_prev=\$ac_option
1340 ac_prev=
1341 continue
1342 fi
1343
1344 case $ac_option in
1345 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1346 *) ac_optarg=yes ;;
1347 esac
1348
1349 # Accept the important Cygnus configure options, so we can diagnose typos.
1350
1351 case $ac_dashdash$ac_option in
1352 --)
1353 ac_dashdash=yes ;;
1354
1355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1356 ac_prev=bindir ;;
1357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1358 bindir=$ac_optarg ;;
1359
1360 -build | --build | --buil | --bui | --bu)
1361 ac_prev=build_alias ;;
1362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1363 build_alias=$ac_optarg ;;
1364
1365 -cache-file | --cache-file | --cache-fil | --cache-fi \
1366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1367 ac_prev=cache_file ;;
1368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1370 cache_file=$ac_optarg ;;
1371
1372 --config-cache | -C)
1373 cache_file=config.cache ;;
1374
1375 -datadir | --datadir | --datadi | --datad)
1376 ac_prev=datadir ;;
1377 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1378 datadir=$ac_optarg ;;
1379
1380 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1381 | --dataroo | --dataro | --datar)
1382 ac_prev=datarootdir ;;
1383 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1384 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1385 datarootdir=$ac_optarg ;;
1386
1387 -disable-* | --disable-*)
1388 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001391 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1395 *"
1396"enable_$ac_useropt"
1397"*) ;;
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1400 esac
1401 eval enable_$ac_useropt=no ;;
1402
1403 -docdir | --docdir | --docdi | --doc | --do)
1404 ac_prev=docdir ;;
1405 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1406 docdir=$ac_optarg ;;
1407
1408 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1409 ac_prev=dvidir ;;
1410 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1411 dvidir=$ac_optarg ;;
1412
1413 -enable-* | --enable-*)
1414 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1415 # Reject names that are not valid shell variable names.
1416 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001417 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001418 ac_useropt_orig=$ac_useropt
1419 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1420 case $ac_user_opts in
1421 *"
1422"enable_$ac_useropt"
1423"*) ;;
1424 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1425 ac_unrecognized_sep=', ';;
1426 esac
1427 eval enable_$ac_useropt=\$ac_optarg ;;
1428
1429 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1430 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1431 | --exec | --exe | --ex)
1432 ac_prev=exec_prefix ;;
1433 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1434 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1435 | --exec=* | --exe=* | --ex=*)
1436 exec_prefix=$ac_optarg ;;
1437
1438 -gas | --gas | --ga | --g)
1439 # Obsolete; use --with-gas.
1440 with_gas=yes ;;
1441
1442 -help | --help | --hel | --he | -h)
1443 ac_init_help=long ;;
1444 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1445 ac_init_help=recursive ;;
1446 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1447 ac_init_help=short ;;
1448
1449 -host | --host | --hos | --ho)
1450 ac_prev=host_alias ;;
1451 -host=* | --host=* | --hos=* | --ho=*)
1452 host_alias=$ac_optarg ;;
1453
1454 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1455 ac_prev=htmldir ;;
1456 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1457 | --ht=*)
1458 htmldir=$ac_optarg ;;
1459
1460 -includedir | --includedir | --includedi | --included | --include \
1461 | --includ | --inclu | --incl | --inc)
1462 ac_prev=includedir ;;
1463 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1464 | --includ=* | --inclu=* | --incl=* | --inc=*)
1465 includedir=$ac_optarg ;;
1466
1467 -infodir | --infodir | --infodi | --infod | --info | --inf)
1468 ac_prev=infodir ;;
1469 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1470 infodir=$ac_optarg ;;
1471
1472 -libdir | --libdir | --libdi | --libd)
1473 ac_prev=libdir ;;
1474 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1475 libdir=$ac_optarg ;;
1476
1477 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1478 | --libexe | --libex | --libe)
1479 ac_prev=libexecdir ;;
1480 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1481 | --libexe=* | --libex=* | --libe=*)
1482 libexecdir=$ac_optarg ;;
1483
1484 -localedir | --localedir | --localedi | --localed | --locale)
1485 ac_prev=localedir ;;
1486 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1487 localedir=$ac_optarg ;;
1488
1489 -localstatedir | --localstatedir | --localstatedi | --localstated \
1490 | --localstate | --localstat | --localsta | --localst | --locals)
1491 ac_prev=localstatedir ;;
1492 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1493 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1494 localstatedir=$ac_optarg ;;
1495
1496 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1497 ac_prev=mandir ;;
1498 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1499 mandir=$ac_optarg ;;
1500
1501 -nfp | --nfp | --nf)
1502 # Obsolete; use --without-fp.
1503 with_fp=no ;;
1504
1505 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1506 | --no-cr | --no-c | -n)
1507 no_create=yes ;;
1508
1509 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1510 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1511 no_recursion=yes ;;
1512
1513 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1514 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1515 | --oldin | --oldi | --old | --ol | --o)
1516 ac_prev=oldincludedir ;;
1517 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1518 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1519 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1520 oldincludedir=$ac_optarg ;;
1521
1522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1523 ac_prev=prefix ;;
1524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1525 prefix=$ac_optarg ;;
1526
1527 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1528 | --program-pre | --program-pr | --program-p)
1529 ac_prev=program_prefix ;;
1530 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1531 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1532 program_prefix=$ac_optarg ;;
1533
1534 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1535 | --program-suf | --program-su | --program-s)
1536 ac_prev=program_suffix ;;
1537 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1538 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1539 program_suffix=$ac_optarg ;;
1540
1541 -program-transform-name | --program-transform-name \
1542 | --program-transform-nam | --program-transform-na \
1543 | --program-transform-n | --program-transform- \
1544 | --program-transform | --program-transfor \
1545 | --program-transfo | --program-transf \
1546 | --program-trans | --program-tran \
1547 | --progr-tra | --program-tr | --program-t)
1548 ac_prev=program_transform_name ;;
1549 -program-transform-name=* | --program-transform-name=* \
1550 | --program-transform-nam=* | --program-transform-na=* \
1551 | --program-transform-n=* | --program-transform-=* \
1552 | --program-transform=* | --program-transfor=* \
1553 | --program-transfo=* | --program-transf=* \
1554 | --program-trans=* | --program-tran=* \
1555 | --progr-tra=* | --program-tr=* | --program-t=*)
1556 program_transform_name=$ac_optarg ;;
1557
1558 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1559 ac_prev=pdfdir ;;
1560 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1561 pdfdir=$ac_optarg ;;
1562
1563 -psdir | --psdir | --psdi | --psd | --ps)
1564 ac_prev=psdir ;;
1565 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1566 psdir=$ac_optarg ;;
1567
1568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1569 | -silent | --silent | --silen | --sile | --sil)
1570 silent=yes ;;
1571
1572 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1573 ac_prev=sbindir ;;
1574 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1575 | --sbi=* | --sb=*)
1576 sbindir=$ac_optarg ;;
1577
1578 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1579 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1580 | --sharedst | --shareds | --shared | --share | --shar \
1581 | --sha | --sh)
1582 ac_prev=sharedstatedir ;;
1583 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1584 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1585 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1586 | --sha=* | --sh=*)
1587 sharedstatedir=$ac_optarg ;;
1588
1589 -site | --site | --sit)
1590 ac_prev=site ;;
1591 -site=* | --site=* | --sit=*)
1592 site=$ac_optarg ;;
1593
1594 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1595 ac_prev=srcdir ;;
1596 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1597 srcdir=$ac_optarg ;;
1598
1599 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1600 | --syscon | --sysco | --sysc | --sys | --sy)
1601 ac_prev=sysconfdir ;;
1602 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1603 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1604 sysconfdir=$ac_optarg ;;
1605
1606 -target | --target | --targe | --targ | --tar | --ta | --t)
1607 ac_prev=target_alias ;;
1608 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1609 target_alias=$ac_optarg ;;
1610
1611 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1612 verbose=yes ;;
1613
1614 -version | --version | --versio | --versi | --vers | -V)
1615 ac_init_version=: ;;
1616
1617 -with-* | --with-*)
1618 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1619 # Reject names that are not valid shell variable names.
1620 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001621 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001622 ac_useropt_orig=$ac_useropt
1623 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1624 case $ac_user_opts in
1625 *"
1626"with_$ac_useropt"
1627"*) ;;
1628 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1629 ac_unrecognized_sep=', ';;
1630 esac
1631 eval with_$ac_useropt=\$ac_optarg ;;
1632
1633 -without-* | --without-*)
1634 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1635 # Reject names that are not valid shell variable names.
1636 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001637 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001638 ac_useropt_orig=$ac_useropt
1639 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1640 case $ac_user_opts in
1641 *"
1642"with_$ac_useropt"
1643"*) ;;
1644 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1645 ac_unrecognized_sep=', ';;
1646 esac
1647 eval with_$ac_useropt=no ;;
1648
1649 --x)
1650 # Obsolete; use --with-x.
1651 with_x=yes ;;
1652
1653 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1654 | --x-incl | --x-inc | --x-in | --x-i)
1655 ac_prev=x_includes ;;
1656 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1657 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1658 x_includes=$ac_optarg ;;
1659
1660 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1661 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1662 ac_prev=x_libraries ;;
1663 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1664 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1665 x_libraries=$ac_optarg ;;
1666
cristy8b350f62009-11-15 23:12:43 +00001667 -*) as_fn_error "unrecognized option: \`$ac_option'
1668Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001669 ;;
1670
1671 *=*)
1672 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1673 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001674 case $ac_envvar in #(
1675 '' | [0-9]* | *[!_$as_cr_alnum]* )
1676 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1677 esac
cristy3ed852e2009-09-05 21:47:34 +00001678 eval $ac_envvar=\$ac_optarg
1679 export $ac_envvar ;;
1680
1681 *)
1682 # FIXME: should be removed in autoconf 3.0.
1683 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1684 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1685 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1686 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1687 ;;
1688
1689 esac
1690done
1691
1692if test -n "$ac_prev"; then
1693 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001694 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001695fi
1696
1697if test -n "$ac_unrecognized_opts"; then
1698 case $enable_option_checking in
1699 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001700 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001701 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1702 esac
1703fi
1704
1705# Check all directory arguments for consistency.
1706for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1707 datadir sysconfdir sharedstatedir localstatedir includedir \
1708 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1709 libdir localedir mandir
1710do
1711 eval ac_val=\$$ac_var
1712 # Remove trailing slashes.
1713 case $ac_val in
1714 */ )
1715 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1716 eval $ac_var=\$ac_val;;
1717 esac
1718 # Be sure to have absolute directory names.
1719 case $ac_val in
1720 [\\/$]* | ?:[\\/]* ) continue;;
1721 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1722 esac
cristy8b350f62009-11-15 23:12:43 +00001723 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001724done
1725
1726# There might be people who depend on the old broken behavior: `$host'
1727# used to hold the argument of --host etc.
1728# FIXME: To remove some day.
1729build=$build_alias
1730host=$host_alias
1731target=$target_alias
1732
1733# FIXME: To remove some day.
1734if test "x$host_alias" != x; then
1735 if test "x$build_alias" = x; then
1736 cross_compiling=maybe
1737 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1738 If a cross compiler is detected then cross compile mode will be used." >&2
1739 elif test "x$build_alias" != "x$host_alias"; then
1740 cross_compiling=yes
1741 fi
1742fi
1743
1744ac_tool_prefix=
1745test -n "$host_alias" && ac_tool_prefix=$host_alias-
1746
1747test "$silent" = yes && exec 6>/dev/null
1748
1749
1750ac_pwd=`pwd` && test -n "$ac_pwd" &&
1751ac_ls_di=`ls -di .` &&
1752ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001753 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001754test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001755 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001756
1757
1758# Find the source files, if location was not specified.
1759if test -z "$srcdir"; then
1760 ac_srcdir_defaulted=yes
1761 # Try the directory containing this script, then the parent directory.
1762 ac_confdir=`$as_dirname -- "$as_myself" ||
1763$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1764 X"$as_myself" : 'X\(//\)[^/]' \| \
1765 X"$as_myself" : 'X\(//\)$' \| \
1766 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1767$as_echo X"$as_myself" |
1768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1769 s//\1/
1770 q
1771 }
1772 /^X\(\/\/\)[^/].*/{
1773 s//\1/
1774 q
1775 }
1776 /^X\(\/\/\)$/{
1777 s//\1/
1778 q
1779 }
1780 /^X\(\/\).*/{
1781 s//\1/
1782 q
1783 }
1784 s/.*/./; q'`
1785 srcdir=$ac_confdir
1786 if test ! -r "$srcdir/$ac_unique_file"; then
1787 srcdir=..
1788 fi
1789else
1790 ac_srcdir_defaulted=no
1791fi
1792if test ! -r "$srcdir/$ac_unique_file"; then
1793 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001794 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001795fi
1796ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1797ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001798 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001799 pwd)`
1800# When building in place, set srcdir=.
1801if test "$ac_abs_confdir" = "$ac_pwd"; then
1802 srcdir=.
1803fi
1804# Remove unnecessary trailing slashes from srcdir.
1805# Double slashes in file names in object file debugging info
1806# mess up M-x gdb in Emacs.
1807case $srcdir in
1808*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1809esac
1810for ac_var in $ac_precious_vars; do
1811 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1812 eval ac_env_${ac_var}_value=\$${ac_var}
1813 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1814 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1815done
1816
1817#
1818# Report the --help message.
1819#
1820if test "$ac_init_help" = "long"; then
1821 # Omit some internal or obsolete options to make the list less imposing.
1822 # This message is too long to be a string in the A/UX 3.1 sh.
1823 cat <<_ACEOF
cristydc0f0892009-12-29 02:21:55 +00001824\`configure' configures ImageMagick 6.5.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001825
1826Usage: $0 [OPTION]... [VAR=VALUE]...
1827
1828To assign environment variables (e.g., CC, CFLAGS...), specify them as
1829VAR=VALUE. See below for descriptions of some of the useful variables.
1830
1831Defaults for the options are specified in brackets.
1832
1833Configuration:
1834 -h, --help display this help and exit
1835 --help=short display options specific to this package
1836 --help=recursive display the short help of all the included packages
1837 -V, --version display version information and exit
1838 -q, --quiet, --silent do not print \`checking...' messages
1839 --cache-file=FILE cache test results in FILE [disabled]
1840 -C, --config-cache alias for \`--cache-file=config.cache'
1841 -n, --no-create do not create output files
1842 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1843
1844Installation directories:
1845 --prefix=PREFIX install architecture-independent files in PREFIX
1846 [$ac_default_prefix]
1847 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1848 [PREFIX]
1849
1850By default, \`make install' will install all the files in
1851\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1852an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1853for instance \`--prefix=\$HOME'.
1854
1855For better control, use the options below.
1856
1857Fine tuning of the installation directories:
1858 --bindir=DIR user executables [EPREFIX/bin]
1859 --sbindir=DIR system admin executables [EPREFIX/sbin]
1860 --libexecdir=DIR program executables [EPREFIX/libexec]
1861 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1862 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1863 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1864 --libdir=DIR object code libraries [EPREFIX/lib]
1865 --includedir=DIR C header files [PREFIX/include]
1866 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1867 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1868 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1869 --infodir=DIR info documentation [DATAROOTDIR/info]
1870 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1871 --mandir=DIR man documentation [DATAROOTDIR/man]
1872 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1873 --htmldir=DIR html documentation [DOCDIR]
1874 --dvidir=DIR dvi documentation [DOCDIR]
1875 --pdfdir=DIR pdf documentation [DOCDIR]
1876 --psdir=DIR ps documentation [DOCDIR]
1877_ACEOF
1878
1879 cat <<\_ACEOF
1880
1881Program names:
1882 --program-prefix=PREFIX prepend PREFIX to installed program names
1883 --program-suffix=SUFFIX append SUFFIX to installed program names
1884 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1885
1886X features:
1887 --x-includes=DIR X include files are in DIR
1888 --x-libraries=DIR X library files are in DIR
1889
1890System types:
1891 --build=BUILD configure for building on BUILD [guessed]
1892 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1893 --target=TARGET configure for building compilers for TARGET [HOST]
1894_ACEOF
1895fi
1896
1897if test -n "$ac_init_help"; then
1898 case $ac_init_help in
cristydc0f0892009-12-29 02:21:55 +00001899 short | recursive ) echo "Configuration of ImageMagick 6.5.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001900 esac
1901 cat <<\_ACEOF
1902
1903Optional Features:
1904 --disable-option-checking ignore unrecognized --enable/--with options
1905 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1906 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1907 --enable-silent-rules less verbose build output (undo: `make V=1')
1908 --disable-silent-rules verbose build output (undo: `make V=0')
1909 --disable-dependency-tracking speeds up one-time build
1910 --enable-dependency-tracking do not reject slow dependency extractors
1911 --bounds-checking enable run-time bounds-checking
1912 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001913 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001914 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001915 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001916 --disable-largefile omit support for large files
1917 --enable-shared[=PKGS] build shared libraries [default=yes]
1918 --enable-static[=PKGS] build static libraries [default=yes]
1919 --enable-fast-install[=PKGS]
1920 optimize for fast installation [default=yes]
1921 --disable-libtool-lock avoid locking (might break parallel builds)
1922 --enable-ltdl-install install libltdl
1923 --enable-delegate-build look for delegate libraries in build directory
1924 --disable-deprecated exclude deprecated methods in MagickCore and
1925 MagickWand API's
1926 --disable-installed Formally install ImageMagick under PREFIX
1927 --disable-cipher disable enciphering and deciphering image pixels
1928 --enable-embeddable enable self-contained, embeddable,
1929 zero-configuration ImageMagick
1930 --enable-hdri accurately represent the wide range of intensity
1931 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001932 --disable-assert disable assert() statements in build
1933 --enable-maintainer-mode enable make rules and dependencies not useful
1934 (and sometimes confusing) to the casual installer
1935 --enable-ccmalloc enable 'ccmalloc' memory debug support
1936 --enable-efence enable 'efence' memory debug support
1937 --enable-prof enable 'prof' profiling support
1938 --enable-gprof enable 'gprof' profiling support
1939 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001940 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001941
1942Optional Packages:
1943 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1944 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1946 --without-maximum-compile-warnings
1947 Disable maximum warning verbosity
1948 --with-dmalloc use dmalloc, as in
1949 http://www.dmalloc.com/dmalloc.tar.gz
1950 --without-threads disable threads support
1951 --with-pic try to use only PIC/non-PIC objects [default=use
1952 both]
1953 --with-included-ltdl use the GNU ltdl sources included here
1954 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1955 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1956 --with-modules enable building dynamically loadable modules
1957 --with-method-prefix=PREFIX
1958 prefix MagickCore API methods
1959 --with-quantum-depth=DEPTH
1960 number of bits in a pixel quantum (default 16)
1961 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1962 memory)
1963 --with-frozenpaths freeze delegate paths
1964 --without-magick-plus-plus
1965 disable build/install of Magick++
1966 --with-perl enable build/install of PerlMagick
1967 --with-perl-options=OPTIONS
1968 options to pass on command-line when generating
1969 PerlMagick's build file
1970 --with-umem enable umem memory allocation library support
1971 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1972 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001973 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001974 --without-zlib disable ZLIB support
1975 --with-autotrace enable autotrace support
1976 --without-dps disable Display Postscript support
1977 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001978 --with-dejavu-font-dir=DIR
1979 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001980 --without-fftw disable FFTW support
1981 --without-fpx disable FlashPIX support
1982 --without-fontconfig disable fontconfig support
1983 --without-freetype disable Freetype support
1984 --without-gslib enable Ghostscript library support
1985 --with-fontpath=DIR prepend to default font search path
1986 --with-gs-font-dir=DIR Ghostscript font directory
1987 --without-gvc disable GVC support
1988 --without-jbig disable JBIG support
1989 --without-jpeg disable JPEG support
1990 --without-jp2 disable JPEG-2000 support
1991 --without-lcms disable LCMS support
1992 --without-lqr disable Liquid Rescale support (experimental)
1993 --without-openexr disable OpenEXR support
1994 --without-png disable PNG support
1995 --without-rsvg disable RSVG support
1996 --without-tiff disable TIFF support
1997 --with-windows-font-dir=DIR
1998 directory containing MS-Windows fonts
1999 --without-wmf disable WMF support
2000 --without-xml disable XML support
2001
2002Some influential environment variables:
2003 CC C compiler command
2004 CFLAGS C compiler flags
2005 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2006 nonstandard directory <lib dir>
2007 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002008 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002009 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002010 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002011 CXX C++ compiler command
2012 CXXFLAGS C++ compiler flags
2013 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002014 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002015 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002016 AUTOTRACE_CFLAGS
2017 C compiler flags for AUTOTRACE, overriding pkg-config
2018 AUTOTRACE_LIBS
2019 linker flags for AUTOTRACE, overriding pkg-config
2020 FONTCONFIG_CFLAGS
2021 C compiler flags for FONTCONFIG, overriding pkg-config
2022 FONTCONFIG_LIBS
2023 linker flags for FONTCONFIG, overriding pkg-config
2024 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2025 GVC_LIBS linker flags for GVC, overriding pkg-config
2026 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2027 LQR_LIBS linker flags for LQR, overriding pkg-config
2028 OPENEXR_CFLAGS
2029 C compiler flags for OPENEXR, overriding pkg-config
2030 OPENEXR_LIBS
2031 linker flags for OPENEXR, overriding pkg-config
2032 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2033 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2034 CAIRO_SVG_CFLAGS
2035 C compiler flags for CAIRO_SVG, overriding pkg-config
2036 CAIRO_SVG_LIBS
2037 linker flags for CAIRO_SVG, overriding pkg-config
2038
2039Use these variables to override the choices made by `configure' or to help
2040it to find libraries and programs with nonstandard names/locations.
2041
2042Report bugs to <http://www.imagemagick.org>.
2043_ACEOF
2044ac_status=$?
2045fi
2046
2047if test "$ac_init_help" = "recursive"; then
2048 # If there are subdirs, report their specific --help.
2049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2050 test -d "$ac_dir" ||
2051 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2052 continue
2053 ac_builddir=.
2054
2055case "$ac_dir" in
2056.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2057*)
2058 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2059 # A ".." for each directory in $ac_dir_suffix.
2060 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2061 case $ac_top_builddir_sub in
2062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2064 esac ;;
2065esac
2066ac_abs_top_builddir=$ac_pwd
2067ac_abs_builddir=$ac_pwd$ac_dir_suffix
2068# for backward compatibility:
2069ac_top_builddir=$ac_top_build_prefix
2070
2071case $srcdir in
2072 .) # We are building in place.
2073 ac_srcdir=.
2074 ac_top_srcdir=$ac_top_builddir_sub
2075 ac_abs_top_srcdir=$ac_pwd ;;
2076 [\\/]* | ?:[\\/]* ) # Absolute name.
2077 ac_srcdir=$srcdir$ac_dir_suffix;
2078 ac_top_srcdir=$srcdir
2079 ac_abs_top_srcdir=$srcdir ;;
2080 *) # Relative name.
2081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2082 ac_top_srcdir=$ac_top_build_prefix$srcdir
2083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2084esac
2085ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2086
2087 cd "$ac_dir" || { ac_status=$?; continue; }
2088 # Check for guested configure.
2089 if test -f "$ac_srcdir/configure.gnu"; then
2090 echo &&
2091 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2092 elif test -f "$ac_srcdir/configure"; then
2093 echo &&
2094 $SHELL "$ac_srcdir/configure" --help=recursive
2095 else
2096 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2097 fi || ac_status=$?
2098 cd "$ac_pwd" || { ac_status=$?; break; }
2099 done
2100fi
2101
2102test -n "$ac_init_help" && exit $ac_status
2103if $ac_init_version; then
2104 cat <<\_ACEOF
cristydc0f0892009-12-29 02:21:55 +00002105ImageMagick configure 6.5.9
cristycd4c5312009-11-22 01:19:08 +00002106generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002107
cristy8b350f62009-11-15 23:12:43 +00002108Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002109This configure script is free software; the Free Software Foundation
2110gives unlimited permission to copy, distribute and modify it.
2111_ACEOF
2112 exit
2113fi
cristy8b350f62009-11-15 23:12:43 +00002114
2115## ------------------------ ##
2116## Autoconf initialization. ##
2117## ------------------------ ##
2118
2119# ac_fn_c_try_compile LINENO
2120# --------------------------
2121# Try to compile conftest.$ac_ext, and return whether this succeeded.
2122ac_fn_c_try_compile ()
2123{
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 rm -f conftest.$ac_objext
2126 if { { ac_try="$ac_compile"
2127case "(($ac_try" in
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2130esac
2131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132$as_echo "$ac_try_echo"; } >&5
2133 (eval "$ac_compile") 2>conftest.err
2134 ac_status=$?
2135 if test -s conftest.err; then
2136 grep -v '^ *+' conftest.err >conftest.er1
2137 cat conftest.er1 >&5
2138 mv -f conftest.er1 conftest.err
2139 fi
2140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141 test $ac_status = 0; } && {
2142 test -z "$ac_c_werror_flag" ||
2143 test ! -s conftest.err
2144 } && test -s conftest.$ac_objext; then :
2145 ac_retval=0
2146else
2147 $as_echo "$as_me: failed program was:" >&5
2148sed 's/^/| /' conftest.$ac_ext >&5
2149
2150 ac_retval=1
2151fi
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002153 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002154
2155} # ac_fn_c_try_compile
2156
cristy95646052009-11-28 23:05:30 +00002157# ac_fn_c_try_cpp LINENO
2158# ----------------------
2159# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2160ac_fn_c_try_cpp ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 if { { ac_try="$ac_cpp conftest.$ac_ext"
2164case "(($ac_try" in
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2167esac
2168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169$as_echo "$ac_try_echo"; } >&5
2170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2171 ac_status=$?
2172 if test -s conftest.err; then
2173 grep -v '^ *+' conftest.err >conftest.er1
2174 cat conftest.er1 >&5
2175 mv -f conftest.er1 conftest.err
2176 fi
2177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178 test $ac_status = 0; } >/dev/null && {
2179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2180 test ! -s conftest.err
2181 }; then :
2182 ac_retval=0
2183else
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=1
2188fi
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190 as_fn_set_status $ac_retval
2191
2192} # ac_fn_c_try_cpp
2193
cristy8b350f62009-11-15 23:12:43 +00002194# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2195# -------------------------------------------------------
2196# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2197# the include files in INCLUDES and setting the cache variable VAR
2198# accordingly.
2199ac_fn_c_check_header_mongrel ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204$as_echo_n "checking for $2... " >&6; }
2205if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 $as_echo_n "(cached) " >&6
2207fi
2208eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
2211else
2212 # Is the header compilable?
2213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2214$as_echo_n "checking $2 usability... " >&6; }
2215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217$4
2218#include <$2>
2219_ACEOF
2220if ac_fn_c_try_compile "$LINENO"; then :
2221 ac_header_compiler=yes
2222else
2223 ac_header_compiler=no
2224fi
2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2227$as_echo "$ac_header_compiler" >&6; }
2228
2229# Is the header present?
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2231$as_echo_n "checking $2 presence... " >&6; }
2232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h. */
2234#include <$2>
2235_ACEOF
2236if ac_fn_c_try_cpp "$LINENO"; then :
2237 ac_header_preproc=yes
2238else
2239 ac_header_preproc=no
2240fi
2241rm -f conftest.err conftest.$ac_ext
2242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2243$as_echo "$ac_header_preproc" >&6; }
2244
2245# So? What about this header?
2246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2247 yes:no: )
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2249$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2251$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2252 ;;
2253 no:yes:* )
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2255$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2257$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2259$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2261$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2263$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2264( cat <<\_ASBOX
2265## ----------------------------------------- ##
2266## Report this to http://www.imagemagick.org ##
2267## ----------------------------------------- ##
2268_ASBOX
2269 ) | sed "s/^/$as_me: WARNING: /" >&2
2270 ;;
2271esac
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273$as_echo_n "checking for $2... " >&6; }
2274if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2275 $as_echo_n "(cached) " >&6
2276else
2277 eval "$3=\$ac_header_compiler"
2278fi
2279eval ac_res=\$$3
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281$as_echo "$ac_res" >&6; }
2282fi
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2284
2285} # ac_fn_c_check_header_mongrel
2286
2287# ac_fn_c_try_run LINENO
2288# ----------------------
2289# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2290# that executables *can* be run.
2291ac_fn_c_try_run ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 if { { ac_try="$ac_link"
2295case "(($ac_try" in
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2298esac
2299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2300$as_echo "$ac_try_echo"; } >&5
2301 (eval "$ac_link") 2>&5
2302 ac_status=$?
2303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2304 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2305 { { case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308esac
2309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310$as_echo "$ac_try_echo"; } >&5
2311 (eval "$ac_try") 2>&5
2312 ac_status=$?
2313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2314 test $ac_status = 0; }; }; then :
2315 ac_retval=0
2316else
2317 $as_echo "$as_me: program exited with status $ac_status" >&5
2318 $as_echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 ac_retval=$ac_status
2322fi
2323 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2324 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002325 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002326
2327} # ac_fn_c_try_run
2328
2329# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2330# -------------------------------------------------------
2331# Tests whether HEADER exists and can be compiled using the include files in
2332# INCLUDES, setting the cache variable VAR accordingly.
2333ac_fn_c_check_header_compile ()
2334{
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2337$as_echo_n "checking for $2... " >&6; }
2338if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2339 $as_echo_n "(cached) " >&6
2340else
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342/* end confdefs.h. */
2343$4
2344#include <$2>
2345_ACEOF
2346if ac_fn_c_try_compile "$LINENO"; then :
2347 eval "$3=yes"
2348else
2349 eval "$3=no"
2350fi
2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352fi
2353eval ac_res=\$$3
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355$as_echo "$ac_res" >&6; }
2356 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357
2358} # ac_fn_c_check_header_compile
2359
cristya0b81c32010-01-22 02:54:33 +00002360# ac_fn_cxx_try_compile LINENO
2361# ----------------------------
2362# Try to compile conftest.$ac_ext, and return whether this succeeded.
2363ac_fn_cxx_try_compile ()
2364{
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 rm -f conftest.$ac_objext
2367 if { { ac_try="$ac_compile"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2373$as_echo "$ac_try_echo"; } >&5
2374 (eval "$ac_compile") 2>conftest.err
2375 ac_status=$?
2376 if test -s conftest.err; then
2377 grep -v '^ *+' conftest.err >conftest.er1
2378 cat conftest.er1 >&5
2379 mv -f conftest.er1 conftest.err
2380 fi
2381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382 test $ac_status = 0; } && {
2383 test -z "$ac_cxx_werror_flag" ||
2384 test ! -s conftest.err
2385 } && test -s conftest.$ac_objext; then :
2386 ac_retval=0
2387else
2388 $as_echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 ac_retval=1
2392fi
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 as_fn_set_status $ac_retval
2395
2396} # ac_fn_cxx_try_compile
2397
cristy8b350f62009-11-15 23:12:43 +00002398# ac_fn_c_try_link LINENO
2399# -----------------------
2400# Try to link conftest.$ac_ext, and return whether this succeeded.
2401ac_fn_c_try_link ()
2402{
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 rm -f conftest.$ac_objext conftest$ac_exeext
2405 if { { ac_try="$ac_link"
2406case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409esac
2410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411$as_echo "$ac_try_echo"; } >&5
2412 (eval "$ac_link") 2>conftest.err
2413 ac_status=$?
2414 if test -s conftest.err; then
2415 grep -v '^ *+' conftest.err >conftest.er1
2416 cat conftest.er1 >&5
2417 mv -f conftest.er1 conftest.err
2418 fi
2419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2420 test $ac_status = 0; } && {
2421 test -z "$ac_c_werror_flag" ||
2422 test ! -s conftest.err
2423 } && test -s conftest$ac_exeext && {
2424 test "$cross_compiling" = yes ||
2425 $as_test_x conftest$ac_exeext
2426 }; then :
2427 ac_retval=0
2428else
2429 $as_echo "$as_me: failed program was:" >&5
2430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 ac_retval=1
2433fi
2434 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2435 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2436 # interfere with the next link command; also delete a directory that is
2437 # left behind by Apple's compiler. We do this before executing the actions.
2438 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2439 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002440 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002441
2442} # ac_fn_c_try_link
2443
2444# ac_fn_c_check_func LINENO FUNC VAR
2445# ----------------------------------
2446# Tests whether FUNC exists, setting the cache variable VAR accordingly
2447ac_fn_c_check_func ()
2448{
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451$as_echo_n "checking for $2... " >&6; }
2452if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2453 $as_echo_n "(cached) " >&6
2454else
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h. */
2457/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2459#define $2 innocuous_$2
2460
2461/* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char $2 (); below.
2463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 <limits.h> exists even on freestanding compilers. */
2465
2466#ifdef __STDC__
2467# include <limits.h>
2468#else
2469# include <assert.h>
2470#endif
2471
2472#undef $2
2473
2474/* Override any GCC internal prototype to avoid an error.
2475 Use char because int might match the return type of a GCC
2476 builtin and then its argument prototype would still apply. */
2477#ifdef __cplusplus
2478extern "C"
2479#endif
2480char $2 ();
2481/* The GNU C library defines this for functions which it implements
2482 to always fail with ENOSYS. Some functions are actually named
2483 something starting with __ and the normal name is an alias. */
2484#if defined __stub_$2 || defined __stub___$2
2485choke me
2486#endif
2487
2488int
2489main ()
2490{
2491return $2 ();
2492 ;
2493 return 0;
2494}
2495_ACEOF
2496if ac_fn_c_try_link "$LINENO"; then :
2497 eval "$3=yes"
2498else
2499 eval "$3=no"
2500fi
2501rm -f core conftest.err conftest.$ac_objext \
2502 conftest$ac_exeext conftest.$ac_ext
2503fi
2504eval ac_res=\$$3
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506$as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508
2509} # ac_fn_c_check_func
2510
2511# ac_fn_cxx_try_cpp LINENO
2512# ------------------------
2513# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2514ac_fn_cxx_try_cpp ()
2515{
2516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2517 if { { ac_try="$ac_cpp conftest.$ac_ext"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523$as_echo "$ac_try_echo"; } >&5
2524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2525 ac_status=$?
2526 if test -s conftest.err; then
2527 grep -v '^ *+' conftest.err >conftest.er1
2528 cat conftest.er1 >&5
2529 mv -f conftest.er1 conftest.err
2530 fi
2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532 test $ac_status = 0; } >/dev/null && {
2533 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2534 test ! -s conftest.err
2535 }; then :
2536 ac_retval=0
2537else
2538 $as_echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_retval=1
2542fi
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002544 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002545
2546} # ac_fn_cxx_try_cpp
2547
2548# ac_fn_cxx_try_link LINENO
2549# -------------------------
2550# Try to link conftest.$ac_ext, and return whether this succeeded.
2551ac_fn_cxx_try_link ()
2552{
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554 rm -f conftest.$ac_objext conftest$ac_exeext
2555 if { { ac_try="$ac_link"
2556case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559esac
2560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2561$as_echo "$ac_try_echo"; } >&5
2562 (eval "$ac_link") 2>conftest.err
2563 ac_status=$?
2564 if test -s conftest.err; then
2565 grep -v '^ *+' conftest.err >conftest.er1
2566 cat conftest.er1 >&5
2567 mv -f conftest.er1 conftest.err
2568 fi
2569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2570 test $ac_status = 0; } && {
2571 test -z "$ac_cxx_werror_flag" ||
2572 test ! -s conftest.err
2573 } && test -s conftest$ac_exeext && {
2574 test "$cross_compiling" = yes ||
2575 $as_test_x conftest$ac_exeext
2576 }; then :
2577 ac_retval=0
2578else
2579 $as_echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 ac_retval=1
2583fi
2584 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2585 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2586 # interfere with the next link command; also delete a directory that is
2587 # left behind by Apple's compiler. We do this before executing the actions.
2588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002590 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002591
2592} # ac_fn_cxx_try_link
2593
2594# ac_fn_c_check_decl LINENO SYMBOL VAR
2595# ------------------------------------
2596# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2597ac_fn_c_check_decl ()
2598{
2599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2601$as_echo_n "checking whether $2 is declared... " >&6; }
2602if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2603 $as_echo_n "(cached) " >&6
2604else
2605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606/* end confdefs.h. */
2607$4
2608int
2609main ()
2610{
2611#ifndef $2
2612 (void) $2;
2613#endif
2614
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619if ac_fn_c_try_compile "$LINENO"; then :
2620 eval "$3=yes"
2621else
2622 eval "$3=no"
2623fi
2624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625fi
2626eval ac_res=\$$3
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2628$as_echo "$ac_res" >&6; }
2629 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2630
2631} # ac_fn_c_check_decl
2632
2633# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2634# -------------------------------------------
2635# Tests whether TYPE exists after having included INCLUDES, setting cache
2636# variable VAR accordingly.
2637ac_fn_c_check_type ()
2638{
2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2641$as_echo_n "checking for $2... " >&6; }
2642if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2643 $as_echo_n "(cached) " >&6
2644else
2645 eval "$3=no"
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */
2648$4
2649int
2650main ()
2651{
2652if (sizeof ($2))
2653 return 0;
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_compile "$LINENO"; then :
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660/* end confdefs.h. */
2661$4
2662int
2663main ()
2664{
2665if (sizeof (($2)))
2666 return 0;
2667 ;
2668 return 0;
2669}
2670_ACEOF
2671if ac_fn_c_try_compile "$LINENO"; then :
2672
2673else
2674 eval "$3=yes"
2675fi
2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677fi
2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679fi
2680eval ac_res=\$$3
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2682$as_echo "$ac_res" >&6; }
2683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2684
2685} # ac_fn_c_check_type
2686
2687# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2688# --------------------------------------------
2689# Tries to find the compile-time value of EXPR in a program that includes
2690# INCLUDES, setting VAR accordingly. Returns whether the value could be
2691# computed
2692ac_fn_c_compute_int ()
2693{
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 if test "$cross_compiling" = yes; then
2696 # Depending upon the size, compute the lo and hi bounds.
2697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698/* end confdefs.h. */
2699$4
2700int
2701main ()
2702{
2703static int test_array [1 - 2 * !(($2) >= 0)];
2704test_array [0] = 0
2705
2706 ;
2707 return 0;
2708}
2709_ACEOF
2710if ac_fn_c_try_compile "$LINENO"; then :
2711 ac_lo=0 ac_mid=0
2712 while :; do
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h. */
2715$4
2716int
2717main ()
2718{
2719static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2720test_array [0] = 0
2721
2722 ;
2723 return 0;
2724}
2725_ACEOF
2726if ac_fn_c_try_compile "$LINENO"; then :
2727 ac_hi=$ac_mid; break
2728else
2729 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2730 if test $ac_lo -le $ac_mid; then
2731 ac_lo= ac_hi=
2732 break
2733 fi
2734 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 done
2738else
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741$4
2742int
2743main ()
2744{
2745static int test_array [1 - 2 * !(($2) < 0)];
2746test_array [0] = 0
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752if ac_fn_c_try_compile "$LINENO"; then :
2753 ac_hi=-1 ac_mid=-1
2754 while :; do
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756/* end confdefs.h. */
2757$4
2758int
2759main ()
2760{
2761static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2762test_array [0] = 0
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768if ac_fn_c_try_compile "$LINENO"; then :
2769 ac_lo=$ac_mid; break
2770else
2771 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2772 if test $ac_mid -le $ac_hi; then
2773 ac_lo= ac_hi=
2774 break
2775 fi
2776 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2777fi
2778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779 done
2780else
2781 ac_lo= ac_hi=
2782fi
2783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784fi
2785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786# Binary search between lo and hi bounds.
2787while test "x$ac_lo" != "x$ac_hi"; do
2788 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790/* end confdefs.h. */
2791$4
2792int
2793main ()
2794{
2795static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2796test_array [0] = 0
2797
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802if ac_fn_c_try_compile "$LINENO"; then :
2803 ac_hi=$ac_mid
2804else
2805 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2806fi
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808done
2809case $ac_lo in #((
2810?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2811'') ac_retval=1 ;;
2812esac
2813 else
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h. */
2816$4
2817static long int longval () { return $2; }
2818static unsigned long int ulongval () { return $2; }
2819#include <stdio.h>
2820#include <stdlib.h>
2821int
2822main ()
2823{
2824
2825 FILE *f = fopen ("conftest.val", "w");
2826 if (! f)
2827 return 1;
2828 if (($2) < 0)
2829 {
2830 long int i = longval ();
2831 if (i != ($2))
2832 return 1;
2833 fprintf (f, "%ld", i);
2834 }
2835 else
2836 {
2837 unsigned long int i = ulongval ();
2838 if (i != ($2))
2839 return 1;
2840 fprintf (f, "%lu", i);
2841 }
2842 /* Do not output a trailing newline, as this causes \r\n confusion
2843 on some platforms. */
2844 return ferror (f) || fclose (f) != 0;
2845
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850if ac_fn_c_try_run "$LINENO"; then :
2851 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2852else
2853 ac_retval=1
2854fi
2855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2856 conftest.$ac_objext conftest.beam conftest.$ac_ext
2857rm -f conftest.val
2858
2859 fi
2860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002861 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002862
2863} # ac_fn_c_compute_int
2864
2865# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2866# ---------------------------------------------------------
2867# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2868# the include files in INCLUDES and setting the cache variable VAR
2869# accordingly.
2870ac_fn_cxx_check_header_mongrel ()
2871{
2872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2873 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2875$as_echo_n "checking for $2... " >&6; }
2876if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2877 $as_echo_n "(cached) " >&6
2878fi
2879eval ac_res=\$$3
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2881$as_echo "$ac_res" >&6; }
2882else
2883 # Is the header compilable?
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2885$as_echo_n "checking $2 usability... " >&6; }
2886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887/* end confdefs.h. */
2888$4
2889#include <$2>
2890_ACEOF
2891if ac_fn_cxx_try_compile "$LINENO"; then :
2892 ac_header_compiler=yes
2893else
2894 ac_header_compiler=no
2895fi
2896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2898$as_echo "$ac_header_compiler" >&6; }
2899
2900# Is the header present?
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2902$as_echo_n "checking $2 presence... " >&6; }
2903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905#include <$2>
2906_ACEOF
2907if ac_fn_cxx_try_cpp "$LINENO"; then :
2908 ac_header_preproc=yes
2909else
2910 ac_header_preproc=no
2911fi
2912rm -f conftest.err conftest.$ac_ext
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2914$as_echo "$ac_header_preproc" >&6; }
2915
2916# So? What about this header?
2917case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2918 yes:no: )
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2920$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2923 ;;
2924 no:yes:* )
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2926$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2928$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2930$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2932$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2935( cat <<\_ASBOX
2936## ----------------------------------------- ##
2937## Report this to http://www.imagemagick.org ##
2938## ----------------------------------------- ##
2939_ASBOX
2940 ) | sed "s/^/$as_me: WARNING: /" >&2
2941 ;;
2942esac
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2944$as_echo_n "checking for $2... " >&6; }
2945if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2946 $as_echo_n "(cached) " >&6
2947else
2948 eval "$3=\$ac_header_compiler"
2949fi
2950eval ac_res=\$$3
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2952$as_echo "$ac_res" >&6; }
2953fi
2954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2955
2956} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002957cat >config.log <<_ACEOF
2958This file contains any messages produced by compilers while
2959running configure, to aid debugging if configure makes a mistake.
2960
cristydc0f0892009-12-29 02:21:55 +00002961It was created by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +00002962generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002963
2964 $ $0 $@
2965
2966_ACEOF
2967exec 5>>config.log
2968{
2969cat <<_ASUNAME
2970## --------- ##
2971## Platform. ##
2972## --------- ##
2973
2974hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2975uname -m = `(uname -m) 2>/dev/null || echo unknown`
2976uname -r = `(uname -r) 2>/dev/null || echo unknown`
2977uname -s = `(uname -s) 2>/dev/null || echo unknown`
2978uname -v = `(uname -v) 2>/dev/null || echo unknown`
2979
2980/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2981/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2982
2983/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2984/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2985/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2986/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2987/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2988/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2989/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2990
2991_ASUNAME
2992
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002998 $as_echo "PATH: $as_dir"
2999 done
cristy3ed852e2009-09-05 21:47:34 +00003000IFS=$as_save_IFS
3001
3002} >&5
3003
3004cat >&5 <<_ACEOF
3005
3006
3007## ----------- ##
3008## Core tests. ##
3009## ----------- ##
3010
3011_ACEOF
3012
3013
3014# Keep a trace of the command line.
3015# Strip out --no-create and --no-recursion so they do not pile up.
3016# Strip out --silent because we don't want to record it for future runs.
3017# Also quote any args containing shell meta-characters.
3018# Make two passes to allow for proper duplicate-argument suppression.
3019ac_configure_args=
3020ac_configure_args0=
3021ac_configure_args1=
3022ac_must_keep_next=false
3023for ac_pass in 1 2
3024do
3025 for ac_arg
3026 do
3027 case $ac_arg in
3028 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3030 | -silent | --silent | --silen | --sile | --sil)
3031 continue ;;
3032 *\'*)
3033 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3034 esac
3035 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003036 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003037 2)
cristy8b350f62009-11-15 23:12:43 +00003038 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003039 if test $ac_must_keep_next = true; then
3040 ac_must_keep_next=false # Got value, back to normal.
3041 else
3042 case $ac_arg in
3043 *=* | --config-cache | -C | -disable-* | --disable-* \
3044 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3045 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3046 | -with-* | --with-* | -without-* | --without-* | --x)
3047 case "$ac_configure_args0 " in
3048 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3049 esac
3050 ;;
3051 -* ) ac_must_keep_next=true ;;
3052 esac
3053 fi
cristy8b350f62009-11-15 23:12:43 +00003054 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003055 ;;
3056 esac
3057 done
3058done
cristy8b350f62009-11-15 23:12:43 +00003059{ ac_configure_args0=; unset ac_configure_args0;}
3060{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003061
3062# When interrupted or exit'd, cleanup temporary files, and complete
3063# config.log. We remove comments because anyway the quotes in there
3064# would cause problems or look ugly.
3065# WARNING: Use '\'' to represent an apostrophe within the trap.
3066# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3067trap 'exit_status=$?
3068 # Save into config.log some information that might help in debugging.
3069 {
3070 echo
3071
3072 cat <<\_ASBOX
3073## ---------------- ##
3074## Cache variables. ##
3075## ---------------- ##
3076_ASBOX
3077 echo
3078 # The following way of writing the cache mishandles newlines in values,
3079(
3080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3081 eval ac_val=\$$ac_var
3082 case $ac_val in #(
3083 *${as_nl}*)
3084 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3087 esac
3088 case $ac_var in #(
3089 _ | IFS | as_nl) ;; #(
3090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003091 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003092 esac ;;
3093 esac
3094 done
3095 (set) 2>&1 |
3096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3097 *${as_nl}ac_space=\ *)
3098 sed -n \
3099 "s/'\''/'\''\\\\'\'''\''/g;
3100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3101 ;; #(
3102 *)
3103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3104 ;;
3105 esac |
3106 sort
3107)
3108 echo
3109
3110 cat <<\_ASBOX
3111## ----------------- ##
3112## Output variables. ##
3113## ----------------- ##
3114_ASBOX
3115 echo
3116 for ac_var in $ac_subst_vars
3117 do
3118 eval ac_val=\$$ac_var
3119 case $ac_val in
3120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3121 esac
3122 $as_echo "$ac_var='\''$ac_val'\''"
3123 done | sort
3124 echo
3125
3126 if test -n "$ac_subst_files"; then
3127 cat <<\_ASBOX
3128## ------------------- ##
3129## File substitutions. ##
3130## ------------------- ##
3131_ASBOX
3132 echo
3133 for ac_var in $ac_subst_files
3134 do
3135 eval ac_val=\$$ac_var
3136 case $ac_val in
3137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3138 esac
3139 $as_echo "$ac_var='\''$ac_val'\''"
3140 done | sort
3141 echo
3142 fi
3143
3144 if test -s confdefs.h; then
3145 cat <<\_ASBOX
3146## ----------- ##
3147## confdefs.h. ##
3148## ----------- ##
3149_ASBOX
3150 echo
3151 cat confdefs.h
3152 echo
3153 fi
3154 test "$ac_signal" != 0 &&
3155 $as_echo "$as_me: caught signal $ac_signal"
3156 $as_echo "$as_me: exit $exit_status"
3157 } >&5
3158 rm -f core *.core core.conftest.* &&
3159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3160 exit $exit_status
3161' 0
3162for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003164done
3165ac_signal=0
3166
3167# confdefs.h avoids OS command line length limits that DEFS can exceed.
3168rm -f -r conftest* confdefs.h
3169
cristy8b350f62009-11-15 23:12:43 +00003170$as_echo "/* confdefs.h */" > confdefs.h
3171
cristy3ed852e2009-09-05 21:47:34 +00003172# Predefined preprocessor variables.
3173
3174cat >>confdefs.h <<_ACEOF
3175#define PACKAGE_NAME "$PACKAGE_NAME"
3176_ACEOF
3177
cristy3ed852e2009-09-05 21:47:34 +00003178cat >>confdefs.h <<_ACEOF
3179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3180_ACEOF
3181
cristy3ed852e2009-09-05 21:47:34 +00003182cat >>confdefs.h <<_ACEOF
3183#define PACKAGE_VERSION "$PACKAGE_VERSION"
3184_ACEOF
3185
cristy3ed852e2009-09-05 21:47:34 +00003186cat >>confdefs.h <<_ACEOF
3187#define PACKAGE_STRING "$PACKAGE_STRING"
3188_ACEOF
3189
cristy3ed852e2009-09-05 21:47:34 +00003190cat >>confdefs.h <<_ACEOF
3191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3192_ACEOF
3193
cristy8b350f62009-11-15 23:12:43 +00003194cat >>confdefs.h <<_ACEOF
3195#define PACKAGE_URL "$PACKAGE_URL"
3196_ACEOF
3197
cristy3ed852e2009-09-05 21:47:34 +00003198
3199# Let the site file select an alternate cache file if it wants to.
3200# Prefer an explicitly selected file to automatically selected ones.
3201ac_site_file1=NONE
3202ac_site_file2=NONE
3203if test -n "$CONFIG_SITE"; then
3204 ac_site_file1=$CONFIG_SITE
3205elif test "x$prefix" != xNONE; then
3206 ac_site_file1=$prefix/share/config.site
3207 ac_site_file2=$prefix/etc/config.site
3208else
3209 ac_site_file1=$ac_default_prefix/share/config.site
3210 ac_site_file2=$ac_default_prefix/etc/config.site
3211fi
3212for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3213do
3214 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003215 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003217$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3218 sed 's/^/| /' "$ac_site_file" >&5
3219 . "$ac_site_file"
3220 fi
3221done
3222
3223if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003224 # Some versions of bash will fail to source /dev/null (special files
3225 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3226 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003228$as_echo "$as_me: loading cache $cache_file" >&6;}
3229 case $cache_file in
3230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3231 *) . "./$cache_file";;
3232 esac
3233 fi
3234else
cristy8b350f62009-11-15 23:12:43 +00003235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003236$as_echo "$as_me: creating cache $cache_file" >&6;}
3237 >$cache_file
3238fi
3239
cristycd4c5312009-11-22 01:19:08 +00003240as_fn_append ac_header_list " stdlib.h"
3241as_fn_append ac_header_list " unistd.h"
3242as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003243# Check that the precious variables saved in the cache have kept the same
3244# value.
3245ac_cache_corrupted=false
3246for ac_var in $ac_precious_vars; do
3247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3248 eval ac_new_set=\$ac_env_${ac_var}_set
3249 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3250 eval ac_new_val=\$ac_env_${ac_var}_value
3251 case $ac_old_set,$ac_new_set in
3252 set,)
cristy8b350f62009-11-15 23:12:43 +00003253 { $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 +00003254$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3255 ac_cache_corrupted=: ;;
3256 ,set)
cristy8b350f62009-11-15 23:12:43 +00003257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003258$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3259 ac_cache_corrupted=: ;;
3260 ,);;
3261 *)
3262 if test "x$ac_old_val" != "x$ac_new_val"; then
3263 # differences in whitespace do not lead to failure.
3264 ac_old_val_w=`echo x $ac_old_val`
3265 ac_new_val_w=`echo x $ac_new_val`
3266 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003268$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3269 ac_cache_corrupted=:
3270 else
cristy8b350f62009-11-15 23:12:43 +00003271 { $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 +00003272$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3273 eval $ac_var=\$ac_old_val
3274 fi
cristy8b350f62009-11-15 23:12:43 +00003275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003276$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003278$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3279 fi;;
3280 esac
3281 # Pass precious variables to config.status.
3282 if test "$ac_new_set" = set; then
3283 case $ac_new_val in
3284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3285 *) ac_arg=$ac_var=$ac_new_val ;;
3286 esac
3287 case " $ac_configure_args " in
3288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003289 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003290 esac
3291 fi
3292done
3293if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003297$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003298 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003299fi
cristy8b350f62009-11-15 23:12:43 +00003300## -------------------- ##
3301## Main body of script. ##
3302## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003303
3304ac_ext=c
3305ac_cpp='$CPP $CPPFLAGS'
3306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309
3310
3311
3312ac_aux_dir=
3313for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003314 for ac_t in install-sh install.sh shtool; do
3315 if test -f "$ac_dir/$ac_t"; then
3316 ac_aux_dir=$ac_dir
3317 ac_install_sh="$ac_aux_dir/$ac_t -c"
3318 break 2
3319 fi
3320 done
cristy3ed852e2009-09-05 21:47:34 +00003321done
3322if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003323 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003324fi
3325
3326# These three variables are undocumented and unsupported,
3327# and are intended to be withdrawn in a future Autoconf release.
3328# They can cause serious problems if a builder's source tree is in a directory
3329# whose full name contains unusual characters.
3330ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3331ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3332ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3333
3334
3335
3336
3337ac_config_headers="$ac_config_headers config/config.h"
3338
3339ac_config_commands="$ac_config_commands magick/magick-config.h"
3340
cristy430a7312010-01-21 20:44:04 +00003341ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003342
3343
3344#
3345# Save initial user-tunable values
3346#
3347USER_LIBS=$LIBS
3348for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3349 eval isset=\${$var+set}
3350 if test "$isset" = 'set'; then
3351 eval val=$`echo $var`
3352 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3353 fi
3354done
3355
3356
3357CONFIGURE_ARGS="$0 ${ac_configure_args}"
3358
3359
3360# Source file containing package/library versioning information.
3361. ${srcdir}/version.sh
3362
cristy15a88782010-01-31 23:24:49 +00003363echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003364# Make sure we can run config.sub.
3365$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003366 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003367
cristy8b350f62009-11-15 23:12:43 +00003368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003369$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003370if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003371 $as_echo_n "(cached) " >&6
3372else
3373 ac_build_alias=$build_alias
3374test "x$ac_build_alias" = x &&
3375 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3376test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003377 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003378ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003379 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003380
3381fi
cristy8b350f62009-11-15 23:12:43 +00003382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$ac_cv_build" >&6; }
3384case $ac_cv_build in
3385*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003386*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003387esac
3388build=$ac_cv_build
3389ac_save_IFS=$IFS; IFS='-'
3390set x $ac_cv_build
3391shift
3392build_cpu=$1
3393build_vendor=$2
3394shift; shift
3395# Remember, the first character of IFS is used to create $*,
3396# except with old shells:
3397build_os=$*
3398IFS=$ac_save_IFS
3399case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3400
3401
cristy8b350f62009-11-15 23:12:43 +00003402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003404if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003405 $as_echo_n "(cached) " >&6
3406else
3407 if test "x$host_alias" = x; then
3408 ac_cv_host=$ac_cv_build
3409else
3410 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003411 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003412fi
3413
3414fi
cristy8b350f62009-11-15 23:12:43 +00003415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003416$as_echo "$ac_cv_host" >&6; }
3417case $ac_cv_host in
3418*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003419*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003420esac
3421host=$ac_cv_host
3422ac_save_IFS=$IFS; IFS='-'
3423set x $ac_cv_host
3424shift
3425host_cpu=$1
3426host_vendor=$2
3427shift; shift
3428# Remember, the first character of IFS is used to create $*,
3429# except with old shells:
3430host_os=$*
3431IFS=$ac_save_IFS
3432case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3433
3434
cristy8b350f62009-11-15 23:12:43 +00003435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003436$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003437if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003438 $as_echo_n "(cached) " >&6
3439else
3440 if test "x$target_alias" = x; then
3441 ac_cv_target=$ac_cv_host
3442else
3443 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003444 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003445fi
3446
3447fi
cristy8b350f62009-11-15 23:12:43 +00003448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003449$as_echo "$ac_cv_target" >&6; }
3450case $ac_cv_target in
3451*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003452*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003453esac
3454target=$ac_cv_target
3455ac_save_IFS=$IFS; IFS='-'
3456set x $ac_cv_target
3457shift
3458target_cpu=$1
3459target_vendor=$2
3460shift; shift
3461# Remember, the first character of IFS is used to create $*,
3462# except with old shells:
3463target_os=$*
3464IFS=$ac_save_IFS
3465case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3466
3467
3468# The aliases save the names the user supplied, while $host etc.
3469# will get canonicalized.
3470test -n "$target_alias" &&
3471 test "$program_prefix$program_suffix$program_transform_name" = \
3472 NONENONEs,x,x, &&
3473 program_prefix=${target_alias}-
3474
3475# Substitute library versioning
3476
3477
3478# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo_n "checking whether build environment is sane... " >&6; }
3481# Just in case
3482sleep 1
3483echo timestamp > conftest.file
3484# Reject unsafe characters in $srcdir or the absolute working directory
3485# name. Accept space and tab only in the latter.
3486am_lf='
3487'
3488case `pwd` in
3489 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003490 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003491esac
3492case $srcdir in
3493 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003494 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003495esac
3496
3497# Do `set' in a subshell so we don't clobber the current shell's
3498# arguments. Must try -L first in case configure is actually a
3499# symlink; some systems play weird games with the mod time of symlinks
3500# (eg FreeBSD returns the mod time of the symlink's containing
3501# directory).
3502if (
3503 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3504 if test "$*" = "X"; then
3505 # -L didn't work.
3506 set X `ls -t "$srcdir/configure" conftest.file`
3507 fi
3508 rm -f conftest.file
3509 if test "$*" != "X $srcdir/configure conftest.file" \
3510 && test "$*" != "X conftest.file $srcdir/configure"; then
3511
3512 # If neither matched, then we have a broken ls. This can happen
3513 # if, for instance, CONFIG_SHELL is bash and it inherits a
3514 # broken ls alias from the environment. This has actually
3515 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003516 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3517alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003518 fi
3519
3520 test "$2" = conftest.file
3521 )
3522then
3523 # Ok.
3524 :
3525else
cristy8b350f62009-11-15 23:12:43 +00003526 as_fn_error "newly created file is older than distributed files!
3527Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003528fi
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo "yes" >&6; }
3531
3532am__api_version='1.11'
3533
3534# Find a good install program. We prefer a C program (faster),
3535# so one script is as good as another. But avoid the broken or
3536# incompatible versions:
3537# SysV /etc/install, /usr/sbin/install
3538# SunOS /usr/etc/install
3539# IRIX /sbin/install
3540# AIX /bin/install
3541# AmigaOS /C/install, which installs bootblocks on floppy discs
3542# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3543# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3544# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3545# OS/2's system install, which has a completely different semantic
3546# ./install, which can be erroneously created by make from ./install.sh.
3547# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003549$as_echo_n "checking for a BSD-compatible install... " >&6; }
3550if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003551if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003552 $as_echo_n "(cached) " >&6
3553else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555for as_dir in $PATH
3556do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003559 # Account for people who put trailing slashes in PATH elements.
3560case $as_dir/ in #((
3561 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003563 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003564 /usr/ucb/* ) ;;
3565 *)
3566 # OSF1 and SCO ODT 3.0 have their own names for install.
3567 # Don't use installbsd from OSF since it installs stuff as root
3568 # by default.
3569 for ac_prog in ginstall scoinst install; do
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3572 if test $ac_prog = install &&
3573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3574 # AIX install. It has an incompatible calling convention.
3575 :
3576 elif test $ac_prog = install &&
3577 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3578 # program-specific install script used by HP pwplus--don't use.
3579 :
3580 else
3581 rm -rf conftest.one conftest.two conftest.dir
3582 echo one > conftest.one
3583 echo two > conftest.two
3584 mkdir conftest.dir
3585 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3586 test -s conftest.one && test -s conftest.two &&
3587 test -s conftest.dir/conftest.one &&
3588 test -s conftest.dir/conftest.two
3589 then
3590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3591 break 3
3592 fi
3593 fi
3594 fi
3595 done
3596 done
3597 ;;
3598esac
3599
cristy8b350f62009-11-15 23:12:43 +00003600 done
cristy3ed852e2009-09-05 21:47:34 +00003601IFS=$as_save_IFS
3602
3603rm -rf conftest.one conftest.two conftest.dir
3604
3605fi
3606 if test "${ac_cv_path_install+set}" = set; then
3607 INSTALL=$ac_cv_path_install
3608 else
3609 # As a last resort, use the slow shell script. Don't cache a
3610 # value for INSTALL within a source directory, because that will
3611 # break other packages using the cache if that directory is
3612 # removed, or if the value is a relative name.
3613 INSTALL=$ac_install_sh
3614 fi
3615fi
cristy8b350f62009-11-15 23:12:43 +00003616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003617$as_echo "$INSTALL" >&6; }
3618
3619# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3620# It thinks the first close brace ends the variable substitution.
3621test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3622
3623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3624
3625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3626
3627test "$program_prefix" != NONE &&
3628 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3629# Use a double $ so make ignores it.
3630test "$program_suffix" != NONE &&
3631 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3632# Double any \ or $.
3633# By default was `s,x,x', remove it if useless.
3634ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3635program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3636
3637# expand $ac_aux_dir to an absolute path
3638am_aux_dir=`cd $ac_aux_dir && pwd`
3639
3640if test x"${MISSING+set}" != xset; then
3641 case $am_aux_dir in
3642 *\ * | *\ *)
3643 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3644 *)
3645 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3646 esac
3647fi
3648# Use eval to expand $SHELL
3649if eval "$MISSING --run true"; then
3650 am_missing_run="$MISSING --run "
3651else
3652 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003654$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3655fi
3656
3657if test x"${install_sh}" != xset; then
3658 case $am_aux_dir in
3659 *\ * | *\ *)
3660 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3661 *)
3662 install_sh="\${SHELL} $am_aux_dir/install-sh"
3663 esac
3664fi
3665
3666# Installed binaries are usually stripped using `strip' when the user
3667# run `make install-strip'. However `strip' might not be the right
3668# tool to use in cross-compilation environments, therefore Automake
3669# will honor the `STRIP' environment variable to overrule this program.
3670if test "$cross_compiling" != no; then
3671 if test -n "$ac_tool_prefix"; then
3672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3673set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003675$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003676if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003677 $as_echo_n "(cached) " >&6
3678else
3679 if test -n "$STRIP"; then
3680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3681else
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003691 break 2
3692 fi
3693done
cristy8b350f62009-11-15 23:12:43 +00003694 done
cristy3ed852e2009-09-05 21:47:34 +00003695IFS=$as_save_IFS
3696
3697fi
3698fi
3699STRIP=$ac_cv_prog_STRIP
3700if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003702$as_echo "$STRIP" >&6; }
3703else
cristy8b350f62009-11-15 23:12:43 +00003704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003705$as_echo "no" >&6; }
3706fi
3707
3708
3709fi
3710if test -z "$ac_cv_prog_STRIP"; then
3711 ac_ct_STRIP=$STRIP
3712 # Extract the first word of "strip", so it can be a program name with args.
3713set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003715$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003716if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003717 $as_echo_n "(cached) " >&6
3718else
3719 if test -n "$ac_ct_STRIP"; then
3720 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003731 break 2
3732 fi
3733done
cristy8b350f62009-11-15 23:12:43 +00003734 done
cristy3ed852e2009-09-05 21:47:34 +00003735IFS=$as_save_IFS
3736
3737fi
3738fi
3739ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3740if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003742$as_echo "$ac_ct_STRIP" >&6; }
3743else
cristy8b350f62009-11-15 23:12:43 +00003744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003745$as_echo "no" >&6; }
3746fi
3747
3748 if test "x$ac_ct_STRIP" = x; then
3749 STRIP=":"
3750 else
3751 case $cross_compiling:$ac_tool_warned in
3752yes:)
cristy8b350f62009-11-15 23:12:43 +00003753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755ac_tool_warned=yes ;;
3756esac
3757 STRIP=$ac_ct_STRIP
3758 fi
3759else
3760 STRIP="$ac_cv_prog_STRIP"
3761fi
3762
3763fi
3764INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3765
cristy8b350f62009-11-15 23:12:43 +00003766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003767$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3768if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003769 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003770 $as_echo_n "(cached) " >&6
3771else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003777 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3780 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3781 'mkdir (GNU coreutils) '* | \
3782 'mkdir (coreutils) '* | \
3783 'mkdir (fileutils) '4.1*)
3784 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3785 break 3;;
3786 esac
3787 done
3788 done
cristy8b350f62009-11-15 23:12:43 +00003789 done
cristy3ed852e2009-09-05 21:47:34 +00003790IFS=$as_save_IFS
3791
3792fi
3793
cristycd4c5312009-11-22 01:19:08 +00003794 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003795 if test "${ac_cv_path_mkdir+set}" = set; then
3796 MKDIR_P="$ac_cv_path_mkdir -p"
3797 else
3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for MKDIR_P within a source directory, because that will
3800 # break other packages using the cache if that directory is
3801 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003802 MKDIR_P="$ac_install_sh -d"
3803 fi
3804fi
cristy8b350f62009-11-15 23:12:43 +00003805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003806$as_echo "$MKDIR_P" >&6; }
3807
3808mkdir_p="$MKDIR_P"
3809case $mkdir_p in
3810 [\\/$]* | ?:[\\/]*) ;;
3811 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3812esac
3813
3814for ac_prog in gawk mawk nawk awk
3815do
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003819$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003820if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003821 $as_echo_n "(cached) " >&6
3822else
3823 if test -n "$AWK"; then
3824 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003835 break 2
3836 fi
3837done
cristy8b350f62009-11-15 23:12:43 +00003838 done
cristy3ed852e2009-09-05 21:47:34 +00003839IFS=$as_save_IFS
3840
3841fi
3842fi
3843AWK=$ac_cv_prog_AWK
3844if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003846$as_echo "$AWK" >&6; }
3847else
cristy8b350f62009-11-15 23:12:43 +00003848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003849$as_echo "no" >&6; }
3850fi
3851
3852
3853 test -n "$AWK" && break
3854done
3855
cristy8b350f62009-11-15 23:12:43 +00003856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003857$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3858set x ${MAKE-make}
3859ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003860if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003861 $as_echo_n "(cached) " >&6
3862else
3863 cat >conftest.make <<\_ACEOF
3864SHELL = /bin/sh
3865all:
3866 @echo '@@@%%%=$(MAKE)=@@@%%%'
3867_ACEOF
3868# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3869case `${MAKE-make} -f conftest.make 2>/dev/null` in
3870 *@@@%%%=?*=@@@%%%*)
3871 eval ac_cv_prog_make_${ac_make}_set=yes;;
3872 *)
3873 eval ac_cv_prog_make_${ac_make}_set=no;;
3874esac
3875rm -f conftest.make
3876fi
3877if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003879$as_echo "yes" >&6; }
3880 SET_MAKE=
3881else
cristy8b350f62009-11-15 23:12:43 +00003882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003883$as_echo "no" >&6; }
3884 SET_MAKE="MAKE=${MAKE-make}"
3885fi
3886
3887rm -rf .tst 2>/dev/null
3888mkdir .tst 2>/dev/null
3889if test -d .tst; then
3890 am__leading_dot=.
3891else
3892 am__leading_dot=_
3893fi
3894rmdir .tst 2>/dev/null
3895
3896if test "`cd $srcdir && pwd`" != "`pwd`"; then
3897 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3898 # is not polluted with repeated "-I."
3899 am__isrc=' -I$(srcdir)'
3900 # test to see if srcdir already configured
3901 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003902 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003903 fi
3904fi
3905
3906# test whether we have cygpath
3907if test -z "$CYGPATH_W"; then
3908 if (cygpath --version) >/dev/null 2>/dev/null; then
3909 CYGPATH_W='cygpath -w'
3910 else
3911 CYGPATH_W=echo
3912 fi
3913fi
3914
3915
3916# Define the identity of the package.
3917 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003918 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003919
3920
3921# Some tools Automake needs.
3922
3923ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3924
3925
3926AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3927
3928
3929AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3930
3931
3932AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3933
3934
3935MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3936
3937# We need awk for the "check" target. The system "awk" is bad on
3938# some platforms.
3939# Always define AMTAR for backward compatibility.
3940
3941AMTAR=${AMTAR-"${am_missing_run}tar"}
3942
3943am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3944
3945
3946
3947
3948
3949
3950# Enable support for silent build rules
3951# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003952if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003953 enableval=$enable_silent_rules;
3954fi
3955
3956case $enable_silent_rules in
3957yes) AM_DEFAULT_VERBOSITY=0;;
3958no) AM_DEFAULT_VERBOSITY=1;;
3959*) AM_DEFAULT_VERBOSITY=0;;
3960esac
3961AM_BACKSLASH='\'
3962
3963
3964MAGICK_LIB_VERSION="0x"
3965if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3966 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3967fi
3968MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3969if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3970 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3971fi
3972MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3973if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3974 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3975fi
3976MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3977
3978
3979# Definition used to define MagickLibVersionText in version.h
3980MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3981
3982
3983# Definition used to define MagickLibVersionNumber in version.h
3984MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3985
3986
3987# Regenerate config.status if ChangeLog or version.sh is updated.
3988CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3989
3990
3991PERLMAINCC=$CC
3992
3993MAGICK_CFLAGS=''
3994MAGICK_CPPFLAGS=$CPPFLAGS_USER
3995MAGICK_PCFLAGS=$CPPFLAGS_USER
3996MAGICK_LDFLAGS=''
3997MAGICK_LIBS=''
3998
3999#
4000# Evaluate shell variable equivalents to Makefile directory variables
4001#
4002if test "x$prefix" = xNONE; then
4003 prefix=$ac_default_prefix
4004fi
4005# Let make expand exec_prefix.
4006if test "x$exec_prefix" = xNONE; then
4007 exec_prefix='${prefix}'
4008fi
4009
4010#
4011eval "eval PREFIX_DIR=${prefix}"
4012
4013eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4014
4015eval "eval BIN_DIR=$bindir"
4016
4017eval "eval SBIN_DIR=$sbindir"
4018
4019eval "eval LIBEXEC_DIR=$libexecdir"
4020
4021eval "eval DATA_DIR=$datadir"
4022
4023eval "eval SYSCONF_DIR=$sysconfdir"
4024
4025eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4026
4027eval "eval LOCALSTATE_DIR=$localstatedir"
4028
4029eval "eval LIB_DIR=$libdir"
4030
4031eval "eval INCLUDE_DIR=$includedir"
4032
4033eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4034
4035eval "eval INFO_DIR=$infodir"
4036
4037eval "eval MAN_DIR=$mandir"
4038
4039
4040# Get full paths to source and build directories
4041srcdirfull="`cd $srcdir && pwd`"
4042builddir="`pwd`"
4043
4044#
4045# Compute variables useful for running uninstalled software.
4046#
4047MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4048MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4049MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4050MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4051DIRSEP=':'
4052case "${build_os}" in
4053 mingw* )
4054 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4055 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4056 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4057 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4058 DIRSEP=';'
4059 ;;
4060esac
4061case "${host_os}" in
4062 mingw* )
4063 DIRSEP=';'
4064 ;;
4065esac
4066
4067
4068
4069
4070
4071
cristya0b81c32010-01-22 02:54:33 +00004072
4073#
4074# Enable OS features.
4075#
4076DEPDIR="${am__leading_dot}deps"
4077
4078ac_config_commands="$ac_config_commands depfiles"
4079
4080
4081am_make=${MAKE-make}
4082cat > confinc << 'END'
4083am__doit:
4084 @echo this is the am__doit target
4085.PHONY: am__doit
4086END
4087# If we don't find an include directive, just comment out the code.
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4089$as_echo_n "checking for style of include used by $am_make... " >&6; }
4090am__include="#"
4091am__quote=
4092_am_result=none
4093# First try GNU make style include.
4094echo "include confinc" > confmf
4095# Ignore all kinds of additional output from `make'.
4096case `$am_make -s -f confmf 2> /dev/null` in #(
4097*the\ am__doit\ target*)
4098 am__include=include
4099 am__quote=
4100 _am_result=GNU
4101 ;;
4102esac
4103# Now try BSD make style include.
4104if test "$am__include" = "#"; then
4105 echo '.include "confinc"' > confmf
4106 case `$am_make -s -f confmf 2> /dev/null` in #(
4107 *the\ am__doit\ target*)
4108 am__include=.include
4109 am__quote="\""
4110 _am_result=BSD
4111 ;;
4112 esac
4113fi
4114
4115
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4117$as_echo "$_am_result" >&6; }
4118rm -f confinc confmf
4119
4120# Check whether --enable-dependency-tracking was given.
4121if test "${enable_dependency_tracking+set}" = set; then :
4122 enableval=$enable_dependency_tracking;
4123fi
4124
4125if test "x$enable_dependency_tracking" != xno; then
4126 am_depcomp="$ac_aux_dir/depcomp"
4127 AMDEPBACKSLASH='\'
4128fi
4129 if test "x$enable_dependency_tracking" != xno; then
4130 AMDEP_TRUE=
4131 AMDEP_FALSE='#'
4132else
4133 AMDEP_TRUE='#'
4134 AMDEP_FALSE=
4135fi
4136
4137
cristy3ed852e2009-09-05 21:47:34 +00004138ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143if test -n "$ac_tool_prefix"; then
4144 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4145set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004147$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004148if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004149 $as_echo_n "(cached) " >&6
4150else
4151 if test -n "$CC"; then
4152 ac_cv_prog_CC="$CC" # Let the user override the test.
4153else
4154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155for as_dir in $PATH
4156do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004163 break 2
4164 fi
4165done
cristy8b350f62009-11-15 23:12:43 +00004166 done
cristy3ed852e2009-09-05 21:47:34 +00004167IFS=$as_save_IFS
4168
4169fi
4170fi
4171CC=$ac_cv_prog_CC
4172if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004174$as_echo "$CC" >&6; }
4175else
cristy8b350f62009-11-15 23:12:43 +00004176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004177$as_echo "no" >&6; }
4178fi
4179
4180
4181fi
4182if test -z "$ac_cv_prog_CC"; then
4183 ac_ct_CC=$CC
4184 # Extract the first word of "gcc", so it can be a program name with args.
4185set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004187$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004188if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004189 $as_echo_n "(cached) " >&6
4190else
4191 if test -n "$ac_ct_CC"; then
4192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004203 break 2
4204 fi
4205done
cristy8b350f62009-11-15 23:12:43 +00004206 done
cristy3ed852e2009-09-05 21:47:34 +00004207IFS=$as_save_IFS
4208
4209fi
4210fi
4211ac_ct_CC=$ac_cv_prog_ac_ct_CC
4212if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004214$as_echo "$ac_ct_CC" >&6; }
4215else
cristy8b350f62009-11-15 23:12:43 +00004216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004217$as_echo "no" >&6; }
4218fi
4219
4220 if test "x$ac_ct_CC" = x; then
4221 CC=""
4222 else
4223 case $cross_compiling:$ac_tool_warned in
4224yes:)
cristy8b350f62009-11-15 23:12:43 +00004225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4227ac_tool_warned=yes ;;
4228esac
4229 CC=$ac_ct_CC
4230 fi
4231else
4232 CC="$ac_cv_prog_CC"
4233fi
4234
4235if test -z "$CC"; then
4236 if test -n "$ac_tool_prefix"; then
4237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4238set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004240$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004241if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004242 $as_echo_n "(cached) " >&6
4243else
4244 if test -n "$CC"; then
4245 ac_cv_prog_CC="$CC" # Let the user override the test.
4246else
4247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH
4249do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004256 break 2
4257 fi
4258done
cristy8b350f62009-11-15 23:12:43 +00004259 done
cristy3ed852e2009-09-05 21:47:34 +00004260IFS=$as_save_IFS
4261
4262fi
4263fi
4264CC=$ac_cv_prog_CC
4265if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004267$as_echo "$CC" >&6; }
4268else
cristy8b350f62009-11-15 23:12:43 +00004269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004270$as_echo "no" >&6; }
4271fi
4272
4273
4274 fi
4275fi
4276if test -z "$CC"; then
4277 # Extract the first word of "cc", so it can be a program name with args.
4278set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004281if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004282 $as_echo_n "(cached) " >&6
4283else
4284 if test -n "$CC"; then
4285 ac_cv_prog_CC="$CC" # Let the user override the test.
4286else
4287 ac_prog_rejected=no
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4296 ac_prog_rejected=yes
4297 continue
4298 fi
4299 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004301 break 2
4302 fi
4303done
cristy8b350f62009-11-15 23:12:43 +00004304 done
cristy3ed852e2009-09-05 21:47:34 +00004305IFS=$as_save_IFS
4306
4307if test $ac_prog_rejected = yes; then
4308 # We found a bogon in the path, so make sure we never use it.
4309 set dummy $ac_cv_prog_CC
4310 shift
4311 if test $# != 0; then
4312 # We chose a different compiler from the bogus one.
4313 # However, it has the same basename, so the bogon will be chosen
4314 # first if we set CC to just the basename; use the full file name.
4315 shift
4316 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4317 fi
4318fi
4319fi
4320fi
4321CC=$ac_cv_prog_CC
4322if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324$as_echo "$CC" >&6; }
4325else
cristy8b350f62009-11-15 23:12:43 +00004326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004327$as_echo "no" >&6; }
4328fi
4329
4330
4331fi
4332if test -z "$CC"; then
4333 if test -n "$ac_tool_prefix"; then
4334 for ac_prog in cl.exe
4335 do
4336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4337set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004339$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004340if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004341 $as_echo_n "(cached) " >&6
4342else
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4345else
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004355 break 2
4356 fi
4357done
cristy8b350f62009-11-15 23:12:43 +00004358 done
cristy3ed852e2009-09-05 21:47:34 +00004359IFS=$as_save_IFS
4360
4361fi
4362fi
4363CC=$ac_cv_prog_CC
4364if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366$as_echo "$CC" >&6; }
4367else
cristy8b350f62009-11-15 23:12:43 +00004368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004369$as_echo "no" >&6; }
4370fi
4371
4372
4373 test -n "$CC" && break
4374 done
4375fi
4376if test -z "$CC"; then
4377 ac_ct_CC=$CC
4378 for ac_prog in cl.exe
4379do
4380 # Extract the first word of "$ac_prog", so it can be a program name with args.
4381set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004383$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004384if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004385 $as_echo_n "(cached) " >&6
4386else
4387 if test -n "$ac_ct_CC"; then
4388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4389else
4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004399 break 2
4400 fi
4401done
cristy8b350f62009-11-15 23:12:43 +00004402 done
cristy3ed852e2009-09-05 21:47:34 +00004403IFS=$as_save_IFS
4404
4405fi
4406fi
4407ac_ct_CC=$ac_cv_prog_ac_ct_CC
4408if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004410$as_echo "$ac_ct_CC" >&6; }
4411else
cristy8b350f62009-11-15 23:12:43 +00004412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004413$as_echo "no" >&6; }
4414fi
4415
4416
4417 test -n "$ac_ct_CC" && break
4418done
4419
4420 if test "x$ac_ct_CC" = x; then
4421 CC=""
4422 else
4423 case $cross_compiling:$ac_tool_warned in
4424yes:)
cristy8b350f62009-11-15 23:12:43 +00004425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4427ac_tool_warned=yes ;;
4428esac
4429 CC=$ac_ct_CC
4430 fi
4431fi
4432
4433fi
4434
4435
cristy8b350f62009-11-15 23:12:43 +00004436test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004438as_fn_error "no acceptable C compiler found in \$PATH
4439See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004440
4441# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004442$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443set X $ac_compile
4444ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004445for ac_option in --version -v -V -qversion; do
4446 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004447case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
cristy8b350f62009-11-15 23:12:43 +00004451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452$as_echo "$ac_try_echo"; } >&5
4453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004454 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004455 if test -s conftest.err; then
4456 sed '10a\
4457... rest of stderr output deleted ...
4458 10q' conftest.err >conftest.er1
4459 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004460 fi
cristycd4c5312009-11-22 01:19:08 +00004461 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463 test $ac_status = 0; }
4464done
cristy3ed852e2009-09-05 21:47:34 +00004465
cristy8b350f62009-11-15 23:12:43 +00004466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004467/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004468
cristy3ed852e2009-09-05 21:47:34 +00004469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004478ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004479# Try to create an executable without -o first, disregard a.out.
4480# It will help us diagnose broken compilers, and finding out an intuition
4481# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4483$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004484ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4485
4486# The possible output files:
4487ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4488
4489ac_rmfiles=
4490for ac_file in $ac_files
4491do
4492 case $ac_file in
4493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4494 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4495 esac
4496done
4497rm -f $ac_rmfiles
4498
cristy8b350f62009-11-15 23:12:43 +00004499if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004500case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503esac
cristy8b350f62009-11-15 23:12:43 +00004504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004506 (eval "$ac_link_default") 2>&5
4507 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4511# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4512# in a Makefile. We should not override ac_cv_exeext if it was cached,
4513# so that the user can short-circuit this test for compilers unknown to
4514# Autoconf.
4515for ac_file in $ac_files ''
4516do
4517 test -f "$ac_file" || continue
4518 case $ac_file in
4519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4520 ;;
4521 [ab].out )
4522 # We found the default executable, but exeext='' is most
4523 # certainly right.
4524 break;;
4525 *.* )
cristy8b350f62009-11-15 23:12:43 +00004526 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004527 then :; else
4528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4529 fi
4530 # We set ac_cv_exeext here because the later test for it is not
4531 # safe: cross compilers may not add the suffix if given an `-o'
4532 # argument, so we may need to know it at that point already.
4533 # Even if this section looks crufty: it has the advantage of
4534 # actually working.
4535 break;;
4536 * )
4537 break;;
4538 esac
4539done
4540test "$ac_cv_exeext" = no && ac_cv_exeext=
4541
4542else
4543 ac_file=''
4544fi
cristy8b350f62009-11-15 23:12:43 +00004545if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; }
4548$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549sed 's/^/| /' conftest.$ac_ext >&5
4550
cristy8b350f62009-11-15 23:12:43 +00004551{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004553{ as_fn_set_status 77
4554as_fn_error "C compiler cannot create executables
4555See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004556else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4558$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004559fi
cristycd4c5312009-11-22 01:19:08 +00004560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4561$as_echo_n "checking for C compiler default output file name... " >&6; }
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4563$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004564ac_exeext=$ac_cv_exeext
4565
cristycd4c5312009-11-22 01:19:08 +00004566rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004567ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004569$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004570if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
cristy8b350f62009-11-15 23:12:43 +00004575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004577 (eval "$ac_link") 2>&5
4578 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004581 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4582# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4583# work properly (i.e., refer to `conftest.exe'), while it won't with
4584# `rm'.
4585for ac_file in conftest.exe conftest conftest.*; do
4586 test -f "$ac_file" || continue
4587 case $ac_file in
4588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4590 break;;
4591 * ) break;;
4592 esac
4593done
4594else
cristy8b350f62009-11-15 23:12:43 +00004595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004597as_fn_error "cannot compute suffix of executables: cannot compile and link
4598See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004599fi
cristycd4c5312009-11-22 01:19:08 +00004600rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004602$as_echo "$ac_cv_exeext" >&6; }
4603
4604rm -f conftest.$ac_ext
4605EXEEXT=$ac_cv_exeext
4606ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h. */
4609#include <stdio.h>
4610int
4611main ()
4612{
4613FILE *f = fopen ("conftest.out", "w");
4614 return ferror (f) || fclose (f) != 0;
4615
4616 ;
4617 return 0;
4618}
4619_ACEOF
4620ac_clean_files="$ac_clean_files conftest.out"
4621# Check that the compiler produces executables we can run. If not, either
4622# the compiler is broken, or we cross compile.
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4624$as_echo_n "checking whether we are cross compiling... " >&6; }
4625if test "$cross_compiling" != yes; then
4626 { { ac_try="$ac_link"
4627case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630esac
4631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632$as_echo "$ac_try_echo"; } >&5
4633 (eval "$ac_link") 2>&5
4634 ac_status=$?
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }
4637 if { ac_try='./conftest$ac_cv_exeext'
4638 { { case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
4642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643$as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_try") 2>&5
4645 ac_status=$?
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }; }; then
4648 cross_compiling=no
4649 else
4650 if test "$cross_compiling" = maybe; then
4651 cross_compiling=yes
4652 else
4653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4655as_fn_error "cannot run C compiled programs.
4656If you meant to cross compile, use \`--host'.
4657See \`config.log' for more details." "$LINENO" 5; }
4658 fi
4659 fi
4660fi
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4662$as_echo "$cross_compiling" >&6; }
4663
4664rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4665ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004667$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004668if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004669 $as_echo_n "(cached) " >&6
4670else
cristy8b350f62009-11-15 23:12:43 +00004671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004672/* end confdefs.h. */
4673
4674int
4675main ()
4676{
4677
4678 ;
4679 return 0;
4680}
4681_ACEOF
4682rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004683if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004684case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687esac
cristy8b350f62009-11-15 23:12:43 +00004688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4689$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004690 (eval "$ac_compile") 2>&5
4691 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004694 for ac_file in conftest.o conftest.obj conftest.*; do
4695 test -f "$ac_file" || continue;
4696 case $ac_file in
4697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4699 break;;
4700 esac
4701done
4702else
4703 $as_echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
cristy8b350f62009-11-15 23:12:43 +00004706{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004708as_fn_error "cannot compute suffix of object files: cannot compile
4709See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004710fi
cristy3ed852e2009-09-05 21:47:34 +00004711rm -f conftest.$ac_cv_objext conftest.$ac_ext
4712fi
cristy8b350f62009-11-15 23:12:43 +00004713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714$as_echo "$ac_cv_objext" >&6; }
4715OBJEXT=$ac_cv_objext
4716ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004719if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004720 $as_echo_n "(cached) " >&6
4721else
cristy8b350f62009-11-15 23:12:43 +00004722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004723/* end confdefs.h. */
4724
4725int
4726main ()
4727{
4728#ifndef __GNUC__
4729 choke me
4730#endif
4731
4732 ;
4733 return 0;
4734}
4735_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004736if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004737 ac_compiler_gnu=yes
4738else
cristy8b350f62009-11-15 23:12:43 +00004739 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004740fi
cristy3ed852e2009-09-05 21:47:34 +00004741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742ac_cv_c_compiler_gnu=$ac_compiler_gnu
4743
4744fi
cristy8b350f62009-11-15 23:12:43 +00004745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004746$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4747if test $ac_compiler_gnu = yes; then
4748 GCC=yes
4749else
4750 GCC=
4751fi
4752ac_test_CFLAGS=${CFLAGS+set}
4753ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004755$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004756if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004757 $as_echo_n "(cached) " >&6
4758else
4759 ac_save_c_werror_flag=$ac_c_werror_flag
4760 ac_c_werror_flag=yes
4761 ac_cv_prog_cc_g=no
4762 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004764/* end confdefs.h. */
4765
4766int
4767main ()
4768{
4769
4770 ;
4771 return 0;
4772}
4773_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004774if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004775 ac_cv_prog_cc_g=yes
4776else
cristy8b350f62009-11-15 23:12:43 +00004777 CFLAGS=""
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004779/* end confdefs.h. */
4780
4781int
4782main ()
4783{
4784
4785 ;
4786 return 0;
4787}
4788_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004789if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004790
cristy8b350f62009-11-15 23:12:43 +00004791else
4792 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004793 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004795/* end confdefs.h. */
4796
4797int
4798main ()
4799{
4800
4801 ;
4802 return 0;
4803}
4804_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004805if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004806 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004807fi
cristy3ed852e2009-09-05 21:47:34 +00004808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809fi
cristy3ed852e2009-09-05 21:47:34 +00004810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811fi
cristy3ed852e2009-09-05 21:47:34 +00004812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 ac_c_werror_flag=$ac_save_c_werror_flag
4814fi
cristy8b350f62009-11-15 23:12:43 +00004815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "$ac_cv_prog_cc_g" >&6; }
4817if test "$ac_test_CFLAGS" = set; then
4818 CFLAGS=$ac_save_CFLAGS
4819elif test $ac_cv_prog_cc_g = yes; then
4820 if test "$GCC" = yes; then
4821 CFLAGS="-g -O2"
4822 else
4823 CFLAGS="-g"
4824 fi
4825else
4826 if test "$GCC" = yes; then
4827 CFLAGS="-O2"
4828 else
4829 CFLAGS=
4830 fi
4831fi
cristy8b350f62009-11-15 23:12:43 +00004832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004833$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004834if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004835 $as_echo_n "(cached) " >&6
4836else
4837 ac_cv_prog_cc_c89=no
4838ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004840/* end confdefs.h. */
4841#include <stdarg.h>
4842#include <stdio.h>
4843#include <sys/types.h>
4844#include <sys/stat.h>
4845/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4846struct buf { int x; };
4847FILE * (*rcsopen) (struct buf *, struct stat *, int);
4848static char *e (p, i)
4849 char **p;
4850 int i;
4851{
4852 return p[i];
4853}
4854static char *f (char * (*g) (char **, int), char **p, ...)
4855{
4856 char *s;
4857 va_list v;
4858 va_start (v,p);
4859 s = g (p, va_arg (v,int));
4860 va_end (v);
4861 return s;
4862}
4863
4864/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4865 function prototypes and stuff, but not '\xHH' hex character constants.
4866 These don't provoke an error unfortunately, instead are silently treated
4867 as 'x'. The following induces an error, until -std is added to get
4868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4869 array size at least. It's necessary to write '\x00'==0 to get something
4870 that's true only with -std. */
4871int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4872
4873/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4874 inside strings and character constants. */
4875#define FOO(x) 'x'
4876int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4877
4878int test (int i, double x);
4879struct s1 {int (*f) (int a);};
4880struct s2 {int (*f) (double a);};
4881int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4882int argc;
4883char **argv;
4884int
4885main ()
4886{
4887return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4894do
4895 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004896 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004897 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004898fi
cristy3ed852e2009-09-05 21:47:34 +00004899rm -f core conftest.err conftest.$ac_objext
4900 test "x$ac_cv_prog_cc_c89" != "xno" && break
4901done
4902rm -f conftest.$ac_ext
4903CC=$ac_save_CC
4904
4905fi
4906# AC_CACHE_VAL
4907case "x$ac_cv_prog_cc_c89" in
4908 x)
cristy8b350f62009-11-15 23:12:43 +00004909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo "none needed" >&6; } ;;
4911 xno)
cristy8b350f62009-11-15 23:12:43 +00004912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004913$as_echo "unsupported" >&6; } ;;
4914 *)
4915 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004917$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4918esac
cristy8b350f62009-11-15 23:12:43 +00004919if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004920
cristy8b350f62009-11-15 23:12:43 +00004921fi
cristy3ed852e2009-09-05 21:47:34 +00004922
4923ac_ext=c
4924ac_cpp='$CPP $CPPFLAGS'
4925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004928
cristya0b81c32010-01-22 02:54:33 +00004929depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004930
cristya0b81c32010-01-22 02:54:33 +00004931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4932$as_echo_n "checking dependency style of $depcc... " >&6; }
4933if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004935else
cristya0b81c32010-01-22 02:54:33 +00004936 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4937 # We make a subdir and do the tests there. Otherwise we can end up
4938 # making bogus files that we don't know about and never remove. For
4939 # instance it was reported that on HP-UX the gcc test will end up
4940 # making a dummy file named `D' -- because `-MD' means `put the output
4941 # in D'.
4942 mkdir conftest.dir
4943 # Copy depcomp to subdir because otherwise we won't find it if we're
4944 # using a relative directory.
4945 cp "$am_depcomp" conftest.dir
4946 cd conftest.dir
4947 # We will build objects and dependencies in a subdirectory because
4948 # it helps to detect inapplicable dependency modes. For instance
4949 # both Tru64's cc and ICC support -MD to output dependencies as a
4950 # side effect of compilation, but ICC will put the dependencies in
4951 # the current directory while Tru64 will put them in the object
4952 # directory.
4953 mkdir sub
4954
4955 am_cv_CC_dependencies_compiler_type=none
4956 if test "$am_compiler_list" = ""; then
4957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4958 fi
4959 am__universal=false
4960 case " $depcc " in #(
4961 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4962 esac
4963
4964 for depmode in $am_compiler_list; do
4965 # Setup a source with many dependencies, because some compilers
4966 # like to wrap large dependency lists on column 80 (with \), and
4967 # we should not choose a depcomp mode which is confused by this.
4968 #
4969 # We need to recreate these files for each test, as the compiler may
4970 # overwrite some of them when testing with obscure command lines.
4971 # This happens at least with the AIX C compiler.
4972 : > sub/conftest.c
4973 for i in 1 2 3 4 5 6; do
4974 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4975 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4976 # Solaris 8's {/usr,}/bin/sh.
4977 touch sub/conftst$i.h
4978 done
4979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4980
4981 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4982 # mode. It turns out that the SunPro C++ compiler does not properly
4983 # handle `-M -o', and we need to detect this. Also, some Intel
4984 # versions had trouble with output in subdirs
4985 am__obj=sub/conftest.${OBJEXT-o}
4986 am__minus_obj="-o $am__obj"
4987 case $depmode in
4988 gcc)
4989 # This depmode causes a compiler race in universal mode.
4990 test "$am__universal" = false || continue
4991 ;;
4992 nosideeffect)
4993 # after this tag, mechanisms are not by side-effect, so they'll
4994 # only be used when explicitly requested
4995 if test "x$enable_dependency_tracking" = xyes; then
4996 continue
4997 else
4998 break
4999 fi
5000 ;;
5001 msvisualcpp | msvcmsys)
5002 # This compiler won't grok `-c -o', but also, the minuso test has
5003 # not run yet. These depmodes are late enough in the game, and
5004 # so weak that their functioning should not be impacted.
5005 am__obj=conftest.${OBJEXT-o}
5006 am__minus_obj=
5007 ;;
5008 none) break ;;
5009 esac
5010 if depmode=$depmode \
5011 source=sub/conftest.c object=$am__obj \
5012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5014 >/dev/null 2>conftest.err &&
5015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5019 # icc doesn't choke on unknown options, it will just issue warnings
5020 # or remarks (even with -Werror). So we grep stderr for any message
5021 # that says an option was ignored or not supported.
5022 # When given -MP, icc 7.0 and 7.1 complain thusly:
5023 # icc: Command line warning: ignoring option '-M'; no argument required
5024 # The diagnosis changed in icc 8.0:
5025 # icc: Command line remark: option '-MP' not supported
5026 if (grep 'ignoring option' conftest.err ||
5027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5028 am_cv_CC_dependencies_compiler_type=$depmode
5029 break
5030 fi
5031 fi
5032 done
5033
5034 cd ..
5035 rm -rf conftest.dir
5036else
5037 am_cv_CC_dependencies_compiler_type=none
5038fi
5039
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5042$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5043CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5044
5045 if
5046 test "x$enable_dependency_tracking" != xno \
5047 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5048 am__fastdepCC_TRUE=
5049 am__fastdepCC_FALSE='#'
5050else
5051 am__fastdepCC_TRUE='#'
5052 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005053fi
5054
5055
5056
cristya0b81c32010-01-22 02:54:33 +00005057ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5063$as_echo_n "checking how to run the C preprocessor... " >&6; }
5064# On Suns, sometimes $CPP names a directory.
5065if test -n "$CPP" && test -d "$CPP"; then
5066 CPP=
5067fi
5068if test -z "$CPP"; then
5069 if test "${ac_cv_prog_CPP+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5071else
5072 # Double quotes because CPP needs to be expanded
5073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5074 do
5075 ac_preproc_ok=false
5076for ac_c_preproc_warn_flag in '' yes
5077do
5078 # Use a header file that comes with gcc, so configuring glibc
5079 # with a fresh cross-compiler works.
5080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5081 # <limits.h> exists even on freestanding compilers.
5082 # On the NeXT, cc -E runs the code through the compiler's parser,
5083 # not just through cpp. "Syntax error" is here to catch this case.
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h. */
5086#ifdef __STDC__
5087# include <limits.h>
5088#else
5089# include <assert.h>
5090#endif
5091 Syntax error
5092_ACEOF
5093if ac_fn_c_try_cpp "$LINENO"; then :
5094
5095else
5096 # Broken: fails on valid input.
5097continue
5098fi
5099rm -f conftest.err conftest.$ac_ext
5100
5101 # OK, works on sane cases. Now check whether nonexistent headers
5102 # can be detected and how.
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h. */
5105#include <ac_nonexistent.h>
5106_ACEOF
5107if ac_fn_c_try_cpp "$LINENO"; then :
5108 # Broken: success on invalid input.
5109continue
5110else
5111 # Passes both tests.
5112ac_preproc_ok=:
5113break
5114fi
5115rm -f conftest.err conftest.$ac_ext
5116
5117done
5118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119rm -f conftest.err conftest.$ac_ext
5120if $ac_preproc_ok; then :
5121 break
5122fi
5123
5124 done
5125 ac_cv_prog_CPP=$CPP
5126
5127fi
5128 CPP=$ac_cv_prog_CPP
5129else
5130 ac_cv_prog_CPP=$CPP
5131fi
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5133$as_echo "$CPP" >&6; }
5134ac_preproc_ok=false
5135for ac_c_preproc_warn_flag in '' yes
5136do
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h. */
5145#ifdef __STDC__
5146# include <limits.h>
5147#else
5148# include <assert.h>
5149#endif
5150 Syntax error
5151_ACEOF
5152if ac_fn_c_try_cpp "$LINENO"; then :
5153
5154else
5155 # Broken: fails on valid input.
5156continue
5157fi
5158rm -f conftest.err conftest.$ac_ext
5159
5160 # OK, works on sane cases. Now check whether nonexistent headers
5161 # can be detected and how.
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h. */
5164#include <ac_nonexistent.h>
5165_ACEOF
5166if ac_fn_c_try_cpp "$LINENO"; then :
5167 # Broken: success on invalid input.
5168continue
5169else
5170 # Passes both tests.
5171ac_preproc_ok=:
5172break
5173fi
5174rm -f conftest.err conftest.$ac_ext
5175
5176done
5177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5178rm -f conftest.err conftest.$ac_ext
5179if $ac_preproc_ok; then :
5180
5181else
5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184as_fn_error "C preprocessor \"$CPP\" fails sanity check
5185See \`config.log' for more details." "$LINENO" 5; }
5186fi
5187
5188ac_ext=c
5189ac_cpp='$CPP $CPPFLAGS'
5190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5196$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5197if test "${ac_cv_path_GREP+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5199else
5200 if test -z "$GREP"; then
5201 ac_path_GREP_found=false
5202 # Loop through the user's path and test for each of PROGNAME-LIST
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_prog in grep ggrep; do
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5211 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5212# Check for GNU ac_path_GREP and select it if it is found.
5213 # Check for GNU $ac_path_GREP
5214case `"$ac_path_GREP" --version 2>&1` in
5215*GNU*)
5216 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5217*)
5218 ac_count=0
5219 $as_echo_n 0123456789 >"conftest.in"
5220 while :
5221 do
5222 cat "conftest.in" "conftest.in" >"conftest.tmp"
5223 mv "conftest.tmp" "conftest.in"
5224 cp "conftest.in" "conftest.nl"
5225 $as_echo 'GREP' >> "conftest.nl"
5226 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5228 as_fn_arith $ac_count + 1 && ac_count=$as_val
5229 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5230 # Best one so far, save it but keep looking for a better one
5231 ac_cv_path_GREP="$ac_path_GREP"
5232 ac_path_GREP_max=$ac_count
5233 fi
5234 # 10*(2^10) chars as input seems more than enough
5235 test $ac_count -gt 10 && break
5236 done
5237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238esac
5239
5240 $ac_path_GREP_found && break 3
5241 done
5242 done
5243 done
5244IFS=$as_save_IFS
5245 if test -z "$ac_cv_path_GREP"; then
5246 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5247 fi
5248else
5249 ac_cv_path_GREP=$GREP
5250fi
5251
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5254$as_echo "$ac_cv_path_GREP" >&6; }
5255 GREP="$ac_cv_path_GREP"
5256
5257
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5259$as_echo_n "checking for egrep... " >&6; }
5260if test "${ac_cv_path_EGREP+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262else
5263 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5264 then ac_cv_path_EGREP="$GREP -E"
5265 else
5266 if test -z "$EGREP"; then
5267 ac_path_EGREP_found=false
5268 # Loop through the user's path and test for each of PROGNAME-LIST
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5271do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_prog in egrep; do
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5277 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5278# Check for GNU ac_path_EGREP and select it if it is found.
5279 # Check for GNU $ac_path_EGREP
5280case `"$ac_path_EGREP" --version 2>&1` in
5281*GNU*)
5282 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5283*)
5284 ac_count=0
5285 $as_echo_n 0123456789 >"conftest.in"
5286 while :
5287 do
5288 cat "conftest.in" "conftest.in" >"conftest.tmp"
5289 mv "conftest.tmp" "conftest.in"
5290 cp "conftest.in" "conftest.nl"
5291 $as_echo 'EGREP' >> "conftest.nl"
5292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5294 as_fn_arith $ac_count + 1 && ac_count=$as_val
5295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5296 # Best one so far, save it but keep looking for a better one
5297 ac_cv_path_EGREP="$ac_path_EGREP"
5298 ac_path_EGREP_max=$ac_count
5299 fi
5300 # 10*(2^10) chars as input seems more than enough
5301 test $ac_count -gt 10 && break
5302 done
5303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5304esac
5305
5306 $ac_path_EGREP_found && break 3
5307 done
5308 done
5309 done
5310IFS=$as_save_IFS
5311 if test -z "$ac_cv_path_EGREP"; then
5312 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5313 fi
5314else
5315 ac_cv_path_EGREP=$EGREP
5316fi
5317
5318 fi
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5321$as_echo "$ac_cv_path_EGREP" >&6; }
5322 EGREP="$ac_cv_path_EGREP"
5323
5324
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5326$as_echo_n "checking for ANSI C header files... " >&6; }
5327if test "${ac_cv_header_stdc+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h. */
5332#include <stdlib.h>
5333#include <stdarg.h>
5334#include <string.h>
5335#include <float.h>
5336
5337int
5338main ()
5339{
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_header_stdc=yes
5347else
5348 ac_cv_header_stdc=no
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351
5352if test $ac_cv_header_stdc = yes; then
5353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h. */
5356#include <string.h>
5357
5358_ACEOF
5359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "memchr" >/dev/null 2>&1; then :
5361
5362else
5363 ac_cv_header_stdc=no
5364fi
5365rm -f conftest*
5366
5367fi
5368
5369if test $ac_cv_header_stdc = yes; then
5370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h. */
5373#include <stdlib.h>
5374
5375_ACEOF
5376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "free" >/dev/null 2>&1; then :
5378
5379else
5380 ac_cv_header_stdc=no
5381fi
5382rm -f conftest*
5383
5384fi
5385
5386if test $ac_cv_header_stdc = yes; then
5387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5388 if test "$cross_compiling" = yes; then :
5389 :
5390else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <ctype.h>
5394#include <stdlib.h>
5395#if ((' ' & 0x0FF) == 0x020)
5396# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5397# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5398#else
5399# define ISLOWER(c) \
5400 (('a' <= (c) && (c) <= 'i') \
5401 || ('j' <= (c) && (c) <= 'r') \
5402 || ('s' <= (c) && (c) <= 'z'))
5403# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5404#endif
5405
5406#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407int
5408main ()
5409{
5410 int i;
5411 for (i = 0; i < 256; i++)
5412 if (XOR (islower (i), ISLOWER (i))
5413 || toupper (i) != TOUPPER (i))
5414 return 2;
5415 return 0;
5416}
5417_ACEOF
5418if ac_fn_c_try_run "$LINENO"; then :
5419
5420else
5421 ac_cv_header_stdc=no
5422fi
5423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5424 conftest.$ac_objext conftest.beam conftest.$ac_ext
5425fi
5426
5427fi
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5430$as_echo "$ac_cv_header_stdc" >&6; }
5431if test $ac_cv_header_stdc = yes; then
5432
5433$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5434
5435fi
5436
5437# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5438for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5439 inttypes.h stdint.h unistd.h
5440do :
5441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5443"
5444eval as_val=\$$as_ac_Header
5445 if test "x$as_val" = x""yes; then :
5446 cat >>confdefs.h <<_ACEOF
5447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5448_ACEOF
5449
5450fi
5451
5452done
5453
5454
5455
5456 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5457if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5458 MINIX=yes
5459else
5460 MINIX=
5461fi
5462
5463
5464 if test "$MINIX" = yes; then
5465
5466$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5467
5468
5469$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5470
5471
5472$as_echo "#define _MINIX 1" >>confdefs.h
5473
5474 fi
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5478$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5479if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483/* end confdefs.h. */
5484
5485# define __EXTENSIONS__ 1
5486 $ac_includes_default
5487int
5488main ()
5489{
5490
5491 ;
5492 return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_compile "$LINENO"; then :
5496 ac_cv_safe_to_define___extensions__=yes
5497else
5498 ac_cv_safe_to_define___extensions__=no
5499fi
5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5503$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5504 test $ac_cv_safe_to_define___extensions__ = yes &&
5505 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5506
5507 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5508
5509 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5510
5511 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5512
5513 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5514
5515
5516
5517# Check for programs
5518ac_ext=c
5519ac_cpp='$CPP $CPPFLAGS'
5520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523if test -n "$ac_tool_prefix"; then
5524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5525set dummy ${ac_tool_prefix}gcc; ac_word=$2
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527$as_echo_n "checking for $ac_word... " >&6; }
5528if test "${ac_cv_prog_CC+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5530else
5531 if test -n "$CC"; then
5532 ac_cv_prog_CC="$CC" # Let the user override the test.
5533else
5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545done
5546 done
5547IFS=$as_save_IFS
5548
5549fi
5550fi
5551CC=$ac_cv_prog_CC
5552if test -n "$CC"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5554$as_echo "$CC" >&6; }
5555else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
5558fi
5559
5560
5561fi
5562if test -z "$ac_cv_prog_CC"; then
5563 ac_ct_CC=$CC
5564 # Extract the first word of "gcc", so it can be a program name with args.
5565set dummy gcc; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; }
5568if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5570else
5571 if test -n "$ac_ct_CC"; then
5572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_ac_ct_CC="gcc"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585done
5586 done
5587IFS=$as_save_IFS
5588
5589fi
5590fi
5591ac_ct_CC=$ac_cv_prog_ac_ct_CC
5592if test -n "$ac_ct_CC"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5594$as_echo "$ac_ct_CC" >&6; }
5595else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597$as_echo "no" >&6; }
5598fi
5599
5600 if test "x$ac_ct_CC" = x; then
5601 CC=""
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604yes:)
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607ac_tool_warned=yes ;;
5608esac
5609 CC=$ac_ct_CC
5610 fi
5611else
5612 CC="$ac_cv_prog_CC"
5613fi
5614
5615if test -z "$CC"; then
5616 if test -n "$ac_tool_prefix"; then
5617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5618set dummy ${ac_tool_prefix}cc; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
5621if test "${ac_cv_prog_CC+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623else
5624 if test -n "$CC"; then
5625 ac_cv_prog_CC="$CC" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_prog_CC="${ac_tool_prefix}cc"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638done
5639 done
5640IFS=$as_save_IFS
5641
5642fi
5643fi
5644CC=$ac_cv_prog_CC
5645if test -n "$CC"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5647$as_echo "$CC" >&6; }
5648else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653
5654 fi
5655fi
5656if test -z "$CC"; then
5657 # Extract the first word of "cc", so it can be a program name with args.
5658set dummy cc; ac_word=$2
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660$as_echo_n "checking for $ac_word... " >&6; }
5661if test "${ac_cv_prog_CC+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5663else
5664 if test -n "$CC"; then
5665 ac_cv_prog_CC="$CC" # Let the user override the test.
5666else
5667 ac_prog_rejected=no
5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5676 ac_prog_rejected=yes
5677 continue
5678 fi
5679 ac_cv_prog_CC="cc"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683done
5684 done
5685IFS=$as_save_IFS
5686
5687if test $ac_prog_rejected = yes; then
5688 # We found a bogon in the path, so make sure we never use it.
5689 set dummy $ac_cv_prog_CC
5690 shift
5691 if test $# != 0; then
5692 # We chose a different compiler from the bogus one.
5693 # However, it has the same basename, so the bogon will be chosen
5694 # first if we set CC to just the basename; use the full file name.
5695 shift
5696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5697 fi
5698fi
5699fi
5700fi
5701CC=$ac_cv_prog_CC
5702if test -n "$CC"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5704$as_echo "$CC" >&6; }
5705else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707$as_echo "no" >&6; }
5708fi
5709
5710
5711fi
5712if test -z "$CC"; then
5713 if test -n "$ac_tool_prefix"; then
5714 for ac_prog in cl.exe
5715 do
5716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719$as_echo_n "checking for $ac_word... " >&6; }
5720if test "${ac_cv_prog_CC+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722else
5723 if test -n "$CC"; then
5724 ac_cv_prog_CC="$CC" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737done
5738 done
5739IFS=$as_save_IFS
5740
5741fi
5742fi
5743CC=$ac_cv_prog_CC
5744if test -n "$CC"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5746$as_echo "$CC" >&6; }
5747else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750fi
5751
5752
5753 test -n "$CC" && break
5754 done
5755fi
5756if test -z "$CC"; then
5757 ac_ct_CC=$CC
5758 for ac_prog in cl.exe
5759do
5760 # Extract the first word of "$ac_prog", so it can be a program name with args.
5761set dummy $ac_prog; ac_word=$2
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763$as_echo_n "checking for $ac_word... " >&6; }
5764if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766else
5767 if test -n "$ac_ct_CC"; then
5768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_prog_ac_ct_CC="$ac_prog"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781done
5782 done
5783IFS=$as_save_IFS
5784
5785fi
5786fi
5787ac_ct_CC=$ac_cv_prog_ac_ct_CC
5788if test -n "$ac_ct_CC"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5790$as_echo "$ac_ct_CC" >&6; }
5791else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793$as_echo "no" >&6; }
5794fi
5795
5796
5797 test -n "$ac_ct_CC" && break
5798done
5799
5800 if test "x$ac_ct_CC" = x; then
5801 CC=""
5802 else
5803 case $cross_compiling:$ac_tool_warned in
5804yes:)
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807ac_tool_warned=yes ;;
5808esac
5809 CC=$ac_ct_CC
5810 fi
5811fi
5812
5813fi
5814
5815
5816test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818as_fn_error "no acceptable C compiler found in \$PATH
5819See \`config.log' for more details." "$LINENO" 5; }
5820
5821# Provide some information about the compiler.
5822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5823set X $ac_compile
5824ac_compiler=$2
5825for ac_option in --version -v -V -qversion; do
5826 { { ac_try="$ac_compiler $ac_option >&5"
5827case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5832$as_echo "$ac_try_echo"; } >&5
5833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5834 ac_status=$?
5835 if test -s conftest.err; then
5836 sed '10a\
5837... rest of stderr output deleted ...
5838 10q' conftest.err >conftest.er1
5839 cat conftest.er1 >&5
5840 fi
5841 rm -f conftest.er1 conftest.err
5842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5843 test $ac_status = 0; }
5844done
5845
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5847$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5848if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h. */
5853
5854int
5855main ()
5856{
5857#ifndef __GNUC__
5858 choke me
5859#endif
5860
5861 ;
5862 return 0;
5863}
5864_ACEOF
5865if ac_fn_c_try_compile "$LINENO"; then :
5866 ac_compiler_gnu=yes
5867else
5868 ac_compiler_gnu=no
5869fi
5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871ac_cv_c_compiler_gnu=$ac_compiler_gnu
5872
5873fi
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5875$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5876if test $ac_compiler_gnu = yes; then
5877 GCC=yes
5878else
5879 GCC=
5880fi
5881ac_test_CFLAGS=${CFLAGS+set}
5882ac_save_CFLAGS=$CFLAGS
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5884$as_echo_n "checking whether $CC accepts -g... " >&6; }
5885if test "${ac_cv_prog_cc_g+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5887else
5888 ac_save_c_werror_flag=$ac_c_werror_flag
5889 ac_c_werror_flag=yes
5890 ac_cv_prog_cc_g=no
5891 CFLAGS="-g"
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893/* end confdefs.h. */
5894
5895int
5896main ()
5897{
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903if ac_fn_c_try_compile "$LINENO"; then :
5904 ac_cv_prog_cc_g=yes
5905else
5906 CFLAGS=""
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h. */
5909
5910int
5911main ()
5912{
5913
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918if ac_fn_c_try_compile "$LINENO"; then :
5919
5920else
5921 ac_c_werror_flag=$ac_save_c_werror_flag
5922 CFLAGS="-g"
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h. */
5925
5926int
5927main ()
5928{
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934if ac_fn_c_try_compile "$LINENO"; then :
5935 ac_cv_prog_cc_g=yes
5936fi
5937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938fi
5939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 ac_c_werror_flag=$ac_save_c_werror_flag
5943fi
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5945$as_echo "$ac_cv_prog_cc_g" >&6; }
5946if test "$ac_test_CFLAGS" = set; then
5947 CFLAGS=$ac_save_CFLAGS
5948elif test $ac_cv_prog_cc_g = yes; then
5949 if test "$GCC" = yes; then
5950 CFLAGS="-g -O2"
5951 else
5952 CFLAGS="-g"
5953 fi
5954else
5955 if test "$GCC" = yes; then
5956 CFLAGS="-O2"
5957 else
5958 CFLAGS=
5959 fi
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5962$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5963if test "${ac_cv_prog_cc_c89+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 ac_cv_prog_cc_c89=no
5967ac_save_CC=$CC
5968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h. */
5970#include <stdarg.h>
5971#include <stdio.h>
5972#include <sys/types.h>
5973#include <sys/stat.h>
5974/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5975struct buf { int x; };
5976FILE * (*rcsopen) (struct buf *, struct stat *, int);
5977static char *e (p, i)
5978 char **p;
5979 int i;
5980{
5981 return p[i];
5982}
5983static char *f (char * (*g) (char **, int), char **p, ...)
5984{
5985 char *s;
5986 va_list v;
5987 va_start (v,p);
5988 s = g (p, va_arg (v,int));
5989 va_end (v);
5990 return s;
5991}
5992
5993/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5994 function prototypes and stuff, but not '\xHH' hex character constants.
5995 These don't provoke an error unfortunately, instead are silently treated
5996 as 'x'. The following induces an error, until -std is added to get
5997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5998 array size at least. It's necessary to write '\x00'==0 to get something
5999 that's true only with -std. */
6000int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6001
6002/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6003 inside strings and character constants. */
6004#define FOO(x) 'x'
6005int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6006
6007int test (int i, double x);
6008struct s1 {int (*f) (int a);};
6009struct s2 {int (*f) (double a);};
6010int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6011int argc;
6012char **argv;
6013int
6014main ()
6015{
6016return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6023do
6024 CC="$ac_save_CC $ac_arg"
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 ac_cv_prog_cc_c89=$ac_arg
6027fi
6028rm -f core conftest.err conftest.$ac_objext
6029 test "x$ac_cv_prog_cc_c89" != "xno" && break
6030done
6031rm -f conftest.$ac_ext
6032CC=$ac_save_CC
6033
6034fi
6035# AC_CACHE_VAL
6036case "x$ac_cv_prog_cc_c89" in
6037 x)
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6039$as_echo "none needed" >&6; } ;;
6040 xno)
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6042$as_echo "unsupported" >&6; } ;;
6043 *)
6044 CC="$CC $ac_cv_prog_cc_c89"
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6046$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6047esac
6048if test "x$ac_cv_prog_cc_c89" != xno; then :
6049
6050fi
6051
6052ac_ext=c
6053ac_cpp='$CPP $CPPFLAGS'
6054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056ac_compiler_gnu=$ac_cv_c_compiler_gnu
6057
cristy3ed852e2009-09-05 21:47:34 +00006058depcc="$CC" am_compiler_list=
6059
cristy8b350f62009-11-15 23:12:43 +00006060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006061$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006062if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006063 $as_echo_n "(cached) " >&6
6064else
6065 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6066 # We make a subdir and do the tests there. Otherwise we can end up
6067 # making bogus files that we don't know about and never remove. For
6068 # instance it was reported that on HP-UX the gcc test will end up
6069 # making a dummy file named `D' -- because `-MD' means `put the output
6070 # in D'.
6071 mkdir conftest.dir
6072 # Copy depcomp to subdir because otherwise we won't find it if we're
6073 # using a relative directory.
6074 cp "$am_depcomp" conftest.dir
6075 cd conftest.dir
6076 # We will build objects and dependencies in a subdirectory because
6077 # it helps to detect inapplicable dependency modes. For instance
6078 # both Tru64's cc and ICC support -MD to output dependencies as a
6079 # side effect of compilation, but ICC will put the dependencies in
6080 # the current directory while Tru64 will put them in the object
6081 # directory.
6082 mkdir sub
6083
6084 am_cv_CC_dependencies_compiler_type=none
6085 if test "$am_compiler_list" = ""; then
6086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6087 fi
6088 am__universal=false
6089 case " $depcc " in #(
6090 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6091 esac
6092
6093 for depmode in $am_compiler_list; do
6094 # Setup a source with many dependencies, because some compilers
6095 # like to wrap large dependency lists on column 80 (with \), and
6096 # we should not choose a depcomp mode which is confused by this.
6097 #
6098 # We need to recreate these files for each test, as the compiler may
6099 # overwrite some of them when testing with obscure command lines.
6100 # This happens at least with the AIX C compiler.
6101 : > sub/conftest.c
6102 for i in 1 2 3 4 5 6; do
6103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6105 # Solaris 8's {/usr,}/bin/sh.
6106 touch sub/conftst$i.h
6107 done
6108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6109
6110 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6111 # mode. It turns out that the SunPro C++ compiler does not properly
6112 # handle `-M -o', and we need to detect this. Also, some Intel
6113 # versions had trouble with output in subdirs
6114 am__obj=sub/conftest.${OBJEXT-o}
6115 am__minus_obj="-o $am__obj"
6116 case $depmode in
6117 gcc)
6118 # This depmode causes a compiler race in universal mode.
6119 test "$am__universal" = false || continue
6120 ;;
6121 nosideeffect)
6122 # after this tag, mechanisms are not by side-effect, so they'll
6123 # only be used when explicitly requested
6124 if test "x$enable_dependency_tracking" = xyes; then
6125 continue
6126 else
6127 break
6128 fi
6129 ;;
6130 msvisualcpp | msvcmsys)
6131 # This compiler won't grok `-c -o', but also, the minuso test has
6132 # not run yet. These depmodes are late enough in the game, and
6133 # so weak that their functioning should not be impacted.
6134 am__obj=conftest.${OBJEXT-o}
6135 am__minus_obj=
6136 ;;
6137 none) break ;;
6138 esac
6139 if depmode=$depmode \
6140 source=sub/conftest.c object=$am__obj \
6141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6142 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6143 >/dev/null 2>conftest.err &&
6144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6146 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6148 # icc doesn't choke on unknown options, it will just issue warnings
6149 # or remarks (even with -Werror). So we grep stderr for any message
6150 # that says an option was ignored or not supported.
6151 # When given -MP, icc 7.0 and 7.1 complain thusly:
6152 # icc: Command line warning: ignoring option '-M'; no argument required
6153 # The diagnosis changed in icc 8.0:
6154 # icc: Command line remark: option '-MP' not supported
6155 if (grep 'ignoring option' conftest.err ||
6156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6157 am_cv_CC_dependencies_compiler_type=$depmode
6158 break
6159 fi
6160 fi
6161 done
6162
6163 cd ..
6164 rm -rf conftest.dir
6165else
6166 am_cv_CC_dependencies_compiler_type=none
6167fi
6168
6169fi
cristy8b350f62009-11-15 23:12:43 +00006170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006171$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6172CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6173
6174 if
6175 test "x$enable_dependency_tracking" != xno \
6176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6177 am__fastdepCC_TRUE=
6178 am__fastdepCC_FALSE='#'
6179else
6180 am__fastdepCC_TRUE='#'
6181 am__fastdepCC_FALSE=
6182fi
6183
6184
cristy95646052009-11-28 23:05:30 +00006185ac_ext=cpp
6186ac_cpp='$CXXCPP $CPPFLAGS'
6187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6190if test -z "$CXX"; then
6191 if test -n "$CCC"; then
6192 CXX=$CCC
6193 else
6194 if test -n "$ac_tool_prefix"; then
6195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6196 do
6197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200$as_echo_n "checking for $ac_word... " >&6; }
6201if test "${ac_cv_prog_CXX+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6203else
6204 if test -n "$CXX"; then
6205 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6206else
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
6219 done
6220IFS=$as_save_IFS
6221
6222fi
6223fi
6224CXX=$ac_cv_prog_CXX
6225if test -n "$CXX"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6227$as_echo "$CXX" >&6; }
6228else
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230$as_echo "no" >&6; }
6231fi
6232
6233
6234 test -n "$CXX" && break
6235 done
6236fi
6237if test -z "$CXX"; then
6238 ac_ct_CXX=$CXX
6239 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6240do
6241 # Extract the first word of "$ac_prog", so it can be a program name with args.
6242set dummy $ac_prog; ac_word=$2
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244$as_echo_n "checking for $ac_word... " >&6; }
6245if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6247else
6248 if test -n "$ac_ct_CXX"; then
6249 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_ac_ct_CXX="$ac_prog"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262done
6263 done
6264IFS=$as_save_IFS
6265
6266fi
6267fi
6268ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6269if test -n "$ac_ct_CXX"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6271$as_echo "$ac_ct_CXX" >&6; }
6272else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274$as_echo "no" >&6; }
6275fi
6276
6277
6278 test -n "$ac_ct_CXX" && break
6279done
6280
6281 if test "x$ac_ct_CXX" = x; then
6282 CXX="g++"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285yes:)
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288ac_tool_warned=yes ;;
6289esac
6290 CXX=$ac_ct_CXX
6291 fi
6292fi
6293
6294 fi
6295fi
6296# Provide some information about the compiler.
6297$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6298set X $ac_compile
6299ac_compiler=$2
6300for ac_option in --version -v -V -qversion; do
6301 { { ac_try="$ac_compiler $ac_option >&5"
6302case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
6306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6307$as_echo "$ac_try_echo"; } >&5
6308 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6309 ac_status=$?
6310 if test -s conftest.err; then
6311 sed '10a\
6312... rest of stderr output deleted ...
6313 10q' conftest.err >conftest.er1
6314 cat conftest.er1 >&5
6315 fi
6316 rm -f conftest.er1 conftest.err
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; }
6319done
6320
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6322$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6323if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325else
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h. */
6328
6329int
6330main ()
6331{
6332#ifndef __GNUC__
6333 choke me
6334#endif
6335
6336 ;
6337 return 0;
6338}
6339_ACEOF
6340if ac_fn_cxx_try_compile "$LINENO"; then :
6341 ac_compiler_gnu=yes
6342else
6343 ac_compiler_gnu=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6347
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6350$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6351if test $ac_compiler_gnu = yes; then
6352 GXX=yes
6353else
6354 GXX=
6355fi
6356ac_test_CXXFLAGS=${CXXFLAGS+set}
6357ac_save_CXXFLAGS=$CXXFLAGS
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6359$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6360if test "${ac_cv_prog_cxx_g+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6362else
6363 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6364 ac_cxx_werror_flag=yes
6365 ac_cv_prog_cxx_g=no
6366 CXXFLAGS="-g"
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h. */
6369
6370int
6371main ()
6372{
6373
6374 ;
6375 return 0;
6376}
6377_ACEOF
6378if ac_fn_cxx_try_compile "$LINENO"; then :
6379 ac_cv_prog_cxx_g=yes
6380else
6381 CXXFLAGS=""
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h. */
6384
6385int
6386main ()
6387{
6388
6389 ;
6390 return 0;
6391}
6392_ACEOF
6393if ac_fn_cxx_try_compile "$LINENO"; then :
6394
6395else
6396 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6397 CXXFLAGS="-g"
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399/* end confdefs.h. */
6400
6401int
6402main ()
6403{
6404
6405 ;
6406 return 0;
6407}
6408_ACEOF
6409if ac_fn_cxx_try_compile "$LINENO"; then :
6410 ac_cv_prog_cxx_g=yes
6411fi
6412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413fi
6414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415fi
6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6418fi
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6420$as_echo "$ac_cv_prog_cxx_g" >&6; }
6421if test "$ac_test_CXXFLAGS" = set; then
6422 CXXFLAGS=$ac_save_CXXFLAGS
6423elif test $ac_cv_prog_cxx_g = yes; then
6424 if test "$GXX" = yes; then
6425 CXXFLAGS="-g -O2"
6426 else
6427 CXXFLAGS="-g"
6428 fi
6429else
6430 if test "$GXX" = yes; then
6431 CXXFLAGS="-O2"
6432 else
6433 CXXFLAGS=
6434 fi
6435fi
6436ac_ext=c
6437ac_cpp='$CPP $CPPFLAGS'
6438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441
6442depcc="$CXX" am_compiler_list=
6443
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6445$as_echo_n "checking dependency style of $depcc... " >&6; }
6446if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6448else
6449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6450 # We make a subdir and do the tests there. Otherwise we can end up
6451 # making bogus files that we don't know about and never remove. For
6452 # instance it was reported that on HP-UX the gcc test will end up
6453 # making a dummy file named `D' -- because `-MD' means `put the output
6454 # in D'.
6455 mkdir conftest.dir
6456 # Copy depcomp to subdir because otherwise we won't find it if we're
6457 # using a relative directory.
6458 cp "$am_depcomp" conftest.dir
6459 cd conftest.dir
6460 # We will build objects and dependencies in a subdirectory because
6461 # it helps to detect inapplicable dependency modes. For instance
6462 # both Tru64's cc and ICC support -MD to output dependencies as a
6463 # side effect of compilation, but ICC will put the dependencies in
6464 # the current directory while Tru64 will put them in the object
6465 # directory.
6466 mkdir sub
6467
6468 am_cv_CXX_dependencies_compiler_type=none
6469 if test "$am_compiler_list" = ""; then
6470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6471 fi
6472 am__universal=false
6473 case " $depcc " in #(
6474 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6475 esac
6476
6477 for depmode in $am_compiler_list; do
6478 # Setup a source with many dependencies, because some compilers
6479 # like to wrap large dependency lists on column 80 (with \), and
6480 # we should not choose a depcomp mode which is confused by this.
6481 #
6482 # We need to recreate these files for each test, as the compiler may
6483 # overwrite some of them when testing with obscure command lines.
6484 # This happens at least with the AIX C compiler.
6485 : > sub/conftest.c
6486 for i in 1 2 3 4 5 6; do
6487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6488 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6489 # Solaris 8's {/usr,}/bin/sh.
6490 touch sub/conftst$i.h
6491 done
6492 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6493
6494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6495 # mode. It turns out that the SunPro C++ compiler does not properly
6496 # handle `-M -o', and we need to detect this. Also, some Intel
6497 # versions had trouble with output in subdirs
6498 am__obj=sub/conftest.${OBJEXT-o}
6499 am__minus_obj="-o $am__obj"
6500 case $depmode in
6501 gcc)
6502 # This depmode causes a compiler race in universal mode.
6503 test "$am__universal" = false || continue
6504 ;;
6505 nosideeffect)
6506 # after this tag, mechanisms are not by side-effect, so they'll
6507 # only be used when explicitly requested
6508 if test "x$enable_dependency_tracking" = xyes; then
6509 continue
6510 else
6511 break
6512 fi
6513 ;;
6514 msvisualcpp | msvcmsys)
6515 # This compiler won't grok `-c -o', but also, the minuso test has
6516 # not run yet. These depmodes are late enough in the game, and
6517 # so weak that their functioning should not be impacted.
6518 am__obj=conftest.${OBJEXT-o}
6519 am__minus_obj=
6520 ;;
6521 none) break ;;
6522 esac
6523 if depmode=$depmode \
6524 source=sub/conftest.c object=$am__obj \
6525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6526 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6527 >/dev/null 2>conftest.err &&
6528 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6530 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6532 # icc doesn't choke on unknown options, it will just issue warnings
6533 # or remarks (even with -Werror). So we grep stderr for any message
6534 # that says an option was ignored or not supported.
6535 # When given -MP, icc 7.0 and 7.1 complain thusly:
6536 # icc: Command line warning: ignoring option '-M'; no argument required
6537 # The diagnosis changed in icc 8.0:
6538 # icc: Command line remark: option '-MP' not supported
6539 if (grep 'ignoring option' conftest.err ||
6540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6541 am_cv_CXX_dependencies_compiler_type=$depmode
6542 break
6543 fi
6544 fi
6545 done
6546
6547 cd ..
6548 rm -rf conftest.dir
6549else
6550 am_cv_CXX_dependencies_compiler_type=none
6551fi
6552
6553fi
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6555$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6556CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6557
6558 if
6559 test "x$enable_dependency_tracking" != xno \
6560 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6561 am__fastdepCXX_TRUE=
6562 am__fastdepCXX_FALSE='#'
6563else
6564 am__fastdepCXX_TRUE='#'
6565 am__fastdepCXX_FALSE=
6566fi
6567
6568
cristy8b350f62009-11-15 23:12:43 +00006569 case $ac_cv_prog_cc_stdc in #(
6570 no) :
6571 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6572 *) :
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006574$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006575if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006576 $as_echo_n "(cached) " >&6
6577else
6578 ac_cv_prog_cc_c99=no
6579ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006581/* end confdefs.h. */
6582#include <stdarg.h>
6583#include <stdbool.h>
6584#include <stdlib.h>
6585#include <wchar.h>
6586#include <stdio.h>
6587
6588// Check varargs macros. These examples are taken from C99 6.10.3.5.
6589#define debug(...) fprintf (stderr, __VA_ARGS__)
6590#define showlist(...) puts (#__VA_ARGS__)
6591#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6592static void
6593test_varargs_macros (void)
6594{
6595 int x = 1234;
6596 int y = 5678;
6597 debug ("Flag");
6598 debug ("X = %d\n", x);
6599 showlist (The first, second, and third items.);
6600 report (x>y, "x is %d but y is %d", x, y);
6601}
6602
6603// Check long long types.
6604#define BIG64 18446744073709551615ull
6605#define BIG32 4294967295ul
6606#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6607#if !BIG_OK
6608 your preprocessor is broken;
6609#endif
6610#if BIG_OK
6611#else
6612 your preprocessor is broken;
6613#endif
6614static long long int bignum = -9223372036854775807LL;
6615static unsigned long long int ubignum = BIG64;
6616
6617struct incomplete_array
6618{
6619 int datasize;
6620 double data[];
6621};
6622
6623struct named_init {
6624 int number;
6625 const wchar_t *name;
6626 double average;
6627};
6628
6629typedef const char *ccp;
6630
6631static inline int
6632test_restrict (ccp restrict text)
6633{
6634 // See if C++-style comments work.
6635 // Iterate through items via the restricted pointer.
6636 // Also check for declarations in for loops.
6637 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6638 continue;
6639 return 0;
6640}
6641
6642// Check varargs and va_copy.
6643static void
6644test_varargs (const char *format, ...)
6645{
6646 va_list args;
6647 va_start (args, format);
6648 va_list args_copy;
6649 va_copy (args_copy, args);
6650
6651 const char *str;
6652 int number;
6653 float fnumber;
6654
6655 while (*format)
6656 {
6657 switch (*format++)
6658 {
6659 case 's': // string
6660 str = va_arg (args_copy, const char *);
6661 break;
6662 case 'd': // int
6663 number = va_arg (args_copy, int);
6664 break;
6665 case 'f': // float
6666 fnumber = va_arg (args_copy, double);
6667 break;
6668 default:
6669 break;
6670 }
6671 }
6672 va_end (args_copy);
6673 va_end (args);
6674}
6675
6676int
6677main ()
6678{
6679
6680 // Check bool.
6681 _Bool success = false;
6682
6683 // Check restrict.
6684 if (test_restrict ("String literal") == 0)
6685 success = true;
6686 char *restrict newvar = "Another string";
6687
6688 // Check varargs.
6689 test_varargs ("s, d' f .", "string", 65, 34.234);
6690 test_varargs_macros ();
6691
6692 // Check flexible array members.
6693 struct incomplete_array *ia =
6694 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6695 ia->datasize = 10;
6696 for (int i = 0; i < ia->datasize; ++i)
6697 ia->data[i] = i * 1.234;
6698
6699 // Check named initializers.
6700 struct named_init ni = {
6701 .number = 34,
6702 .name = L"Test wide string",
6703 .average = 543.34343,
6704 };
6705
6706 ni.number = 58;
6707
6708 int dynamic_array[ni.number];
6709 dynamic_array[ni.number - 1] = 543;
6710
6711 // work around unused variable warnings
6712 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6713 || dynamic_array[ni.number - 1] != 543);
6714
6715 ;
6716 return 0;
6717}
6718_ACEOF
6719for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6720do
6721 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006722 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006723 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006724fi
cristy3ed852e2009-09-05 21:47:34 +00006725rm -f core conftest.err conftest.$ac_objext
6726 test "x$ac_cv_prog_cc_c99" != "xno" && break
6727done
6728rm -f conftest.$ac_ext
6729CC=$ac_save_CC
6730
6731fi
6732# AC_CACHE_VAL
6733case "x$ac_cv_prog_cc_c99" in
6734 x)
cristy8b350f62009-11-15 23:12:43 +00006735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006736$as_echo "none needed" >&6; } ;;
6737 xno)
cristy8b350f62009-11-15 23:12:43 +00006738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006739$as_echo "unsupported" >&6; } ;;
6740 *)
6741 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006743$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6744esac
cristy8b350f62009-11-15 23:12:43 +00006745if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006746 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6747else
cristy8b350f62009-11-15 23:12:43 +00006748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006749$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006750if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006751 $as_echo_n "(cached) " >&6
6752else
6753 ac_cv_prog_cc_c89=no
6754ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006756/* end confdefs.h. */
6757#include <stdarg.h>
6758#include <stdio.h>
6759#include <sys/types.h>
6760#include <sys/stat.h>
6761/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6762struct buf { int x; };
6763FILE * (*rcsopen) (struct buf *, struct stat *, int);
6764static char *e (p, i)
6765 char **p;
6766 int i;
6767{
6768 return p[i];
6769}
6770static char *f (char * (*g) (char **, int), char **p, ...)
6771{
6772 char *s;
6773 va_list v;
6774 va_start (v,p);
6775 s = g (p, va_arg (v,int));
6776 va_end (v);
6777 return s;
6778}
6779
6780/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6781 function prototypes and stuff, but not '\xHH' hex character constants.
6782 These don't provoke an error unfortunately, instead are silently treated
6783 as 'x'. The following induces an error, until -std is added to get
6784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6785 array size at least. It's necessary to write '\x00'==0 to get something
6786 that's true only with -std. */
6787int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6788
6789/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6790 inside strings and character constants. */
6791#define FOO(x) 'x'
6792int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6793
6794int test (int i, double x);
6795struct s1 {int (*f) (int a);};
6796struct s2 {int (*f) (double a);};
6797int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6798int argc;
6799char **argv;
6800int
6801main ()
6802{
6803return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6804 ;
6805 return 0;
6806}
6807_ACEOF
6808for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6810do
6811 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006812 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006813 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006814fi
cristy3ed852e2009-09-05 21:47:34 +00006815rm -f core conftest.err conftest.$ac_objext
6816 test "x$ac_cv_prog_cc_c89" != "xno" && break
6817done
6818rm -f conftest.$ac_ext
6819CC=$ac_save_CC
6820
6821fi
6822# AC_CACHE_VAL
6823case "x$ac_cv_prog_cc_c89" in
6824 x)
cristy8b350f62009-11-15 23:12:43 +00006825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006826$as_echo "none needed" >&6; } ;;
6827 xno)
cristy8b350f62009-11-15 23:12:43 +00006828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006829$as_echo "unsupported" >&6; } ;;
6830 *)
6831 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006833$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6834esac
cristy8b350f62009-11-15 23:12:43 +00006835if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006836 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6837else
6838 ac_cv_prog_cc_stdc=no
6839fi
6840
cristy3ed852e2009-09-05 21:47:34 +00006841fi
cristy3ed852e2009-09-05 21:47:34 +00006842 ;;
6843esac
cristy8b350f62009-11-15 23:12:43 +00006844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006845$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006846 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006847 $as_echo_n "(cached) " >&6
6848fi
6849
cristy8b350f62009-11-15 23:12:43 +00006850 case $ac_cv_prog_cc_stdc in #(
6851 no) :
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6853$as_echo "unsupported" >&6; } ;; #(
6854 '') :
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6856$as_echo "none needed" >&6; } ;; #(
6857 *) :
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006859$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6860esac
6861
cristy3ed852e2009-09-05 21:47:34 +00006862ac_ext=c
6863ac_cpp='$CPP $CPPFLAGS'
6864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006868$as_echo_n "checking how to run the C preprocessor... " >&6; }
6869# On Suns, sometimes $CPP names a directory.
6870if test -n "$CPP" && test -d "$CPP"; then
6871 CPP=
6872fi
6873if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006874 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006875 $as_echo_n "(cached) " >&6
6876else
6877 # Double quotes because CPP needs to be expanded
6878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6879 do
6880 ac_preproc_ok=false
6881for ac_c_preproc_warn_flag in '' yes
6882do
6883 # Use a header file that comes with gcc, so configuring glibc
6884 # with a fresh cross-compiler works.
6885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6886 # <limits.h> exists even on freestanding compilers.
6887 # On the NeXT, cc -E runs the code through the compiler's parser,
6888 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006890/* end confdefs.h. */
6891#ifdef __STDC__
6892# include <limits.h>
6893#else
6894# include <assert.h>
6895#endif
6896 Syntax error
6897_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006898if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006899
cristy8b350f62009-11-15 23:12:43 +00006900else
cristy3ed852e2009-09-05 21:47:34 +00006901 # Broken: fails on valid input.
6902continue
6903fi
cristy3ed852e2009-09-05 21:47:34 +00006904rm -f conftest.err conftest.$ac_ext
6905
6906 # OK, works on sane cases. Now check whether nonexistent headers
6907 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006909/* end confdefs.h. */
6910#include <ac_nonexistent.h>
6911_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006912if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006913 # Broken: success on invalid input.
6914continue
6915else
cristy3ed852e2009-09-05 21:47:34 +00006916 # Passes both tests.
6917ac_preproc_ok=:
6918break
6919fi
cristy3ed852e2009-09-05 21:47:34 +00006920rm -f conftest.err conftest.$ac_ext
6921
6922done
6923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6924rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006925if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006926 break
6927fi
6928
6929 done
6930 ac_cv_prog_CPP=$CPP
6931
6932fi
6933 CPP=$ac_cv_prog_CPP
6934else
6935 ac_cv_prog_CPP=$CPP
6936fi
cristy8b350f62009-11-15 23:12:43 +00006937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006938$as_echo "$CPP" >&6; }
6939ac_preproc_ok=false
6940for ac_c_preproc_warn_flag in '' yes
6941do
6942 # Use a header file that comes with gcc, so configuring glibc
6943 # with a fresh cross-compiler works.
6944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6945 # <limits.h> exists even on freestanding compilers.
6946 # On the NeXT, cc -E runs the code through the compiler's parser,
6947 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006949/* end confdefs.h. */
6950#ifdef __STDC__
6951# include <limits.h>
6952#else
6953# include <assert.h>
6954#endif
6955 Syntax error
6956_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006957if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006958
cristy8b350f62009-11-15 23:12:43 +00006959else
cristy3ed852e2009-09-05 21:47:34 +00006960 # Broken: fails on valid input.
6961continue
6962fi
cristy3ed852e2009-09-05 21:47:34 +00006963rm -f conftest.err conftest.$ac_ext
6964
6965 # OK, works on sane cases. Now check whether nonexistent headers
6966 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006968/* end confdefs.h. */
6969#include <ac_nonexistent.h>
6970_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006971if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006972 # Broken: success on invalid input.
6973continue
6974else
cristy3ed852e2009-09-05 21:47:34 +00006975 # Passes both tests.
6976ac_preproc_ok=:
6977break
6978fi
cristy3ed852e2009-09-05 21:47:34 +00006979rm -f conftest.err conftest.$ac_ext
6980
6981done
6982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6983rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006984if $ac_preproc_ok; then :
6985
cristy3ed852e2009-09-05 21:47:34 +00006986else
cristy8b350f62009-11-15 23:12:43 +00006987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00006989as_fn_error "C preprocessor \"$CPP\" fails sanity check
6990See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006991fi
6992
6993ac_ext=c
6994ac_cpp='$CPP $CPPFLAGS'
6995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997ac_compiler_gnu=$ac_cv_c_compiler_gnu
6998
cristy8b350f62009-11-15 23:12:43 +00006999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007000$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007001if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007002 $as_echo_n "(cached) " >&6
7003else
7004 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7005 for ac_i in 1 2 3 4 5 6 7; do
7006 ac_script="$ac_script$as_nl$ac_script"
7007 done
7008 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007009 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007010 if test -z "$SED"; then
7011 ac_path_SED_found=false
7012 # Loop through the user's path and test for each of PROGNAME-LIST
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007018 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7022# Check for GNU ac_path_SED and select it if it is found.
7023 # Check for GNU $ac_path_SED
7024case `"$ac_path_SED" --version 2>&1` in
7025*GNU*)
7026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7027*)
7028 ac_count=0
7029 $as_echo_n 0123456789 >"conftest.in"
7030 while :
7031 do
7032 cat "conftest.in" "conftest.in" >"conftest.tmp"
7033 mv "conftest.tmp" "conftest.in"
7034 cp "conftest.in" "conftest.nl"
7035 $as_echo '' >> "conftest.nl"
7036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007038 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007039 if test $ac_count -gt ${ac_path_SED_max-0}; then
7040 # Best one so far, save it but keep looking for a better one
7041 ac_cv_path_SED="$ac_path_SED"
7042 ac_path_SED_max=$ac_count
7043 fi
7044 # 10*(2^10) chars as input seems more than enough
7045 test $ac_count -gt 10 && break
7046 done
7047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7048esac
7049
7050 $ac_path_SED_found && break 3
7051 done
7052 done
cristy8b350f62009-11-15 23:12:43 +00007053 done
cristy3ed852e2009-09-05 21:47:34 +00007054IFS=$as_save_IFS
7055 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007056 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007057 fi
7058else
7059 ac_cv_path_SED=$SED
7060fi
7061
7062fi
cristy8b350f62009-11-15 23:12:43 +00007063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007064$as_echo "$ac_cv_path_SED" >&6; }
7065 SED="$ac_cv_path_SED"
7066 rm -f conftest.sed
7067
7068test -z "$SED" && SED=sed
7069Xsed="$SED -e 1s/^X//"
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
cristy8b350f62009-11-15 23:12:43 +00007081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007082$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007083if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007084 $as_echo_n "(cached) " >&6
7085else
7086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7087 then ac_cv_path_FGREP="$GREP -F"
7088 else
7089 if test -z "$FGREP"; then
7090 ac_path_FGREP_found=false
7091 # Loop through the user's path and test for each of PROGNAME-LIST
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007097 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7100 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7101# Check for GNU ac_path_FGREP and select it if it is found.
7102 # Check for GNU $ac_path_FGREP
7103case `"$ac_path_FGREP" --version 2>&1` in
7104*GNU*)
7105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7106*)
7107 ac_count=0
7108 $as_echo_n 0123456789 >"conftest.in"
7109 while :
7110 do
7111 cat "conftest.in" "conftest.in" >"conftest.tmp"
7112 mv "conftest.tmp" "conftest.in"
7113 cp "conftest.in" "conftest.nl"
7114 $as_echo 'FGREP' >> "conftest.nl"
7115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007117 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7119 # Best one so far, save it but keep looking for a better one
7120 ac_cv_path_FGREP="$ac_path_FGREP"
7121 ac_path_FGREP_max=$ac_count
7122 fi
7123 # 10*(2^10) chars as input seems more than enough
7124 test $ac_count -gt 10 && break
7125 done
7126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7127esac
7128
7129 $ac_path_FGREP_found && break 3
7130 done
7131 done
cristy8b350f62009-11-15 23:12:43 +00007132 done
cristy3ed852e2009-09-05 21:47:34 +00007133IFS=$as_save_IFS
7134 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007135 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007136 fi
7137else
7138 ac_cv_path_FGREP=$FGREP
7139fi
7140
7141 fi
7142fi
cristy8b350f62009-11-15 23:12:43 +00007143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007144$as_echo "$ac_cv_path_FGREP" >&6; }
7145 FGREP="$ac_cv_path_FGREP"
7146
7147
7148test -z "$GREP" && GREP=grep
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007169if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7171else
7172 with_gnu_ld=no
7173fi
7174
7175ac_prog=ld
7176if test "$GCC" = yes; then
7177 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007179$as_echo_n "checking for ld used by $CC... " >&6; }
7180 case $host in
7181 *-*-mingw*)
7182 # gcc leaves a trailing carriage return which upsets mingw
7183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7184 *)
7185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7186 esac
7187 case $ac_prog in
7188 # Accept absolute paths.
7189 [\\/]* | ?:[\\/]*)
7190 re_direlt='/[^/][^/]*/\.\./'
7191 # Canonicalize the pathname of ld
7192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7195 done
7196 test -z "$LD" && LD="$ac_prog"
7197 ;;
7198 "")
7199 # If it fails, then pretend we aren't using GCC.
7200 ac_prog=ld
7201 ;;
7202 *)
7203 # If it is relative, then search for the first ld in PATH.
7204 with_gnu_ld=unknown
7205 ;;
7206 esac
7207elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007209$as_echo_n "checking for GNU ld... " >&6; }
7210else
cristy8b350f62009-11-15 23:12:43 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo_n "checking for non-GNU ld... " >&6; }
7213fi
cristy8b350f62009-11-15 23:12:43 +00007214if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007215 $as_echo_n "(cached) " >&6
7216else
7217 if test -z "$LD"; then
7218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7219 for ac_dir in $PATH; do
7220 IFS="$lt_save_ifs"
7221 test -z "$ac_dir" && ac_dir=.
7222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7223 lt_cv_path_LD="$ac_dir/$ac_prog"
7224 # Check to see if the program is GNU ld. I'd rather use --version,
7225 # but apparently some variants of GNU ld only accept -v.
7226 # Break only if it was the GNU/non-GNU ld that we prefer.
7227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7228 *GNU* | *'with BFD'*)
7229 test "$with_gnu_ld" != no && break
7230 ;;
7231 *)
7232 test "$with_gnu_ld" != yes && break
7233 ;;
7234 esac
7235 fi
7236 done
7237 IFS="$lt_save_ifs"
7238else
7239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7240fi
7241fi
7242
7243LD="$lt_cv_path_LD"
7244if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007246$as_echo "$LD" >&6; }
7247else
cristy8b350f62009-11-15 23:12:43 +00007248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "no" >&6; }
7250fi
cristy8b350f62009-11-15 23:12:43 +00007251test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007253$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007254if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007255 $as_echo_n "(cached) " >&6
7256else
7257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7258case `$LD -v 2>&1 </dev/null` in
7259*GNU* | *'with BFD'*)
7260 lt_cv_prog_gnu_ld=yes
7261 ;;
7262*)
7263 lt_cv_prog_gnu_ld=no
7264 ;;
7265esac
7266fi
cristy8b350f62009-11-15 23:12:43 +00007267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007268$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7269with_gnu_ld=$lt_cv_prog_gnu_ld
7270
7271
7272
7273
7274
7275
7276
7277
7278
cristy3ed852e2009-09-05 21:47:34 +00007279
7280if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007282$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7283else
cristy8b350f62009-11-15 23:12:43 +00007284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007285$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7286fi
7287set dummy $CC; ac_cc=`$as_echo "$2" |
7288 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007289if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007290 $as_echo_n "(cached) " >&6
7291else
cristy8b350f62009-11-15 23:12:43 +00007292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007293/* end confdefs.h. */
7294
7295int
7296main ()
7297{
7298
7299 ;
7300 return 0;
7301}
7302_ACEOF
7303# Make sure it works both with $CC and with simple cc.
7304# We do the test twice because some compilers refuse to overwrite an
7305# existing .o file with -o, though they will create one.
7306ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7307rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007308if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7311esac
cristy8b350f62009-11-15 23:12:43 +00007312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7313$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007314 (eval "$ac_try") 2>&5
7315 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; } &&
7318 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321esac
cristy8b350f62009-11-15 23:12:43 +00007322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7323$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007324 (eval "$ac_try") 2>&5
7325 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007328then
7329 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7330 if test "x$CC" != xcc; then
7331 # Test first that cc exists at all.
7332 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007333 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336esac
cristy8b350f62009-11-15 23:12:43 +00007337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7338$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007339 (eval "$ac_try") 2>&5
7340 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007343 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7344 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007345 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348esac
cristy8b350f62009-11-15 23:12:43 +00007349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7350$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007351 (eval "$ac_try") 2>&5
7352 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; } &&
7355 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358esac
cristy8b350f62009-11-15 23:12:43 +00007359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7360$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007361 (eval "$ac_try") 2>&5
7362 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007365 then
7366 # cc works too.
7367 :
7368 else
7369 # cc exists but doesn't like -o.
7370 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7371 fi
7372 fi
7373 fi
7374else
7375 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7376fi
7377rm -f core conftest*
7378
7379fi
7380if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007382$as_echo "yes" >&6; }
7383else
cristy8b350f62009-11-15 23:12:43 +00007384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007385$as_echo "no" >&6; }
7386
cristy8b350f62009-11-15 23:12:43 +00007387$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007388
7389fi
7390
7391# FIXME: we rely on the cache variable name because
7392# there is no other way.
7393set dummy $CC
7394am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7395eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7396if test "$am_t" != yes; then
7397 # Losing compiler, so override with the script.
7398 # FIXME: It is wrong to rewrite CC.
7399 # But if we don't then we get into trouble of one sort or another.
7400 # A longer-term fix would be to have automake use am__CC in this case,
7401 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7402 CC="$am_aux_dir/compile $CC"
7403fi
7404
7405
cristy3ed852e2009-09-05 21:47:34 +00007406
cristy8b350f62009-11-15 23:12:43 +00007407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007408$as_echo_n "checking maximum warning verbosity option... " >&6; }
7409
7410
7411
7412
7413# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00007414if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007415 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7416else
7417 ac_compile_warnings_on=""
7418fi
7419
7420
7421 if test x"$ac_compile_warnings_on" = xno
7422 then
7423 ac_compile_warnings_msg=no
7424 else
7425 if test -n "$CXX"
7426 then
7427 if test "$GXX" = "yes"
7428 then
cristybcbeec82010-01-22 03:20:31 +00007429 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007430 fi
7431 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7432 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7433 fi
7434
7435 if test -n "$CC"
7436 then
7437 if test "$GCC" = "yes"
7438 then
cristybcbeec82010-01-22 03:20:31 +00007439 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007440 fi
7441 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7442 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7443 fi
7444 fi
cristy8b350f62009-11-15 23:12:43 +00007445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00007446$as_echo "$ac_compile_warnings_msg" >&6; }
7447 unset ac_compile_warnings_msg
7448 unset ac_compile_warnings_opt
7449
cristya0b81c32010-01-22 02:54:33 +00007450$ac_includes_default
7451
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7453$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7454set x ${MAKE-make}
7455ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7456if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7457 $as_echo_n "(cached) " >&6
7458else
7459 cat >conftest.make <<\_ACEOF
7460SHELL = /bin/sh
7461all:
7462 @echo '@@@%%%=$(MAKE)=@@@%%%'
7463_ACEOF
7464# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7465case `${MAKE-make} -f conftest.make 2>/dev/null` in
7466 *@@@%%%=?*=@@@%%%*)
7467 eval ac_cv_prog_make_${ac_make}_set=yes;;
7468 *)
7469 eval ac_cv_prog_make_${ac_make}_set=no;;
7470esac
7471rm -f conftest.make
7472fi
7473if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7475$as_echo "yes" >&6; }
7476 SET_MAKE=
7477else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
7480 SET_MAKE="MAKE=${MAKE-make}"
7481fi
7482
cristy8b350f62009-11-15 23:12:43 +00007483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007484$as_echo_n "checking whether ln -s works... " >&6; }
7485LN_S=$as_ln_s
7486if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007488$as_echo "yes" >&6; }
7489else
cristy8b350f62009-11-15 23:12:43 +00007490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007491$as_echo "no, using $LN_S" >&6; }
7492fi
7493
cristy8b350f62009-11-15 23:12:43 +00007494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007495$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7496
7497# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007498if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007499 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007501$as_echo "yes" >&6; }
7502
cristy8b350f62009-11-15 23:12:43 +00007503$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007504
7505 LIBS="$LIBS -ldmalloc"
7506 LDFLAGS="$LDFLAGS -g"
7507else
cristy8b350f62009-11-15 23:12:43 +00007508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007509$as_echo "no" >&6; }
7510fi
7511else
cristy8b350f62009-11-15 23:12:43 +00007512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007513$as_echo "no" >&6; }
7514fi
7515
7516
7517
7518
7519if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7522set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007524$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007525if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007526 $as_echo_n "(cached) " >&6
7527else
7528 case $PKG_CONFIG in
7529 [\\/]* | ?:[\\/]*)
7530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7531 ;;
7532 *)
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7540 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007542 break 2
7543 fi
7544done
cristy8b350f62009-11-15 23:12:43 +00007545 done
cristy3ed852e2009-09-05 21:47:34 +00007546IFS=$as_save_IFS
7547
7548 ;;
7549esac
7550fi
7551PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7552if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007554$as_echo "$PKG_CONFIG" >&6; }
7555else
cristy8b350f62009-11-15 23:12:43 +00007556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007557$as_echo "no" >&6; }
7558fi
7559
7560
7561fi
7562if test -z "$ac_cv_path_PKG_CONFIG"; then
7563 ac_pt_PKG_CONFIG=$PKG_CONFIG
7564 # Extract the first word of "pkg-config", so it can be a program name with args.
7565set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007567$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007568if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007569 $as_echo_n "(cached) " >&6
7570else
7571 case $ac_pt_PKG_CONFIG in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7574 ;;
7575 *)
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007585 break 2
7586 fi
7587done
cristy8b350f62009-11-15 23:12:43 +00007588 done
cristy3ed852e2009-09-05 21:47:34 +00007589IFS=$as_save_IFS
7590
7591 ;;
7592esac
7593fi
7594ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7595if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007597$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7598else
cristy8b350f62009-11-15 23:12:43 +00007599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007600$as_echo "no" >&6; }
7601fi
7602
7603 if test "x$ac_pt_PKG_CONFIG" = x; then
7604 PKG_CONFIG=""
7605 else
7606 case $cross_compiling:$ac_tool_warned in
7607yes:)
cristy8b350f62009-11-15 23:12:43 +00007608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610ac_tool_warned=yes ;;
7611esac
7612 PKG_CONFIG=$ac_pt_PKG_CONFIG
7613 fi
7614else
7615 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7616fi
7617
7618fi
7619if test -n "$PKG_CONFIG"; then
7620 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007622$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7623 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007625$as_echo "yes" >&6; }
7626 else
cristy8b350f62009-11-15 23:12:43 +00007627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007628$as_echo "no" >&6; }
7629 PKG_CONFIG=""
7630 fi
7631
7632fi
7633
7634#
cristy3ed852e2009-09-05 21:47:34 +00007635# Enable run-time checking.
7636#
7637# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007638if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007639 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7640else
7641 enable_bounds_checking='no'
7642fi
7643
7644
7645if test "$enable_bounds_checking" = yes; then
7646
cristy8b350f62009-11-15 23:12:43 +00007647$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007648
7649fi
7650
7651#
7652# Tests for Windows
7653#
7654
7655
7656
7657GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007658native_win32_build='no'
7659cygwin_build='no'
7660case "${host_os}" in
7661 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007662 cygwin_build='yes'
7663 GDI32_LIBS='-lgdi32'
7664 ;;
7665 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007666 native_win32_build='yes'
7667 GDI32_LIBS='-lgdi32'
7668 ;;
7669esac
7670if test "${GDI32_LIBS}x" != 'x'; then
7671
cristy8b350f62009-11-15 23:12:43 +00007672$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007673
7674fi
7675
7676 if test "${GDI32_LIBS}x" != 'x' ; then
7677 WINGDI32_DELEGATE_TRUE=
7678 WINGDI32_DELEGATE_FALSE='#'
7679else
7680 WINGDI32_DELEGATE_TRUE='#'
7681 WINGDI32_DELEGATE_FALSE=
7682fi
7683
7684 if test "${native_win32_build}" = 'yes' ; then
7685 WIN32_NATIVE_BUILD_TRUE=
7686 WIN32_NATIVE_BUILD_FALSE='#'
7687else
7688 WIN32_NATIVE_BUILD_TRUE='#'
7689 WIN32_NATIVE_BUILD_FALSE=
7690fi
7691
7692 if test "${cygwin_build}" = 'yes' ; then
7693 CYGWIN_BUILD_TRUE=
7694 CYGWIN_BUILD_FALSE='#'
7695else
7696 CYGWIN_BUILD_TRUE='#'
7697 CYGWIN_BUILD_FALSE=
7698fi
7699
7700 if test "x${CC}" = 'xcl.exe' ; then
7701 USING_CL_TRUE=
7702 USING_CL_FALSE='#'
7703else
7704 USING_CL_TRUE='#'
7705 USING_CL_FALSE=
7706fi
7707
7708
7709WinPathScript="${srcdirfull}/winpath.sh"
7710
7711
7712#
7713# Compiler flags tweaks
7714#
7715if test "${GCC}" != "yes"; then
7716 case "${host}" in
7717 *-*-hpux* )
7718 # aCC: HP ANSI C++ B3910B A.03.34
7719 CFLAGS="${CFLAGS} -Wp,-H30000"
7720 if test -n "${CXXFLAGS}"; then
7721 CXXFLAGS='-AA'
7722 else
7723 CXXFLAGS="${CXXFLAGS} -AA"
7724 fi
7725 ;;
7726 *-dec-osf5.* )
7727 # Compaq alphaev68-dec-osf5.1 compiler
7728 if test -n "${CXXFLAGS}"; then
7729 CXXFLAGS='-std strict_ansi -noimplicit_include'
7730 else
7731 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7732 fi
7733 esac
7734fi
7735
7736# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007738$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007739if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007740 $as_echo_n "(cached) " >&6
7741else
7742
7743im_cv_ld_lazyload='none'
7744case "${host}" in
7745 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7746 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7747 im_cv_ld_lazyload='-Wl,-zlazyload'
7748 fi
7749 ;;
7750esac
7751
7752fi
cristy8b350f62009-11-15 23:12:43 +00007753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007754$as_echo "$im_cv_ld_lazyload" >&6; }
7755if test "${im_cv_ld_lazyload}" != 'none' ; then
7756 if test -z "${LDFLAGS}" ; then
7757 LDFLAGS="${im_cv_ld_lazyload}"
7758 else
7759 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7760 fi
7761fi
7762
7763case "$host" in
7764*darwin* | *-macos10*)
7765 if test -d /opt/local ; then
7766 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7767 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7768 elif test -d /sw ; then
7769 CPPFLAGS="$CPPFLAGS -I/sw/include"
7770 LDFLAGS="$LDFLAGS -L/sw/lib"
7771 fi
7772 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007773if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007774 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7775else
7776 build_osxuniversal=no
7777fi
7778
7779
7780 if test "${build_osxuniversal}" != no ; then
7781 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007782 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007783Please re-run configure with these options:
7784 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007785 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007786 fi
7787 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7788 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7789 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7790 fi
7791 ;;
7792esac
7793
7794# Enable support for threads
7795
7796# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007797if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007798 withval=$with_threads; with_threads=$withval
7799else
7800 with_threads='yes'
7801fi
7802
7803
7804have_threads=no
7805if test "$with_threads" != 'no'; then
7806
7807
7808
7809ac_ext=c
7810ac_cpp='$CPP $CPPFLAGS'
7811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7813ac_compiler_gnu=$ac_cv_c_compiler_gnu
7814
7815acx_pthread_ok=no
7816
7817# We used to check for pthread.h first, but this fails if pthread.h
7818# requires special compiler flags (e.g. on True64 or Sequent).
7819# It gets checked for in the link test anyway.
7820
7821# First of all, check if the user has set any of the PTHREAD_LIBS,
7822# etcetera environment variables, and if threads linking works using
7823# them:
7824if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7825 save_CFLAGS="$CFLAGS"
7826 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7827 save_LIBS="$LIBS"
7828 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007829 { $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 +00007830$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007832/* end confdefs.h. */
7833
7834/* Override any GCC internal prototype to avoid an error.
7835 Use char because int might match the return type of a GCC
7836 builtin and then its argument prototype would still apply. */
7837#ifdef __cplusplus
7838extern "C"
7839#endif
7840char pthread_join ();
7841int
7842main ()
7843{
7844return pthread_join ();
7845 ;
7846 return 0;
7847}
7848_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007850 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007851fi
cristy8b350f62009-11-15 23:12:43 +00007852rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007855$as_echo "$acx_pthread_ok" >&6; }
7856 if test x"$acx_pthread_ok" = xno; then
7857 PTHREAD_LIBS=""
7858 PTHREAD_CFLAGS=""
7859 fi
7860 LIBS="$save_LIBS"
7861 CFLAGS="$save_CFLAGS"
7862fi
7863
7864# We must check for the threads library under a number of different
7865# names; the ordering is very important because some systems
7866# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7867# libraries is broken (non-POSIX).
7868
7869# Create a list of thread flags to try. Items starting with a "-" are
7870# C compiler flags, and other items are library names, except for "none"
7871# which indicates that we try without any flags at all, and "pthread-config"
7872# which is a program returning the flags for the Pth emulation library.
7873
7874acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7875
7876# The ordering *is* (sometimes) important. Some notes on the
7877# individual items follow:
7878
7879# pthreads: AIX (must check this before -lpthread)
7880# none: in case threads are in libc; should be tried before -Kthread and
7881# other compiler flags to prevent continual compiler warnings
7882# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7883# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7884# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7885# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7886# -pthreads: Solaris/gcc
7887# -mthreads: Mingw32/gcc, Lynx/gcc
7888# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7889# doesn't hurt to check since this sometimes defines pthreads too;
7890# also defines -D_REENTRANT)
7891# ... -mt is also the pthreads flag for HP/aCC
7892# pthread: Linux, etcetera
7893# --thread-safe: KAI C++
7894# pthread-config: use pthread-config program (for GNU Pth library)
7895
7896case "${host_cpu}-${host_os}" in
7897 *solaris*)
7898
7899 # On Solaris (at least, for some versions), libc contains stubbed
7900 # (non-functional) versions of the pthreads routines, so link-based
7901 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7902 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7903 # a function called by this macro, so we could check for that, but
7904 # who knows whether they'll stub that too in a future libc.) So,
7905 # we'll just look for -pthreads and -lpthread first:
7906
7907 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7908 ;;
cristy3ed852e2009-09-05 21:47:34 +00007909esac
7910
7911if test x"$acx_pthread_ok" = xno; then
7912for flag in $acx_pthread_flags; do
7913
7914 case $flag in
7915 none)
cristy8b350f62009-11-15 23:12:43 +00007916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007917$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7918 ;;
7919
7920 -*)
cristy8b350f62009-11-15 23:12:43 +00007921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007922$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7923 PTHREAD_CFLAGS="$flag"
7924 ;;
7925
7926 pthread-config)
7927 # Extract the first word of "pthread-config", so it can be a program name with args.
7928set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007930$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007931if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007932 $as_echo_n "(cached) " >&6
7933else
7934 if test -n "$acx_pthread_config"; then
7935 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7936else
7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH
7939do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7944 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007946 break 2
7947 fi
7948done
cristy8b350f62009-11-15 23:12:43 +00007949 done
cristy3ed852e2009-09-05 21:47:34 +00007950IFS=$as_save_IFS
7951
7952 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7953fi
7954fi
7955acx_pthread_config=$ac_cv_prog_acx_pthread_config
7956if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007958$as_echo "$acx_pthread_config" >&6; }
7959else
cristy8b350f62009-11-15 23:12:43 +00007960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007961$as_echo "no" >&6; }
7962fi
7963
7964
7965 if test x"$acx_pthread_config" = xno; then continue; fi
7966 PTHREAD_CFLAGS="`pthread-config --cflags`"
7967 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7968 ;;
7969
7970 *)
cristy8b350f62009-11-15 23:12:43 +00007971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007972$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7973 PTHREAD_LIBS="-l$flag"
7974 ;;
7975 esac
7976
7977 save_LIBS="$LIBS"
7978 save_CFLAGS="$CFLAGS"
7979 LIBS="$PTHREAD_LIBS $LIBS"
7980 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7981
7982 # Check for various functions. We must include pthread.h,
7983 # since some functions may be macros. (On the Sequent, we
7984 # need a special flag -Kthread to make this header compile.)
7985 # We check for pthread_join because it is in -lpthread on IRIX
7986 # while pthread_create is in libc. We check for pthread_attr_init
7987 # due to DEC craziness with -lpthreads. We check for
7988 # pthread_cleanup_push because it is one of the few pthread
7989 # functions on Solaris that doesn't have a non-functional libc stub.
7990 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007992/* end confdefs.h. */
7993#include <pthread.h>
7994int
7995main ()
7996{
7997pthread_t th; pthread_join(th, 0);
7998 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7999 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8000 ;
8001 return 0;
8002}
8003_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008005 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008006fi
cristy8b350f62009-11-15 23:12:43 +00008007rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008009
8010 LIBS="$save_LIBS"
8011 CFLAGS="$save_CFLAGS"
8012
cristy8b350f62009-11-15 23:12:43 +00008013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008014$as_echo "$acx_pthread_ok" >&6; }
8015 if test "x$acx_pthread_ok" = xyes; then
8016 break;
8017 fi
8018
8019 PTHREAD_LIBS=""
8020 PTHREAD_CFLAGS=""
8021done
8022fi
8023
8024# Various other checks:
8025if test "x$acx_pthread_ok" = xyes; then
8026 save_LIBS="$LIBS"
8027 LIBS="$PTHREAD_LIBS $LIBS"
8028 save_CFLAGS="$CFLAGS"
8029 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8030
8031 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008033$as_echo_n "checking for joinable pthread attribute... " >&6; }
8034 attr_name=unknown
8035 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008037/* end confdefs.h. */
8038#include <pthread.h>
8039int
8040main ()
8041{
8042int attr=$attr; return attr;
8043 ;
8044 return 0;
8045}
8046_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008047if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008048 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008049fi
cristy8b350f62009-11-15 23:12:43 +00008050rm -f core conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008052 done
cristy8b350f62009-11-15 23:12:43 +00008053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008054$as_echo "$attr_name" >&6; }
8055 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8056
8057cat >>confdefs.h <<_ACEOF
8058#define PTHREAD_CREATE_JOINABLE $attr_name
8059_ACEOF
8060
8061 fi
8062
cristy8b350f62009-11-15 23:12:43 +00008063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008064$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8065 flag=no
8066 case "${host_cpu}-${host_os}" in
8067 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8068 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8069 esac
cristy8b350f62009-11-15 23:12:43 +00008070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008071$as_echo "${flag}" >&6; }
8072 if test "x$flag" != xno; then
8073 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8074 fi
8075
8076 LIBS="$save_LIBS"
8077 CFLAGS="$save_CFLAGS"
8078
8079 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008080 if test x"$GCC" != xyes; then
8081 for ac_prog in xlc_r cc_r
8082do
8083 # Extract the first word of "$ac_prog", so it can be a program name with args.
8084set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008086$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008087if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008088 $as_echo_n "(cached) " >&6
8089else
8090 if test -n "$PTHREAD_CC"; then
8091 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008099 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 +00008100 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008102 break 2
8103 fi
8104done
cristy8b350f62009-11-15 23:12:43 +00008105 done
cristy3ed852e2009-09-05 21:47:34 +00008106IFS=$as_save_IFS
8107
cristy3ed852e2009-09-05 21:47:34 +00008108fi
8109fi
8110PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8111if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008113$as_echo "$PTHREAD_CC" >&6; }
8114else
cristy8b350f62009-11-15 23:12:43 +00008115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008116$as_echo "no" >&6; }
8117fi
8118
cristy736173a2009-09-20 21:18:22 +00008119
8120 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008121done
cristy736173a2009-09-20 21:18:22 +00008122test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008123
cristy736173a2009-09-20 21:18:22 +00008124 else
8125 PTHREAD_CC=$CC
8126 fi
cristy3ed852e2009-09-05 21:47:34 +00008127else
cristy736173a2009-09-20 21:18:22 +00008128 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008129fi
8130
cristy3ed852e2009-09-05 21:47:34 +00008131
8132
8133
8134
8135# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8136if test x"$acx_pthread_ok" = xyes; then
8137
cristy8b350f62009-11-15 23:12:43 +00008138$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008139
8140 :
8141else
8142 acx_pthread_ok=no
8143
8144fi
8145ac_ext=c
8146ac_cpp='$CPP $CPPFLAGS'
8147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8149ac_compiler_gnu=$ac_cv_c_compiler_gnu
8150
8151
8152 if test "$acx_pthread_ok" = yes; then
8153 have_threads=yes
8154 DEF_THREAD="$PTHREAD_CFLAGS"
8155 CFLAGS="$CFLAGS $DEF_THREAD"
8156 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8157 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008158 { $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 +00008159$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8160 CC="$PTHREAD_CC"
8161 fi
8162 fi
8163fi
8164
8165# Enable support for OpenMP
8166if test "$have_threads" != 'yes'; then
8167 ac_cv_prog_c_openmp=unsupported
8168fi
8169
8170 OPENMP_CFLAGS=
8171 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008172if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008173 enableval=$enable_openmp;
8174fi
8175
8176 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008178$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008179if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008180 $as_echo_n "(cached) " >&6
8181else
cristy8b350f62009-11-15 23:12:43 +00008182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008184
8185#ifndef _OPENMP
8186 choke me
8187#endif
8188#include <omp.h>
8189int main () { return omp_get_num_threads (); }
8190
8191_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008193 ac_cv_prog_c_openmp='none needed'
8194else
cristy8b350f62009-11-15 23:12:43 +00008195 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008196 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8197 ac_save_CFLAGS=$CFLAGS
8198 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008201
8202#ifndef _OPENMP
8203 choke me
8204#endif
8205#include <omp.h>
8206int main () { return omp_get_num_threads (); }
8207
8208_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008210 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008211fi
cristy8b350f62009-11-15 23:12:43 +00008212rm -f core conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008214 CFLAGS=$ac_save_CFLAGS
8215 if test "$ac_cv_prog_c_openmp" != unsupported; then
8216 break
8217 fi
8218 done
8219fi
cristy8b350f62009-11-15 23:12:43 +00008220rm -f core conftest.err conftest.$ac_objext \
8221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008222fi
cristy8b350f62009-11-15 23:12:43 +00008223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008224$as_echo "$ac_cv_prog_c_openmp" >&6; }
8225 case $ac_cv_prog_c_openmp in #(
8226 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008227 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008228 *)
cristy8b350f62009-11-15 23:12:43 +00008229 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008230 esac
8231 fi
8232
8233
8234CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8235MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8236
8237
cristy736173a2009-09-20 21:18:22 +00008238# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008239
cristy43596fe2010-01-21 16:46:08 +00008240# Check whether --enable-opencl was given.
8241if test "${enable_opencl+set}" = set; then :
8242 enableval=$enable_opencl; disable_opencl=$enableval
8243else
8244 disable_opencl='yes'
8245fi
8246
8247
8248if test "$disable_opencl" = 'yes'; then
8249 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008250ac_cpp='$CPP $CPPFLAGS'
8251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
cristy43596fe2010-01-21 16:46:08 +00008255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008256$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008257if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008258 $as_echo_n "(cached) " >&6
8259else
cristy8b350f62009-11-15 23:12:43 +00008260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008261/* end confdefs.h. */
8262
8263int
8264main ()
8265{
8266#ifndef _MSC_VER
8267 choke me
8268#endif
8269
8270 ;
8271 return 0;
8272}
8273_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008274if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008275 ax_compiler_ms=yes
8276else
cristy8b350f62009-11-15 23:12:43 +00008277 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008278fi
cristy736173a2009-09-20 21:18:22 +00008279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280ax_cv_c_compiler_ms=$ax_compiler_ms
8281
8282fi
cristy8b350f62009-11-15 23:12:43 +00008283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008284$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008285 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008286 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8287fi
8288
cristy43596fe2010-01-21 16:46:08 +00008289 ax_save_CPPFLAGS=$CPPFLAGS
8290 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8291 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008292do :
8293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8294ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8295eval as_val=\$$as_ac_Header
8296 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008297 cat >>confdefs.h <<_ACEOF
8298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8299_ACEOF
8300
8301fi
8302
8303done
8304
cristy43596fe2010-01-21 16:46:08 +00008305 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008306
cristy43596fe2010-01-21 16:46:08 +00008307 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008308do :
8309 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8310if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008311 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008312#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008313_ACEOF
8314
8315fi
8316
8317done
8318
8319
8320
8321
cristy43596fe2010-01-21 16:46:08 +00008322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008323$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008324if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008325 $as_echo_n "(cached) " >&6
8326else
8327 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008328 case $host_cpu in
8329 x86_64) ax_check_cl_libdir=lib64 ;;
8330 *) ax_check_cl_libdir=lib ;;
8331 esac
8332 ax_save_CPPFLAGS=$CPPFLAGS
8333 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8334 ax_save_LIBS=$LIBS
8335 LIBS=""
8336 ax_check_libs="-lOpenCL -lCL -lclparser"
8337 for ax_lib in $ax_check_libs; do
8338 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008339 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8340else
8341 ax_try_lib=$ax_lib
8342fi
cristy43596fe2010-01-21 16:46:08 +00008343 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008345/* end confdefs.h. */
8346
cristy43596fe2010-01-21 16:46:08 +00008347 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8348 # include <windows.h>
8349 # endif
8350 # ifdef HAVE_CL_CL_H
8351 # include <CL/cl.h>
8352 # elif defined(HAVE_OPENCL_CL_H)
8353 # include <OpenCL/cl.h>
8354 # else
8355 # error no CL.h
8356 # endif
cristy736173a2009-09-20 21:18:22 +00008357int
8358main ()
8359{
cristyc7083c12009-10-14 03:16:55 +00008360clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008361 ;
8362 return 0;
8363}
8364_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008365if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008366 ax_cv_check_cl_libcl=$ax_try_lib; break
8367else
cristy8b350f62009-11-15 23:12:43 +00008368 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
cristy43596fe2010-01-21 16:46:08 +00008369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008370/* end confdefs.h. */
8371
cristy43596fe2010-01-21 16:46:08 +00008372 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8373 # include <windows.h>
8374 # endif
8375 # ifdef HAVE_CL_CL_H
8376 # include <CL/cl.h>
8377 # elif defined(HAVE_OPENCL_CL_H)
8378 # include <OpenCL/cl.h>
8379 # else
8380 # error no CL.h
8381 # endif
cristy736173a2009-09-20 21:18:22 +00008382int
8383main ()
8384{
cristyc7083c12009-10-14 03:16:55 +00008385clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008386 ;
8387 return 0;
8388}
8389_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008390if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008391 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8392else
cristy4dc44432009-12-30 23:30:06 +00008393 ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy43596fe2010-01-21 16:46:08 +00008394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008395/* end confdefs.h. */
8396
cristy43596fe2010-01-21 16:46:08 +00008397 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8398 # include <windows.h>
8399 # endif
8400 # ifdef HAVE_CL_CL_H
8401 # include <CL/cl.h>
8402 # elif defined(HAVE_OPENCL_CL_H)
8403 # include <OpenCL/cl.h>
8404 # else
8405 # error no CL.h
8406 # endif
cristy736173a2009-09-20 21:18:22 +00008407int
8408main ()
8409{
cristyc7083c12009-10-14 03:16:55 +00008410clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008411 ;
8412 return 0;
8413}
8414_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008415if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008416 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00008417fi
cristy8b350f62009-11-15 23:12:43 +00008418rm -f core conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008420fi
cristy8b350f62009-11-15 23:12:43 +00008421rm -f core conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008423fi
cristy8b350f62009-11-15 23:12:43 +00008424rm -f core conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008426 done
cristy736173a2009-09-20 21:18:22 +00008427
cristy43596fe2010-01-21 16:46:08 +00008428 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008429 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00008430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008431/* end confdefs.h. */
8432
cristy43596fe2010-01-21 16:46:08 +00008433 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8434 # include <windows.h>
8435 # endif
8436 # ifdef HAVE_CL_CL_H
8437 # include <CL/cl.h>
8438 # elif defined(HAVE_OPENCL_CL_H)
8439 # include <OpenCL/cl.h>
8440 # else
8441 # error no CL.h
8442 # endif
cristy736173a2009-09-20 21:18:22 +00008443int
8444main ()
8445{
cristyc7083c12009-10-14 03:16:55 +00008446clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008447 ;
8448 return 0;
8449}
8450_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008451if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008452 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00008453fi
cristy8b350f62009-11-15 23:12:43 +00008454rm -f core conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008456fi
8457
cristy43596fe2010-01-21 16:46:08 +00008458 LIBS=$ax_save_LIBS
8459 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008460fi
cristy8b350f62009-11-15 23:12:43 +00008461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00008462$as_echo "$ax_cv_check_cl_libcl" >&6; }
8463
cristy43596fe2010-01-21 16:46:08 +00008464 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008465 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8466else
cristy99cc3002010-01-21 14:50:11 +00008467 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8468$as_echo "#define _OPENCL 1" >>confdefs.h
8469
cristy736173a2009-09-20 21:18:22 +00008470fi
cristy43596fe2010-01-21 16:46:08 +00008471 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008472ac_cpp='$CPP $CPPFLAGS'
8473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8475ac_compiler_gnu=$ac_cv_c_compiler_gnu
8476
cristy43596fe2010-01-21 16:46:08 +00008477fi
cristy736173a2009-09-20 21:18:22 +00008478
8479
8480
8481
cristyc7083c12009-10-14 03:16:55 +00008482CFLAGS="$CL_CFLAGS $CFLAGS"
8483LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008484
cristy2e8b51d2009-10-17 18:26:15 +00008485
cristy3ed852e2009-09-05 21:47:34 +00008486########
8487#
8488# Check for large file support
8489#
8490########
8491# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00008492if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008493 enableval=$enable_largefile;
8494fi
8495
8496if test "$enable_largefile" != no; then
8497
cristy8b350f62009-11-15 23:12:43 +00008498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008499$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008500if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008501 $as_echo_n "(cached) " >&6
8502else
8503 ac_cv_sys_largefile_CC=no
8504 if test "$GCC" != yes; then
8505 ac_save_CC=$CC
8506 while :; do
8507 # IRIX 6.2 and later do not support large files by default,
8508 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00008509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008510/* end confdefs.h. */
8511#include <sys/types.h>
8512 /* Check that off_t can represent 2**63 - 1 correctly.
8513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8514 since some C++ compilers masquerading as C compilers
8515 incorrectly reject 9223372036854775807. */
8516#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8518 && LARGE_OFF_T % 2147483647 == 1)
8519 ? 1 : -1];
8520int
8521main ()
8522{
8523
8524 ;
8525 return 0;
8526}
8527_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008528 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008529 break
cristy3ed852e2009-09-05 21:47:34 +00008530fi
cristy3ed852e2009-09-05 21:47:34 +00008531rm -f core conftest.err conftest.$ac_objext
8532 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00008533 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008534 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00008535fi
cristy3ed852e2009-09-05 21:47:34 +00008536rm -f core conftest.err conftest.$ac_objext
8537 break
8538 done
8539 CC=$ac_save_CC
8540 rm -f conftest.$ac_ext
8541 fi
8542fi
cristy8b350f62009-11-15 23:12:43 +00008543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008544$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8545 if test "$ac_cv_sys_largefile_CC" != no; then
8546 CC=$CC$ac_cv_sys_largefile_CC
8547 fi
8548
cristy8b350f62009-11-15 23:12:43 +00008549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008550$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008551if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008552 $as_echo_n "(cached) " >&6
8553else
8554 while :; do
cristy8b350f62009-11-15 23:12:43 +00008555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008556/* end confdefs.h. */
8557#include <sys/types.h>
8558 /* Check that off_t can represent 2**63 - 1 correctly.
8559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8560 since some C++ compilers masquerading as C compilers
8561 incorrectly reject 9223372036854775807. */
8562#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8564 && LARGE_OFF_T % 2147483647 == 1)
8565 ? 1 : -1];
8566int
8567main ()
8568{
8569
8570 ;
8571 return 0;
8572}
8573_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008574if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008575 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00008576fi
cristy3ed852e2009-09-05 21:47:34 +00008577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008579/* end confdefs.h. */
8580#define _FILE_OFFSET_BITS 64
8581#include <sys/types.h>
8582 /* Check that off_t can represent 2**63 - 1 correctly.
8583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8584 since some C++ compilers masquerading as C compilers
8585 incorrectly reject 9223372036854775807. */
8586#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8588 && LARGE_OFF_T % 2147483647 == 1)
8589 ? 1 : -1];
8590int
8591main ()
8592{
8593
8594 ;
8595 return 0;
8596}
8597_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008598if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008599 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00008600fi
cristy3ed852e2009-09-05 21:47:34 +00008601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 ac_cv_sys_file_offset_bits=unknown
8603 break
8604done
8605fi
cristy8b350f62009-11-15 23:12:43 +00008606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00008607$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8608case $ac_cv_sys_file_offset_bits in #(
8609 no | unknown) ;;
8610 *)
8611cat >>confdefs.h <<_ACEOF
8612#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8613_ACEOF
8614;;
8615esac
8616rm -rf conftest*
8617 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00008618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008619$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008620if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008621 $as_echo_n "(cached) " >&6
8622else
8623 while :; do
cristy8b350f62009-11-15 23:12:43 +00008624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008625/* end confdefs.h. */
8626#include <sys/types.h>
8627 /* Check that off_t can represent 2**63 - 1 correctly.
8628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8629 since some C++ compilers masquerading as C compilers
8630 incorrectly reject 9223372036854775807. */
8631#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8633 && LARGE_OFF_T % 2147483647 == 1)
8634 ? 1 : -1];
8635int
8636main ()
8637{
8638
8639 ;
8640 return 0;
8641}
8642_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008643if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008644 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00008645fi
cristy3ed852e2009-09-05 21:47:34 +00008646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008648/* end confdefs.h. */
8649#define _LARGE_FILES 1
8650#include <sys/types.h>
8651 /* Check that off_t can represent 2**63 - 1 correctly.
8652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8653 since some C++ compilers masquerading as C compilers
8654 incorrectly reject 9223372036854775807. */
8655#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8657 && LARGE_OFF_T % 2147483647 == 1)
8658 ? 1 : -1];
8659int
8660main ()
8661{
8662
8663 ;
8664 return 0;
8665}
8666_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008667if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008668 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00008669fi
cristy3ed852e2009-09-05 21:47:34 +00008670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 ac_cv_sys_large_files=unknown
8672 break
8673done
8674fi
cristy8b350f62009-11-15 23:12:43 +00008675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008676$as_echo "$ac_cv_sys_large_files" >&6; }
8677case $ac_cv_sys_large_files in #(
8678 no | unknown) ;;
8679 *)
8680cat >>confdefs.h <<_ACEOF
8681#define _LARGE_FILES $ac_cv_sys_large_files
8682_ACEOF
8683;;
8684esac
8685rm -rf conftest*
8686 fi
8687fi
8688
cristy8b350f62009-11-15 23:12:43 +00008689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008690$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008691if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008692 $as_echo_n "(cached) " >&6
8693else
8694 while :; do
cristy8b350f62009-11-15 23:12:43 +00008695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008696/* end confdefs.h. */
8697#include <sys/types.h> /* for off_t */
8698 #include <stdio.h>
8699int
8700main ()
8701{
8702int (*fp) (FILE *, off_t, int) = fseeko;
8703 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8704 ;
8705 return 0;
8706}
8707_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008708if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008709 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00008710fi
cristy8b350f62009-11-15 23:12:43 +00008711rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008714/* end confdefs.h. */
8715#define _LARGEFILE_SOURCE 1
8716#include <sys/types.h> /* for off_t */
8717 #include <stdio.h>
8718int
8719main ()
8720{
8721int (*fp) (FILE *, off_t, int) = fseeko;
8722 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8723 ;
8724 return 0;
8725}
8726_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008728 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00008729fi
cristy8b350f62009-11-15 23:12:43 +00008730rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008732 ac_cv_sys_largefile_source=unknown
8733 break
8734done
8735fi
cristy8b350f62009-11-15 23:12:43 +00008736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008737$as_echo "$ac_cv_sys_largefile_source" >&6; }
8738case $ac_cv_sys_largefile_source in #(
8739 no | unknown) ;;
8740 *)
8741cat >>confdefs.h <<_ACEOF
8742#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8743_ACEOF
8744;;
8745esac
8746rm -rf conftest*
8747
8748# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8749# in glibc 2.1.3, but that breaks too many other things.
8750# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8751if test $ac_cv_sys_largefile_source != unknown; then
8752
cristy8b350f62009-11-15 23:12:43 +00008753$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008754
8755fi
8756
8757LFS_CPPFLAGS=''
8758if test "$enable_largefile" != no; then
8759 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8760 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8761 else
cristy8b350f62009-11-15 23:12:43 +00008762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008763$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008764 if test "$cross_compiling" = yes; then :
8765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008767as_fn_error "cannot run test program while cross compiling
8768See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008769else
cristy8b350f62009-11-15 23:12:43 +00008770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008772#include <unistd.h>
8773 main () {
8774 exit(!(sizeof(off_t) == 8));
8775 }
8776_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008777if ac_fn_c_try_run "$LINENO"; then :
8778 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008779
cristy8b350f62009-11-15 23:12:43 +00008780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008781$as_echo "yes" >&6; }
8782else
cristy8b350f62009-11-15 23:12:43 +00008783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008784$as_echo "no" >&6; }
8785fi
cristy8b350f62009-11-15 23:12:43 +00008786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8787 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008788fi
8789
cristy3ed852e2009-09-05 21:47:34 +00008790 fi
8791 if test "$ac_cv_sys_large_files" != 'no'; then
8792 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8793 fi
8794 if test "$ac_cv_sys_largefile_source" != 'no'; then
8795 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8796 fi
8797fi
8798
8799
8800#
8801# Configure libtool & libltdl
8802#
8803# Configure libtool
8804enable_dlopen=yes
8805
8806
8807
8808case `pwd` in
8809 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008811$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8812esac
8813
8814
8815
cristy18304f92009-11-22 15:48:26 +00008816macro_version='2.2.6b'
8817macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831ltmain="$ac_aux_dir/ltmain.sh"
8832
cristy8b350f62009-11-15 23:12:43 +00008833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008834$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008835if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008836 $as_echo_n "(cached) " >&6
8837else
8838 if test -n "$NM"; then
8839 # Let the user override the test.
8840 lt_cv_path_NM="$NM"
8841else
8842 lt_nm_to_check="${ac_tool_prefix}nm"
8843 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8844 lt_nm_to_check="$lt_nm_to_check nm"
8845 fi
8846 for lt_tmp_nm in $lt_nm_to_check; do
8847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8848 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8849 IFS="$lt_save_ifs"
8850 test -z "$ac_dir" && ac_dir=.
8851 tmp_nm="$ac_dir/$lt_tmp_nm"
8852 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8853 # Check to see if the nm accepts a BSD-compat flag.
8854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8855 # nm: unknown option "B" ignored
8856 # Tru64's nm complains that /dev/null is an invalid object file
8857 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8858 */dev/null* | *'Invalid file or object type'*)
8859 lt_cv_path_NM="$tmp_nm -B"
8860 break
8861 ;;
8862 *)
8863 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8864 */dev/null*)
8865 lt_cv_path_NM="$tmp_nm -p"
8866 break
8867 ;;
8868 *)
8869 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8870 continue # so that we can try to find one that supports BSD flags
8871 ;;
8872 esac
8873 ;;
8874 esac
8875 fi
8876 done
8877 IFS="$lt_save_ifs"
8878 done
8879 : ${lt_cv_path_NM=no}
8880fi
8881fi
cristy8b350f62009-11-15 23:12:43 +00008882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008883$as_echo "$lt_cv_path_NM" >&6; }
8884if test "$lt_cv_path_NM" != "no"; then
8885 NM="$lt_cv_path_NM"
8886else
8887 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008888 if test -n "$ac_tool_prefix"; then
8889 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008890 do
8891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008894$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008895if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008896 $as_echo_n "(cached) " >&6
8897else
8898 if test -n "$DUMPBIN"; then
8899 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8900else
8901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902for as_dir in $PATH
8903do
8904 IFS=$as_save_IFS
8905 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008906 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8908 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008910 break 2
8911 fi
8912done
cristy8b350f62009-11-15 23:12:43 +00008913 done
cristy3ed852e2009-09-05 21:47:34 +00008914IFS=$as_save_IFS
8915
8916fi
8917fi
8918DUMPBIN=$ac_cv_prog_DUMPBIN
8919if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008921$as_echo "$DUMPBIN" >&6; }
8922else
cristy8b350f62009-11-15 23:12:43 +00008923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008924$as_echo "no" >&6; }
8925fi
8926
8927
8928 test -n "$DUMPBIN" && break
8929 done
8930fi
8931if test -z "$DUMPBIN"; then
8932 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008933 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008934do
8935 # Extract the first word of "$ac_prog", so it can be a program name with args.
8936set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008938$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008939if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008940 $as_echo_n "(cached) " >&6
8941else
8942 if test -n "$ac_ct_DUMPBIN"; then
8943 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8944else
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008954 break 2
8955 fi
8956done
cristy8b350f62009-11-15 23:12:43 +00008957 done
cristy3ed852e2009-09-05 21:47:34 +00008958IFS=$as_save_IFS
8959
8960fi
8961fi
8962ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8963if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008965$as_echo "$ac_ct_DUMPBIN" >&6; }
8966else
cristy8b350f62009-11-15 23:12:43 +00008967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008968$as_echo "no" >&6; }
8969fi
8970
8971
8972 test -n "$ac_ct_DUMPBIN" && break
8973done
8974
8975 if test "x$ac_ct_DUMPBIN" = x; then
8976 DUMPBIN=":"
8977 else
8978 case $cross_compiling:$ac_tool_warned in
8979yes:)
cristy8b350f62009-11-15 23:12:43 +00008980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8982ac_tool_warned=yes ;;
8983esac
8984 DUMPBIN=$ac_ct_DUMPBIN
8985 fi
8986fi
8987
8988
8989 if test "$DUMPBIN" != ":"; then
8990 NM="$DUMPBIN"
8991 fi
8992fi
8993test -z "$NM" && NM=nm
8994
8995
8996
8997
8998
8999
cristy8b350f62009-11-15 23:12:43 +00009000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009001$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009002if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009003 $as_echo_n "(cached) " >&6
9004else
9005 lt_cv_nm_interface="BSD nm"
9006 echo "int some_variable = 0;" > conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00009007 (eval echo "\"\$as_me:9007: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009008 (eval "$ac_compile" 2>conftest.err)
9009 cat conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +00009010 (eval echo "\"\$as_me:9010: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009011 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9012 cat conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +00009013 (eval echo "\"\$as_me:9013: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009014 cat conftest.out >&5
9015 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9016 lt_cv_nm_interface="MS dumpbin"
9017 fi
9018 rm -f conftest*
9019fi
cristy8b350f62009-11-15 23:12:43 +00009020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009021$as_echo "$lt_cv_nm_interface" >&6; }
9022
9023# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009025$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009026if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009027 $as_echo_n "(cached) " >&6
9028else
9029 i=0
9030 teststring="ABCD"
9031
9032 case $build_os in
9033 msdosdjgpp*)
9034 # On DJGPP, this test can blow up pretty badly due to problems in libc
9035 # (any single argument exceeding 2000 bytes causes a buffer overrun
9036 # during glob expansion). Even if it were fixed, the result of this
9037 # check would be larger than it should be.
9038 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9039 ;;
9040
9041 gnu*)
9042 # Under GNU Hurd, this test is not required because there is
9043 # no limit to the length of command line arguments.
9044 # Libtool will interpret -1 as no limit whatsoever
9045 lt_cv_sys_max_cmd_len=-1;
9046 ;;
9047
9048 cygwin* | mingw* | cegcc*)
9049 # On Win9x/ME, this test blows up -- it succeeds, but takes
9050 # about 5 minutes as the teststring grows exponentially.
9051 # Worse, since 9x/ME are not pre-emptively multitasking,
9052 # you end up with a "frozen" computer, even though with patience
9053 # the test eventually succeeds (with a max line length of 256k).
9054 # Instead, let's just punt: use the minimum linelength reported by
9055 # all of the supported platforms: 8192 (on NT/2K/XP).
9056 lt_cv_sys_max_cmd_len=8192;
9057 ;;
9058
9059 amigaos*)
9060 # On AmigaOS with pdksh, this test takes hours, literally.
9061 # So we just punt and use a minimum line length of 8192.
9062 lt_cv_sys_max_cmd_len=8192;
9063 ;;
9064
9065 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9066 # This has been around since 386BSD, at least. Likely further.
9067 if test -x /sbin/sysctl; then
9068 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9069 elif test -x /usr/sbin/sysctl; then
9070 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9071 else
9072 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9073 fi
9074 # And add a safety zone
9075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9077 ;;
9078
9079 interix*)
9080 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9081 lt_cv_sys_max_cmd_len=196608
9082 ;;
9083
9084 osf*)
9085 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9086 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9087 # nice to cause kernel panics so lets avoid the loop below.
9088 # First set a reasonable default.
9089 lt_cv_sys_max_cmd_len=16384
9090 #
9091 if test -x /sbin/sysconfig; then
9092 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9093 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9094 esac
9095 fi
9096 ;;
9097 sco3.2v5*)
9098 lt_cv_sys_max_cmd_len=102400
9099 ;;
9100 sysv5* | sco5v6* | sysv4.2uw2*)
9101 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9102 if test -n "$kargmax"; then
9103 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9104 else
9105 lt_cv_sys_max_cmd_len=32768
9106 fi
9107 ;;
9108 *)
9109 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9110 if test -n "$lt_cv_sys_max_cmd_len"; then
9111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9113 else
9114 # Make teststring a little bigger before we do anything with it.
9115 # a 1K string should be a reasonable start.
9116 for i in 1 2 3 4 5 6 7 8 ; do
9117 teststring=$teststring$teststring
9118 done
9119 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9120 # If test is not a shell built-in, we'll probably end up computing a
9121 # maximum length that is only half of the actual maximum length, but
9122 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009123 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9124 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009125 test $i != 17 # 1/2 MB should be enough
9126 do
9127 i=`expr $i + 1`
9128 teststring=$teststring$teststring
9129 done
9130 # Only check the string length outside the loop.
9131 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9132 teststring=
9133 # Add a significant safety factor because C++ compilers can tack on
9134 # massive amounts of additional arguments before passing them to the
9135 # linker. It appears as though 1/2 is a usable value.
9136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9137 fi
9138 ;;
9139 esac
9140
9141fi
9142
9143if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009145$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9146else
cristy8b350f62009-11-15 23:12:43 +00009147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009148$as_echo "none" >&6; }
9149fi
9150max_cmd_len=$lt_cv_sys_max_cmd_len
9151
9152
9153
9154
9155
9156
9157: ${CP="cp -f"}
9158: ${MV="mv -f"}
9159: ${RM="rm -f"}
9160
cristy8b350f62009-11-15 23:12:43 +00009161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009162$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9163# Try some XSI features
9164xsi_shell=no
9165( _lt_dummy="a/b/c"
9166 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9167 = c,a/b,, \
9168 && eval 'test $(( 1 + 1 )) -eq 2 \
9169 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9170 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009172$as_echo "$xsi_shell" >&6; }
9173
9174
cristy8b350f62009-11-15 23:12:43 +00009175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009176$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9177lt_shell_append=no
9178( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9179 >/dev/null 2>&1 \
9180 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009182$as_echo "$lt_shell_append" >&6; }
9183
9184
9185if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9186 lt_unset=unset
9187else
9188 lt_unset=false
9189fi
9190
9191
9192
9193
9194
9195# test EBCDIC or ASCII
9196case `echo X|tr X '\101'` in
9197 A) # ASCII based system
9198 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9199 lt_SP2NL='tr \040 \012'
9200 lt_NL2SP='tr \015\012 \040\040'
9201 ;;
9202 *) # EBCDIC based system
9203 lt_SP2NL='tr \100 \n'
9204 lt_NL2SP='tr \r\n \100\100'
9205 ;;
9206esac
9207
9208
9209
9210
9211
9212
9213
9214
9215
cristy8b350f62009-11-15 23:12:43 +00009216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009217$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009218if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009219 $as_echo_n "(cached) " >&6
9220else
9221 lt_cv_ld_reload_flag='-r'
9222fi
cristy8b350f62009-11-15 23:12:43 +00009223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009224$as_echo "$lt_cv_ld_reload_flag" >&6; }
9225reload_flag=$lt_cv_ld_reload_flag
9226case $reload_flag in
9227"" | " "*) ;;
9228*) reload_flag=" $reload_flag" ;;
9229esac
9230reload_cmds='$LD$reload_flag -o $output$reload_objs'
9231case $host_os in
9232 darwin*)
9233 if test "$GCC" = yes; then
9234 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9235 else
9236 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9237 fi
9238 ;;
9239esac
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249if test -n "$ac_tool_prefix"; then
9250 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9251set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009253$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009254if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009255 $as_echo_n "(cached) " >&6
9256else
9257 if test -n "$OBJDUMP"; then
9258 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9259else
9260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261for as_dir in $PATH
9262do
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009269 break 2
9270 fi
9271done
cristy8b350f62009-11-15 23:12:43 +00009272 done
cristy3ed852e2009-09-05 21:47:34 +00009273IFS=$as_save_IFS
9274
9275fi
9276fi
9277OBJDUMP=$ac_cv_prog_OBJDUMP
9278if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009280$as_echo "$OBJDUMP" >&6; }
9281else
cristy8b350f62009-11-15 23:12:43 +00009282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009283$as_echo "no" >&6; }
9284fi
9285
9286
9287fi
9288if test -z "$ac_cv_prog_OBJDUMP"; then
9289 ac_ct_OBJDUMP=$OBJDUMP
9290 # Extract the first word of "objdump", so it can be a program name with args.
9291set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009293$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009294if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009295 $as_echo_n "(cached) " >&6
9296else
9297 if test -n "$ac_ct_OBJDUMP"; then
9298 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9299else
9300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301for as_dir in $PATH
9302do
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9307 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009309 break 2
9310 fi
9311done
cristy8b350f62009-11-15 23:12:43 +00009312 done
cristy3ed852e2009-09-05 21:47:34 +00009313IFS=$as_save_IFS
9314
9315fi
9316fi
9317ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9318if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009320$as_echo "$ac_ct_OBJDUMP" >&6; }
9321else
cristy8b350f62009-11-15 23:12:43 +00009322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009323$as_echo "no" >&6; }
9324fi
9325
9326 if test "x$ac_ct_OBJDUMP" = x; then
9327 OBJDUMP="false"
9328 else
9329 case $cross_compiling:$ac_tool_warned in
9330yes:)
cristy8b350f62009-11-15 23:12:43 +00009331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9333ac_tool_warned=yes ;;
9334esac
9335 OBJDUMP=$ac_ct_OBJDUMP
9336 fi
9337else
9338 OBJDUMP="$ac_cv_prog_OBJDUMP"
9339fi
9340
9341test -z "$OBJDUMP" && OBJDUMP=objdump
9342
9343
9344
9345
9346
9347
cristy8b350f62009-11-15 23:12:43 +00009348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009349$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009350if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009351 $as_echo_n "(cached) " >&6
9352else
9353 lt_cv_file_magic_cmd='$MAGIC_CMD'
9354lt_cv_file_magic_test_file=
9355lt_cv_deplibs_check_method='unknown'
9356# Need to set the preceding variable on all platforms that support
9357# interlibrary dependencies.
9358# 'none' -- dependencies not supported.
9359# `unknown' -- same as none, but documents that we really don't know.
9360# 'pass_all' -- all dependencies passed with no checks.
9361# 'test_compile' -- check by making test program.
9362# 'file_magic [[regex]]' -- check by looking for files in library path
9363# which responds to the $file_magic_cmd with a given extended regex.
9364# If you have `file' or equivalent on your system and you're not sure
9365# whether `pass_all' will *always* work, you probably want this one.
9366
9367case $host_os in
9368aix[4-9]*)
9369 lt_cv_deplibs_check_method=pass_all
9370 ;;
9371
9372beos*)
9373 lt_cv_deplibs_check_method=pass_all
9374 ;;
9375
9376bsdi[45]*)
9377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9378 lt_cv_file_magic_cmd='/usr/bin/file -L'
9379 lt_cv_file_magic_test_file=/shlib/libc.so
9380 ;;
9381
9382cygwin*)
9383 # func_win32_libid is a shell function defined in ltmain.sh
9384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9385 lt_cv_file_magic_cmd='func_win32_libid'
9386 ;;
9387
9388mingw* | pw32*)
9389 # Base MSYS/MinGW do not provide the 'file' command needed by
9390 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9391 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00009392 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00009393 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9394 lt_cv_file_magic_cmd='func_win32_libid'
9395 else
9396 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9397 lt_cv_file_magic_cmd='$OBJDUMP -f'
9398 fi
9399 ;;
9400
cristy18304f92009-11-22 15:48:26 +00009401cegcc)
cristy3ed852e2009-09-05 21:47:34 +00009402 # use the weaker test based on 'objdump'. See mingw*.
9403 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9404 lt_cv_file_magic_cmd='$OBJDUMP -f'
9405 ;;
9406
9407darwin* | rhapsody*)
9408 lt_cv_deplibs_check_method=pass_all
9409 ;;
9410
9411freebsd* | dragonfly*)
9412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9413 case $host_cpu in
9414 i*86 )
9415 # Not sure whether the presence of OpenBSD here was a mistake.
9416 # Let's accept both of them until this is cleared up.
9417 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9418 lt_cv_file_magic_cmd=/usr/bin/file
9419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9420 ;;
9421 esac
9422 else
9423 lt_cv_deplibs_check_method=pass_all
9424 fi
9425 ;;
9426
9427gnu*)
9428 lt_cv_deplibs_check_method=pass_all
9429 ;;
9430
9431hpux10.20* | hpux11*)
9432 lt_cv_file_magic_cmd=/usr/bin/file
9433 case $host_cpu in
9434 ia64*)
9435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9436 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9437 ;;
9438 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00009439 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 +00009440 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9441 ;;
9442 *)
cristy18304f92009-11-22 15:48:26 +00009443 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 +00009444 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9445 ;;
9446 esac
9447 ;;
9448
9449interix[3-9]*)
9450 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9452 ;;
9453
9454irix5* | irix6* | nonstopux*)
9455 case $LD in
9456 *-32|*"-32 ") libmagic=32-bit;;
9457 *-n32|*"-n32 ") libmagic=N32;;
9458 *-64|*"-64 ") libmagic=64-bit;;
9459 *) libmagic=never-match;;
9460 esac
9461 lt_cv_deplibs_check_method=pass_all
9462 ;;
9463
9464# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00009465linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00009466 lt_cv_deplibs_check_method=pass_all
9467 ;;
9468
9469netbsd*)
9470 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9472 else
9473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9474 fi
9475 ;;
9476
9477newos6*)
9478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9479 lt_cv_file_magic_cmd=/usr/bin/file
9480 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9481 ;;
9482
9483*nto* | *qnx*)
9484 lt_cv_deplibs_check_method=pass_all
9485 ;;
9486
9487openbsd*)
9488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9490 else
9491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9492 fi
9493 ;;
9494
9495osf3* | osf4* | osf5*)
9496 lt_cv_deplibs_check_method=pass_all
9497 ;;
9498
9499rdos*)
9500 lt_cv_deplibs_check_method=pass_all
9501 ;;
9502
9503solaris*)
9504 lt_cv_deplibs_check_method=pass_all
9505 ;;
9506
9507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9508 lt_cv_deplibs_check_method=pass_all
9509 ;;
9510
9511sysv4 | sysv4.3*)
9512 case $host_vendor in
9513 motorola)
9514 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]'
9515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9516 ;;
9517 ncr)
9518 lt_cv_deplibs_check_method=pass_all
9519 ;;
9520 sequent)
9521 lt_cv_file_magic_cmd='/bin/file'
9522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9523 ;;
9524 sni)
9525 lt_cv_file_magic_cmd='/bin/file'
9526 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9527 lt_cv_file_magic_test_file=/lib/libc.so
9528 ;;
9529 siemens)
9530 lt_cv_deplibs_check_method=pass_all
9531 ;;
9532 pc)
9533 lt_cv_deplibs_check_method=pass_all
9534 ;;
9535 esac
9536 ;;
9537
9538tpf*)
9539 lt_cv_deplibs_check_method=pass_all
9540 ;;
9541esac
9542
9543fi
cristy8b350f62009-11-15 23:12:43 +00009544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00009545$as_echo "$lt_cv_deplibs_check_method" >&6; }
9546file_magic_cmd=$lt_cv_file_magic_cmd
9547deplibs_check_method=$lt_cv_deplibs_check_method
9548test -z "$deplibs_check_method" && deplibs_check_method=unknown
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561if test -n "$ac_tool_prefix"; then
9562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9563set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009566if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009567 $as_echo_n "(cached) " >&6
9568else
9569 if test -n "$AR"; then
9570 ac_cv_prog_AR="$AR" # Let the user override the test.
9571else
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9579 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00009580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009581 break 2
9582 fi
9583done
cristy8b350f62009-11-15 23:12:43 +00009584 done
cristy3ed852e2009-09-05 21:47:34 +00009585IFS=$as_save_IFS
9586
9587fi
9588fi
9589AR=$ac_cv_prog_AR
9590if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00009591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009592$as_echo "$AR" >&6; }
9593else
cristy8b350f62009-11-15 23:12:43 +00009594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009595$as_echo "no" >&6; }
9596fi
9597
9598
9599fi
9600if test -z "$ac_cv_prog_AR"; then
9601 ac_ct_AR=$AR
9602 # Extract the first word of "ar", so it can be a program name with args.
9603set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009605$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009606if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009607 $as_echo_n "(cached) " >&6
9608else
9609 if test -n "$ac_ct_AR"; then
9610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9611else
9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9619 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00009620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009621 break 2
9622 fi
9623done
cristy8b350f62009-11-15 23:12:43 +00009624 done
cristy3ed852e2009-09-05 21:47:34 +00009625IFS=$as_save_IFS
9626
9627fi
9628fi
9629ac_ct_AR=$ac_cv_prog_ac_ct_AR
9630if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00009631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009632$as_echo "$ac_ct_AR" >&6; }
9633else
cristy8b350f62009-11-15 23:12:43 +00009634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009635$as_echo "no" >&6; }
9636fi
9637
9638 if test "x$ac_ct_AR" = x; then
9639 AR="false"
9640 else
9641 case $cross_compiling:$ac_tool_warned in
9642yes:)
cristy8b350f62009-11-15 23:12:43 +00009643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9645ac_tool_warned=yes ;;
9646esac
9647 AR=$ac_ct_AR
9648 fi
9649else
9650 AR="$ac_cv_prog_AR"
9651fi
9652
9653test -z "$AR" && AR=ar
9654test -z "$AR_FLAGS" && AR_FLAGS=cru
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666if test -n "$ac_tool_prefix"; then
9667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9668set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009671if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009672 $as_echo_n "(cached) " >&6
9673else
9674 if test -n "$STRIP"; then
9675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9676else
9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678for as_dir in $PATH
9679do
9680 IFS=$as_save_IFS
9681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00009685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009686 break 2
9687 fi
9688done
cristy8b350f62009-11-15 23:12:43 +00009689 done
cristy3ed852e2009-09-05 21:47:34 +00009690IFS=$as_save_IFS
9691
9692fi
9693fi
9694STRIP=$ac_cv_prog_STRIP
9695if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009697$as_echo "$STRIP" >&6; }
9698else
cristy8b350f62009-11-15 23:12:43 +00009699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009700$as_echo "no" >&6; }
9701fi
9702
9703
9704fi
9705if test -z "$ac_cv_prog_STRIP"; then
9706 ac_ct_STRIP=$STRIP
9707 # Extract the first word of "strip", so it can be a program name with args.
9708set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009710$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009711if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009712 $as_echo_n "(cached) " >&6
9713else
9714 if test -n "$ac_ct_STRIP"; then
9715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9716else
9717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718for as_dir in $PATH
9719do
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009722 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9724 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00009725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009726 break 2
9727 fi
9728done
cristy8b350f62009-11-15 23:12:43 +00009729 done
cristy3ed852e2009-09-05 21:47:34 +00009730IFS=$as_save_IFS
9731
9732fi
9733fi
9734ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9735if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009737$as_echo "$ac_ct_STRIP" >&6; }
9738else
cristy8b350f62009-11-15 23:12:43 +00009739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009740$as_echo "no" >&6; }
9741fi
9742
9743 if test "x$ac_ct_STRIP" = x; then
9744 STRIP=":"
9745 else
9746 case $cross_compiling:$ac_tool_warned in
9747yes:)
cristy8b350f62009-11-15 23:12:43 +00009748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9750ac_tool_warned=yes ;;
9751esac
9752 STRIP=$ac_ct_STRIP
9753 fi
9754else
9755 STRIP="$ac_cv_prog_STRIP"
9756fi
9757
9758test -z "$STRIP" && STRIP=:
9759
9760
9761
9762
9763
9764
9765if test -n "$ac_tool_prefix"; then
9766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9767set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009769$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009770if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009771 $as_echo_n "(cached) " >&6
9772else
9773 if test -n "$RANLIB"; then
9774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9775else
9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $PATH
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009785 break 2
9786 fi
9787done
cristy8b350f62009-11-15 23:12:43 +00009788 done
cristy3ed852e2009-09-05 21:47:34 +00009789IFS=$as_save_IFS
9790
9791fi
9792fi
9793RANLIB=$ac_cv_prog_RANLIB
9794if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009796$as_echo "$RANLIB" >&6; }
9797else
cristy8b350f62009-11-15 23:12:43 +00009798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009799$as_echo "no" >&6; }
9800fi
9801
9802
9803fi
9804if test -z "$ac_cv_prog_RANLIB"; then
9805 ac_ct_RANLIB=$RANLIB
9806 # Extract the first word of "ranlib", so it can be a program name with args.
9807set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009809$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009810if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009811 $as_echo_n "(cached) " >&6
9812else
9813 if test -n "$ac_ct_RANLIB"; then
9814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9815else
9816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817for as_dir in $PATH
9818do
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9823 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009825 break 2
9826 fi
9827done
cristy8b350f62009-11-15 23:12:43 +00009828 done
cristy3ed852e2009-09-05 21:47:34 +00009829IFS=$as_save_IFS
9830
9831fi
9832fi
9833ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9834if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009836$as_echo "$ac_ct_RANLIB" >&6; }
9837else
cristy8b350f62009-11-15 23:12:43 +00009838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009839$as_echo "no" >&6; }
9840fi
9841
9842 if test "x$ac_ct_RANLIB" = x; then
9843 RANLIB=":"
9844 else
9845 case $cross_compiling:$ac_tool_warned in
9846yes:)
cristy8b350f62009-11-15 23:12:43 +00009847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9849ac_tool_warned=yes ;;
9850esac
9851 RANLIB=$ac_ct_RANLIB
9852 fi
9853else
9854 RANLIB="$ac_cv_prog_RANLIB"
9855fi
9856
9857test -z "$RANLIB" && RANLIB=:
9858
9859
9860
9861
9862
9863
9864# Determine commands to create old-style static archives.
9865old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9866old_postinstall_cmds='chmod 644 $oldlib'
9867old_postuninstall_cmds=
9868
9869if test -n "$RANLIB"; then
9870 case $host_os in
9871 openbsd*)
9872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9873 ;;
9874 *)
9875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9876 ;;
9877 esac
9878 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9879fi
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914# If no C compiler was specified, use CC.
9915LTCC=${LTCC-"$CC"}
9916
9917# If no C compiler flags were specified, use CFLAGS.
9918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9919
9920# Allow CC to be a program name with arguments.
9921compiler=$CC
9922
9923
9924# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009926$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009927if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009928 $as_echo_n "(cached) " >&6
9929else
9930
9931# These are sane defaults that work on at least a few old systems.
9932# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9933
9934# Character class describing NM global symbol codes.
9935symcode='[BCDEGRST]'
9936
9937# Regexp to match symbols that can be accessed directly from C.
9938sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9939
9940# Define system-specific variables.
9941case $host_os in
9942aix*)
9943 symcode='[BCDT]'
9944 ;;
9945cygwin* | mingw* | pw32* | cegcc*)
9946 symcode='[ABCDGISTW]'
9947 ;;
9948hpux*)
9949 if test "$host_cpu" = ia64; then
9950 symcode='[ABCDEGRST]'
9951 fi
9952 ;;
9953irix* | nonstopux*)
9954 symcode='[BCDEGRST]'
9955 ;;
9956osf*)
9957 symcode='[BCDEGQRST]'
9958 ;;
9959solaris*)
9960 symcode='[BDRT]'
9961 ;;
9962sco3.2v5*)
9963 symcode='[DT]'
9964 ;;
9965sysv4.2uw2*)
9966 symcode='[DT]'
9967 ;;
9968sysv5* | sco5v6* | unixware* | OpenUNIX*)
9969 symcode='[ABDT]'
9970 ;;
9971sysv4)
9972 symcode='[DFNSTU]'
9973 ;;
9974esac
9975
9976# If we're using GNU nm, then use its standard symbol codes.
9977case `$NM -V 2>&1` in
9978*GNU* | *'with BFD'*)
9979 symcode='[ABCDGIRSTW]' ;;
9980esac
9981
9982# Transform an extracted symbol line into a proper C declaration.
9983# Some systems (esp. on ia64) link data and code symbols differently,
9984# so use this general approach.
9985lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9986
9987# Transform an extracted symbol line into symbol name and symbol address
9988lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9989lt_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'"
9990
9991# Handle CRLF in mingw tool chain
9992opt_cr=
9993case $build_os in
9994mingw*)
9995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9996 ;;
9997esac
9998
9999# Try without a prefix underscore, then with it.
10000for ac_symprfx in "" "_"; do
10001
10002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10003 symxfrm="\\1 $ac_symprfx\\2 \\2"
10004
10005 # Write the raw and C identifiers.
10006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10007 # Fake it for dumpbin and say T for any non-static function
10008 # and D for any global variable.
10009 # Also find C++ and __fastcall symbols from MSVC++,
10010 # which start with @ or ?.
10011 lt_cv_sys_global_symbol_pipe="$AWK '"\
10012" {last_section=section; section=\$ 3};"\
10013" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10014" \$ 0!~/External *\|/{next};"\
10015" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10016" {if(hide[section]) next};"\
10017" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10018" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10019" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10020" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10021" ' prfx=^$ac_symprfx"
10022 else
10023 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10024 fi
10025
10026 # Check to see that the pipe works correctly.
10027 pipe_works=no
10028
10029 rm -f conftest*
10030 cat > conftest.$ac_ext <<_LT_EOF
10031#ifdef __cplusplus
10032extern "C" {
10033#endif
10034char nm_test_var;
10035void nm_test_func(void);
10036void nm_test_func(void){}
10037#ifdef __cplusplus
10038}
10039#endif
10040int main(){nm_test_var='a';nm_test_func();return(0);}
10041_LT_EOF
10042
cristy8b350f62009-11-15 23:12:43 +000010043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010044 (eval $ac_compile) 2>&5
10045 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10047 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010048 # Now try to grab the symbols.
10049 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10051 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010052 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010055 # Try sorting and uniquifying the output.
10056 if sort "$nlist" | uniq > "$nlist"T; then
10057 mv -f "$nlist"T "$nlist"
10058 else
10059 rm -f "$nlist"T
10060 fi
10061
10062 # Make sure that we snagged all the symbols we need.
10063 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10064 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10065 cat <<_LT_EOF > conftest.$ac_ext
10066#ifdef __cplusplus
10067extern "C" {
10068#endif
10069
10070_LT_EOF
10071 # Now generate the symbol file.
10072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10073
10074 cat <<_LT_EOF >> conftest.$ac_ext
10075
10076/* The mapping between symbol names and symbols. */
10077const struct {
10078 const char *name;
10079 void *address;
10080}
10081lt__PROGRAM__LTX_preloaded_symbols[] =
10082{
10083 { "@PROGRAM@", (void *) 0 },
10084_LT_EOF
10085 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10086 cat <<\_LT_EOF >> conftest.$ac_ext
10087 {0, (void *) 0}
10088};
10089
10090/* This works around a problem in FreeBSD linker */
10091#ifdef FREEBSD_WORKAROUND
10092static const void *lt_preloaded_setup() {
10093 return lt__PROGRAM__LTX_preloaded_symbols;
10094}
10095#endif
10096
10097#ifdef __cplusplus
10098}
10099#endif
10100_LT_EOF
10101 # Now try linking the two files.
10102 mv conftest.$ac_objext conftstm.$ac_objext
10103 lt_save_LIBS="$LIBS"
10104 lt_save_CFLAGS="$CFLAGS"
10105 LIBS="conftstm.$ac_objext"
10106 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010108 (eval $ac_link) 2>&5
10109 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10111 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010112 pipe_works=yes
10113 fi
10114 LIBS="$lt_save_LIBS"
10115 CFLAGS="$lt_save_CFLAGS"
10116 else
10117 echo "cannot find nm_test_func in $nlist" >&5
10118 fi
10119 else
10120 echo "cannot find nm_test_var in $nlist" >&5
10121 fi
10122 else
10123 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10124 fi
10125 else
10126 echo "$progname: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 fi
10129 rm -rf conftest* conftst*
10130
10131 # Do not use the global_symbol_pipe unless it works.
10132 if test "$pipe_works" = yes; then
10133 break
10134 else
10135 lt_cv_sys_global_symbol_pipe=
10136 fi
10137done
10138
10139fi
10140
10141if test -z "$lt_cv_sys_global_symbol_pipe"; then
10142 lt_cv_sys_global_symbol_to_cdecl=
10143fi
10144if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010146$as_echo "failed" >&6; }
10147else
cristy8b350f62009-11-15 23:12:43 +000010148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010149$as_echo "ok" >&6; }
10150fi
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010174if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 enableval=$enable_libtool_lock;
10176fi
10177
10178test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10179
10180# Some flags need to be propagated to the compiler or linker for good
10181# libtool support.
10182case $host in
10183ia64-*-hpux*)
10184 # Find out which ABI we are using.
10185 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010187 (eval $ac_compile) 2>&5
10188 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010191 case `/usr/bin/file conftest.$ac_objext` in
10192 *ELF-32*)
10193 HPUX_IA64_MODE="32"
10194 ;;
10195 *ELF-64*)
10196 HPUX_IA64_MODE="64"
10197 ;;
10198 esac
10199 fi
10200 rm -rf conftest*
10201 ;;
10202*-*-irix6*)
10203 # Find out which ABI we are using.
cristya0b81c32010-01-22 02:54:33 +000010204 echo '#line 10204 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010206 (eval $ac_compile) 2>&5
10207 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10209 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010210 if test "$lt_cv_prog_gnu_ld" = yes; then
10211 case `/usr/bin/file conftest.$ac_objext` in
10212 *32-bit*)
10213 LD="${LD-ld} -melf32bsmip"
10214 ;;
10215 *N32*)
10216 LD="${LD-ld} -melf32bmipn32"
10217 ;;
10218 *64-bit*)
10219 LD="${LD-ld} -melf64bmip"
10220 ;;
10221 esac
10222 else
10223 case `/usr/bin/file conftest.$ac_objext` in
10224 *32-bit*)
10225 LD="${LD-ld} -32"
10226 ;;
10227 *N32*)
10228 LD="${LD-ld} -n32"
10229 ;;
10230 *64-bit*)
10231 LD="${LD-ld} -64"
10232 ;;
10233 esac
10234 fi
10235 fi
10236 rm -rf conftest*
10237 ;;
10238
10239x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10240s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10241 # Find out which ABI we are using.
10242 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010244 (eval $ac_compile) 2>&5
10245 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10247 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010248 case `/usr/bin/file conftest.o` in
10249 *32-bit*)
10250 case $host in
10251 x86_64-*kfreebsd*-gnu)
10252 LD="${LD-ld} -m elf_i386_fbsd"
10253 ;;
10254 x86_64-*linux*)
10255 LD="${LD-ld} -m elf_i386"
10256 ;;
10257 ppc64-*linux*|powerpc64-*linux*)
10258 LD="${LD-ld} -m elf32ppclinux"
10259 ;;
10260 s390x-*linux*)
10261 LD="${LD-ld} -m elf_s390"
10262 ;;
10263 sparc64-*linux*)
10264 LD="${LD-ld} -m elf32_sparc"
10265 ;;
10266 esac
10267 ;;
10268 *64-bit*)
10269 case $host in
10270 x86_64-*kfreebsd*-gnu)
10271 LD="${LD-ld} -m elf_x86_64_fbsd"
10272 ;;
10273 x86_64-*linux*)
10274 LD="${LD-ld} -m elf_x86_64"
10275 ;;
10276 ppc*-*linux*|powerpc*-*linux*)
10277 LD="${LD-ld} -m elf64ppc"
10278 ;;
10279 s390*-*linux*|s390*-*tpf*)
10280 LD="${LD-ld} -m elf64_s390"
10281 ;;
10282 sparc*-*linux*)
10283 LD="${LD-ld} -m elf64_sparc"
10284 ;;
10285 esac
10286 ;;
10287 esac
10288 fi
10289 rm -rf conftest*
10290 ;;
10291
10292*-*-sco3.2v5*)
10293 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10294 SAVE_CFLAGS="$CFLAGS"
10295 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010297$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010298if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010299 $as_echo_n "(cached) " >&6
10300else
10301 ac_ext=c
10302ac_cpp='$CPP $CPPFLAGS'
10303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10305ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306
cristy8b350f62009-11-15 23:12:43 +000010307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010308/* end confdefs.h. */
10309
10310int
10311main ()
10312{
10313
10314 ;
10315 return 0;
10316}
10317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010319 lt_cv_cc_needs_belf=yes
10320else
cristy8b350f62009-11-15 23:12:43 +000010321 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010322fi
cristy8b350f62009-11-15 23:12:43 +000010323rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010325 ac_ext=c
10326ac_cpp='$CPP $CPPFLAGS'
10327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10329ac_compiler_gnu=$ac_cv_c_compiler_gnu
10330
10331fi
cristy8b350f62009-11-15 23:12:43 +000010332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010333$as_echo "$lt_cv_cc_needs_belf" >&6; }
10334 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10335 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10336 CFLAGS="$SAVE_CFLAGS"
10337 fi
10338 ;;
10339sparc*-*solaris*)
10340 # Find out which ABI we are using.
10341 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010343 (eval $ac_compile) 2>&5
10344 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10346 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010347 case `/usr/bin/file conftest.o` in
10348 *64-bit*)
10349 case $lt_cv_prog_gnu_ld in
10350 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10351 *)
10352 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10353 LD="${LD-ld} -64"
10354 fi
10355 ;;
10356 esac
10357 ;;
10358 esac
10359 fi
10360 rm -rf conftest*
10361 ;;
10362esac
10363
10364need_locks="$enable_libtool_lock"
10365
10366
10367 case $host_os in
10368 rhapsody* | darwin*)
10369 if test -n "$ac_tool_prefix"; then
10370 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10371set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010373$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010374if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010375 $as_echo_n "(cached) " >&6
10376else
10377 if test -n "$DSYMUTIL"; then
10378 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10379else
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010389 break 2
10390 fi
10391done
cristy8b350f62009-11-15 23:12:43 +000010392 done
cristy3ed852e2009-09-05 21:47:34 +000010393IFS=$as_save_IFS
10394
10395fi
10396fi
10397DSYMUTIL=$ac_cv_prog_DSYMUTIL
10398if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010400$as_echo "$DSYMUTIL" >&6; }
10401else
cristy8b350f62009-11-15 23:12:43 +000010402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010403$as_echo "no" >&6; }
10404fi
10405
10406
10407fi
10408if test -z "$ac_cv_prog_DSYMUTIL"; then
10409 ac_ct_DSYMUTIL=$DSYMUTIL
10410 # Extract the first word of "dsymutil", so it can be a program name with args.
10411set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010413$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010414if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010415 $as_echo_n "(cached) " >&6
10416else
10417 if test -n "$ac_ct_DSYMUTIL"; then
10418 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10419else
10420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421for as_dir in $PATH
10422do
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010425 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010429 break 2
10430 fi
10431done
cristy8b350f62009-11-15 23:12:43 +000010432 done
cristy3ed852e2009-09-05 21:47:34 +000010433IFS=$as_save_IFS
10434
10435fi
10436fi
10437ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10438if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010440$as_echo "$ac_ct_DSYMUTIL" >&6; }
10441else
cristy8b350f62009-11-15 23:12:43 +000010442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010443$as_echo "no" >&6; }
10444fi
10445
10446 if test "x$ac_ct_DSYMUTIL" = x; then
10447 DSYMUTIL=":"
10448 else
10449 case $cross_compiling:$ac_tool_warned in
10450yes:)
cristy8b350f62009-11-15 23:12:43 +000010451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10453ac_tool_warned=yes ;;
10454esac
10455 DSYMUTIL=$ac_ct_DSYMUTIL
10456 fi
10457else
10458 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10459fi
10460
10461 if test -n "$ac_tool_prefix"; then
10462 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10463set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010465$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010466if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010467 $as_echo_n "(cached) " >&6
10468else
10469 if test -n "$NMEDIT"; then
10470 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10471else
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000010480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010481 break 2
10482 fi
10483done
cristy8b350f62009-11-15 23:12:43 +000010484 done
cristy3ed852e2009-09-05 21:47:34 +000010485IFS=$as_save_IFS
10486
10487fi
10488fi
10489NMEDIT=$ac_cv_prog_NMEDIT
10490if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010492$as_echo "$NMEDIT" >&6; }
10493else
cristy8b350f62009-11-15 23:12:43 +000010494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010495$as_echo "no" >&6; }
10496fi
10497
10498
10499fi
10500if test -z "$ac_cv_prog_NMEDIT"; then
10501 ac_ct_NMEDIT=$NMEDIT
10502 # Extract the first word of "nmedit", so it can be a program name with args.
10503set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010505$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010506if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010507 $as_echo_n "(cached) " >&6
10508else
10509 if test -n "$ac_ct_NMEDIT"; then
10510 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10511else
10512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513for as_dir in $PATH
10514do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000010520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010521 break 2
10522 fi
10523done
cristy8b350f62009-11-15 23:12:43 +000010524 done
cristy3ed852e2009-09-05 21:47:34 +000010525IFS=$as_save_IFS
10526
10527fi
10528fi
10529ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10530if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010532$as_echo "$ac_ct_NMEDIT" >&6; }
10533else
cristy8b350f62009-11-15 23:12:43 +000010534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010535$as_echo "no" >&6; }
10536fi
10537
10538 if test "x$ac_ct_NMEDIT" = x; then
10539 NMEDIT=":"
10540 else
10541 case $cross_compiling:$ac_tool_warned in
10542yes:)
cristy8b350f62009-11-15 23:12:43 +000010543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10545ac_tool_warned=yes ;;
10546esac
10547 NMEDIT=$ac_ct_NMEDIT
10548 fi
10549else
10550 NMEDIT="$ac_cv_prog_NMEDIT"
10551fi
10552
10553 if test -n "$ac_tool_prefix"; then
10554 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10555set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010557$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010558if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010559 $as_echo_n "(cached) " >&6
10560else
10561 if test -n "$LIPO"; then
10562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10563else
10564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565for as_dir in $PATH
10566do
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10571 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000010572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010573 break 2
10574 fi
10575done
cristy8b350f62009-11-15 23:12:43 +000010576 done
cristy3ed852e2009-09-05 21:47:34 +000010577IFS=$as_save_IFS
10578
10579fi
10580fi
10581LIPO=$ac_cv_prog_LIPO
10582if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010584$as_echo "$LIPO" >&6; }
10585else
cristy8b350f62009-11-15 23:12:43 +000010586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010587$as_echo "no" >&6; }
10588fi
10589
10590
10591fi
10592if test -z "$ac_cv_prog_LIPO"; then
10593 ac_ct_LIPO=$LIPO
10594 # Extract the first word of "lipo", so it can be a program name with args.
10595set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010597$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010598if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010599 $as_echo_n "(cached) " >&6
10600else
10601 if test -n "$ac_ct_LIPO"; then
10602 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10603else
10604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605for as_dir in $PATH
10606do
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10611 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000010612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010613 break 2
10614 fi
10615done
cristy8b350f62009-11-15 23:12:43 +000010616 done
cristy3ed852e2009-09-05 21:47:34 +000010617IFS=$as_save_IFS
10618
10619fi
10620fi
10621ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10622if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010624$as_echo "$ac_ct_LIPO" >&6; }
10625else
cristy8b350f62009-11-15 23:12:43 +000010626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010627$as_echo "no" >&6; }
10628fi
10629
10630 if test "x$ac_ct_LIPO" = x; then
10631 LIPO=":"
10632 else
10633 case $cross_compiling:$ac_tool_warned in
10634yes:)
cristy8b350f62009-11-15 23:12:43 +000010635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10637ac_tool_warned=yes ;;
10638esac
10639 LIPO=$ac_ct_LIPO
10640 fi
10641else
10642 LIPO="$ac_cv_prog_LIPO"
10643fi
10644
10645 if test -n "$ac_tool_prefix"; then
10646 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10647set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010649$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010650if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010651 $as_echo_n "(cached) " >&6
10652else
10653 if test -n "$OTOOL"; then
10654 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10655else
10656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657for as_dir in $PATH
10658do
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10663 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000010664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010665 break 2
10666 fi
10667done
cristy8b350f62009-11-15 23:12:43 +000010668 done
cristy3ed852e2009-09-05 21:47:34 +000010669IFS=$as_save_IFS
10670
10671fi
10672fi
10673OTOOL=$ac_cv_prog_OTOOL
10674if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010676$as_echo "$OTOOL" >&6; }
10677else
cristy8b350f62009-11-15 23:12:43 +000010678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010679$as_echo "no" >&6; }
10680fi
10681
10682
10683fi
10684if test -z "$ac_cv_prog_OTOOL"; then
10685 ac_ct_OTOOL=$OTOOL
10686 # Extract the first word of "otool", so it can be a program name with args.
10687set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010689$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010690if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010691 $as_echo_n "(cached) " >&6
10692else
10693 if test -n "$ac_ct_OTOOL"; then
10694 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10695else
10696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697for as_dir in $PATH
10698do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10703 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000010704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010705 break 2
10706 fi
10707done
cristy8b350f62009-11-15 23:12:43 +000010708 done
cristy3ed852e2009-09-05 21:47:34 +000010709IFS=$as_save_IFS
10710
10711fi
10712fi
10713ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10714if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010716$as_echo "$ac_ct_OTOOL" >&6; }
10717else
cristy8b350f62009-11-15 23:12:43 +000010718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010719$as_echo "no" >&6; }
10720fi
10721
10722 if test "x$ac_ct_OTOOL" = x; then
10723 OTOOL=":"
10724 else
10725 case $cross_compiling:$ac_tool_warned in
10726yes:)
cristy8b350f62009-11-15 23:12:43 +000010727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10729ac_tool_warned=yes ;;
10730esac
10731 OTOOL=$ac_ct_OTOOL
10732 fi
10733else
10734 OTOOL="$ac_cv_prog_OTOOL"
10735fi
10736
10737 if test -n "$ac_tool_prefix"; then
10738 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10739set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010742if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010743 $as_echo_n "(cached) " >&6
10744else
10745 if test -n "$OTOOL64"; then
10746 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10747else
10748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749for as_dir in $PATH
10750do
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010757 break 2
10758 fi
10759done
cristy8b350f62009-11-15 23:12:43 +000010760 done
cristy3ed852e2009-09-05 21:47:34 +000010761IFS=$as_save_IFS
10762
10763fi
10764fi
10765OTOOL64=$ac_cv_prog_OTOOL64
10766if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010768$as_echo "$OTOOL64" >&6; }
10769else
cristy8b350f62009-11-15 23:12:43 +000010770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010771$as_echo "no" >&6; }
10772fi
10773
10774
10775fi
10776if test -z "$ac_cv_prog_OTOOL64"; then
10777 ac_ct_OTOOL64=$OTOOL64
10778 # Extract the first word of "otool64", so it can be a program name with args.
10779set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010781$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010782if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010783 $as_echo_n "(cached) " >&6
10784else
10785 if test -n "$ac_ct_OTOOL64"; then
10786 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10787else
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010797 break 2
10798 fi
10799done
cristy8b350f62009-11-15 23:12:43 +000010800 done
cristy3ed852e2009-09-05 21:47:34 +000010801IFS=$as_save_IFS
10802
10803fi
10804fi
10805ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10806if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010808$as_echo "$ac_ct_OTOOL64" >&6; }
10809else
cristy8b350f62009-11-15 23:12:43 +000010810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010811$as_echo "no" >&6; }
10812fi
10813
10814 if test "x$ac_ct_OTOOL64" = x; then
10815 OTOOL64=":"
10816 else
10817 case $cross_compiling:$ac_tool_warned in
10818yes:)
cristy8b350f62009-11-15 23:12:43 +000010819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10821ac_tool_warned=yes ;;
10822esac
10823 OTOOL64=$ac_ct_OTOOL64
10824 fi
10825else
10826 OTOOL64="$ac_cv_prog_OTOOL64"
10827fi
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
cristy8b350f62009-11-15 23:12:43 +000010855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010856$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010857if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010858 $as_echo_n "(cached) " >&6
10859else
10860 lt_cv_apple_cc_single_mod=no
10861 if test -z "${LT_MULTI_MODULE}"; then
10862 # By default we will add the -single_module flag. You can override
10863 # by either setting the environment variable LT_MULTI_MODULE
10864 # non-empty at configure time, or by adding -multi_module to the
10865 # link flags.
10866 rm -rf libconftest.dylib*
10867 echo "int foo(void){return 1;}" > conftest.c
10868 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10869-dynamiclib -Wl,-single_module conftest.c" >&5
10870 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10871 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10872 _lt_result=$?
10873 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10874 lt_cv_apple_cc_single_mod=yes
10875 else
10876 cat conftest.err >&5
10877 fi
10878 rm -rf libconftest.dylib*
10879 rm -f conftest.*
10880 fi
10881fi
cristy8b350f62009-11-15 23:12:43 +000010882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010883$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010885$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010886if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010887 $as_echo_n "(cached) " >&6
10888else
10889 lt_cv_ld_exported_symbols_list=no
10890 save_LDFLAGS=$LDFLAGS
10891 echo "_main" > conftest.sym
10892 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010894/* end confdefs.h. */
10895
10896int
10897main ()
10898{
10899
10900 ;
10901 return 0;
10902}
10903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010905 lt_cv_ld_exported_symbols_list=yes
10906else
cristy8b350f62009-11-15 23:12:43 +000010907 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010908fi
cristy8b350f62009-11-15 23:12:43 +000010909rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010911 LDFLAGS="$save_LDFLAGS"
10912
10913fi
cristy8b350f62009-11-15 23:12:43 +000010914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010915$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10916 case $host_os in
10917 rhapsody* | darwin1.[012])
10918 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10919 darwin1.*)
10920 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10921 darwin*) # darwin 5.x on
10922 # if running on 10.5 or later, the deployment target defaults
10923 # to the OS version, if on x86, and 10.4, the deployment
10924 # target defaults to 10.4. Don't you love it?
10925 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10926 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10927 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10928 10.[012]*)
10929 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10930 10.*)
10931 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10932 esac
10933 ;;
10934 esac
10935 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10936 _lt_dar_single_mod='$single_module'
10937 fi
10938 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10939 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10940 else
10941 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10942 fi
cristy18304f92009-11-22 15:48:26 +000010943 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010944 _lt_dsymutil='~$DSYMUTIL $lib || :'
10945 else
10946 _lt_dsymutil=
10947 fi
10948 ;;
10949 esac
10950
cristy3ed852e2009-09-05 21:47:34 +000010951for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010952do :
10953 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10954"
10955if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010956 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010957#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010958_ACEOF
10959
10960fi
10961
10962done
10963
10964
10965
cristy18304f92009-11-22 15:48:26 +000010966ac_ext=cpp
10967ac_cpp='$CXXCPP $CPPFLAGS'
10968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10971if test -z "$CXX"; then
10972 if test -n "$CCC"; then
10973 CXX=$CCC
10974 else
10975 if test -n "$ac_tool_prefix"; then
10976 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10977 do
10978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
10982if test "${ac_cv_prog_CXX+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10984else
10985 if test -n "$CXX"; then
10986 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10987else
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10995 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 break 2
10998 fi
10999done
11000 done
11001IFS=$as_save_IFS
11002
11003fi
11004fi
11005CXX=$ac_cv_prog_CXX
11006if test -n "$CXX"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11008$as_echo "$CXX" >&6; }
11009else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
11012fi
11013
11014
11015 test -n "$CXX" && break
11016 done
11017fi
11018if test -z "$CXX"; then
11019 ac_ct_CXX=$CXX
11020 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11021do
11022 # Extract the first word of "$ac_prog", so it can be a program name with args.
11023set dummy $ac_prog; ac_word=$2
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025$as_echo_n "checking for $ac_word... " >&6; }
11026if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028else
11029 if test -n "$ac_ct_CXX"; then
11030 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11039 ac_cv_prog_ac_ct_CXX="$ac_prog"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044 done
11045IFS=$as_save_IFS
11046
11047fi
11048fi
11049ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11050if test -n "$ac_ct_CXX"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11052$as_echo "$ac_ct_CXX" >&6; }
11053else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055$as_echo "no" >&6; }
11056fi
11057
11058
11059 test -n "$ac_ct_CXX" && break
11060done
11061
11062 if test "x$ac_ct_CXX" = x; then
11063 CXX="g++"
11064 else
11065 case $cross_compiling:$ac_tool_warned in
11066yes:)
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11069ac_tool_warned=yes ;;
11070esac
11071 CXX=$ac_ct_CXX
11072 fi
11073fi
11074
11075 fi
11076fi
11077# Provide some information about the compiler.
11078$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11079set X $ac_compile
11080ac_compiler=$2
11081for ac_option in --version -v -V -qversion; do
11082 { { ac_try="$ac_compiler $ac_option >&5"
11083case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086esac
11087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11088$as_echo "$ac_try_echo"; } >&5
11089 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11090 ac_status=$?
11091 if test -s conftest.err; then
11092 sed '10a\
11093... rest of stderr output deleted ...
11094 10q' conftest.err >conftest.er1
11095 cat conftest.er1 >&5
11096 fi
11097 rm -f conftest.er1 conftest.err
11098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11099 test $ac_status = 0; }
11100done
11101
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11103$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11104if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11106else
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108/* end confdefs.h. */
11109
11110int
11111main ()
11112{
11113#ifndef __GNUC__
11114 choke me
11115#endif
11116
11117 ;
11118 return 0;
11119}
11120_ACEOF
11121if ac_fn_cxx_try_compile "$LINENO"; then :
11122 ac_compiler_gnu=yes
11123else
11124 ac_compiler_gnu=no
11125fi
11126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11128
11129fi
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11131$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11132if test $ac_compiler_gnu = yes; then
11133 GXX=yes
11134else
11135 GXX=
11136fi
11137ac_test_CXXFLAGS=${CXXFLAGS+set}
11138ac_save_CXXFLAGS=$CXXFLAGS
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11140$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11141if test "${ac_cv_prog_cxx_g+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11143else
11144 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11145 ac_cxx_werror_flag=yes
11146 ac_cv_prog_cxx_g=no
11147 CXXFLAGS="-g"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h. */
11150
11151int
11152main ()
11153{
11154
11155 ;
11156 return 0;
11157}
11158_ACEOF
11159if ac_fn_cxx_try_compile "$LINENO"; then :
11160 ac_cv_prog_cxx_g=yes
11161else
11162 CXXFLAGS=""
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164/* end confdefs.h. */
11165
11166int
11167main ()
11168{
11169
11170 ;
11171 return 0;
11172}
11173_ACEOF
11174if ac_fn_cxx_try_compile "$LINENO"; then :
11175
11176else
11177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11178 CXXFLAGS="-g"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180/* end confdefs.h. */
11181
11182int
11183main ()
11184{
11185
11186 ;
11187 return 0;
11188}
11189_ACEOF
11190if ac_fn_cxx_try_compile "$LINENO"; then :
11191 ac_cv_prog_cxx_g=yes
11192fi
11193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11194fi
11195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196fi
11197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11199fi
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11201$as_echo "$ac_cv_prog_cxx_g" >&6; }
11202if test "$ac_test_CXXFLAGS" = set; then
11203 CXXFLAGS=$ac_save_CXXFLAGS
11204elif test $ac_cv_prog_cxx_g = yes; then
11205 if test "$GXX" = yes; then
11206 CXXFLAGS="-g -O2"
11207 else
11208 CXXFLAGS="-g"
11209 fi
11210else
11211 if test "$GXX" = yes; then
11212 CXXFLAGS="-O2"
11213 else
11214 CXXFLAGS=
11215 fi
11216fi
11217ac_ext=c
11218ac_cpp='$CPP $CPPFLAGS'
11219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11221ac_compiler_gnu=$ac_cv_c_compiler_gnu
11222
11223depcc="$CXX" am_compiler_list=
11224
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11226$as_echo_n "checking dependency style of $depcc... " >&6; }
11227if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11229else
11230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11231 # We make a subdir and do the tests there. Otherwise we can end up
11232 # making bogus files that we don't know about and never remove. For
11233 # instance it was reported that on HP-UX the gcc test will end up
11234 # making a dummy file named `D' -- because `-MD' means `put the output
11235 # in D'.
11236 mkdir conftest.dir
11237 # Copy depcomp to subdir because otherwise we won't find it if we're
11238 # using a relative directory.
11239 cp "$am_depcomp" conftest.dir
11240 cd conftest.dir
11241 # We will build objects and dependencies in a subdirectory because
11242 # it helps to detect inapplicable dependency modes. For instance
11243 # both Tru64's cc and ICC support -MD to output dependencies as a
11244 # side effect of compilation, but ICC will put the dependencies in
11245 # the current directory while Tru64 will put them in the object
11246 # directory.
11247 mkdir sub
11248
11249 am_cv_CXX_dependencies_compiler_type=none
11250 if test "$am_compiler_list" = ""; then
11251 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11252 fi
11253 am__universal=false
11254 case " $depcc " in #(
11255 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11256 esac
11257
11258 for depmode in $am_compiler_list; do
11259 # Setup a source with many dependencies, because some compilers
11260 # like to wrap large dependency lists on column 80 (with \), and
11261 # we should not choose a depcomp mode which is confused by this.
11262 #
11263 # We need to recreate these files for each test, as the compiler may
11264 # overwrite some of them when testing with obscure command lines.
11265 # This happens at least with the AIX C compiler.
11266 : > sub/conftest.c
11267 for i in 1 2 3 4 5 6; do
11268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11269 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11270 # Solaris 8's {/usr,}/bin/sh.
11271 touch sub/conftst$i.h
11272 done
11273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11274
11275 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11276 # mode. It turns out that the SunPro C++ compiler does not properly
11277 # handle `-M -o', and we need to detect this. Also, some Intel
11278 # versions had trouble with output in subdirs
11279 am__obj=sub/conftest.${OBJEXT-o}
11280 am__minus_obj="-o $am__obj"
11281 case $depmode in
11282 gcc)
11283 # This depmode causes a compiler race in universal mode.
11284 test "$am__universal" = false || continue
11285 ;;
11286 nosideeffect)
11287 # after this tag, mechanisms are not by side-effect, so they'll
11288 # only be used when explicitly requested
11289 if test "x$enable_dependency_tracking" = xyes; then
11290 continue
11291 else
11292 break
11293 fi
11294 ;;
11295 msvisualcpp | msvcmsys)
11296 # This compiler won't grok `-c -o', but also, the minuso test has
11297 # not run yet. These depmodes are late enough in the game, and
11298 # so weak that their functioning should not be impacted.
11299 am__obj=conftest.${OBJEXT-o}
11300 am__minus_obj=
11301 ;;
11302 none) break ;;
11303 esac
11304 if depmode=$depmode \
11305 source=sub/conftest.c object=$am__obj \
11306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11307 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11308 >/dev/null 2>conftest.err &&
11309 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11310 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11311 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11312 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11313 # icc doesn't choke on unknown options, it will just issue warnings
11314 # or remarks (even with -Werror). So we grep stderr for any message
11315 # that says an option was ignored or not supported.
11316 # When given -MP, icc 7.0 and 7.1 complain thusly:
11317 # icc: Command line warning: ignoring option '-M'; no argument required
11318 # The diagnosis changed in icc 8.0:
11319 # icc: Command line remark: option '-MP' not supported
11320 if (grep 'ignoring option' conftest.err ||
11321 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11322 am_cv_CXX_dependencies_compiler_type=$depmode
11323 break
11324 fi
11325 fi
11326 done
11327
11328 cd ..
11329 rm -rf conftest.dir
11330else
11331 am_cv_CXX_dependencies_compiler_type=none
11332fi
11333
11334fi
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11336$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11337CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11338
11339 if
11340 test "x$enable_dependency_tracking" != xno \
11341 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11342 am__fastdepCXX_TRUE=
11343 am__fastdepCXX_FALSE='#'
11344else
11345 am__fastdepCXX_TRUE='#'
11346 am__fastdepCXX_FALSE=
11347fi
11348
11349
11350if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11351 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11352 (test "X$CXX" != "Xg++"))) ; then
11353 ac_ext=cpp
11354ac_cpp='$CXXCPP $CPPFLAGS'
11355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11359$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11360if test -z "$CXXCPP"; then
11361 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
11363else
11364 # Double quotes because CXXCPP needs to be expanded
11365 for CXXCPP in "$CXX -E" "/lib/cpp"
11366 do
11367 ac_preproc_ok=false
11368for ac_cxx_preproc_warn_flag in '' yes
11369do
11370 # Use a header file that comes with gcc, so configuring glibc
11371 # with a fresh cross-compiler works.
11372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11373 # <limits.h> exists even on freestanding compilers.
11374 # On the NeXT, cc -E runs the code through the compiler's parser,
11375 # not just through cpp. "Syntax error" is here to catch this case.
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377/* end confdefs.h. */
11378#ifdef __STDC__
11379# include <limits.h>
11380#else
11381# include <assert.h>
11382#endif
11383 Syntax error
11384_ACEOF
11385if ac_fn_cxx_try_cpp "$LINENO"; then :
11386
11387else
11388 # Broken: fails on valid input.
11389continue
11390fi
11391rm -f conftest.err conftest.$ac_ext
11392
11393 # OK, works on sane cases. Now check whether nonexistent headers
11394 # can be detected and how.
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396/* end confdefs.h. */
11397#include <ac_nonexistent.h>
11398_ACEOF
11399if ac_fn_cxx_try_cpp "$LINENO"; then :
11400 # Broken: success on invalid input.
11401continue
11402else
11403 # Passes both tests.
11404ac_preproc_ok=:
11405break
11406fi
11407rm -f conftest.err conftest.$ac_ext
11408
11409done
11410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11411rm -f conftest.err conftest.$ac_ext
11412if $ac_preproc_ok; then :
11413 break
11414fi
11415
11416 done
11417 ac_cv_prog_CXXCPP=$CXXCPP
11418
11419fi
11420 CXXCPP=$ac_cv_prog_CXXCPP
11421else
11422 ac_cv_prog_CXXCPP=$CXXCPP
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11425$as_echo "$CXXCPP" >&6; }
11426ac_preproc_ok=false
11427for ac_cxx_preproc_warn_flag in '' yes
11428do
11429 # Use a header file that comes with gcc, so configuring glibc
11430 # with a fresh cross-compiler works.
11431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 # <limits.h> exists even on freestanding compilers.
11433 # On the NeXT, cc -E runs the code through the compiler's parser,
11434 # not just through cpp. "Syntax error" is here to catch this case.
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436/* end confdefs.h. */
11437#ifdef __STDC__
11438# include <limits.h>
11439#else
11440# include <assert.h>
11441#endif
11442 Syntax error
11443_ACEOF
11444if ac_fn_cxx_try_cpp "$LINENO"; then :
11445
11446else
11447 # Broken: fails on valid input.
11448continue
11449fi
11450rm -f conftest.err conftest.$ac_ext
11451
11452 # OK, works on sane cases. Now check whether nonexistent headers
11453 # can be detected and how.
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455/* end confdefs.h. */
11456#include <ac_nonexistent.h>
11457_ACEOF
11458if ac_fn_cxx_try_cpp "$LINENO"; then :
11459 # Broken: success on invalid input.
11460continue
11461else
11462 # Passes both tests.
11463ac_preproc_ok=:
11464break
11465fi
11466rm -f conftest.err conftest.$ac_ext
11467
11468done
11469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11470rm -f conftest.err conftest.$ac_ext
11471if $ac_preproc_ok; then :
11472
11473else
11474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11476_lt_caught_CXX_error=yes; }
11477fi
11478
11479ac_ext=c
11480ac_cpp='$CPP $CPPFLAGS'
11481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11483ac_compiler_gnu=$ac_cv_c_compiler_gnu
11484
11485else
11486 _lt_caught_CXX_error=yes
11487fi
11488
11489
cristy3ed852e2009-09-05 21:47:34 +000011490
11491
11492
11493# Set options
11494enable_win32_dll=yes
11495
11496case $host in
cristy18304f92009-11-22 15:48:26 +000011497*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011498 if test -n "$ac_tool_prefix"; then
11499 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11500set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011502$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011503if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011504 $as_echo_n "(cached) " >&6
11505else
11506 if test -n "$AS"; then
11507 ac_cv_prog_AS="$AS" # Let the user override the test.
11508else
11509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510for as_dir in $PATH
11511do
11512 IFS=$as_save_IFS
11513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11516 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011518 break 2
11519 fi
11520done
cristy8b350f62009-11-15 23:12:43 +000011521 done
cristy3ed852e2009-09-05 21:47:34 +000011522IFS=$as_save_IFS
11523
11524fi
11525fi
11526AS=$ac_cv_prog_AS
11527if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011529$as_echo "$AS" >&6; }
11530else
cristy8b350f62009-11-15 23:12:43 +000011531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011532$as_echo "no" >&6; }
11533fi
11534
11535
11536fi
11537if test -z "$ac_cv_prog_AS"; then
11538 ac_ct_AS=$AS
11539 # Extract the first word of "as", so it can be a program name with args.
11540set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011542$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011543if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011544 $as_echo_n "(cached) " >&6
11545else
11546 if test -n "$ac_ct_AS"; then
11547 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11548else
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11556 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011558 break 2
11559 fi
11560done
cristy8b350f62009-11-15 23:12:43 +000011561 done
cristy3ed852e2009-09-05 21:47:34 +000011562IFS=$as_save_IFS
11563
11564fi
11565fi
11566ac_ct_AS=$ac_cv_prog_ac_ct_AS
11567if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011569$as_echo "$ac_ct_AS" >&6; }
11570else
cristy8b350f62009-11-15 23:12:43 +000011571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011572$as_echo "no" >&6; }
11573fi
11574
11575 if test "x$ac_ct_AS" = x; then
11576 AS="false"
11577 else
11578 case $cross_compiling:$ac_tool_warned in
11579yes:)
cristy8b350f62009-11-15 23:12:43 +000011580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11582ac_tool_warned=yes ;;
11583esac
11584 AS=$ac_ct_AS
11585 fi
11586else
11587 AS="$ac_cv_prog_AS"
11588fi
11589
11590 if test -n "$ac_tool_prefix"; then
11591 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11592set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011594$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011595if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011596 $as_echo_n "(cached) " >&6
11597else
11598 if test -n "$DLLTOOL"; then
11599 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11600else
11601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602for as_dir in $PATH
11603do
11604 IFS=$as_save_IFS
11605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11608 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011610 break 2
11611 fi
11612done
cristy8b350f62009-11-15 23:12:43 +000011613 done
cristy3ed852e2009-09-05 21:47:34 +000011614IFS=$as_save_IFS
11615
11616fi
11617fi
11618DLLTOOL=$ac_cv_prog_DLLTOOL
11619if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011621$as_echo "$DLLTOOL" >&6; }
11622else
cristy8b350f62009-11-15 23:12:43 +000011623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011624$as_echo "no" >&6; }
11625fi
11626
11627
11628fi
11629if test -z "$ac_cv_prog_DLLTOOL"; then
11630 ac_ct_DLLTOOL=$DLLTOOL
11631 # Extract the first word of "dlltool", so it can be a program name with args.
11632set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011634$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011635if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011636 $as_echo_n "(cached) " >&6
11637else
11638 if test -n "$ac_ct_DLLTOOL"; then
11639 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11640else
11641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642for as_dir in $PATH
11643do
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11648 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011650 break 2
11651 fi
11652done
cristy8b350f62009-11-15 23:12:43 +000011653 done
cristy3ed852e2009-09-05 21:47:34 +000011654IFS=$as_save_IFS
11655
11656fi
11657fi
11658ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11659if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011661$as_echo "$ac_ct_DLLTOOL" >&6; }
11662else
cristy8b350f62009-11-15 23:12:43 +000011663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011664$as_echo "no" >&6; }
11665fi
11666
11667 if test "x$ac_ct_DLLTOOL" = x; then
11668 DLLTOOL="false"
11669 else
11670 case $cross_compiling:$ac_tool_warned in
11671yes:)
cristy8b350f62009-11-15 23:12:43 +000011672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11674ac_tool_warned=yes ;;
11675esac
11676 DLLTOOL=$ac_ct_DLLTOOL
11677 fi
11678else
11679 DLLTOOL="$ac_cv_prog_DLLTOOL"
11680fi
11681
11682 if test -n "$ac_tool_prefix"; then
11683 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11684set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011686$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011687if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011688 $as_echo_n "(cached) " >&6
11689else
11690 if test -n "$OBJDUMP"; then
11691 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11692else
11693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694for as_dir in $PATH
11695do
11696 IFS=$as_save_IFS
11697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11700 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011702 break 2
11703 fi
11704done
cristy8b350f62009-11-15 23:12:43 +000011705 done
cristy3ed852e2009-09-05 21:47:34 +000011706IFS=$as_save_IFS
11707
11708fi
11709fi
11710OBJDUMP=$ac_cv_prog_OBJDUMP
11711if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011713$as_echo "$OBJDUMP" >&6; }
11714else
cristy8b350f62009-11-15 23:12:43 +000011715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011716$as_echo "no" >&6; }
11717fi
11718
11719
11720fi
11721if test -z "$ac_cv_prog_OBJDUMP"; then
11722 ac_ct_OBJDUMP=$OBJDUMP
11723 # Extract the first word of "objdump", so it can be a program name with args.
11724set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011726$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011727if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011728 $as_echo_n "(cached) " >&6
11729else
11730 if test -n "$ac_ct_OBJDUMP"; then
11731 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11732else
11733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011742 break 2
11743 fi
11744done
cristy8b350f62009-11-15 23:12:43 +000011745 done
cristy3ed852e2009-09-05 21:47:34 +000011746IFS=$as_save_IFS
11747
11748fi
11749fi
11750ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11751if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011753$as_echo "$ac_ct_OBJDUMP" >&6; }
11754else
cristy8b350f62009-11-15 23:12:43 +000011755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011756$as_echo "no" >&6; }
11757fi
11758
11759 if test "x$ac_ct_OBJDUMP" = x; then
11760 OBJDUMP="false"
11761 else
11762 case $cross_compiling:$ac_tool_warned in
11763yes:)
cristy8b350f62009-11-15 23:12:43 +000011764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11766ac_tool_warned=yes ;;
11767esac
11768 OBJDUMP=$ac_ct_OBJDUMP
11769 fi
11770else
11771 OBJDUMP="$ac_cv_prog_OBJDUMP"
11772fi
11773
11774 ;;
11775esac
11776
11777test -z "$AS" && AS=as
11778
11779
11780
11781
11782
11783test -z "$DLLTOOL" && DLLTOOL=dlltool
11784
11785
11786
11787
11788
11789test -z "$OBJDUMP" && OBJDUMP=objdump
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011800if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011801 enableval=$enable_shared; p=${PACKAGE-default}
11802 case $enableval in
11803 yes) enable_shared=yes ;;
11804 no) enable_shared=no ;;
11805 *)
11806 enable_shared=no
11807 # Look at the argument we got. We use all the common list separators.
11808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11809 for pkg in $enableval; do
11810 IFS="$lt_save_ifs"
11811 if test "X$pkg" = "X$p"; then
11812 enable_shared=yes
11813 fi
11814 done
11815 IFS="$lt_save_ifs"
11816 ;;
11817 esac
11818else
11819 enable_shared=yes
11820fi
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011831if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011832 enableval=$enable_static; p=${PACKAGE-default}
11833 case $enableval in
11834 yes) enable_static=yes ;;
11835 no) enable_static=no ;;
11836 *)
11837 enable_static=no
11838 # Look at the argument we got. We use all the common list separators.
11839 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11840 for pkg in $enableval; do
11841 IFS="$lt_save_ifs"
11842 if test "X$pkg" = "X$p"; then
11843 enable_static=yes
11844 fi
11845 done
11846 IFS="$lt_save_ifs"
11847 ;;
11848 esac
11849else
11850 enable_static=yes
11851fi
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011863if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011864 withval=$with_pic; pic_mode="$withval"
11865else
11866 pic_mode=default
11867fi
11868
11869
11870test -z "$pic_mode" && pic_mode=default
11871
11872
11873
11874
11875
11876
11877
11878 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011879if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011880 enableval=$enable_fast_install; p=${PACKAGE-default}
11881 case $enableval in
11882 yes) enable_fast_install=yes ;;
11883 no) enable_fast_install=no ;;
11884 *)
11885 enable_fast_install=no
11886 # Look at the argument we got. We use all the common list separators.
11887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11888 for pkg in $enableval; do
11889 IFS="$lt_save_ifs"
11890 if test "X$pkg" = "X$p"; then
11891 enable_fast_install=yes
11892 fi
11893 done
11894 IFS="$lt_save_ifs"
11895 ;;
11896 esac
11897else
11898 enable_fast_install=yes
11899fi
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911# This can be used to rebuild libtool when needed
11912LIBTOOL_DEPS="$ltmain"
11913
11914# Always use our own libtool.
11915LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941test -z "$LN_S" && LN_S="ln -s"
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956if test -n "${ZSH_VERSION+set}" ; then
11957 setopt NO_GLOB_SUBST
11958fi
11959
cristy8b350f62009-11-15 23:12:43 +000011960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011961$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011962if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011963 $as_echo_n "(cached) " >&6
11964else
11965 rm -f .libs 2>/dev/null
11966mkdir .libs 2>/dev/null
11967if test -d .libs; then
11968 lt_cv_objdir=.libs
11969else
11970 # MS-DOS does not allow filenames that begin with a dot.
11971 lt_cv_objdir=_libs
11972fi
11973rmdir .libs 2>/dev/null
11974fi
cristy8b350f62009-11-15 23:12:43 +000011975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011976$as_echo "$lt_cv_objdir" >&6; }
11977objdir=$lt_cv_objdir
11978
11979
11980
11981
11982
11983cat >>confdefs.h <<_ACEOF
11984#define LT_OBJDIR "$lt_cv_objdir/"
11985_ACEOF
11986
11987
11988
11989
cristy18304f92009-11-22 15:48:26 +000011990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
cristy3ed852e2009-09-05 21:47:34 +000012003case $host_os in
12004aix3*)
12005 # AIX sometimes has problems with the GCC collect2 program. For some
12006 # reason, if we set the COLLECT_NAMES environment variable, the problems
12007 # vanish in a puff of smoke.
12008 if test "X${COLLECT_NAMES+set}" != Xset; then
12009 COLLECT_NAMES=
12010 export COLLECT_NAMES
12011 fi
12012 ;;
12013esac
12014
cristy18304f92009-11-22 15:48:26 +000012015# Sed substitution that helps us do robust quoting. It backslashifies
12016# metacharacters that are still active within double-quoted strings.
12017sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12018
12019# Same as above, but do not quote variable references.
12020double_quote_subst='s/\(["`\\]\)/\\\1/g'
12021
12022# Sed substitution to delay expansion of an escaped shell variable in a
12023# double_quote_subst'ed string.
12024delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12025
12026# Sed substitution to delay expansion of an escaped single quote.
12027delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12028
12029# Sed substitution to avoid accidental globbing in evaled expressions
12030no_glob_subst='s/\*/\\\*/g'
12031
cristy3ed852e2009-09-05 21:47:34 +000012032# Global variables:
12033ofile=libtool
12034can_build_shared=yes
12035
12036# All known linkers require a `.a' archive for static linking (except MSVC,
12037# which needs '.lib').
12038libext=a
12039
12040with_gnu_ld="$lt_cv_prog_gnu_ld"
12041
12042old_CC="$CC"
12043old_CFLAGS="$CFLAGS"
12044
12045# Set sane defaults for various variables
12046test -z "$CC" && CC=cc
12047test -z "$LTCC" && LTCC=$CC
12048test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12049test -z "$LD" && LD=ld
12050test -z "$ac_objext" && ac_objext=o
12051
12052for cc_temp in $compiler""; do
12053 case $cc_temp in
12054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12056 \-*) ;;
12057 *) break;;
12058 esac
12059done
cristy18304f92009-11-22 15:48:26 +000012060cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012061
12062
12063# Only perform the check for file, if the check method requires it
12064test -z "$MAGIC_CMD" && MAGIC_CMD=file
12065case $deplibs_check_method in
12066file_magic*)
12067 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012069$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012070if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012071 $as_echo_n "(cached) " >&6
12072else
12073 case $MAGIC_CMD in
12074[\\/*] | ?:[\\/]*)
12075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12076 ;;
12077*)
12078 lt_save_MAGIC_CMD="$MAGIC_CMD"
12079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12080 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12081 for ac_dir in $ac_dummy; do
12082 IFS="$lt_save_ifs"
12083 test -z "$ac_dir" && ac_dir=.
12084 if test -f $ac_dir/${ac_tool_prefix}file; then
12085 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12086 if test -n "$file_magic_test_file"; then
12087 case $deplibs_check_method in
12088 "file_magic "*)
12089 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12092 $EGREP "$file_magic_regex" > /dev/null; then
12093 :
12094 else
12095 cat <<_LT_EOF 1>&2
12096
12097*** Warning: the command libtool uses to detect shared libraries,
12098*** $file_magic_cmd, produces output that libtool cannot recognize.
12099*** The result is that libtool may fail to recognize shared libraries
12100*** as such. This will affect the creation of libtool libraries that
12101*** depend on shared libraries, but programs linked with such libtool
12102*** libraries will work regardless of this problem. Nevertheless, you
12103*** may want to report the problem to your system manager and/or to
12104*** bug-libtool@gnu.org
12105
12106_LT_EOF
12107 fi ;;
12108 esac
12109 fi
12110 break
12111 fi
12112 done
12113 IFS="$lt_save_ifs"
12114 MAGIC_CMD="$lt_save_MAGIC_CMD"
12115 ;;
12116esac
12117fi
12118
12119MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12120if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012122$as_echo "$MAGIC_CMD" >&6; }
12123else
cristy8b350f62009-11-15 23:12:43 +000012124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012125$as_echo "no" >&6; }
12126fi
12127
12128
12129
12130
12131
12132if test -z "$lt_cv_path_MAGIC_CMD"; then
12133 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012135$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012136if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012137 $as_echo_n "(cached) " >&6
12138else
12139 case $MAGIC_CMD in
12140[\\/*] | ?:[\\/]*)
12141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12142 ;;
12143*)
12144 lt_save_MAGIC_CMD="$MAGIC_CMD"
12145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12146 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12147 for ac_dir in $ac_dummy; do
12148 IFS="$lt_save_ifs"
12149 test -z "$ac_dir" && ac_dir=.
12150 if test -f $ac_dir/file; then
12151 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12152 if test -n "$file_magic_test_file"; then
12153 case $deplibs_check_method in
12154 "file_magic "*)
12155 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12156 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12157 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12158 $EGREP "$file_magic_regex" > /dev/null; then
12159 :
12160 else
12161 cat <<_LT_EOF 1>&2
12162
12163*** Warning: the command libtool uses to detect shared libraries,
12164*** $file_magic_cmd, produces output that libtool cannot recognize.
12165*** The result is that libtool may fail to recognize shared libraries
12166*** as such. This will affect the creation of libtool libraries that
12167*** depend on shared libraries, but programs linked with such libtool
12168*** libraries will work regardless of this problem. Nevertheless, you
12169*** may want to report the problem to your system manager and/or to
12170*** bug-libtool@gnu.org
12171
12172_LT_EOF
12173 fi ;;
12174 esac
12175 fi
12176 break
12177 fi
12178 done
12179 IFS="$lt_save_ifs"
12180 MAGIC_CMD="$lt_save_MAGIC_CMD"
12181 ;;
12182esac
12183fi
12184
12185MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12186if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012188$as_echo "$MAGIC_CMD" >&6; }
12189else
cristy8b350f62009-11-15 23:12:43 +000012190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012191$as_echo "no" >&6; }
12192fi
12193
12194
12195 else
12196 MAGIC_CMD=:
12197 fi
12198fi
12199
12200 fi
12201 ;;
12202esac
12203
12204# Use C for the default configuration in the libtool script
12205
12206lt_save_CC="$CC"
12207ac_ext=c
12208ac_cpp='$CPP $CPPFLAGS'
12209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211ac_compiler_gnu=$ac_cv_c_compiler_gnu
12212
12213
12214# Source file extension for C test sources.
12215ac_ext=c
12216
12217# Object file extension for compiled C test sources.
12218objext=o
12219objext=$objext
12220
12221# Code to be used in simple compile tests
12222lt_simple_compile_test_code="int some_variable = 0;"
12223
12224# Code to be used in simple link tests
12225lt_simple_link_test_code='int main(){return(0);}'
12226
12227
12228
12229
12230
12231
12232
12233# If no C compiler was specified, use CC.
12234LTCC=${LTCC-"$CC"}
12235
12236# If no C compiler flags were specified, use CFLAGS.
12237LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12238
12239# Allow CC to be a program name with arguments.
12240compiler=$CC
12241
12242# Save the default compiler, since it gets overwritten when the other
12243# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12244compiler_DEFAULT=$CC
12245
12246# save warnings/boilerplate of simple test code
12247ac_outfile=conftest.$ac_objext
12248echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12249eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12250_lt_compiler_boilerplate=`cat conftest.err`
12251$RM conftest*
12252
12253ac_outfile=conftest.$ac_objext
12254echo "$lt_simple_link_test_code" >conftest.$ac_ext
12255eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12256_lt_linker_boilerplate=`cat conftest.err`
12257$RM -r conftest*
12258
12259
12260## CAVEAT EMPTOR:
12261## There is no encapsulation within the following macros, do not change
12262## the running order or otherwise move them around unless you know exactly
12263## what you are doing...
12264if test -n "$compiler"; then
12265
12266lt_prog_compiler_no_builtin_flag=
12267
12268if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012269 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012270
cristy8b350f62009-11-15 23:12:43 +000012271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012272$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012273if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012274 $as_echo_n "(cached) " >&6
12275else
12276 lt_cv_prog_compiler_rtti_exceptions=no
12277 ac_outfile=conftest.$ac_objext
12278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12279 lt_compiler_flag="-fno-rtti -fno-exceptions"
12280 # Insert the option either (1) after the last *FLAGS variable, or
12281 # (2) before a word containing "conftest.", or (3) at the end.
12282 # Note that $ac_compile itself does not contain backslashes and begins
12283 # with a dollar sign (not a hyphen), so the echo should work correctly.
12284 # The option is referenced via a variable to avoid confusing sed.
12285 lt_compile=`echo "$ac_compile" | $SED \
12286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12288 -e 's:$: $lt_compiler_flag:'`
cristya0b81c32010-01-22 02:54:33 +000012289 (eval echo "\"\$as_me:12289: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012290 (eval "$lt_compile" 2>conftest.err)
12291 ac_status=$?
12292 cat conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +000012293 echo "$as_me:12293: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012294 if (exit $ac_status) && test -s "$ac_outfile"; then
12295 # The compiler can only warn and ignore the option if not recognized
12296 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012297 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12300 lt_cv_prog_compiler_rtti_exceptions=yes
12301 fi
12302 fi
12303 $RM conftest*
12304
12305fi
cristy8b350f62009-11-15 23:12:43 +000012306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012307$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12308
12309if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12310 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12311else
12312 :
12313fi
12314
12315fi
12316
12317
12318
12319
12320
12321
12322 lt_prog_compiler_wl=
12323lt_prog_compiler_pic=
12324lt_prog_compiler_static=
12325
cristy8b350f62009-11-15 23:12:43 +000012326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012327$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12328
12329 if test "$GCC" = yes; then
12330 lt_prog_compiler_wl='-Wl,'
12331 lt_prog_compiler_static='-static'
12332
12333 case $host_os in
12334 aix*)
12335 # All AIX code is PIC.
12336 if test "$host_cpu" = ia64; then
12337 # AIX 5 now supports IA64 processor
12338 lt_prog_compiler_static='-Bstatic'
12339 fi
12340 ;;
12341
12342 amigaos*)
12343 case $host_cpu in
12344 powerpc)
12345 # see comment about AmigaOS4 .so support
12346 lt_prog_compiler_pic='-fPIC'
12347 ;;
12348 m68k)
12349 # FIXME: we need at least 68020 code to build shared libraries, but
12350 # adding the `-m68020' flag to GCC prevents building anything better,
12351 # like `-m68040'.
12352 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12353 ;;
12354 esac
12355 ;;
12356
12357 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12358 # PIC is the default for these OSes.
12359 ;;
12360
12361 mingw* | cygwin* | pw32* | os2* | cegcc*)
12362 # This hack is so that the source file can tell whether it is being
12363 # built for inclusion in a dll (and should export symbols for example).
12364 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12365 # (--disable-auto-import) libraries
12366 lt_prog_compiler_pic='-DDLL_EXPORT'
12367 ;;
12368
12369 darwin* | rhapsody*)
12370 # PIC is the default on this platform
12371 # Common symbols not allowed in MH_DYLIB files
12372 lt_prog_compiler_pic='-fno-common'
12373 ;;
12374
12375 hpux*)
12376 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12377 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12378 # sets the default TLS model and affects inlining.
12379 case $host_cpu in
12380 hppa*64*)
12381 # +Z the default
12382 ;;
12383 *)
12384 lt_prog_compiler_pic='-fPIC'
12385 ;;
12386 esac
12387 ;;
12388
12389 interix[3-9]*)
12390 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12391 # Instead, we relocate shared libraries at runtime.
12392 ;;
12393
12394 msdosdjgpp*)
12395 # Just because we use GCC doesn't mean we suddenly get shared libraries
12396 # on systems that don't support them.
12397 lt_prog_compiler_can_build_shared=no
12398 enable_shared=no
12399 ;;
12400
12401 *nto* | *qnx*)
12402 # QNX uses GNU C++, but need to define -shared option too, otherwise
12403 # it will coredump.
12404 lt_prog_compiler_pic='-fPIC -shared'
12405 ;;
12406
12407 sysv4*MP*)
12408 if test -d /usr/nec; then
12409 lt_prog_compiler_pic=-Kconform_pic
12410 fi
12411 ;;
12412
12413 *)
12414 lt_prog_compiler_pic='-fPIC'
12415 ;;
12416 esac
12417 else
12418 # PORTME Check for flag to pass linker flags through the system compiler.
12419 case $host_os in
12420 aix*)
12421 lt_prog_compiler_wl='-Wl,'
12422 if test "$host_cpu" = ia64; then
12423 # AIX 5 now supports IA64 processor
12424 lt_prog_compiler_static='-Bstatic'
12425 else
12426 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12427 fi
12428 ;;
12429
12430 mingw* | cygwin* | pw32* | os2* | cegcc*)
12431 # This hack is so that the source file can tell whether it is being
12432 # built for inclusion in a dll (and should export symbols for example).
12433 lt_prog_compiler_pic='-DDLL_EXPORT'
12434 ;;
12435
12436 hpux9* | hpux10* | hpux11*)
12437 lt_prog_compiler_wl='-Wl,'
12438 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12439 # not for PA HP-UX.
12440 case $host_cpu in
12441 hppa*64*|ia64*)
12442 # +Z the default
12443 ;;
12444 *)
12445 lt_prog_compiler_pic='+Z'
12446 ;;
12447 esac
12448 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12449 lt_prog_compiler_static='${wl}-a ${wl}archive'
12450 ;;
12451
12452 irix5* | irix6* | nonstopux*)
12453 lt_prog_compiler_wl='-Wl,'
12454 # PIC (with -KPIC) is the default.
12455 lt_prog_compiler_static='-non_shared'
12456 ;;
12457
cristy18304f92009-11-22 15:48:26 +000012458 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012459 case $cc_basename in
12460 # old Intel for x86_64 which still supported -KPIC.
12461 ecc*)
12462 lt_prog_compiler_wl='-Wl,'
12463 lt_prog_compiler_pic='-KPIC'
12464 lt_prog_compiler_static='-static'
12465 ;;
12466 # icc used to be incompatible with GCC.
12467 # ICC 10 doesn't accept -KPIC any more.
12468 icc* | ifort*)
12469 lt_prog_compiler_wl='-Wl,'
12470 lt_prog_compiler_pic='-fPIC'
12471 lt_prog_compiler_static='-static'
12472 ;;
12473 # Lahey Fortran 8.1.
12474 lf95*)
12475 lt_prog_compiler_wl='-Wl,'
12476 lt_prog_compiler_pic='--shared'
12477 lt_prog_compiler_static='--static'
12478 ;;
cristy18304f92009-11-22 15:48:26 +000012479 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000012480 # Portland Group compilers (*not* the Pentium gcc compiler,
12481 # which looks to be a dead project)
12482 lt_prog_compiler_wl='-Wl,'
12483 lt_prog_compiler_pic='-fpic'
12484 lt_prog_compiler_static='-Bstatic'
12485 ;;
12486 ccc*)
12487 lt_prog_compiler_wl='-Wl,'
12488 # All Alpha code is PIC.
12489 lt_prog_compiler_static='-non_shared'
12490 ;;
cristy18304f92009-11-22 15:48:26 +000012491 xl*)
12492 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000012493 lt_prog_compiler_wl='-Wl,'
12494 lt_prog_compiler_pic='-qpic'
12495 lt_prog_compiler_static='-qstaticlink'
12496 ;;
12497 *)
12498 case `$CC -V 2>&1 | sed 5q` in
12499 *Sun\ C*)
12500 # Sun C 5.9
12501 lt_prog_compiler_pic='-KPIC'
12502 lt_prog_compiler_static='-Bstatic'
12503 lt_prog_compiler_wl='-Wl,'
12504 ;;
cristy18304f92009-11-22 15:48:26 +000012505 *Sun\ F*)
12506 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12507 lt_prog_compiler_pic='-KPIC'
12508 lt_prog_compiler_static='-Bstatic'
12509 lt_prog_compiler_wl=''
12510 ;;
cristy3ed852e2009-09-05 21:47:34 +000012511 esac
12512 ;;
12513 esac
12514 ;;
12515
12516 newsos6)
12517 lt_prog_compiler_pic='-KPIC'
12518 lt_prog_compiler_static='-Bstatic'
12519 ;;
12520
12521 *nto* | *qnx*)
12522 # QNX uses GNU C++, but need to define -shared option too, otherwise
12523 # it will coredump.
12524 lt_prog_compiler_pic='-fPIC -shared'
12525 ;;
12526
12527 osf3* | osf4* | osf5*)
12528 lt_prog_compiler_wl='-Wl,'
12529 # All OSF/1 code is PIC.
12530 lt_prog_compiler_static='-non_shared'
12531 ;;
12532
12533 rdos*)
12534 lt_prog_compiler_static='-non_shared'
12535 ;;
12536
12537 solaris*)
12538 lt_prog_compiler_pic='-KPIC'
12539 lt_prog_compiler_static='-Bstatic'
12540 case $cc_basename in
12541 f77* | f90* | f95*)
12542 lt_prog_compiler_wl='-Qoption ld ';;
12543 *)
12544 lt_prog_compiler_wl='-Wl,';;
12545 esac
12546 ;;
12547
12548 sunos4*)
12549 lt_prog_compiler_wl='-Qoption ld '
12550 lt_prog_compiler_pic='-PIC'
12551 lt_prog_compiler_static='-Bstatic'
12552 ;;
12553
12554 sysv4 | sysv4.2uw2* | sysv4.3*)
12555 lt_prog_compiler_wl='-Wl,'
12556 lt_prog_compiler_pic='-KPIC'
12557 lt_prog_compiler_static='-Bstatic'
12558 ;;
12559
12560 sysv4*MP*)
12561 if test -d /usr/nec ;then
12562 lt_prog_compiler_pic='-Kconform_pic'
12563 lt_prog_compiler_static='-Bstatic'
12564 fi
12565 ;;
12566
12567 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12568 lt_prog_compiler_wl='-Wl,'
12569 lt_prog_compiler_pic='-KPIC'
12570 lt_prog_compiler_static='-Bstatic'
12571 ;;
12572
12573 unicos*)
12574 lt_prog_compiler_wl='-Wl,'
12575 lt_prog_compiler_can_build_shared=no
12576 ;;
12577
12578 uts4*)
12579 lt_prog_compiler_pic='-pic'
12580 lt_prog_compiler_static='-Bstatic'
12581 ;;
12582
12583 *)
12584 lt_prog_compiler_can_build_shared=no
12585 ;;
12586 esac
12587 fi
12588
12589case $host_os in
12590 # For platforms which do not support PIC, -DPIC is meaningless:
12591 *djgpp*)
12592 lt_prog_compiler_pic=
12593 ;;
12594 *)
12595 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12596 ;;
12597esac
cristy8b350f62009-11-15 23:12:43 +000012598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012599$as_echo "$lt_prog_compiler_pic" >&6; }
12600
12601
12602
12603
12604
12605
12606#
12607# Check to make sure the PIC flag actually works.
12608#
12609if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012611$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012612if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012613 $as_echo_n "(cached) " >&6
12614else
12615 lt_cv_prog_compiler_pic_works=no
12616 ac_outfile=conftest.$ac_objext
12617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12618 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12619 # Insert the option either (1) after the last *FLAGS variable, or
12620 # (2) before a word containing "conftest.", or (3) at the end.
12621 # Note that $ac_compile itself does not contain backslashes and begins
12622 # with a dollar sign (not a hyphen), so the echo should work correctly.
12623 # The option is referenced via a variable to avoid confusing sed.
12624 lt_compile=`echo "$ac_compile" | $SED \
12625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12627 -e 's:$: $lt_compiler_flag:'`
cristya0b81c32010-01-22 02:54:33 +000012628 (eval echo "\"\$as_me:12628: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012629 (eval "$lt_compile" 2>conftest.err)
12630 ac_status=$?
12631 cat conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +000012632 echo "$as_me:12632: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012633 if (exit $ac_status) && test -s "$ac_outfile"; then
12634 # The compiler can only warn and ignore the option if not recognized
12635 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012636 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12639 lt_cv_prog_compiler_pic_works=yes
12640 fi
12641 fi
12642 $RM conftest*
12643
12644fi
cristy8b350f62009-11-15 23:12:43 +000012645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012646$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12647
12648if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12649 case $lt_prog_compiler_pic in
12650 "" | " "*) ;;
12651 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12652 esac
12653else
12654 lt_prog_compiler_pic=
12655 lt_prog_compiler_can_build_shared=no
12656fi
12657
12658fi
12659
12660
12661
12662
12663
12664
12665#
12666# Check to make sure the static flag actually works.
12667#
12668wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012670$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012671if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012672 $as_echo_n "(cached) " >&6
12673else
12674 lt_cv_prog_compiler_static_works=no
12675 save_LDFLAGS="$LDFLAGS"
12676 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12677 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12678 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12679 # The linker can only warn and ignore the option if not recognized
12680 # So say no if there are warnings
12681 if test -s conftest.err; then
12682 # Append any errors to the config.log.
12683 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000012684 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12686 if diff conftest.exp conftest.er2 >/dev/null; then
12687 lt_cv_prog_compiler_static_works=yes
12688 fi
12689 else
12690 lt_cv_prog_compiler_static_works=yes
12691 fi
12692 fi
12693 $RM -r conftest*
12694 LDFLAGS="$save_LDFLAGS"
12695
12696fi
cristy8b350f62009-11-15 23:12:43 +000012697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012698$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12699
12700if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12701 :
12702else
12703 lt_prog_compiler_static=
12704fi
12705
12706
12707
12708
12709
12710
12711
cristy8b350f62009-11-15 23:12:43 +000012712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012713$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012714if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012715 $as_echo_n "(cached) " >&6
12716else
12717 lt_cv_prog_compiler_c_o=no
12718 $RM -r conftest 2>/dev/null
12719 mkdir conftest
12720 cd conftest
12721 mkdir out
12722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12723
12724 lt_compiler_flag="-o out/conftest2.$ac_objext"
12725 # Insert the option either (1) after the last *FLAGS variable, or
12726 # (2) before a word containing "conftest.", or (3) at the end.
12727 # Note that $ac_compile itself does not contain backslashes and begins
12728 # with a dollar sign (not a hyphen), so the echo should work correctly.
12729 lt_compile=`echo "$ac_compile" | $SED \
12730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12732 -e 's:$: $lt_compiler_flag:'`
cristya0b81c32010-01-22 02:54:33 +000012733 (eval echo "\"\$as_me:12733: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012734 (eval "$lt_compile" 2>out/conftest.err)
12735 ac_status=$?
12736 cat out/conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +000012737 echo "$as_me:12737: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12739 then
12740 # The compiler can only warn and ignore the option if not recognized
12741 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012742 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12745 lt_cv_prog_compiler_c_o=yes
12746 fi
12747 fi
12748 chmod u+w . 2>&5
12749 $RM conftest*
12750 # SGI C++ compiler will create directory out/ii_files/ for
12751 # template instantiation
12752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12753 $RM out/* && rmdir out
12754 cd ..
12755 $RM -r conftest
12756 $RM conftest*
12757
12758fi
cristy8b350f62009-11-15 23:12:43 +000012759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012760$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12761
12762
12763
12764
12765
12766
cristy8b350f62009-11-15 23:12:43 +000012767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012768$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012769if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012770 $as_echo_n "(cached) " >&6
12771else
12772 lt_cv_prog_compiler_c_o=no
12773 $RM -r conftest 2>/dev/null
12774 mkdir conftest
12775 cd conftest
12776 mkdir out
12777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12778
12779 lt_compiler_flag="-o out/conftest2.$ac_objext"
12780 # Insert the option either (1) after the last *FLAGS variable, or
12781 # (2) before a word containing "conftest.", or (3) at the end.
12782 # Note that $ac_compile itself does not contain backslashes and begins
12783 # with a dollar sign (not a hyphen), so the echo should work correctly.
12784 lt_compile=`echo "$ac_compile" | $SED \
12785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12787 -e 's:$: $lt_compiler_flag:'`
cristya0b81c32010-01-22 02:54:33 +000012788 (eval echo "\"\$as_me:12788: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012789 (eval "$lt_compile" 2>out/conftest.err)
12790 ac_status=$?
12791 cat out/conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +000012792 echo "$as_me:12792: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12794 then
12795 # The compiler can only warn and ignore the option if not recognized
12796 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012797 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12800 lt_cv_prog_compiler_c_o=yes
12801 fi
12802 fi
12803 chmod u+w . 2>&5
12804 $RM conftest*
12805 # SGI C++ compiler will create directory out/ii_files/ for
12806 # template instantiation
12807 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12808 $RM out/* && rmdir out
12809 cd ..
12810 $RM -r conftest
12811 $RM conftest*
12812
12813fi
cristy8b350f62009-11-15 23:12:43 +000012814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012815$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12816
12817
12818
12819
12820hard_links="nottested"
12821if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12822 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012824$as_echo_n "checking if we can lock with hard links... " >&6; }
12825 hard_links=yes
12826 $RM conftest*
12827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12828 touch conftest.a
12829 ln conftest.a conftest.b 2>&5 || hard_links=no
12830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012832$as_echo "$hard_links" >&6; }
12833 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012834 { $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 +000012835$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12836 need_locks=warn
12837 fi
12838else
12839 need_locks=no
12840fi
12841
12842
12843
12844
12845
12846
cristy8b350f62009-11-15 23:12:43 +000012847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012848$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12849
12850 runpath_var=
12851 allow_undefined_flag=
12852 always_export_symbols=no
12853 archive_cmds=
12854 archive_expsym_cmds=
12855 compiler_needs_object=no
12856 enable_shared_with_static_runtimes=no
12857 export_dynamic_flag_spec=
12858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12859 hardcode_automatic=no
12860 hardcode_direct=no
12861 hardcode_direct_absolute=no
12862 hardcode_libdir_flag_spec=
12863 hardcode_libdir_flag_spec_ld=
12864 hardcode_libdir_separator=
12865 hardcode_minus_L=no
12866 hardcode_shlibpath_var=unsupported
12867 inherit_rpath=no
12868 link_all_deplibs=unknown
12869 module_cmds=
12870 module_expsym_cmds=
12871 old_archive_from_new_cmds=
12872 old_archive_from_expsyms_cmds=
12873 thread_safe_flag_spec=
12874 whole_archive_flag_spec=
12875 # include_expsyms should be a list of space-separated symbols to be *always*
12876 # included in the symbol list
12877 include_expsyms=
12878 # exclude_expsyms can be an extended regexp of symbols to exclude
12879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12881 # as well as any symbol that contains `d'.
12882 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12884 # platforms (ab)use it in PIC code, but their linkers get confused if
12885 # the symbol is explicitly referenced. Since portable code cannot
12886 # rely on this symbol name, it's probably fine to never include it in
12887 # preloaded symbol tables.
12888 # Exclude shared library initialization/finalization symbols.
12889 extract_expsyms_cmds=
12890
12891 case $host_os in
12892 cygwin* | mingw* | pw32* | cegcc*)
12893 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12894 # When not using gcc, we currently assume that we are using
12895 # Microsoft Visual C++.
12896 if test "$GCC" != yes; then
12897 with_gnu_ld=no
12898 fi
12899 ;;
12900 interix*)
12901 # we just hope/assume this is gcc and not c89 (= MSVC++)
12902 with_gnu_ld=yes
12903 ;;
12904 openbsd*)
12905 with_gnu_ld=no
12906 ;;
12907 esac
12908
12909 ld_shlibs=yes
12910 if test "$with_gnu_ld" = yes; then
12911 # If archive_cmds runs LD, not CC, wlarc should be empty
12912 wlarc='${wl}'
12913
12914 # Set some defaults for GNU ld with shared library support. These
12915 # are reset later if shared libraries are not supported. Putting them
12916 # here allows them to be overridden if necessary.
12917 runpath_var=LD_RUN_PATH
12918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12919 export_dynamic_flag_spec='${wl}--export-dynamic'
12920 # ancient GNU ld didn't support --whole-archive et. al.
12921 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12922 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12923 else
12924 whole_archive_flag_spec=
12925 fi
12926 supports_anon_versioning=no
12927 case `$LD -v 2>&1` in
12928 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12929 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12930 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12931 *\ 2.11.*) ;; # other 2.11 versions
12932 *) supports_anon_versioning=yes ;;
12933 esac
12934
12935 # See if GNU ld supports shared libraries.
12936 case $host_os in
12937 aix[3-9]*)
12938 # On AIX/PPC, the GNU linker is very broken
12939 if test "$host_cpu" != ia64; then
12940 ld_shlibs=no
12941 cat <<_LT_EOF 1>&2
12942
cristy18304f92009-11-22 15:48:26 +000012943*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012944*** to be unable to reliably create shared libraries on AIX.
12945*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012946*** really care for shared libraries, you may want to modify your PATH
12947*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012948
12949_LT_EOF
12950 fi
12951 ;;
12952
12953 amigaos*)
12954 case $host_cpu in
12955 powerpc)
12956 # see comment about AmigaOS4 .so support
12957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12958 archive_expsym_cmds=''
12959 ;;
12960 m68k)
12961 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)'
12962 hardcode_libdir_flag_spec='-L$libdir'
12963 hardcode_minus_L=yes
12964 ;;
12965 esac
12966 ;;
12967
12968 beos*)
12969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12970 allow_undefined_flag=unsupported
12971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12972 # support --undefined. This deserves some investigation. FIXME
12973 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 else
12975 ld_shlibs=no
12976 fi
12977 ;;
12978
12979 cygwin* | mingw* | pw32* | cegcc*)
12980 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12981 # as there is no search path for DLLs.
12982 hardcode_libdir_flag_spec='-L$libdir'
12983 allow_undefined_flag=unsupported
12984 always_export_symbols=no
12985 enable_shared_with_static_runtimes=yes
12986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12987
12988 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12990 # If the export-symbols file already is a .def file (1st line
12991 # is EXPORTS), use it as is; otherwise, prepend...
12992 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12993 cp $export_symbols $output_objdir/$soname.def;
12994 else
12995 echo EXPORTS > $output_objdir/$soname.def;
12996 cat $export_symbols >> $output_objdir/$soname.def;
12997 fi~
12998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12999 else
13000 ld_shlibs=no
13001 fi
13002 ;;
13003
13004 interix[3-9]*)
13005 hardcode_direct=no
13006 hardcode_shlibpath_var=no
13007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13008 export_dynamic_flag_spec='${wl}-E'
13009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13010 # Instead, shared libraries are loaded at an image base (0x10000000 by
13011 # default) and relocated if they conflict, which is a slow very memory
13012 # consuming and fragmenting process. To avoid this, we pick a random,
13013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13014 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13016 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'
13017 ;;
13018
cristy18304f92009-11-22 15:48:26 +000013019 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013020 tmp_diet=no
13021 if test "$host_os" = linux-dietlibc; then
13022 case $cc_basename in
13023 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13024 esac
13025 fi
13026 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13027 && test "$tmp_diet" = no
13028 then
13029 tmp_addflag=
13030 tmp_sharedflag='-shared'
13031 case $cc_basename,$host_cpu in
13032 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013033 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 +000013034 tmp_addflag=' $pic_flag'
13035 ;;
cristy18304f92009-11-22 15:48:26 +000013036 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13037 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 +000013038 tmp_addflag=' $pic_flag -Mnomain' ;;
13039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13040 tmp_addflag=' -i_dynamic' ;;
13041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13042 tmp_addflag=' -i_dynamic -nofor_main' ;;
13043 ifc* | ifort*) # Intel Fortran compiler
13044 tmp_addflag=' -nofor_main' ;;
13045 lf95*) # Lahey Fortran 8.1
13046 whole_archive_flag_spec=
13047 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013048 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013049 tmp_sharedflag='-qmkshrobj'
13050 tmp_addflag= ;;
13051 esac
13052 case `$CC -V 2>&1 | sed 5q` in
13053 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013054 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 +000013055 compiler_needs_object=yes
13056 tmp_sharedflag='-G' ;;
13057 *Sun\ F*) # Sun Fortran 8.3
13058 tmp_sharedflag='-G' ;;
13059 esac
13060 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061
13062 if test "x$supports_anon_versioning" = xyes; then
13063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13065 echo "local: *; };" >> $output_objdir/$libname.ver~
13066 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13067 fi
13068
13069 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013070 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013071 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13072 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13073 hardcode_libdir_flag_spec=
13074 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13075 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13076 if test "x$supports_anon_versioning" = xyes; then
13077 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13079 echo "local: *; };" >> $output_objdir/$libname.ver~
13080 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13081 fi
13082 ;;
13083 esac
13084 else
13085 ld_shlibs=no
13086 fi
13087 ;;
13088
13089 netbsd*)
13090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13091 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13092 wlarc=
13093 else
13094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13096 fi
13097 ;;
13098
13099 solaris*)
13100 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13101 ld_shlibs=no
13102 cat <<_LT_EOF 1>&2
13103
13104*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13105*** create shared libraries on Solaris systems. Therefore, libtool
13106*** is disabling shared libraries support. We urge you to upgrade GNU
13107*** binutils to release 2.9.1 or newer. Another option is to modify
13108*** your PATH or compiler configuration so that the native linker is
13109*** used, and then restart.
13110
13111_LT_EOF
13112 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13115 else
13116 ld_shlibs=no
13117 fi
13118 ;;
13119
13120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13121 case `$LD -v 2>&1` in
13122 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13123 ld_shlibs=no
13124 cat <<_LT_EOF 1>&2
13125
13126*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13127*** reliably create shared libraries on SCO systems. Therefore, libtool
13128*** is disabling shared libraries support. We urge you to upgrade GNU
13129*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13130*** your PATH or compiler configuration so that the native linker is
13131*** used, and then restart.
13132
13133_LT_EOF
13134 ;;
13135 *)
13136 # For security reasons, it is highly recommended that you always
13137 # use absolute paths for naming shared libraries, and exclude the
13138 # DT_RUNPATH tag from executables and libraries. But doing so
13139 # requires that you compile everything twice, which is a pain.
13140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13144 else
13145 ld_shlibs=no
13146 fi
13147 ;;
13148 esac
13149 ;;
13150
13151 sunos4*)
13152 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13153 wlarc=
13154 hardcode_direct=yes
13155 hardcode_shlibpath_var=no
13156 ;;
13157
13158 *)
13159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13162 else
13163 ld_shlibs=no
13164 fi
13165 ;;
13166 esac
13167
13168 if test "$ld_shlibs" = no; then
13169 runpath_var=
13170 hardcode_libdir_flag_spec=
13171 export_dynamic_flag_spec=
13172 whole_archive_flag_spec=
13173 fi
13174 else
13175 # PORTME fill in a description of your system's linker (not GNU ld)
13176 case $host_os in
13177 aix3*)
13178 allow_undefined_flag=unsupported
13179 always_export_symbols=yes
13180 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'
13181 # Note: this linker hardcodes the directories in LIBPATH if there
13182 # are no directories specified by -L.
13183 hardcode_minus_L=yes
13184 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13185 # Neither direct hardcoding nor static linking is supported with a
13186 # broken collect2.
13187 hardcode_direct=unsupported
13188 fi
13189 ;;
13190
13191 aix[4-9]*)
13192 if test "$host_cpu" = ia64; then
13193 # On IA64, the linker does run time linking by default, so we don't
13194 # have to do anything special.
13195 aix_use_runtimelinking=no
13196 exp_sym_flag='-Bexport'
13197 no_entry_flag=""
13198 else
13199 # If we're using GNU nm, then we don't want the "-C" option.
13200 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13201 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013202 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 +000013203 else
13204 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'
13205 fi
13206 aix_use_runtimelinking=no
13207
13208 # Test if we are trying to use run time linking or normal
13209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13210 # need to do runtime linking.
13211 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13212 for ld_flag in $LDFLAGS; do
13213 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13214 aix_use_runtimelinking=yes
13215 break
13216 fi
13217 done
13218 ;;
13219 esac
13220
13221 exp_sym_flag='-bexport'
13222 no_entry_flag='-bnoentry'
13223 fi
13224
13225 # When large executables or shared objects are built, AIX ld can
13226 # have problems creating the table of contents. If linking a library
13227 # or program results in "error TOC overflow" add -mminimal-toc to
13228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13230
13231 archive_cmds=''
13232 hardcode_direct=yes
13233 hardcode_direct_absolute=yes
13234 hardcode_libdir_separator=':'
13235 link_all_deplibs=yes
13236 file_list_spec='${wl}-f,'
13237
13238 if test "$GCC" = yes; then
13239 case $host_os in aix4.[012]|aix4.[012].*)
13240 # We only want to do this on AIX 4.2 and lower, the check
13241 # below for broken collect2 doesn't work under 4.3+
13242 collect2name=`${CC} -print-prog-name=collect2`
13243 if test -f "$collect2name" &&
13244 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13245 then
13246 # We have reworked collect2
13247 :
13248 else
13249 # We have old collect2
13250 hardcode_direct=unsupported
13251 # It fails to find uninstalled libraries when the uninstalled
13252 # path is not listed in the libpath. Setting hardcode_minus_L
13253 # to unsupported forces relinking
13254 hardcode_minus_L=yes
13255 hardcode_libdir_flag_spec='-L$libdir'
13256 hardcode_libdir_separator=
13257 fi
13258 ;;
13259 esac
13260 shared_flag='-shared'
13261 if test "$aix_use_runtimelinking" = yes; then
13262 shared_flag="$shared_flag "'${wl}-G'
13263 fi
13264 else
13265 # not using gcc
13266 if test "$host_cpu" = ia64; then
13267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13268 # chokes on -Wl,-G. The following line is correct:
13269 shared_flag='-G'
13270 else
13271 if test "$aix_use_runtimelinking" = yes; then
13272 shared_flag='${wl}-G'
13273 else
13274 shared_flag='${wl}-bM:SRE'
13275 fi
13276 fi
13277 fi
13278
13279 export_dynamic_flag_spec='${wl}-bexpall'
13280 # It seems that -bexpall does not export symbols beginning with
13281 # underscore (_), so it is better to generate a list of symbols to export.
13282 always_export_symbols=yes
13283 if test "$aix_use_runtimelinking" = yes; then
13284 # Warning - without using the other runtime loading flags (-brtl),
13285 # -berok will link without error, but may produce a broken library.
13286 allow_undefined_flag='-berok'
13287 # Determine the default libpath from the value encoded in an
13288 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013290/* end confdefs.h. */
13291
13292int
13293main ()
13294{
13295
13296 ;
13297 return 0;
13298}
13299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013301
13302lt_aix_libpath_sed='
13303 /Import File Strings/,/^$/ {
13304 /^0/ {
13305 s/^0 *\(.*\)$/\1/
13306 p
13307 }
13308 }'
13309aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13310# Check for a 64-bit object if we didn't find anything.
13311if test -z "$aix_libpath"; then
13312 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13313fi
cristy3ed852e2009-09-05 21:47:34 +000013314fi
cristy8b350f62009-11-15 23:12:43 +000013315rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013317if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13318
13319 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000013320 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 +000013321 else
13322 if test "$host_cpu" = ia64; then
13323 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13324 allow_undefined_flag="-z nodefs"
13325 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"
13326 else
13327 # Determine the default libpath from the value encoded in an
13328 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013330/* end confdefs.h. */
13331
13332int
13333main ()
13334{
13335
13336 ;
13337 return 0;
13338}
13339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013340if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013341
13342lt_aix_libpath_sed='
13343 /Import File Strings/,/^$/ {
13344 /^0/ {
13345 s/^0 *\(.*\)$/\1/
13346 p
13347 }
13348 }'
13349aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13350# Check for a 64-bit object if we didn't find anything.
13351if test -z "$aix_libpath"; then
13352 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13353fi
cristy3ed852e2009-09-05 21:47:34 +000013354fi
cristy8b350f62009-11-15 23:12:43 +000013355rm -f core conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13358
13359 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13360 # Warning - without using the other run time loading flags,
13361 # -berok will link without error, but may produce a broken library.
13362 no_undefined_flag=' ${wl}-bernotok'
13363 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000013364 # Exported symbols can be pulled into shared objects from archives
13365 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000013366 archive_cmds_need_lc=yes
13367 # This is similar to how AIX traditionally builds its shared libraries.
13368 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'
13369 fi
13370 fi
13371 ;;
13372
13373 amigaos*)
13374 case $host_cpu in
13375 powerpc)
13376 # see comment about AmigaOS4 .so support
13377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13378 archive_expsym_cmds=''
13379 ;;
13380 m68k)
13381 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)'
13382 hardcode_libdir_flag_spec='-L$libdir'
13383 hardcode_minus_L=yes
13384 ;;
13385 esac
13386 ;;
13387
13388 bsdi[45]*)
13389 export_dynamic_flag_spec=-rdynamic
13390 ;;
13391
13392 cygwin* | mingw* | pw32* | cegcc*)
13393 # When not using gcc, we currently assume that we are using
13394 # Microsoft Visual C++.
13395 # hardcode_libdir_flag_spec is actually meaningless, as there is
13396 # no search path for DLLs.
13397 hardcode_libdir_flag_spec=' '
13398 allow_undefined_flag=unsupported
13399 # Tell ltmain to make .lib files, not .a files.
13400 libext=lib
13401 # Tell ltmain to make .dll files, not .so files.
13402 shrext_cmds=".dll"
13403 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000013404 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013405 # The linker will automatically build a .lib file if we build a DLL.
13406 old_archive_from_new_cmds='true'
13407 # FIXME: Should let the user specify the lib program.
13408 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13409 fix_srcfile_path='`cygpath -w "$srcfile"`'
13410 enable_shared_with_static_runtimes=yes
13411 ;;
13412
13413 darwin* | rhapsody*)
13414
13415
13416 archive_cmds_need_lc=no
13417 hardcode_direct=no
13418 hardcode_automatic=yes
13419 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000013420 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000013421 link_all_deplibs=yes
13422 allow_undefined_flag="$_lt_dar_allow_undefined"
13423 case $cc_basename in
13424 ifort*) _lt_dar_can_shared=yes ;;
13425 *) _lt_dar_can_shared=$GCC ;;
13426 esac
13427 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000013428 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000013429 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13430 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13431 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}"
13432 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}"
13433
13434 else
13435 ld_shlibs=no
13436 fi
13437
13438 ;;
13439
13440 dgux*)
13441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13442 hardcode_libdir_flag_spec='-L$libdir'
13443 hardcode_shlibpath_var=no
13444 ;;
13445
13446 freebsd1*)
13447 ld_shlibs=no
13448 ;;
13449
13450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13451 # support. Future versions do this automatically, but an explicit c++rt0.o
13452 # does not break anything, and helps significantly (at the cost of a little
13453 # extra space).
13454 freebsd2.2*)
13455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13456 hardcode_libdir_flag_spec='-R$libdir'
13457 hardcode_direct=yes
13458 hardcode_shlibpath_var=no
13459 ;;
13460
13461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13462 freebsd2*)
13463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13464 hardcode_direct=yes
13465 hardcode_minus_L=yes
13466 hardcode_shlibpath_var=no
13467 ;;
13468
13469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13470 freebsd* | dragonfly*)
13471 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13472 hardcode_libdir_flag_spec='-R$libdir'
13473 hardcode_direct=yes
13474 hardcode_shlibpath_var=no
13475 ;;
13476
13477 hpux9*)
13478 if test "$GCC" = yes; then
13479 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'
13480 else
13481 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'
13482 fi
13483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13484 hardcode_libdir_separator=:
13485 hardcode_direct=yes
13486
13487 # hardcode_minus_L: Not really in the search PATH,
13488 # but as the default location of the library.
13489 hardcode_minus_L=yes
13490 export_dynamic_flag_spec='${wl}-E'
13491 ;;
13492
13493 hpux10*)
cristy18304f92009-11-22 15:48:26 +000013494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13496 else
13497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13498 fi
13499 if test "$with_gnu_ld" = no; then
13500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13501 hardcode_libdir_flag_spec_ld='+b $libdir'
13502 hardcode_libdir_separator=:
13503 hardcode_direct=yes
13504 hardcode_direct_absolute=yes
13505 export_dynamic_flag_spec='${wl}-E'
13506 # hardcode_minus_L: Not really in the search PATH,
13507 # but as the default location of the library.
13508 hardcode_minus_L=yes
13509 fi
13510 ;;
13511
13512 hpux11*)
cristy18304f92009-11-22 15:48:26 +000013513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013514 case $host_cpu in
13515 hppa*64*)
13516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 ;;
13518 ia64*)
13519 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13520 ;;
13521 *)
13522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13523 ;;
13524 esac
13525 else
13526 case $host_cpu in
13527 hppa*64*)
13528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13529 ;;
13530 ia64*)
13531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13532 ;;
13533 *)
cristy18304f92009-11-22 15:48:26 +000013534 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 +000013535 ;;
13536 esac
13537 fi
13538 if test "$with_gnu_ld" = no; then
13539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13540 hardcode_libdir_separator=:
13541
13542 case $host_cpu in
13543 hppa*64*|ia64*)
13544 hardcode_direct=no
13545 hardcode_shlibpath_var=no
13546 ;;
13547 *)
13548 hardcode_direct=yes
13549 hardcode_direct_absolute=yes
13550 export_dynamic_flag_spec='${wl}-E'
13551
13552 # hardcode_minus_L: Not really in the search PATH,
13553 # but as the default location of the library.
13554 hardcode_minus_L=yes
13555 ;;
13556 esac
13557 fi
13558 ;;
13559
13560 irix5* | irix6* | nonstopux*)
13561 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000013562 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 +000013563 # Try to use the -exported_symbol ld option, if it does not
13564 # work, assume that -exports_file does not work either and
13565 # implicitly export all symbols.
13566 save_LDFLAGS="$LDFLAGS"
13567 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013570int foo(void) {}
13571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013572if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000013573 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 +000013574
cristy3ed852e2009-09-05 21:47:34 +000013575fi
cristy8b350f62009-11-15 23:12:43 +000013576rm -f core conftest.err conftest.$ac_objext \
13577 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013578 LDFLAGS="$save_LDFLAGS"
13579 else
cristy18304f92009-11-22 15:48:26 +000013580 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'
13581 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 +000013582 fi
13583 archive_cmds_need_lc='no'
13584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13585 hardcode_libdir_separator=:
13586 inherit_rpath=yes
13587 link_all_deplibs=yes
13588 ;;
13589
13590 netbsd*)
13591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13593 else
13594 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13595 fi
13596 hardcode_libdir_flag_spec='-R$libdir'
13597 hardcode_direct=yes
13598 hardcode_shlibpath_var=no
13599 ;;
13600
13601 newsos6)
13602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13603 hardcode_direct=yes
13604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13605 hardcode_libdir_separator=:
13606 hardcode_shlibpath_var=no
13607 ;;
13608
13609 *nto* | *qnx*)
13610 ;;
13611
13612 openbsd*)
13613 if test -f /usr/libexec/ld.so; then
13614 hardcode_direct=yes
13615 hardcode_shlibpath_var=no
13616 hardcode_direct_absolute=yes
13617 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13619 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13620 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13621 export_dynamic_flag_spec='${wl}-E'
13622 else
13623 case $host_os in
13624 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13626 hardcode_libdir_flag_spec='-R$libdir'
13627 ;;
13628 *)
13629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13631 ;;
13632 esac
13633 fi
13634 else
13635 ld_shlibs=no
13636 fi
13637 ;;
13638
13639 os2*)
13640 hardcode_libdir_flag_spec='-L$libdir'
13641 hardcode_minus_L=yes
13642 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000013643 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 +000013644 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13645 ;;
13646
13647 osf3*)
13648 if test "$GCC" = yes; then
13649 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013650 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 +000013651 else
13652 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013653 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 +000013654 fi
13655 archive_cmds_need_lc='no'
13656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13657 hardcode_libdir_separator=:
13658 ;;
13659
13660 osf4* | osf5*) # as osf3* with the addition of -msym flag
13661 if test "$GCC" = yes; then
13662 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013663 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 +000013664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13665 else
13666 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013667 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 +000013668 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 +000013669 $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 +000013670
13671 # Both c and cxx compiler support -rpath directly
13672 hardcode_libdir_flag_spec='-rpath $libdir'
13673 fi
13674 archive_cmds_need_lc='no'
13675 hardcode_libdir_separator=:
13676 ;;
13677
13678 solaris*)
13679 no_undefined_flag=' -z defs'
13680 if test "$GCC" = yes; then
13681 wlarc='${wl}'
13682 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13684 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13685 else
13686 case `$CC -V 2>&1` in
13687 *"Compilers 5.0"*)
13688 wlarc=''
13689 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13691 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13692 ;;
13693 *)
13694 wlarc='${wl}'
13695 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13696 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13697 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13698 ;;
13699 esac
13700 fi
13701 hardcode_libdir_flag_spec='-R$libdir'
13702 hardcode_shlibpath_var=no
13703 case $host_os in
13704 solaris2.[0-5] | solaris2.[0-5].*) ;;
13705 *)
13706 # The compiler driver will combine and reorder linker options,
13707 # but understands `-z linker_flag'. GCC discards it without `$wl',
13708 # but is careful enough not to reorder.
13709 # Supported since Solaris 2.6 (maybe 2.5.1?)
13710 if test "$GCC" = yes; then
13711 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13712 else
13713 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13714 fi
13715 ;;
13716 esac
13717 link_all_deplibs=yes
13718 ;;
13719
13720 sunos4*)
13721 if test "x$host_vendor" = xsequent; then
13722 # Use $CC to link under sequent, because it throws in some extra .o
13723 # files that make .init and .fini sections work.
13724 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13725 else
13726 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13727 fi
13728 hardcode_libdir_flag_spec='-L$libdir'
13729 hardcode_direct=yes
13730 hardcode_minus_L=yes
13731 hardcode_shlibpath_var=no
13732 ;;
13733
13734 sysv4)
13735 case $host_vendor in
13736 sni)
13737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13738 hardcode_direct=yes # is this really true???
13739 ;;
13740 siemens)
13741 ## LD is ld it makes a PLAMLIB
13742 ## CC just makes a GrossModule.
13743 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13744 reload_cmds='$CC -r -o $output$reload_objs'
13745 hardcode_direct=no
13746 ;;
13747 motorola)
13748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13750 ;;
13751 esac
13752 runpath_var='LD_RUN_PATH'
13753 hardcode_shlibpath_var=no
13754 ;;
13755
13756 sysv4.3*)
13757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13758 hardcode_shlibpath_var=no
13759 export_dynamic_flag_spec='-Bexport'
13760 ;;
13761
13762 sysv4*MP*)
13763 if test -d /usr/nec; then
13764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13765 hardcode_shlibpath_var=no
13766 runpath_var=LD_RUN_PATH
13767 hardcode_runpath_var=yes
13768 ld_shlibs=yes
13769 fi
13770 ;;
13771
13772 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13773 no_undefined_flag='${wl}-z,text'
13774 archive_cmds_need_lc=no
13775 hardcode_shlibpath_var=no
13776 runpath_var='LD_RUN_PATH'
13777
13778 if test "$GCC" = yes; then
13779 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13780 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13781 else
13782 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 fi
13785 ;;
13786
13787 sysv5* | sco3.2v5* | sco5v6*)
13788 # Note: We can NOT use -z defs as we might desire, because we do not
13789 # link with -lc, and that would cause any symbols used from libc to
13790 # always be unresolved, which means just about no library would
13791 # ever link correctly. If we're not using GNU ld we use -z text
13792 # though, which does catch some bad symbols but isn't as heavy-handed
13793 # as -z defs.
13794 no_undefined_flag='${wl}-z,text'
13795 allow_undefined_flag='${wl}-z,nodefs'
13796 archive_cmds_need_lc=no
13797 hardcode_shlibpath_var=no
13798 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13799 hardcode_libdir_separator=':'
13800 link_all_deplibs=yes
13801 export_dynamic_flag_spec='${wl}-Bexport'
13802 runpath_var='LD_RUN_PATH'
13803
13804 if test "$GCC" = yes; then
13805 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13806 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13807 else
13808 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13809 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810 fi
13811 ;;
13812
13813 uts4*)
13814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13815 hardcode_libdir_flag_spec='-L$libdir'
13816 hardcode_shlibpath_var=no
13817 ;;
13818
13819 *)
13820 ld_shlibs=no
13821 ;;
13822 esac
13823
13824 if test x$host_vendor = xsni; then
13825 case $host in
13826 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13827 export_dynamic_flag_spec='${wl}-Blargedynsym'
13828 ;;
13829 esac
13830 fi
13831 fi
13832
cristy8b350f62009-11-15 23:12:43 +000013833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013834$as_echo "$ld_shlibs" >&6; }
13835test "$ld_shlibs" = no && can_build_shared=no
13836
13837with_gnu_ld=$with_gnu_ld
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853#
13854# Do we need to explicitly link libc?
13855#
13856case "x$archive_cmds_need_lc" in
13857x|xyes)
13858 # Assume -lc should be added
13859 archive_cmds_need_lc=yes
13860
13861 if test "$enable_shared" = yes && test "$GCC" = yes; then
13862 case $archive_cmds in
13863 *'~'*)
13864 # FIXME: we may have to deal with multi-command sequences.
13865 ;;
13866 '$CC '*)
13867 # Test whether the compiler implicitly links with -lc since on some
13868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13869 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013871$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013872 $RM conftest*
13873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013874
cristy18304f92009-11-22 15:48:26 +000013875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013876 (eval $ac_compile) 2>&5
13877 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13879 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013880 soname=conftest
13881 lib=conftest
13882 libobjs=conftest.$ac_objext
13883 deplibs=
13884 wl=$lt_prog_compiler_wl
13885 pic_flag=$lt_prog_compiler_pic
13886 compiler_flags=-v
13887 linker_flags=-v
13888 verstring=
13889 output_objdir=.
13890 libname=conftest
13891 lt_save_allow_undefined_flag=$allow_undefined_flag
13892 allow_undefined_flag=
13893 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 +000013894 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13895 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13897 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013898 then
13899 archive_cmds_need_lc=no
13900 else
13901 archive_cmds_need_lc=yes
13902 fi
13903 allow_undefined_flag=$lt_save_allow_undefined_flag
13904 else
13905 cat conftest.err 1>&5
13906 fi
13907 $RM conftest*
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13909$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013910 ;;
13911 esac
13912 fi
13913 ;;
13914esac
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
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
cristy8b350f62009-11-15 23:12:43 +000014072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014073$as_echo_n "checking dynamic linker characteristics... " >&6; }
14074
14075if test "$GCC" = yes; then
14076 case $host_os in
14077 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14078 *) lt_awk_arg="/^libraries:/" ;;
14079 esac
cristy18304f92009-11-22 15:48:26 +000014080 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14081 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014082 # if the path contains ";" then we assume it to be the separator
14083 # otherwise default to the standard path separator (i.e. ":") - it is
14084 # assumed that no part of a normal pathname contains ";" but that should
14085 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014086 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14087 else
14088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14089 fi
cristy3ed852e2009-09-05 21:47:34 +000014090 # Ok, now we have the path, separated by spaces, we can step through it
14091 # and add multilib dir if necessary.
14092 lt_tmp_lt_search_path_spec=
14093 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14094 for lt_sys_path in $lt_search_path_spec; do
14095 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14096 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14097 else
14098 test -d "$lt_sys_path" && \
14099 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14100 fi
14101 done
cristy18304f92009-11-22 15:48:26 +000014102 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014103BEGIN {RS=" "; FS="/|\n";} {
14104 lt_foo="";
14105 lt_count=0;
14106 for (lt_i = NF; lt_i > 0; lt_i--) {
14107 if ($lt_i != "" && $lt_i != ".") {
14108 if ($lt_i == "..") {
14109 lt_count++;
14110 } else {
14111 if (lt_count == 0) {
14112 lt_foo="/" $lt_i lt_foo;
14113 } else {
14114 lt_count--;
14115 }
14116 }
14117 }
14118 }
14119 if (lt_foo != "") { lt_freq[lt_foo]++; }
14120 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14121}'`
cristy18304f92009-11-22 15:48:26 +000014122 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014123else
14124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14125fi
14126library_names_spec=
14127libname_spec='lib$name'
14128soname_spec=
14129shrext_cmds=".so"
14130postinstall_cmds=
14131postuninstall_cmds=
14132finish_cmds=
14133finish_eval=
14134shlibpath_var=
14135shlibpath_overrides_runpath=unknown
14136version_type=none
14137dynamic_linker="$host_os ld.so"
14138sys_lib_dlsearch_path_spec="/lib /usr/lib"
14139need_lib_prefix=unknown
14140hardcode_into_libs=no
14141
14142# when you set need_version to no, make sure it does not cause -set_version
14143# flags to be left without arguments
14144need_version=unknown
14145
14146case $host_os in
14147aix3*)
14148 version_type=linux
14149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14150 shlibpath_var=LIBPATH
14151
14152 # AIX 3 has no versioning support, so we append a major version to the name.
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 ;;
14155
14156aix[4-9]*)
14157 version_type=linux
14158 need_lib_prefix=no
14159 need_version=no
14160 hardcode_into_libs=yes
14161 if test "$host_cpu" = ia64; then
14162 # AIX 5 supports IA64
14163 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 else
14166 # With GCC up to 2.95.x, collect2 would create an import file
14167 # for dependence libraries. The import file would start with
14168 # the line `#! .'. This would cause the generated library to
14169 # depend on `.', always an invalid library. This was fixed in
14170 # development snapshots of GCC prior to 3.0.
14171 case $host_os in
14172 aix4 | aix4.[01] | aix4.[01].*)
14173 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14174 echo ' yes '
14175 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14176 :
14177 else
14178 can_build_shared=no
14179 fi
14180 ;;
14181 esac
14182 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14183 # soname into executable. Probably we can add versioning support to
14184 # collect2, so additional links can be useful in future.
14185 if test "$aix_use_runtimelinking" = yes; then
14186 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14187 # instead of lib<name>.a to let people know that these are not
14188 # typical AIX shared libraries.
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 else
14191 # We preserve .a as extension for shared libraries through AIX4.2
14192 # and later when we are not doing run time linking.
14193 library_names_spec='${libname}${release}.a $libname.a'
14194 soname_spec='${libname}${release}${shared_ext}$major'
14195 fi
14196 shlibpath_var=LIBPATH
14197 fi
14198 ;;
14199
14200amigaos*)
14201 case $host_cpu in
14202 powerpc)
14203 # Since July 2007 AmigaOS4 officially supports .so libraries.
14204 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14206 ;;
14207 m68k)
14208 library_names_spec='$libname.ixlibrary $libname.a'
14209 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014210 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 +000014211 ;;
14212 esac
14213 ;;
14214
14215beos*)
14216 library_names_spec='${libname}${shared_ext}'
14217 dynamic_linker="$host_os ld.so"
14218 shlibpath_var=LIBRARY_PATH
14219 ;;
14220
14221bsdi[45]*)
14222 version_type=linux
14223 need_version=no
14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14225 soname_spec='${libname}${release}${shared_ext}$major'
14226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14230 # the default ld.so.conf also contains /usr/contrib/lib and
14231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14232 # libtool to hard-code these into programs
14233 ;;
14234
14235cygwin* | mingw* | pw32* | cegcc*)
14236 version_type=windows
14237 shrext_cmds=".dll"
14238 need_version=no
14239 need_lib_prefix=no
14240
14241 case $GCC,$host_os in
14242 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14243 library_names_spec='$libname.dll.a'
14244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14245 postinstall_cmds='base_file=`basename \${file}`~
14246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14247 dldir=$destdir/`dirname \$dlpath`~
14248 test -d \$dldir || mkdir -p \$dldir~
14249 $install_prog $dir/$dlname \$dldir/$dlname~
14250 chmod a+x \$dldir/$dlname~
14251 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14252 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14253 fi'
14254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14255 dlpath=$dir/\$dldll~
14256 $RM \$dlpath'
14257 shlibpath_overrides_runpath=yes
14258
14259 case $host_os in
14260 cygwin*)
14261 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14262 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014263 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014264 ;;
14265 mingw* | cegcc*)
14266 # MinGW DLLs use traditional 'lib' prefix
14267 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014268 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14269 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14270 # It is most probably a Windows format PATH printed by
14271 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14272 # path with ; separators, and with drive letters. We can handle the
14273 # drive letters (cygwin fileutils understands them), so leave them,
14274 # especially as we might pass files found there to a mingw objdump,
14275 # which wouldn't understand a cygwinified path. Ahh.
14276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14277 else
14278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14279 fi
cristy3ed852e2009-09-05 21:47:34 +000014280 ;;
14281 pw32*)
14282 # pw32 DLLs use 'pw' prefix rather than 'lib'
14283 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14284 ;;
14285 esac
14286 ;;
14287
14288 *)
14289 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14290 ;;
14291 esac
14292 dynamic_linker='Win32 ld.exe'
14293 # FIXME: first we should search . and the directory the executable is in
14294 shlibpath_var=PATH
14295 ;;
14296
14297darwin* | rhapsody*)
14298 dynamic_linker="$host_os dyld"
14299 version_type=darwin
14300 need_lib_prefix=no
14301 need_version=no
14302 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14303 soname_spec='${libname}${release}${major}$shared_ext'
14304 shlibpath_overrides_runpath=yes
14305 shlibpath_var=DYLD_LIBRARY_PATH
14306 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14307
14308 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14310 ;;
14311
14312dgux*)
14313 version_type=linux
14314 need_lib_prefix=no
14315 need_version=no
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 ;;
14320
14321freebsd1*)
14322 dynamic_linker=no
14323 ;;
14324
14325freebsd* | dragonfly*)
14326 # DragonFly does not have aout. When/if they implement a new
14327 # versioning mechanism, adjust this.
14328 if test -x /usr/bin/objformat; then
14329 objformat=`/usr/bin/objformat`
14330 else
14331 case $host_os in
14332 freebsd[123]*) objformat=aout ;;
14333 *) objformat=elf ;;
14334 esac
14335 fi
14336 version_type=freebsd-$objformat
14337 case $version_type in
14338 freebsd-elf*)
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14340 need_version=no
14341 need_lib_prefix=no
14342 ;;
14343 freebsd-*)
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14345 need_version=yes
14346 ;;
14347 esac
14348 shlibpath_var=LD_LIBRARY_PATH
14349 case $host_os in
14350 freebsd2*)
14351 shlibpath_overrides_runpath=yes
14352 ;;
14353 freebsd3.[01]* | freebsdelf3.[01]*)
14354 shlibpath_overrides_runpath=yes
14355 hardcode_into_libs=yes
14356 ;;
14357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14359 shlibpath_overrides_runpath=no
14360 hardcode_into_libs=yes
14361 ;;
14362 *) # from 4.6 on, and DragonFly
14363 shlibpath_overrides_runpath=yes
14364 hardcode_into_libs=yes
14365 ;;
14366 esac
14367 ;;
14368
14369gnu*)
14370 version_type=linux
14371 need_lib_prefix=no
14372 need_version=no
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 hardcode_into_libs=yes
14377 ;;
14378
14379hpux9* | hpux10* | hpux11*)
14380 # Give a soname corresponding to the major version so that dld.sl refuses to
14381 # link against other versions.
14382 version_type=sunos
14383 need_lib_prefix=no
14384 need_version=no
14385 case $host_cpu in
14386 ia64*)
14387 shrext_cmds='.so'
14388 hardcode_into_libs=yes
14389 dynamic_linker="$host_os dld.so"
14390 shlibpath_var=LD_LIBRARY_PATH
14391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14394 if test "X$HPUX_IA64_MODE" = X32; then
14395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14396 else
14397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14398 fi
14399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14400 ;;
14401 hppa*64*)
14402 shrext_cmds='.sl'
14403 hardcode_into_libs=yes
14404 dynamic_linker="$host_os dld.sl"
14405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408 soname_spec='${libname}${release}${shared_ext}$major'
14409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14411 ;;
14412 *)
14413 shrext_cmds='.sl'
14414 dynamic_linker="$host_os dld.sl"
14415 shlibpath_var=SHLIB_PATH
14416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418 soname_spec='${libname}${release}${shared_ext}$major'
14419 ;;
14420 esac
cristy18304f92009-11-22 15:48:26 +000014421 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000014422 postinstall_cmds='chmod 555 $lib'
14423 ;;
14424
14425interix[3-9]*)
14426 version_type=linux
14427 need_lib_prefix=no
14428 need_version=no
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=no
14434 hardcode_into_libs=yes
14435 ;;
14436
14437irix5* | irix6* | nonstopux*)
14438 case $host_os in
14439 nonstopux*) version_type=nonstopux ;;
14440 *)
14441 if test "$lt_cv_prog_gnu_ld" = yes; then
14442 version_type=linux
14443 else
14444 version_type=irix
14445 fi ;;
14446 esac
14447 need_lib_prefix=no
14448 need_version=no
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14451 case $host_os in
14452 irix5* | nonstopux*)
14453 libsuff= shlibsuff=
14454 ;;
14455 *)
14456 case $LD in # libtool.m4 will add one of these switches to LD
14457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14458 libsuff= shlibsuff= libmagic=32-bit;;
14459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14460 libsuff=32 shlibsuff=N32 libmagic=N32;;
14461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14463 *) libsuff= shlibsuff= libmagic=never-match;;
14464 esac
14465 ;;
14466 esac
14467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14468 shlibpath_overrides_runpath=no
14469 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14470 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14471 hardcode_into_libs=yes
14472 ;;
14473
14474# No shared lib support for Linux oldld, aout, or coff.
14475linux*oldld* | linux*aout* | linux*coff*)
14476 dynamic_linker=no
14477 ;;
14478
14479# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000014480linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014481 version_type=linux
14482 need_lib_prefix=no
14483 need_version=no
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 shlibpath_overrides_runpath=no
14489 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000014490 save_LDFLAGS=$LDFLAGS
14491 save_libdir=$libdir
14492 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14493 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014495/* end confdefs.h. */
14496
14497int
14498main ()
14499{
14500
14501 ;
14502 return 0;
14503}
14504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014505if ac_fn_c_try_link "$LINENO"; then :
14506 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000014507 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014508fi
cristy3ed852e2009-09-05 21:47:34 +000014509fi
cristy8b350f62009-11-15 23:12:43 +000014510rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000014512 LDFLAGS=$save_LDFLAGS
14513 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000014514
14515 # This implies no fast_install, which is unacceptable.
14516 # Some rework will be needed to allow for fast_install
14517 # before this can be enabled.
14518 hardcode_into_libs=yes
14519
cristy679ed8e2009-12-05 02:37:41 +000014520 # Add ABI-specific directories to the system library path.
14521 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14522
cristy3ed852e2009-09-05 21:47:34 +000014523 # Append ld.so.conf contents to the search path
14524 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000014525 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 +000014526 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000014527 fi
14528
14529 # We used to test for /lib/ld.so.1 and disable shared libraries on
14530 # powerpc, because MkLinux only supported shared libraries with the
14531 # GNU dynamic linker. Since this was broken with cross compilers,
14532 # most powerpc-linux boxes support dynamic linking these days and
14533 # people can always --disable-shared, the test was removed, and we
14534 # assume the GNU/Linux dynamic linker is in use.
14535 dynamic_linker='GNU/Linux ld.so'
14536 ;;
14537
14538netbsd*)
14539 version_type=sunos
14540 need_lib_prefix=no
14541 need_version=no
14542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14545 dynamic_linker='NetBSD (a.out) ld.so'
14546 else
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 dynamic_linker='NetBSD ld.elf_so'
14550 fi
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553 hardcode_into_libs=yes
14554 ;;
14555
14556newsos6)
14557 version_type=linux
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=yes
14561 ;;
14562
14563*nto* | *qnx*)
14564 version_type=qnx
14565 need_lib_prefix=no
14566 need_version=no
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 soname_spec='${libname}${release}${shared_ext}$major'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 shlibpath_overrides_runpath=no
14571 hardcode_into_libs=yes
14572 dynamic_linker='ldqnx.so'
14573 ;;
14574
14575openbsd*)
14576 version_type=sunos
14577 sys_lib_dlsearch_path_spec="/usr/lib"
14578 need_lib_prefix=no
14579 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14580 case $host_os in
14581 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14582 *) need_version=no ;;
14583 esac
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14588 case $host_os in
14589 openbsd2.[89] | openbsd2.[89].*)
14590 shlibpath_overrides_runpath=no
14591 ;;
14592 *)
14593 shlibpath_overrides_runpath=yes
14594 ;;
14595 esac
14596 else
14597 shlibpath_overrides_runpath=yes
14598 fi
14599 ;;
14600
14601os2*)
14602 libname_spec='$name'
14603 shrext_cmds=".dll"
14604 need_lib_prefix=no
14605 library_names_spec='$libname${shared_ext} $libname.a'
14606 dynamic_linker='OS/2 ld.exe'
14607 shlibpath_var=LIBPATH
14608 ;;
14609
14610osf3* | osf4* | osf5*)
14611 version_type=osf
14612 need_lib_prefix=no
14613 need_version=no
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14618 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14619 ;;
14620
14621rdos*)
14622 dynamic_linker=no
14623 ;;
14624
14625solaris*)
14626 version_type=linux
14627 need_lib_prefix=no
14628 need_version=no
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 shlibpath_overrides_runpath=yes
14633 hardcode_into_libs=yes
14634 # ldd complains unless libraries are executable
14635 postinstall_cmds='chmod +x $lib'
14636 ;;
14637
14638sunos4*)
14639 version_type=sunos
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14641 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 shlibpath_overrides_runpath=yes
14644 if test "$with_gnu_ld" = yes; then
14645 need_lib_prefix=no
14646 fi
14647 need_version=yes
14648 ;;
14649
14650sysv4 | sysv4.3*)
14651 version_type=linux
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 case $host_vendor in
14656 sni)
14657 shlibpath_overrides_runpath=no
14658 need_lib_prefix=no
14659 runpath_var=LD_RUN_PATH
14660 ;;
14661 siemens)
14662 need_lib_prefix=no
14663 ;;
14664 motorola)
14665 need_lib_prefix=no
14666 need_version=no
14667 shlibpath_overrides_runpath=no
14668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14669 ;;
14670 esac
14671 ;;
14672
14673sysv4*MP*)
14674 if test -d /usr/nec ;then
14675 version_type=linux
14676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14677 soname_spec='$libname${shared_ext}.$major'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 fi
14680 ;;
14681
14682sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14683 version_type=freebsd-elf
14684 need_lib_prefix=no
14685 need_version=no
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14687 soname_spec='${libname}${release}${shared_ext}$major'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes
14690 hardcode_into_libs=yes
14691 if test "$with_gnu_ld" = yes; then
14692 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14693 else
14694 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14695 case $host_os in
14696 sco3.2v5*)
14697 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14698 ;;
14699 esac
14700 fi
14701 sys_lib_dlsearch_path_spec='/usr/lib'
14702 ;;
14703
14704tpf*)
14705 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14706 version_type=linux
14707 need_lib_prefix=no
14708 need_version=no
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 shlibpath_var=LD_LIBRARY_PATH
14711 shlibpath_overrides_runpath=no
14712 hardcode_into_libs=yes
14713 ;;
14714
14715uts4*)
14716 version_type=linux
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 ;;
14721
14722*)
14723 dynamic_linker=no
14724 ;;
14725esac
cristy8b350f62009-11-15 23:12:43 +000014726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014727$as_echo "$dynamic_linker" >&6; }
14728test "$dynamic_linker" = no && can_build_shared=no
14729
14730variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14731if test "$GCC" = yes; then
14732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14733fi
14734
14735if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14736 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14737fi
14738if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14739 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14740fi
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
cristy8b350f62009-11-15 23:12:43 +000014828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014829$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14830hardcode_action=
14831if test -n "$hardcode_libdir_flag_spec" ||
14832 test -n "$runpath_var" ||
14833 test "X$hardcode_automatic" = "Xyes" ; then
14834
14835 # We can hardcode non-existent directories.
14836 if test "$hardcode_direct" != no &&
14837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14838 # have to relink, otherwise we might link with an installed library
14839 # when we should be linking with a yet-to-be-installed one
14840 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14841 test "$hardcode_minus_L" != no; then
14842 # Linking always hardcodes the temporary library directory.
14843 hardcode_action=relink
14844 else
14845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14846 hardcode_action=immediate
14847 fi
14848else
14849 # We cannot hardcode anything, or else we can only hardcode existing
14850 # directories.
14851 hardcode_action=unsupported
14852fi
cristy8b350f62009-11-15 23:12:43 +000014853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014854$as_echo "$hardcode_action" >&6; }
14855
14856if test "$hardcode_action" = relink ||
14857 test "$inherit_rpath" = yes; then
14858 # Fast installation is not supported
14859 enable_fast_install=no
14860elif test "$shlibpath_overrides_runpath" = yes ||
14861 test "$enable_shared" = no; then
14862 # Fast installation is not necessary
14863 enable_fast_install=needless
14864fi
14865
14866
14867
14868
14869
14870
14871 if test "x$enable_dlopen" != xyes; then
14872 enable_dlopen=unknown
14873 enable_dlopen_self=unknown
14874 enable_dlopen_self_static=unknown
14875else
14876 lt_cv_dlopen=no
14877 lt_cv_dlopen_libs=
14878
14879 case $host_os in
14880 beos*)
14881 lt_cv_dlopen="load_add_on"
14882 lt_cv_dlopen_libs=
14883 lt_cv_dlopen_self=yes
14884 ;;
14885
14886 mingw* | pw32* | cegcc*)
14887 lt_cv_dlopen="LoadLibrary"
14888 lt_cv_dlopen_libs=
14889 ;;
14890
14891 cygwin*)
14892 lt_cv_dlopen="dlopen"
14893 lt_cv_dlopen_libs=
14894 ;;
14895
14896 darwin*)
14897 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014899$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014900if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014901 $as_echo_n "(cached) " >&6
14902else
14903 ac_check_lib_save_LIBS=$LIBS
14904LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014906/* end confdefs.h. */
14907
14908/* Override any GCC internal prototype to avoid an error.
14909 Use char because int might match the return type of a GCC
14910 builtin and then its argument prototype would still apply. */
14911#ifdef __cplusplus
14912extern "C"
14913#endif
14914char dlopen ();
14915int
14916main ()
14917{
14918return dlopen ();
14919 ;
14920 return 0;
14921}
14922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014923if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014924 ac_cv_lib_dl_dlopen=yes
14925else
cristy8b350f62009-11-15 23:12:43 +000014926 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014927fi
cristy8b350f62009-11-15 23:12:43 +000014928rm -f core conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014930LIBS=$ac_check_lib_save_LIBS
14931fi
cristy8b350f62009-11-15 23:12:43 +000014932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014933$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014934if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14936else
14937
14938 lt_cv_dlopen="dyld"
14939 lt_cv_dlopen_libs=
14940 lt_cv_dlopen_self=yes
14941
14942fi
14943
14944 ;;
14945
14946 *)
cristy8b350f62009-11-15 23:12:43 +000014947 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14948if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014949 lt_cv_dlopen="shl_load"
14950else
cristy8b350f62009-11-15 23:12:43 +000014951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014952$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014953if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014954 $as_echo_n "(cached) " >&6
14955else
14956 ac_check_lib_save_LIBS=$LIBS
14957LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014959/* end confdefs.h. */
14960
14961/* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14964#ifdef __cplusplus
14965extern "C"
14966#endif
14967char shl_load ();
14968int
14969main ()
14970{
14971return shl_load ();
14972 ;
14973 return 0;
14974}
14975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014976if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014977 ac_cv_lib_dld_shl_load=yes
14978else
cristy8b350f62009-11-15 23:12:43 +000014979 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014980fi
cristy8b350f62009-11-15 23:12:43 +000014981rm -f core conftest.err conftest.$ac_objext \
14982 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014983LIBS=$ac_check_lib_save_LIBS
14984fi
cristy8b350f62009-11-15 23:12:43 +000014985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014986$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014987if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014988 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14989else
cristy8b350f62009-11-15 23:12:43 +000014990 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14991if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014992 lt_cv_dlopen="dlopen"
14993else
cristy8b350f62009-11-15 23:12:43 +000014994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014995$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014996if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014997 $as_echo_n "(cached) " >&6
14998else
14999 ac_check_lib_save_LIBS=$LIBS
15000LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015002/* end confdefs.h. */
15003
15004/* Override any GCC internal prototype to avoid an error.
15005 Use char because int might match the return type of a GCC
15006 builtin and then its argument prototype would still apply. */
15007#ifdef __cplusplus
15008extern "C"
15009#endif
15010char dlopen ();
15011int
15012main ()
15013{
15014return dlopen ();
15015 ;
15016 return 0;
15017}
15018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015019if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015020 ac_cv_lib_dl_dlopen=yes
15021else
cristy8b350f62009-11-15 23:12:43 +000015022 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015023fi
cristy8b350f62009-11-15 23:12:43 +000015024rm -f core conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015026LIBS=$ac_check_lib_save_LIBS
15027fi
cristy8b350f62009-11-15 23:12:43 +000015028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015029$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015030if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15032else
cristy8b350f62009-11-15 23:12:43 +000015033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015034$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015035if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015036 $as_echo_n "(cached) " >&6
15037else
15038 ac_check_lib_save_LIBS=$LIBS
15039LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015041/* end confdefs.h. */
15042
15043/* Override any GCC internal prototype to avoid an error.
15044 Use char because int might match the return type of a GCC
15045 builtin and then its argument prototype would still apply. */
15046#ifdef __cplusplus
15047extern "C"
15048#endif
15049char dlopen ();
15050int
15051main ()
15052{
15053return dlopen ();
15054 ;
15055 return 0;
15056}
15057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015058if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015059 ac_cv_lib_svld_dlopen=yes
15060else
cristy8b350f62009-11-15 23:12:43 +000015061 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015062fi
cristy8b350f62009-11-15 23:12:43 +000015063rm -f core conftest.err conftest.$ac_objext \
15064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015065LIBS=$ac_check_lib_save_LIBS
15066fi
cristy8b350f62009-11-15 23:12:43 +000015067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015068$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015069if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15071else
cristy8b350f62009-11-15 23:12:43 +000015072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015073$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015074if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015075 $as_echo_n "(cached) " >&6
15076else
15077 ac_check_lib_save_LIBS=$LIBS
15078LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015080/* end confdefs.h. */
15081
15082/* Override any GCC internal prototype to avoid an error.
15083 Use char because int might match the return type of a GCC
15084 builtin and then its argument prototype would still apply. */
15085#ifdef __cplusplus
15086extern "C"
15087#endif
15088char dld_link ();
15089int
15090main ()
15091{
15092return dld_link ();
15093 ;
15094 return 0;
15095}
15096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015097if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015098 ac_cv_lib_dld_dld_link=yes
15099else
cristy8b350f62009-11-15 23:12:43 +000015100 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015101fi
cristy8b350f62009-11-15 23:12:43 +000015102rm -f core conftest.err conftest.$ac_objext \
15103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015104LIBS=$ac_check_lib_save_LIBS
15105fi
cristy8b350f62009-11-15 23:12:43 +000015106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015107$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015108if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015109 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15110fi
15111
15112
15113fi
15114
15115
15116fi
15117
15118
15119fi
15120
15121
15122fi
15123
15124
15125fi
15126
15127 ;;
15128 esac
15129
15130 if test "x$lt_cv_dlopen" != xno; then
15131 enable_dlopen=yes
15132 else
15133 enable_dlopen=no
15134 fi
15135
15136 case $lt_cv_dlopen in
15137 dlopen)
15138 save_CPPFLAGS="$CPPFLAGS"
15139 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15140
15141 save_LDFLAGS="$LDFLAGS"
15142 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15143
15144 save_LIBS="$LIBS"
15145 LIBS="$lt_cv_dlopen_libs $LIBS"
15146
cristy8b350f62009-11-15 23:12:43 +000015147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015148$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015149if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015150 $as_echo_n "(cached) " >&6
15151else
15152 if test "$cross_compiling" = yes; then :
15153 lt_cv_dlopen_self=cross
15154else
15155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15156 lt_status=$lt_dlunknown
15157 cat > conftest.$ac_ext <<_LT_EOF
cristya0b81c32010-01-22 02:54:33 +000015158#line 15158 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015159#include "confdefs.h"
15160
15161#if HAVE_DLFCN_H
15162#include <dlfcn.h>
15163#endif
15164
15165#include <stdio.h>
15166
15167#ifdef RTLD_GLOBAL
15168# define LT_DLGLOBAL RTLD_GLOBAL
15169#else
15170# ifdef DL_GLOBAL
15171# define LT_DLGLOBAL DL_GLOBAL
15172# else
15173# define LT_DLGLOBAL 0
15174# endif
15175#endif
15176
15177/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15178 find out it does not work in some platform. */
15179#ifndef LT_DLLAZY_OR_NOW
15180# ifdef RTLD_LAZY
15181# define LT_DLLAZY_OR_NOW RTLD_LAZY
15182# else
15183# ifdef DL_LAZY
15184# define LT_DLLAZY_OR_NOW DL_LAZY
15185# else
15186# ifdef RTLD_NOW
15187# define LT_DLLAZY_OR_NOW RTLD_NOW
15188# else
15189# ifdef DL_NOW
15190# define LT_DLLAZY_OR_NOW DL_NOW
15191# else
15192# define LT_DLLAZY_OR_NOW 0
15193# endif
15194# endif
15195# endif
15196# endif
15197#endif
15198
cristy18304f92009-11-22 15:48:26 +000015199void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015200int main ()
15201{
15202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15203 int status = $lt_dlunknown;
15204
15205 if (self)
15206 {
15207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015208 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015209 /* dlclose (self); */
15210 }
15211 else
15212 puts (dlerror ());
15213
15214 return status;
15215}
15216_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015218 (eval $ac_link) 2>&5
15219 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015222 (./conftest; exit; ) >&5 2>/dev/null
15223 lt_status=$?
15224 case x$lt_status in
15225 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15226 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15227 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15228 esac
15229 else :
15230 # compilation failed
15231 lt_cv_dlopen_self=no
15232 fi
15233fi
15234rm -fr conftest*
15235
15236
15237fi
cristy8b350f62009-11-15 23:12:43 +000015238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015239$as_echo "$lt_cv_dlopen_self" >&6; }
15240
15241 if test "x$lt_cv_dlopen_self" = xyes; then
15242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015244$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015245if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015246 $as_echo_n "(cached) " >&6
15247else
15248 if test "$cross_compiling" = yes; then :
15249 lt_cv_dlopen_self_static=cross
15250else
15251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15252 lt_status=$lt_dlunknown
15253 cat > conftest.$ac_ext <<_LT_EOF
cristya0b81c32010-01-22 02:54:33 +000015254#line 15254 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015255#include "confdefs.h"
15256
15257#if HAVE_DLFCN_H
15258#include <dlfcn.h>
15259#endif
15260
15261#include <stdio.h>
15262
15263#ifdef RTLD_GLOBAL
15264# define LT_DLGLOBAL RTLD_GLOBAL
15265#else
15266# ifdef DL_GLOBAL
15267# define LT_DLGLOBAL DL_GLOBAL
15268# else
15269# define LT_DLGLOBAL 0
15270# endif
15271#endif
15272
15273/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15274 find out it does not work in some platform. */
15275#ifndef LT_DLLAZY_OR_NOW
15276# ifdef RTLD_LAZY
15277# define LT_DLLAZY_OR_NOW RTLD_LAZY
15278# else
15279# ifdef DL_LAZY
15280# define LT_DLLAZY_OR_NOW DL_LAZY
15281# else
15282# ifdef RTLD_NOW
15283# define LT_DLLAZY_OR_NOW RTLD_NOW
15284# else
15285# ifdef DL_NOW
15286# define LT_DLLAZY_OR_NOW DL_NOW
15287# else
15288# define LT_DLLAZY_OR_NOW 0
15289# endif
15290# endif
15291# endif
15292# endif
15293#endif
15294
cristy18304f92009-11-22 15:48:26 +000015295void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015296int main ()
15297{
15298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15299 int status = $lt_dlunknown;
15300
15301 if (self)
15302 {
15303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015304 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015305 /* dlclose (self); */
15306 }
15307 else
15308 puts (dlerror ());
15309
15310 return status;
15311}
15312_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015314 (eval $ac_link) 2>&5
15315 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15317 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015318 (./conftest; exit; ) >&5 2>/dev/null
15319 lt_status=$?
15320 case x$lt_status in
15321 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15322 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15323 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15324 esac
15325 else :
15326 # compilation failed
15327 lt_cv_dlopen_self_static=no
15328 fi
15329fi
15330rm -fr conftest*
15331
15332
15333fi
cristy8b350f62009-11-15 23:12:43 +000015334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015335$as_echo "$lt_cv_dlopen_self_static" >&6; }
15336 fi
15337
15338 CPPFLAGS="$save_CPPFLAGS"
15339 LDFLAGS="$save_LDFLAGS"
15340 LIBS="$save_LIBS"
15341 ;;
15342 esac
15343
15344 case $lt_cv_dlopen_self in
15345 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15346 *) enable_dlopen_self=unknown ;;
15347 esac
15348
15349 case $lt_cv_dlopen_self_static in
15350 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15351 *) enable_dlopen_self_static=unknown ;;
15352 esac
15353fi
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371striplib=
15372old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015374$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15375if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15376 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15377 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015379$as_echo "yes" >&6; }
15380else
15381# FIXME - insert some real tests, host_os isn't really good enough
15382 case $host_os in
15383 darwin*)
15384 if test -n "$STRIP" ; then
15385 striplib="$STRIP -x"
15386 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015388$as_echo "yes" >&6; }
15389 else
cristy8b350f62009-11-15 23:12:43 +000015390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015391$as_echo "no" >&6; }
15392 fi
15393 ;;
15394 *)
cristy8b350f62009-11-15 23:12:43 +000015395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015396$as_echo "no" >&6; }
15397 ;;
15398 esac
15399fi
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015414$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015416$as_echo "$can_build_shared" >&6; }
15417
cristy8b350f62009-11-15 23:12:43 +000015418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015419$as_echo_n "checking whether to build shared libraries... " >&6; }
15420 test "$can_build_shared" = "no" && enable_shared=no
15421
15422 # On AIX, shared libraries and static libraries use the same namespace, and
15423 # are all built from PIC.
15424 case $host_os in
15425 aix3*)
15426 test "$enable_shared" = yes && enable_static=no
15427 if test -n "$RANLIB"; then
15428 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15429 postinstall_cmds='$RANLIB $lib'
15430 fi
15431 ;;
15432
15433 aix[4-9]*)
15434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15435 test "$enable_shared" = yes && enable_static=no
15436 fi
15437 ;;
15438 esac
cristy8b350f62009-11-15 23:12:43 +000015439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015440$as_echo "$enable_shared" >&6; }
15441
cristy8b350f62009-11-15 23:12:43 +000015442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015443$as_echo_n "checking whether to build static libraries... " >&6; }
15444 # Make sure either enable_shared or enable_static is yes.
15445 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015447$as_echo "$enable_static" >&6; }
15448
15449
15450
15451
15452fi
15453ac_ext=c
15454ac_cpp='$CPP $CPPFLAGS'
15455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15457ac_compiler_gnu=$ac_cv_c_compiler_gnu
15458
15459CC="$lt_save_CC"
15460
15461
15462ac_ext=cpp
15463ac_cpp='$CXXCPP $CPPFLAGS'
15464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15467
15468archive_cmds_need_lc_CXX=no
15469allow_undefined_flag_CXX=
15470always_export_symbols_CXX=no
15471archive_expsym_cmds_CXX=
15472compiler_needs_object_CXX=no
15473export_dynamic_flag_spec_CXX=
15474hardcode_direct_CXX=no
15475hardcode_direct_absolute_CXX=no
15476hardcode_libdir_flag_spec_CXX=
15477hardcode_libdir_flag_spec_ld_CXX=
15478hardcode_libdir_separator_CXX=
15479hardcode_minus_L_CXX=no
15480hardcode_shlibpath_var_CXX=unsupported
15481hardcode_automatic_CXX=no
15482inherit_rpath_CXX=no
15483module_cmds_CXX=
15484module_expsym_cmds_CXX=
15485link_all_deplibs_CXX=unknown
15486old_archive_cmds_CXX=$old_archive_cmds
15487no_undefined_flag_CXX=
15488whole_archive_flag_spec_CXX=
15489enable_shared_with_static_runtimes_CXX=no
15490
15491# Source file extension for C++ test sources.
15492ac_ext=cpp
15493
15494# Object file extension for compiled C++ test sources.
15495objext=o
15496objext_CXX=$objext
15497
15498# No sense in running all these tests if we already determined that
15499# the CXX compiler isn't working. Some variables (like enable_shared)
15500# are currently assumed to apply to all compilers on this platform,
15501# and will be corrupted by setting them based on a non-working compiler.
15502if test "$_lt_caught_CXX_error" != yes; then
15503 # Code to be used in simple compile tests
15504 lt_simple_compile_test_code="int some_variable = 0;"
15505
15506 # Code to be used in simple link tests
15507 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15508
15509 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15510
15511
15512
15513
15514
15515
15516# If no C compiler was specified, use CC.
15517LTCC=${LTCC-"$CC"}
15518
15519# If no C compiler flags were specified, use CFLAGS.
15520LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15521
15522# Allow CC to be a program name with arguments.
15523compiler=$CC
15524
15525
15526 # save warnings/boilerplate of simple test code
15527 ac_outfile=conftest.$ac_objext
15528echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15530_lt_compiler_boilerplate=`cat conftest.err`
15531$RM conftest*
15532
15533 ac_outfile=conftest.$ac_objext
15534echo "$lt_simple_link_test_code" >conftest.$ac_ext
15535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15536_lt_linker_boilerplate=`cat conftest.err`
15537$RM -r conftest*
15538
15539
15540 # Allow CC to be a program name with arguments.
15541 lt_save_CC=$CC
15542 lt_save_LD=$LD
15543 lt_save_GCC=$GCC
15544 GCC=$GXX
15545 lt_save_with_gnu_ld=$with_gnu_ld
15546 lt_save_path_LD=$lt_cv_path_LD
15547 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15548 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15549 else
15550 $as_unset lt_cv_prog_gnu_ld
15551 fi
15552 if test -n "${lt_cv_path_LDCXX+set}"; then
15553 lt_cv_path_LD=$lt_cv_path_LDCXX
15554 else
15555 $as_unset lt_cv_path_LD
15556 fi
15557 test -z "${LDCXX+set}" || LD=$LDCXX
15558 CC=${CXX-"c++"}
15559 compiler=$CC
15560 compiler_CXX=$CC
15561 for cc_temp in $compiler""; do
15562 case $cc_temp in
15563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15565 \-*) ;;
15566 *) break;;
15567 esac
15568done
cristy18304f92009-11-22 15:48:26 +000015569cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000015570
15571
15572 if test -n "$compiler"; then
15573 # We don't want -fno-exception when compiling C++ code, so set the
15574 # no_builtin_flag separately
15575 if test "$GXX" = yes; then
15576 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15577 else
15578 lt_prog_compiler_no_builtin_flag_CXX=
15579 fi
15580
15581 if test "$GXX" = yes; then
15582 # Set up default GNU C++ configuration
15583
15584
15585
15586# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000015587if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015588 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15589else
15590 with_gnu_ld=no
15591fi
15592
15593ac_prog=ld
15594if test "$GCC" = yes; then
15595 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000015596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015597$as_echo_n "checking for ld used by $CC... " >&6; }
15598 case $host in
15599 *-*-mingw*)
15600 # gcc leaves a trailing carriage return which upsets mingw
15601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15602 *)
15603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15604 esac
15605 case $ac_prog in
15606 # Accept absolute paths.
15607 [\\/]* | ?:[\\/]*)
15608 re_direlt='/[^/][^/]*/\.\./'
15609 # Canonicalize the pathname of ld
15610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15613 done
15614 test -z "$LD" && LD="$ac_prog"
15615 ;;
15616 "")
15617 # If it fails, then pretend we aren't using GCC.
15618 ac_prog=ld
15619 ;;
15620 *)
15621 # If it is relative, then search for the first ld in PATH.
15622 with_gnu_ld=unknown
15623 ;;
15624 esac
15625elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000015626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015627$as_echo_n "checking for GNU ld... " >&6; }
15628else
cristy8b350f62009-11-15 23:12:43 +000015629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015630$as_echo_n "checking for non-GNU ld... " >&6; }
15631fi
cristy8b350f62009-11-15 23:12:43 +000015632if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015633 $as_echo_n "(cached) " >&6
15634else
15635 if test -z "$LD"; then
15636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15637 for ac_dir in $PATH; do
15638 IFS="$lt_save_ifs"
15639 test -z "$ac_dir" && ac_dir=.
15640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15641 lt_cv_path_LD="$ac_dir/$ac_prog"
15642 # Check to see if the program is GNU ld. I'd rather use --version,
15643 # but apparently some variants of GNU ld only accept -v.
15644 # Break only if it was the GNU/non-GNU ld that we prefer.
15645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15646 *GNU* | *'with BFD'*)
15647 test "$with_gnu_ld" != no && break
15648 ;;
15649 *)
15650 test "$with_gnu_ld" != yes && break
15651 ;;
15652 esac
15653 fi
15654 done
15655 IFS="$lt_save_ifs"
15656else
15657 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15658fi
15659fi
15660
15661LD="$lt_cv_path_LD"
15662if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000015663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000015664$as_echo "$LD" >&6; }
15665else
cristy8b350f62009-11-15 23:12:43 +000015666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015667$as_echo "no" >&6; }
15668fi
cristy8b350f62009-11-15 23:12:43 +000015669test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015671$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015672if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015673 $as_echo_n "(cached) " >&6
15674else
15675 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15676case `$LD -v 2>&1 </dev/null` in
15677*GNU* | *'with BFD'*)
15678 lt_cv_prog_gnu_ld=yes
15679 ;;
15680*)
15681 lt_cv_prog_gnu_ld=no
15682 ;;
15683esac
15684fi
cristy8b350f62009-11-15 23:12:43 +000015685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015686$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15687with_gnu_ld=$lt_cv_prog_gnu_ld
15688
15689
15690
15691
15692
15693
15694
15695 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15696 # archiving commands below assume that GNU ld is being used.
15697 if test "$with_gnu_ld" = yes; then
15698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15699 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'
15700
15701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15703
15704 # If archive_cmds runs LD, not CC, wlarc should be empty
15705 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15706 # investigate it a little bit more. (MM)
15707 wlarc='${wl}'
15708
15709 # ancient GNU ld didn't support --whole-archive et. al.
15710 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15711 $GREP 'no-whole-archive' > /dev/null; then
15712 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15713 else
15714 whole_archive_flag_spec_CXX=
15715 fi
15716 else
15717 with_gnu_ld=no
15718 wlarc=
15719
15720 # A generic and very simple default shared library creation
15721 # command for GNU C++ for the case where it uses the native
15722 # linker, instead of GNU ld. If possible, this setting should
15723 # overridden to take advantage of the native linker features on
15724 # the platform it is being used on.
15725 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15726 fi
15727
15728 # Commands to make compiler produce verbose output that lists
15729 # what "hidden" libraries, object files and flags are used when
15730 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015732
15733 else
15734 GXX=no
15735 with_gnu_ld=no
15736 wlarc=
15737 fi
15738
15739 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015741$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15742 ld_shlibs_CXX=yes
15743 case $host_os in
15744 aix3*)
15745 # FIXME: insert proper C++ library support
15746 ld_shlibs_CXX=no
15747 ;;
15748 aix[4-9]*)
15749 if test "$host_cpu" = ia64; then
15750 # On IA64, the linker does run time linking by default, so we don't
15751 # have to do anything special.
15752 aix_use_runtimelinking=no
15753 exp_sym_flag='-Bexport'
15754 no_entry_flag=""
15755 else
15756 aix_use_runtimelinking=no
15757
15758 # Test if we are trying to use run time linking or normal
15759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15760 # need to do runtime linking.
15761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15762 for ld_flag in $LDFLAGS; do
15763 case $ld_flag in
15764 *-brtl*)
15765 aix_use_runtimelinking=yes
15766 break
15767 ;;
15768 esac
15769 done
15770 ;;
15771 esac
15772
15773 exp_sym_flag='-bexport'
15774 no_entry_flag='-bnoentry'
15775 fi
15776
15777 # When large executables or shared objects are built, AIX ld can
15778 # have problems creating the table of contents. If linking a library
15779 # or program results in "error TOC overflow" add -mminimal-toc to
15780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15782
15783 archive_cmds_CXX=''
15784 hardcode_direct_CXX=yes
15785 hardcode_direct_absolute_CXX=yes
15786 hardcode_libdir_separator_CXX=':'
15787 link_all_deplibs_CXX=yes
15788 file_list_spec_CXX='${wl}-f,'
15789
15790 if test "$GXX" = yes; then
15791 case $host_os in aix4.[012]|aix4.[012].*)
15792 # We only want to do this on AIX 4.2 and lower, the check
15793 # below for broken collect2 doesn't work under 4.3+
15794 collect2name=`${CC} -print-prog-name=collect2`
15795 if test -f "$collect2name" &&
15796 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15797 then
15798 # We have reworked collect2
15799 :
15800 else
15801 # We have old collect2
15802 hardcode_direct_CXX=unsupported
15803 # It fails to find uninstalled libraries when the uninstalled
15804 # path is not listed in the libpath. Setting hardcode_minus_L
15805 # to unsupported forces relinking
15806 hardcode_minus_L_CXX=yes
15807 hardcode_libdir_flag_spec_CXX='-L$libdir'
15808 hardcode_libdir_separator_CXX=
15809 fi
15810 esac
15811 shared_flag='-shared'
15812 if test "$aix_use_runtimelinking" = yes; then
15813 shared_flag="$shared_flag "'${wl}-G'
15814 fi
15815 else
15816 # not using gcc
15817 if test "$host_cpu" = ia64; then
15818 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15819 # chokes on -Wl,-G. The following line is correct:
15820 shared_flag='-G'
15821 else
15822 if test "$aix_use_runtimelinking" = yes; then
15823 shared_flag='${wl}-G'
15824 else
15825 shared_flag='${wl}-bM:SRE'
15826 fi
15827 fi
15828 fi
15829
15830 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15831 # It seems that -bexpall does not export symbols beginning with
15832 # underscore (_), so it is better to generate a list of symbols to
15833 # export.
15834 always_export_symbols_CXX=yes
15835 if test "$aix_use_runtimelinking" = yes; then
15836 # Warning - without using the other runtime loading flags (-brtl),
15837 # -berok will link without error, but may produce a broken library.
15838 allow_undefined_flag_CXX='-berok'
15839 # Determine the default libpath from the value encoded in an empty
15840 # executable.
cristy8b350f62009-11-15 23:12:43 +000015841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015842/* end confdefs.h. */
15843
15844int
15845main ()
15846{
15847
15848 ;
15849 return 0;
15850}
15851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015852if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015853
15854lt_aix_libpath_sed='
15855 /Import File Strings/,/^$/ {
15856 /^0/ {
15857 s/^0 *\(.*\)$/\1/
15858 p
15859 }
15860 }'
15861aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15862# Check for a 64-bit object if we didn't find anything.
15863if test -z "$aix_libpath"; then
15864 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15865fi
cristy3ed852e2009-09-05 21:47:34 +000015866fi
cristy8b350f62009-11-15 23:12:43 +000015867rm -f core conftest.err conftest.$ac_objext \
15868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015869if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15870
15871 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15872
cristy18304f92009-11-22 15:48:26 +000015873 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 +000015874 else
15875 if test "$host_cpu" = ia64; then
15876 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15877 allow_undefined_flag_CXX="-z nodefs"
15878 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"
15879 else
15880 # Determine the default libpath from the value encoded in an
15881 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015883/* end confdefs.h. */
15884
15885int
15886main ()
15887{
15888
15889 ;
15890 return 0;
15891}
15892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015893if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015894
15895lt_aix_libpath_sed='
15896 /Import File Strings/,/^$/ {
15897 /^0/ {
15898 s/^0 *\(.*\)$/\1/
15899 p
15900 }
15901 }'
15902aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15903# Check for a 64-bit object if we didn't find anything.
15904if test -z "$aix_libpath"; then
15905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15906fi
cristy3ed852e2009-09-05 21:47:34 +000015907fi
cristy8b350f62009-11-15 23:12:43 +000015908rm -f core conftest.err conftest.$ac_objext \
15909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015910if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15911
15912 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15913 # Warning - without using the other run time loading flags,
15914 # -berok will link without error, but may produce a broken library.
15915 no_undefined_flag_CXX=' ${wl}-bernotok'
15916 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015917 # Exported symbols can be pulled into shared objects from archives
15918 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015919 archive_cmds_need_lc_CXX=yes
15920 # This is similar to how AIX traditionally builds its shared
15921 # libraries.
15922 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'
15923 fi
15924 fi
15925 ;;
15926
15927 beos*)
15928 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15929 allow_undefined_flag_CXX=unsupported
15930 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15931 # support --undefined. This deserves some investigation. FIXME
15932 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15933 else
15934 ld_shlibs_CXX=no
15935 fi
15936 ;;
15937
15938 chorus*)
15939 case $cc_basename in
15940 *)
15941 # FIXME: insert proper C++ library support
15942 ld_shlibs_CXX=no
15943 ;;
15944 esac
15945 ;;
15946
15947 cygwin* | mingw* | pw32* | cegcc*)
15948 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15949 # as there is no search path for DLLs.
15950 hardcode_libdir_flag_spec_CXX='-L$libdir'
15951 allow_undefined_flag_CXX=unsupported
15952 always_export_symbols_CXX=no
15953 enable_shared_with_static_runtimes_CXX=yes
15954
15955 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15956 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'
15957 # If the export-symbols file already is a .def file (1st line
15958 # is EXPORTS), use it as is; otherwise, prepend...
15959 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15960 cp $export_symbols $output_objdir/$soname.def;
15961 else
15962 echo EXPORTS > $output_objdir/$soname.def;
15963 cat $export_symbols >> $output_objdir/$soname.def;
15964 fi~
15965 $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'
15966 else
15967 ld_shlibs_CXX=no
15968 fi
15969 ;;
15970 darwin* | rhapsody*)
15971
15972
15973 archive_cmds_need_lc_CXX=no
15974 hardcode_direct_CXX=no
15975 hardcode_automatic_CXX=yes
15976 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015977 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015978 link_all_deplibs_CXX=yes
15979 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15980 case $cc_basename in
15981 ifort*) _lt_dar_can_shared=yes ;;
15982 *) _lt_dar_can_shared=$GCC ;;
15983 esac
15984 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015985 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015986 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}"
15987 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15988 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}"
15989 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}"
15990 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15991 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}"
15992 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}"
15993 fi
15994
15995 else
15996 ld_shlibs_CXX=no
15997 fi
15998
15999 ;;
16000
16001 dgux*)
16002 case $cc_basename in
16003 ec++*)
16004 # FIXME: insert proper C++ library support
16005 ld_shlibs_CXX=no
16006 ;;
16007 ghcx*)
16008 # Green Hills C++ Compiler
16009 # FIXME: insert proper C++ library support
16010 ld_shlibs_CXX=no
16011 ;;
16012 *)
16013 # FIXME: insert proper C++ library support
16014 ld_shlibs_CXX=no
16015 ;;
16016 esac
16017 ;;
16018
16019 freebsd[12]*)
16020 # C++ shared libraries reported to be fairly broken before
16021 # switch to ELF
16022 ld_shlibs_CXX=no
16023 ;;
16024
16025 freebsd-elf*)
16026 archive_cmds_need_lc_CXX=no
16027 ;;
16028
16029 freebsd* | dragonfly*)
16030 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16031 # conventions
16032 ld_shlibs_CXX=yes
16033 ;;
16034
16035 gnu*)
16036 ;;
16037
16038 hpux9*)
16039 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16040 hardcode_libdir_separator_CXX=:
16041 export_dynamic_flag_spec_CXX='${wl}-E'
16042 hardcode_direct_CXX=yes
16043 hardcode_minus_L_CXX=yes # Not in the search PATH,
16044 # but as the default
16045 # location of the library.
16046
16047 case $cc_basename in
16048 CC*)
16049 # FIXME: insert proper C++ library support
16050 ld_shlibs_CXX=no
16051 ;;
16052 aCC*)
16053 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'
16054 # Commands to make compiler produce verbose output that lists
16055 # what "hidden" libraries, object files and flags are used when
16056 # linking a shared library.
16057 #
16058 # There doesn't appear to be a way to prevent this compiler from
16059 # explicitly linking system object files so we need to strip them
16060 # from the output so that they don't get included in the library
16061 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016062 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 +000016063 ;;
16064 *)
16065 if test "$GXX" = yes; then
16066 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'
16067 else
16068 # FIXME: insert proper C++ library support
16069 ld_shlibs_CXX=no
16070 fi
16071 ;;
16072 esac
16073 ;;
16074
16075 hpux10*|hpux11*)
16076 if test $with_gnu_ld = no; then
16077 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16078 hardcode_libdir_separator_CXX=:
16079
16080 case $host_cpu in
16081 hppa*64*|ia64*)
16082 ;;
16083 *)
16084 export_dynamic_flag_spec_CXX='${wl}-E'
16085 ;;
16086 esac
16087 fi
16088 case $host_cpu in
16089 hppa*64*|ia64*)
16090 hardcode_direct_CXX=no
16091 hardcode_shlibpath_var_CXX=no
16092 ;;
16093 *)
16094 hardcode_direct_CXX=yes
16095 hardcode_direct_absolute_CXX=yes
16096 hardcode_minus_L_CXX=yes # Not in the search PATH,
16097 # but as the default
16098 # location of the library.
16099 ;;
16100 esac
16101
16102 case $cc_basename in
16103 CC*)
16104 # FIXME: insert proper C++ library support
16105 ld_shlibs_CXX=no
16106 ;;
16107 aCC*)
16108 case $host_cpu in
16109 hppa*64*)
16110 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16111 ;;
16112 ia64*)
16113 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16114 ;;
16115 *)
16116 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16117 ;;
16118 esac
16119 # Commands to make compiler produce verbose output that lists
16120 # what "hidden" libraries, object files and flags are used when
16121 # linking a shared library.
16122 #
16123 # There doesn't appear to be a way to prevent this compiler from
16124 # explicitly linking system object files so we need to strip them
16125 # from the output so that they don't get included in the library
16126 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016127 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 +000016128 ;;
16129 *)
16130 if test "$GXX" = yes; then
16131 if test $with_gnu_ld = no; then
16132 case $host_cpu in
16133 hppa*64*)
16134 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16135 ;;
16136 ia64*)
16137 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16138 ;;
16139 *)
16140 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'
16141 ;;
16142 esac
16143 fi
16144 else
16145 # FIXME: insert proper C++ library support
16146 ld_shlibs_CXX=no
16147 fi
16148 ;;
16149 esac
16150 ;;
16151
16152 interix[3-9]*)
16153 hardcode_direct_CXX=no
16154 hardcode_shlibpath_var_CXX=no
16155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16156 export_dynamic_flag_spec_CXX='${wl}-E'
16157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16158 # Instead, shared libraries are loaded at an image base (0x10000000 by
16159 # default) and relocated if they conflict, which is a slow very memory
16160 # consuming and fragmenting process. To avoid this, we pick a random,
16161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16163 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'
16164 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'
16165 ;;
16166 irix5* | irix6*)
16167 case $cc_basename in
16168 CC*)
16169 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016170 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 +000016171
16172 # Archives containing C++ object files must be created using
16173 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16174 # necessary to make sure instantiated templates are included
16175 # in the archive.
16176 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16177 ;;
16178 *)
16179 if test "$GXX" = yes; then
16180 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016181 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 +000016182 else
cristy18304f92009-11-22 15:48:26 +000016183 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 +000016184 fi
16185 fi
16186 link_all_deplibs_CXX=yes
16187 ;;
16188 esac
16189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16190 hardcode_libdir_separator_CXX=:
16191 inherit_rpath_CXX=yes
16192 ;;
16193
cristy18304f92009-11-22 15:48:26 +000016194 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016195 case $cc_basename in
16196 KCC*)
16197 # Kuck and Associates, Inc. (KAI) C++ Compiler
16198
16199 # KCC will only create a shared library if the output file
16200 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16201 # to its proper name (with version) after linking.
16202 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'
16203 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'
16204 # Commands to make compiler produce verbose output that lists
16205 # what "hidden" libraries, object files and flags are used when
16206 # linking a shared library.
16207 #
16208 # There doesn't appear to be a way to prevent this compiler from
16209 # explicitly linking system object files so we need to strip them
16210 # from the output so that they don't get included in the library
16211 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016212 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 +000016213
16214 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16215 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16216
16217 # Archives containing C++ object files must be created using
16218 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16219 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16220 ;;
16221 icpc* | ecpc* )
16222 # Intel C++
16223 with_gnu_ld=yes
16224 # version 8.0 and above of icpc choke on multiply defined symbols
16225 # if we add $predep_objects and $postdep_objects, however 7.1 and
16226 # earlier do not add the objects themselves.
16227 case `$CC -V 2>&1` in
16228 *"Version 7."*)
16229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16230 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'
16231 ;;
16232 *) # Version 8.0 or newer
16233 tmp_idyn=
16234 case $host_cpu in
16235 ia64*) tmp_idyn=' -i_dynamic';;
16236 esac
16237 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16238 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'
16239 ;;
16240 esac
16241 archive_cmds_need_lc_CXX=no
16242 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16243 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16244 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16245 ;;
16246 pgCC* | pgcpp*)
16247 # Portland Group C++ compiler
16248 case `$CC -V` in
16249 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16250 prelink_cmds_CXX='tpldir=Template.dir~
16251 rm -rf $tpldir~
16252 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16253 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16254 old_archive_cmds_CXX='tpldir=Template.dir~
16255 rm -rf $tpldir~
16256 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16257 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16258 $RANLIB $oldlib'
16259 archive_cmds_CXX='tpldir=Template.dir~
16260 rm -rf $tpldir~
16261 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16262 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16263 archive_expsym_cmds_CXX='tpldir=Template.dir~
16264 rm -rf $tpldir~
16265 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16266 $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'
16267 ;;
16268 *) # Version 6 will use weak symbols
16269 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16270 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'
16271 ;;
16272 esac
16273
16274 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16275 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016276 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 +000016277 ;;
16278 cxx*)
16279 # Compaq C++
16280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16281 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'
16282
16283 runpath_var=LD_RUN_PATH
16284 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16285 hardcode_libdir_separator_CXX=:
16286
16287 # Commands to make compiler produce verbose output that lists
16288 # what "hidden" libraries, object files and flags are used when
16289 # linking a shared library.
16290 #
16291 # There doesn't appear to be a way to prevent this compiler from
16292 # explicitly linking system object files so we need to strip them
16293 # from the output so that they don't get included in the library
16294 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016295 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 +000016296 ;;
cristy18304f92009-11-22 15:48:26 +000016297 xl*)
cristy3ed852e2009-09-05 21:47:34 +000016298 # IBM XL 8.0 on PPC, with GNU ld
16299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16300 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16301 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 if test "x$supports_anon_versioning" = xyes; then
16303 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16305 echo "local: *; };" >> $output_objdir/$libname.ver~
16306 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16307 fi
16308 ;;
16309 *)
16310 case `$CC -V 2>&1 | sed 5q` in
16311 *Sun\ C*)
16312 # Sun C++ 5.9
16313 no_undefined_flag_CXX=' -zdefs'
16314 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16315 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'
16316 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000016317 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 +000016318 compiler_needs_object_CXX=yes
16319
16320 # Not sure whether something based on
16321 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16322 # would be better.
cristy18304f92009-11-22 15:48:26 +000016323 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016324
16325 # Archives containing C++ object files must be created using
16326 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16327 # necessary to make sure instantiated templates are included
16328 # in the archive.
16329 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16330 ;;
16331 esac
16332 ;;
16333 esac
16334 ;;
16335
16336 lynxos*)
16337 # FIXME: insert proper C++ library support
16338 ld_shlibs_CXX=no
16339 ;;
16340
16341 m88k*)
16342 # FIXME: insert proper C++ library support
16343 ld_shlibs_CXX=no
16344 ;;
16345
16346 mvs*)
16347 case $cc_basename in
16348 cxx*)
16349 # FIXME: insert proper C++ library support
16350 ld_shlibs_CXX=no
16351 ;;
16352 *)
16353 # FIXME: insert proper C++ library support
16354 ld_shlibs_CXX=no
16355 ;;
16356 esac
16357 ;;
16358
16359 netbsd*)
16360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16361 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16362 wlarc=
16363 hardcode_libdir_flag_spec_CXX='-R$libdir'
16364 hardcode_direct_CXX=yes
16365 hardcode_shlibpath_var_CXX=no
16366 fi
16367 # Workaround some broken pre-1.5 toolchains
16368 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16369 ;;
16370
16371 *nto* | *qnx*)
16372 ld_shlibs_CXX=yes
16373 ;;
16374
16375 openbsd2*)
16376 # C++ shared libraries are fairly broken
16377 ld_shlibs_CXX=no
16378 ;;
16379
16380 openbsd*)
16381 if test -f /usr/libexec/ld.so; then
16382 hardcode_direct_CXX=yes
16383 hardcode_shlibpath_var_CXX=no
16384 hardcode_direct_absolute_CXX=yes
16385 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16388 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16389 export_dynamic_flag_spec_CXX='${wl}-E'
16390 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16391 fi
cristy18304f92009-11-22 15:48:26 +000016392 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016393 else
16394 ld_shlibs_CXX=no
16395 fi
16396 ;;
16397
16398 osf3* | osf4* | osf5*)
16399 case $cc_basename in
16400 KCC*)
16401 # Kuck and Associates, Inc. (KAI) C++ Compiler
16402
16403 # KCC will only create a shared library if the output file
16404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16405 # to its proper name (with version) after linking.
16406 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'
16407
16408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16409 hardcode_libdir_separator_CXX=:
16410
16411 # Archives containing C++ object files must be created using
16412 # the KAI C++ compiler.
16413 case $host in
16414 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16415 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16416 esac
16417 ;;
16418 RCC*)
16419 # Rational C++ 2.4.1
16420 # FIXME: insert proper C++ library support
16421 ld_shlibs_CXX=no
16422 ;;
16423 cxx*)
16424 case $host in
16425 osf3*)
16426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000016427 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 +000016428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16429 ;;
16430 *)
16431 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000016432 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 +000016433 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16434 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000016435 $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 +000016436 $RM $lib.exp'
16437 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16438 ;;
16439 esac
16440
16441 hardcode_libdir_separator_CXX=:
16442
16443 # Commands to make compiler produce verbose output that lists
16444 # what "hidden" libraries, object files and flags are used when
16445 # linking a shared library.
16446 #
16447 # There doesn't appear to be a way to prevent this compiler from
16448 # explicitly linking system object files so we need to strip them
16449 # from the output so that they don't get included in the library
16450 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016451 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 +000016452 ;;
16453 *)
16454 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16455 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16456 case $host in
16457 osf3*)
cristy18304f92009-11-22 15:48:26 +000016458 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 +000016459 ;;
16460 *)
cristy18304f92009-11-22 15:48:26 +000016461 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 +000016462 ;;
16463 esac
16464
16465 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16466 hardcode_libdir_separator_CXX=:
16467
16468 # Commands to make compiler produce verbose output that lists
16469 # what "hidden" libraries, object files and flags are used when
16470 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016471 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016472
16473 else
16474 # FIXME: insert proper C++ library support
16475 ld_shlibs_CXX=no
16476 fi
16477 ;;
16478 esac
16479 ;;
16480
16481 psos*)
16482 # FIXME: insert proper C++ library support
16483 ld_shlibs_CXX=no
16484 ;;
16485
16486 sunos4*)
16487 case $cc_basename in
16488 CC*)
16489 # Sun C++ 4.x
16490 # FIXME: insert proper C++ library support
16491 ld_shlibs_CXX=no
16492 ;;
16493 lcc*)
16494 # Lucid
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 ;;
16498 *)
16499 # FIXME: insert proper C++ library support
16500 ld_shlibs_CXX=no
16501 ;;
16502 esac
16503 ;;
16504
16505 solaris*)
16506 case $cc_basename in
16507 CC*)
16508 # Sun C++ 4.2, 5.x and Centerline C++
16509 archive_cmds_need_lc_CXX=yes
16510 no_undefined_flag_CXX=' -zdefs'
16511 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16512 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16513 $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'
16514
16515 hardcode_libdir_flag_spec_CXX='-R$libdir'
16516 hardcode_shlibpath_var_CXX=no
16517 case $host_os in
16518 solaris2.[0-5] | solaris2.[0-5].*) ;;
16519 *)
16520 # The compiler driver will combine and reorder linker options,
16521 # but understands `-z linker_flag'.
16522 # Supported since Solaris 2.6 (maybe 2.5.1?)
16523 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16524 ;;
16525 esac
16526 link_all_deplibs_CXX=yes
16527
cristy18304f92009-11-22 15:48:26 +000016528 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016529
16530 # Archives containing C++ object files must be created using
16531 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16532 # necessary to make sure instantiated templates are included
16533 # in the archive.
16534 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16535 ;;
16536 gcx*)
16537 # Green Hills C++ Compiler
16538 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16539
16540 # The C++ compiler must be used to create the archive.
16541 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16542 ;;
16543 *)
16544 # GNU C++ compiler with Solaris linker
16545 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16546 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16547 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16548 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16549 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16550 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16551
16552 # Commands to make compiler produce verbose output that lists
16553 # what "hidden" libraries, object files and flags are used when
16554 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016556 else
16557 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16558 # platform.
16559 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16560 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16561 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16562
16563 # Commands to make compiler produce verbose output that lists
16564 # what "hidden" libraries, object files and flags are used when
16565 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016566 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016567 fi
16568
16569 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16570 case $host_os in
16571 solaris2.[0-5] | solaris2.[0-5].*) ;;
16572 *)
16573 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16574 ;;
16575 esac
16576 fi
16577 ;;
16578 esac
16579 ;;
16580
16581 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16582 no_undefined_flag_CXX='${wl}-z,text'
16583 archive_cmds_need_lc_CXX=no
16584 hardcode_shlibpath_var_CXX=no
16585 runpath_var='LD_RUN_PATH'
16586
16587 case $cc_basename in
16588 CC*)
16589 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 ;;
16592 *)
16593 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16594 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16595 ;;
16596 esac
16597 ;;
16598
16599 sysv5* | sco3.2v5* | sco5v6*)
16600 # Note: We can NOT use -z defs as we might desire, because we do not
16601 # link with -lc, and that would cause any symbols used from libc to
16602 # always be unresolved, which means just about no library would
16603 # ever link correctly. If we're not using GNU ld we use -z text
16604 # though, which does catch some bad symbols but isn't as heavy-handed
16605 # as -z defs.
16606 no_undefined_flag_CXX='${wl}-z,text'
16607 allow_undefined_flag_CXX='${wl}-z,nodefs'
16608 archive_cmds_need_lc_CXX=no
16609 hardcode_shlibpath_var_CXX=no
16610 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16611 hardcode_libdir_separator_CXX=':'
16612 link_all_deplibs_CXX=yes
16613 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16614 runpath_var='LD_RUN_PATH'
16615
16616 case $cc_basename in
16617 CC*)
16618 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16619 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16620 ;;
16621 *)
16622 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16623 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16624 ;;
16625 esac
16626 ;;
16627
16628 tandem*)
16629 case $cc_basename in
16630 NCC*)
16631 # NonStop-UX NCC 3.20
16632 # FIXME: insert proper C++ library support
16633 ld_shlibs_CXX=no
16634 ;;
16635 *)
16636 # FIXME: insert proper C++ library support
16637 ld_shlibs_CXX=no
16638 ;;
16639 esac
16640 ;;
16641
16642 vxworks*)
16643 # FIXME: insert proper C++ library support
16644 ld_shlibs_CXX=no
16645 ;;
16646
16647 *)
16648 # FIXME: insert proper C++ library support
16649 ld_shlibs_CXX=no
16650 ;;
16651 esac
16652
cristy8b350f62009-11-15 23:12:43 +000016653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016654$as_echo "$ld_shlibs_CXX" >&6; }
16655 test "$ld_shlibs_CXX" = no && can_build_shared=no
16656
16657 GCC_CXX="$GXX"
16658 LD_CXX="$LD"
16659
16660 ## CAVEAT EMPTOR:
16661 ## There is no encapsulation within the following macros, do not change
16662 ## the running order or otherwise move them around unless you know exactly
16663 ## what you are doing...
16664 # Dependencies to place before and after the object being linked:
16665predep_objects_CXX=
16666postdep_objects_CXX=
16667predeps_CXX=
16668postdeps_CXX=
16669compiler_lib_search_path_CXX=
16670
16671cat > conftest.$ac_ext <<_LT_EOF
16672class Foo
16673{
16674public:
16675 Foo (void) { a = 0; }
16676private:
16677 int a;
16678};
16679_LT_EOF
16680
cristy8b350f62009-11-15 23:12:43 +000016681if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016682 (eval $ac_compile) 2>&5
16683 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000016686 # Parse the compiler output and extract the necessary
16687 # objects, libraries and library flags.
16688
16689 # Sentinel used to keep track of whether or not we are before
16690 # the conftest object file.
16691 pre_test_object_deps_done=no
16692
16693 for p in `eval "$output_verbose_link_cmd"`; do
16694 case $p in
16695
16696 -L* | -R* | -l*)
16697 # Some compilers place space between "-{L,R}" and the path.
16698 # Remove the space.
16699 if test $p = "-L" ||
16700 test $p = "-R"; then
16701 prev=$p
16702 continue
16703 else
16704 prev=
16705 fi
16706
16707 if test "$pre_test_object_deps_done" = no; then
16708 case $p in
16709 -L* | -R*)
16710 # Internal compiler library paths should come after those
16711 # provided the user. The postdeps already come after the
16712 # user supplied libs so there is no need to process them.
16713 if test -z "$compiler_lib_search_path_CXX"; then
16714 compiler_lib_search_path_CXX="${prev}${p}"
16715 else
16716 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16717 fi
16718 ;;
16719 # The "-l" case would never come before the object being
16720 # linked, so don't bother handling this case.
16721 esac
16722 else
16723 if test -z "$postdeps_CXX"; then
16724 postdeps_CXX="${prev}${p}"
16725 else
16726 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16727 fi
16728 fi
16729 ;;
16730
16731 *.$objext)
16732 # This assumes that the test object file only shows up
16733 # once in the compiler output.
16734 if test "$p" = "conftest.$objext"; then
16735 pre_test_object_deps_done=yes
16736 continue
16737 fi
16738
16739 if test "$pre_test_object_deps_done" = no; then
16740 if test -z "$predep_objects_CXX"; then
16741 predep_objects_CXX="$p"
16742 else
16743 predep_objects_CXX="$predep_objects_CXX $p"
16744 fi
16745 else
16746 if test -z "$postdep_objects_CXX"; then
16747 postdep_objects_CXX="$p"
16748 else
16749 postdep_objects_CXX="$postdep_objects_CXX $p"
16750 fi
16751 fi
16752 ;;
16753
16754 *) ;; # Ignore the rest.
16755
16756 esac
16757 done
16758
16759 # Clean up.
16760 rm -f a.out a.exe
16761else
16762 echo "libtool.m4: error: problem compiling CXX test program"
16763fi
16764
16765$RM -f confest.$objext
16766
16767# PORTME: override above test on systems where it is broken
16768case $host_os in
16769interix[3-9]*)
16770 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16771 # hack all around it, let's just trust "g++" to DTRT.
16772 predep_objects_CXX=
16773 postdep_objects_CXX=
16774 postdeps_CXX=
16775 ;;
16776
16777linux*)
16778 case `$CC -V 2>&1 | sed 5q` in
16779 *Sun\ C*)
16780 # Sun C++ 5.9
16781
16782 # The more standards-conforming stlport4 library is
16783 # incompatible with the Cstd library. Avoid specifying
16784 # it if it's in CXXFLAGS. Ignore libCrun as
16785 # -library=stlport4 depends on it.
16786 case " $CXX $CXXFLAGS " in
16787 *" -library=stlport4 "*)
16788 solaris_use_stlport4=yes
16789 ;;
16790 esac
16791
16792 if test "$solaris_use_stlport4" != yes; then
16793 postdeps_CXX='-library=Cstd -library=Crun'
16794 fi
16795 ;;
16796 esac
16797 ;;
16798
16799solaris*)
16800 case $cc_basename in
16801 CC*)
16802 # The more standards-conforming stlport4 library is
16803 # incompatible with the Cstd library. Avoid specifying
16804 # it if it's in CXXFLAGS. Ignore libCrun as
16805 # -library=stlport4 depends on it.
16806 case " $CXX $CXXFLAGS " in
16807 *" -library=stlport4 "*)
16808 solaris_use_stlport4=yes
16809 ;;
16810 esac
16811
16812 # Adding this requires a known-good setup of shared libraries for
16813 # Sun compiler versions before 5.6, else PIC objects from an old
16814 # archive will be linked into the output, leading to subtle bugs.
16815 if test "$solaris_use_stlport4" != yes; then
16816 postdeps_CXX='-library=Cstd -library=Crun'
16817 fi
16818 ;;
16819 esac
16820 ;;
16821esac
16822
16823
16824case " $postdeps_CXX " in
16825*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16826esac
16827 compiler_lib_search_dirs_CXX=
16828if test -n "${compiler_lib_search_path_CXX}"; then
16829 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16830fi
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
16860
16861
16862 lt_prog_compiler_wl_CXX=
16863lt_prog_compiler_pic_CXX=
16864lt_prog_compiler_static_CXX=
16865
cristy8b350f62009-11-15 23:12:43 +000016866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016867$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16868
16869 # C++ specific cases for pic, static, wl, etc.
16870 if test "$GXX" = yes; then
16871 lt_prog_compiler_wl_CXX='-Wl,'
16872 lt_prog_compiler_static_CXX='-static'
16873
16874 case $host_os in
16875 aix*)
16876 # All AIX code is PIC.
16877 if test "$host_cpu" = ia64; then
16878 # AIX 5 now supports IA64 processor
16879 lt_prog_compiler_static_CXX='-Bstatic'
16880 fi
16881 ;;
16882
16883 amigaos*)
16884 case $host_cpu in
16885 powerpc)
16886 # see comment about AmigaOS4 .so support
16887 lt_prog_compiler_pic_CXX='-fPIC'
16888 ;;
16889 m68k)
16890 # FIXME: we need at least 68020 code to build shared libraries, but
16891 # adding the `-m68020' flag to GCC prevents building anything better,
16892 # like `-m68040'.
16893 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16894 ;;
16895 esac
16896 ;;
16897
16898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16899 # PIC is the default for these OSes.
16900 ;;
16901 mingw* | cygwin* | os2* | pw32* | cegcc*)
16902 # This hack is so that the source file can tell whether it is being
16903 # built for inclusion in a dll (and should export symbols for example).
16904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16905 # (--disable-auto-import) libraries
16906 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16907 ;;
16908 darwin* | rhapsody*)
16909 # PIC is the default on this platform
16910 # Common symbols not allowed in MH_DYLIB files
16911 lt_prog_compiler_pic_CXX='-fno-common'
16912 ;;
16913 *djgpp*)
16914 # DJGPP does not support shared libraries at all
16915 lt_prog_compiler_pic_CXX=
16916 ;;
16917 interix[3-9]*)
16918 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16919 # Instead, we relocate shared libraries at runtime.
16920 ;;
16921 sysv4*MP*)
16922 if test -d /usr/nec; then
16923 lt_prog_compiler_pic_CXX=-Kconform_pic
16924 fi
16925 ;;
16926 hpux*)
16927 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16928 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16929 # sets the default TLS model and affects inlining.
16930 case $host_cpu in
16931 hppa*64*)
16932 ;;
16933 *)
16934 lt_prog_compiler_pic_CXX='-fPIC'
16935 ;;
16936 esac
16937 ;;
16938 *qnx* | *nto*)
16939 # QNX uses GNU C++, but need to define -shared option too, otherwise
16940 # it will coredump.
16941 lt_prog_compiler_pic_CXX='-fPIC -shared'
16942 ;;
16943 *)
16944 lt_prog_compiler_pic_CXX='-fPIC'
16945 ;;
16946 esac
16947 else
16948 case $host_os in
16949 aix[4-9]*)
16950 # All AIX code is PIC.
16951 if test "$host_cpu" = ia64; then
16952 # AIX 5 now supports IA64 processor
16953 lt_prog_compiler_static_CXX='-Bstatic'
16954 else
16955 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16956 fi
16957 ;;
16958 chorus*)
16959 case $cc_basename in
16960 cxch68*)
16961 # Green Hills C++ Compiler
16962 # _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"
16963 ;;
16964 esac
16965 ;;
16966 dgux*)
16967 case $cc_basename in
16968 ec++*)
16969 lt_prog_compiler_pic_CXX='-KPIC'
16970 ;;
16971 ghcx*)
16972 # Green Hills C++ Compiler
16973 lt_prog_compiler_pic_CXX='-pic'
16974 ;;
16975 *)
16976 ;;
16977 esac
16978 ;;
16979 freebsd* | dragonfly*)
16980 # FreeBSD uses GNU C++
16981 ;;
16982 hpux9* | hpux10* | hpux11*)
16983 case $cc_basename in
16984 CC*)
16985 lt_prog_compiler_wl_CXX='-Wl,'
16986 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16987 if test "$host_cpu" != ia64; then
16988 lt_prog_compiler_pic_CXX='+Z'
16989 fi
16990 ;;
16991 aCC*)
16992 lt_prog_compiler_wl_CXX='-Wl,'
16993 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16994 case $host_cpu in
16995 hppa*64*|ia64*)
16996 # +Z the default
16997 ;;
16998 *)
16999 lt_prog_compiler_pic_CXX='+Z'
17000 ;;
17001 esac
17002 ;;
17003 *)
17004 ;;
17005 esac
17006 ;;
17007 interix*)
17008 # This is c89, which is MS Visual C++ (no shared libs)
17009 # Anyone wants to do a port?
17010 ;;
17011 irix5* | irix6* | nonstopux*)
17012 case $cc_basename in
17013 CC*)
17014 lt_prog_compiler_wl_CXX='-Wl,'
17015 lt_prog_compiler_static_CXX='-non_shared'
17016 # CC pic flag -KPIC is the default.
17017 ;;
17018 *)
17019 ;;
17020 esac
17021 ;;
cristy18304f92009-11-22 15:48:26 +000017022 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017023 case $cc_basename in
17024 KCC*)
17025 # KAI C++ Compiler
17026 lt_prog_compiler_wl_CXX='--backend -Wl,'
17027 lt_prog_compiler_pic_CXX='-fPIC'
17028 ;;
17029 ecpc* )
17030 # old Intel C++ for x86_64 which still supported -KPIC.
17031 lt_prog_compiler_wl_CXX='-Wl,'
17032 lt_prog_compiler_pic_CXX='-KPIC'
17033 lt_prog_compiler_static_CXX='-static'
17034 ;;
17035 icpc* )
17036 # Intel C++, used to be incompatible with GCC.
17037 # ICC 10 doesn't accept -KPIC any more.
17038 lt_prog_compiler_wl_CXX='-Wl,'
17039 lt_prog_compiler_pic_CXX='-fPIC'
17040 lt_prog_compiler_static_CXX='-static'
17041 ;;
17042 pgCC* | pgcpp*)
17043 # Portland Group C++ compiler
17044 lt_prog_compiler_wl_CXX='-Wl,'
17045 lt_prog_compiler_pic_CXX='-fpic'
17046 lt_prog_compiler_static_CXX='-Bstatic'
17047 ;;
17048 cxx*)
17049 # Compaq C++
17050 # Make sure the PIC flag is empty. It appears that all Alpha
17051 # Linux and Compaq Tru64 Unix objects are PIC.
17052 lt_prog_compiler_pic_CXX=
17053 lt_prog_compiler_static_CXX='-non_shared'
17054 ;;
cristy18304f92009-11-22 15:48:26 +000017055 xlc* | xlC*)
17056 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017057 lt_prog_compiler_wl_CXX='-Wl,'
17058 lt_prog_compiler_pic_CXX='-qpic'
17059 lt_prog_compiler_static_CXX='-qstaticlink'
17060 ;;
17061 *)
17062 case `$CC -V 2>&1 | sed 5q` in
17063 *Sun\ C*)
17064 # Sun C++ 5.9
17065 lt_prog_compiler_pic_CXX='-KPIC'
17066 lt_prog_compiler_static_CXX='-Bstatic'
17067 lt_prog_compiler_wl_CXX='-Qoption ld '
17068 ;;
17069 esac
17070 ;;
17071 esac
17072 ;;
17073 lynxos*)
17074 ;;
17075 m88k*)
17076 ;;
17077 mvs*)
17078 case $cc_basename in
17079 cxx*)
17080 lt_prog_compiler_pic_CXX='-W c,exportall'
17081 ;;
17082 *)
17083 ;;
17084 esac
17085 ;;
17086 netbsd*)
17087 ;;
17088 *qnx* | *nto*)
17089 # QNX uses GNU C++, but need to define -shared option too, otherwise
17090 # it will coredump.
17091 lt_prog_compiler_pic_CXX='-fPIC -shared'
17092 ;;
17093 osf3* | osf4* | osf5*)
17094 case $cc_basename in
17095 KCC*)
17096 lt_prog_compiler_wl_CXX='--backend -Wl,'
17097 ;;
17098 RCC*)
17099 # Rational C++ 2.4.1
17100 lt_prog_compiler_pic_CXX='-pic'
17101 ;;
17102 cxx*)
17103 # Digital/Compaq C++
17104 lt_prog_compiler_wl_CXX='-Wl,'
17105 # Make sure the PIC flag is empty. It appears that all Alpha
17106 # Linux and Compaq Tru64 Unix objects are PIC.
17107 lt_prog_compiler_pic_CXX=
17108 lt_prog_compiler_static_CXX='-non_shared'
17109 ;;
17110 *)
17111 ;;
17112 esac
17113 ;;
17114 psos*)
17115 ;;
17116 solaris*)
17117 case $cc_basename in
17118 CC*)
17119 # Sun C++ 4.2, 5.x and Centerline C++
17120 lt_prog_compiler_pic_CXX='-KPIC'
17121 lt_prog_compiler_static_CXX='-Bstatic'
17122 lt_prog_compiler_wl_CXX='-Qoption ld '
17123 ;;
17124 gcx*)
17125 # Green Hills C++ Compiler
17126 lt_prog_compiler_pic_CXX='-PIC'
17127 ;;
17128 *)
17129 ;;
17130 esac
17131 ;;
17132 sunos4*)
17133 case $cc_basename in
17134 CC*)
17135 # Sun C++ 4.x
17136 lt_prog_compiler_pic_CXX='-pic'
17137 lt_prog_compiler_static_CXX='-Bstatic'
17138 ;;
17139 lcc*)
17140 # Lucid
17141 lt_prog_compiler_pic_CXX='-pic'
17142 ;;
17143 *)
17144 ;;
17145 esac
17146 ;;
17147 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17148 case $cc_basename in
17149 CC*)
17150 lt_prog_compiler_wl_CXX='-Wl,'
17151 lt_prog_compiler_pic_CXX='-KPIC'
17152 lt_prog_compiler_static_CXX='-Bstatic'
17153 ;;
17154 esac
17155 ;;
17156 tandem*)
17157 case $cc_basename in
17158 NCC*)
17159 # NonStop-UX NCC 3.20
17160 lt_prog_compiler_pic_CXX='-KPIC'
17161 ;;
17162 *)
17163 ;;
17164 esac
17165 ;;
17166 vxworks*)
17167 ;;
17168 *)
17169 lt_prog_compiler_can_build_shared_CXX=no
17170 ;;
17171 esac
17172 fi
17173
17174case $host_os in
17175 # For platforms which do not support PIC, -DPIC is meaningless:
17176 *djgpp*)
17177 lt_prog_compiler_pic_CXX=
17178 ;;
17179 *)
17180 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17181 ;;
17182esac
cristy8b350f62009-11-15 23:12:43 +000017183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017184$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17185
17186
17187
17188#
17189# Check to make sure the PIC flag actually works.
17190#
17191if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017192 { $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 +000017193$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017194if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017195 $as_echo_n "(cached) " >&6
17196else
17197 lt_cv_prog_compiler_pic_works_CXX=no
17198 ac_outfile=conftest.$ac_objext
17199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17200 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17201 # Insert the option either (1) after the last *FLAGS variable, or
17202 # (2) before a word containing "conftest.", or (3) at the end.
17203 # Note that $ac_compile itself does not contain backslashes and begins
17204 # with a dollar sign (not a hyphen), so the echo should work correctly.
17205 # The option is referenced via a variable to avoid confusing sed.
17206 lt_compile=`echo "$ac_compile" | $SED \
17207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17209 -e 's:$: $lt_compiler_flag:'`
cristya0b81c32010-01-22 02:54:33 +000017210 (eval echo "\"\$as_me:17210: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017211 (eval "$lt_compile" 2>conftest.err)
17212 ac_status=$?
17213 cat conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +000017214 echo "$as_me:17214: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017215 if (exit $ac_status) && test -s "$ac_outfile"; then
17216 # The compiler can only warn and ignore the option if not recognized
17217 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017218 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17221 lt_cv_prog_compiler_pic_works_CXX=yes
17222 fi
17223 fi
17224 $RM conftest*
17225
17226fi
cristy8b350f62009-11-15 23:12:43 +000017227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017228$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17229
17230if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17231 case $lt_prog_compiler_pic_CXX in
17232 "" | " "*) ;;
17233 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17234 esac
17235else
17236 lt_prog_compiler_pic_CXX=
17237 lt_prog_compiler_can_build_shared_CXX=no
17238fi
17239
17240fi
17241
17242
17243
17244#
17245# Check to make sure the static flag actually works.
17246#
17247wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017249$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017250if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017251 $as_echo_n "(cached) " >&6
17252else
17253 lt_cv_prog_compiler_static_works_CXX=no
17254 save_LDFLAGS="$LDFLAGS"
17255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17258 # The linker can only warn and ignore the option if not recognized
17259 # So say no if there are warnings
17260 if test -s conftest.err; then
17261 # Append any errors to the config.log.
17262 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017263 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17265 if diff conftest.exp conftest.er2 >/dev/null; then
17266 lt_cv_prog_compiler_static_works_CXX=yes
17267 fi
17268 else
17269 lt_cv_prog_compiler_static_works_CXX=yes
17270 fi
17271 fi
17272 $RM -r conftest*
17273 LDFLAGS="$save_LDFLAGS"
17274
17275fi
cristy8b350f62009-11-15 23:12:43 +000017276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017277$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17278
17279if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17280 :
17281else
17282 lt_prog_compiler_static_CXX=
17283fi
17284
17285
17286
17287
cristy8b350f62009-11-15 23:12:43 +000017288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017289$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017290if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017291 $as_echo_n "(cached) " >&6
17292else
17293 lt_cv_prog_compiler_c_o_CXX=no
17294 $RM -r conftest 2>/dev/null
17295 mkdir conftest
17296 cd conftest
17297 mkdir out
17298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17299
17300 lt_compiler_flag="-o out/conftest2.$ac_objext"
17301 # Insert the option either (1) after the last *FLAGS variable, or
17302 # (2) before a word containing "conftest.", or (3) at the end.
17303 # Note that $ac_compile itself does not contain backslashes and begins
17304 # with a dollar sign (not a hyphen), so the echo should work correctly.
17305 lt_compile=`echo "$ac_compile" | $SED \
17306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17308 -e 's:$: $lt_compiler_flag:'`
cristya0b81c32010-01-22 02:54:33 +000017309 (eval echo "\"\$as_me:17309: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017310 (eval "$lt_compile" 2>out/conftest.err)
17311 ac_status=$?
17312 cat out/conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +000017313 echo "$as_me:17313: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17315 then
17316 # The compiler can only warn and ignore the option if not recognized
17317 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017318 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17321 lt_cv_prog_compiler_c_o_CXX=yes
17322 fi
17323 fi
17324 chmod u+w . 2>&5
17325 $RM conftest*
17326 # SGI C++ compiler will create directory out/ii_files/ for
17327 # template instantiation
17328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17329 $RM out/* && rmdir out
17330 cd ..
17331 $RM -r conftest
17332 $RM conftest*
17333
17334fi
cristy8b350f62009-11-15 23:12:43 +000017335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017336$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17337
17338
17339
cristy8b350f62009-11-15 23:12:43 +000017340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017342if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017343 $as_echo_n "(cached) " >&6
17344else
17345 lt_cv_prog_compiler_c_o_CXX=no
17346 $RM -r conftest 2>/dev/null
17347 mkdir conftest
17348 cd conftest
17349 mkdir out
17350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17351
17352 lt_compiler_flag="-o out/conftest2.$ac_objext"
17353 # Insert the option either (1) after the last *FLAGS variable, or
17354 # (2) before a word containing "conftest.", or (3) at the end.
17355 # Note that $ac_compile itself does not contain backslashes and begins
17356 # with a dollar sign (not a hyphen), so the echo should work correctly.
17357 lt_compile=`echo "$ac_compile" | $SED \
17358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17360 -e 's:$: $lt_compiler_flag:'`
cristya0b81c32010-01-22 02:54:33 +000017361 (eval echo "\"\$as_me:17361: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017362 (eval "$lt_compile" 2>out/conftest.err)
17363 ac_status=$?
17364 cat out/conftest.err >&5
cristya0b81c32010-01-22 02:54:33 +000017365 echo "$as_me:17365: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17367 then
17368 # The compiler can only warn and ignore the option if not recognized
17369 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017370 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17373 lt_cv_prog_compiler_c_o_CXX=yes
17374 fi
17375 fi
17376 chmod u+w . 2>&5
17377 $RM conftest*
17378 # SGI C++ compiler will create directory out/ii_files/ for
17379 # template instantiation
17380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17381 $RM out/* && rmdir out
17382 cd ..
17383 $RM -r conftest
17384 $RM conftest*
17385
17386fi
cristy8b350f62009-11-15 23:12:43 +000017387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017388$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17389
17390
17391
17392
17393hard_links="nottested"
17394if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17395 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017397$as_echo_n "checking if we can lock with hard links... " >&6; }
17398 hard_links=yes
17399 $RM conftest*
17400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17401 touch conftest.a
17402 ln conftest.a conftest.b 2>&5 || hard_links=no
17403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017405$as_echo "$hard_links" >&6; }
17406 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017407 { $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 +000017408$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17409 need_locks=warn
17410 fi
17411else
17412 need_locks=no
17413fi
17414
17415
17416
cristy8b350f62009-11-15 23:12:43 +000017417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017418$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17419
17420 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17421 case $host_os in
17422 aix[4-9]*)
17423 # If we're using GNU nm, then we don't want the "-C" option.
17424 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17425 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000017426 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 +000017427 else
17428 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'
17429 fi
17430 ;;
17431 pw32*)
17432 export_symbols_cmds_CXX="$ltdll_cmds"
17433 ;;
17434 cygwin* | mingw* | cegcc*)
17435 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'
17436 ;;
17437 *)
17438 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17439 ;;
17440 esac
17441 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17442
cristy8b350f62009-11-15 23:12:43 +000017443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017444$as_echo "$ld_shlibs_CXX" >&6; }
17445test "$ld_shlibs_CXX" = no && can_build_shared=no
17446
17447with_gnu_ld_CXX=$with_gnu_ld
17448
17449
17450
17451
17452
17453
17454#
17455# Do we need to explicitly link libc?
17456#
17457case "x$archive_cmds_need_lc_CXX" in
17458x|xyes)
17459 # Assume -lc should be added
17460 archive_cmds_need_lc_CXX=yes
17461
17462 if test "$enable_shared" = yes && test "$GCC" = yes; then
17463 case $archive_cmds_CXX in
17464 *'~'*)
17465 # FIXME: we may have to deal with multi-command sequences.
17466 ;;
17467 '$CC '*)
17468 # Test whether the compiler implicitly links with -lc since on some
17469 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17470 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017472$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000017473 $RM conftest*
17474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017475
cristy18304f92009-11-22 15:48:26 +000017476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017477 (eval $ac_compile) 2>&5
17478 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17480 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000017481 soname=conftest
17482 lib=conftest
17483 libobjs=conftest.$ac_objext
17484 deplibs=
17485 wl=$lt_prog_compiler_wl_CXX
17486 pic_flag=$lt_prog_compiler_pic_CXX
17487 compiler_flags=-v
17488 linker_flags=-v
17489 verstring=
17490 output_objdir=.
17491 libname=conftest
17492 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17493 allow_undefined_flag_CXX=
17494 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 +000017495 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17496 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17498 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000017499 then
17500 archive_cmds_need_lc_CXX=no
17501 else
17502 archive_cmds_need_lc_CXX=yes
17503 fi
17504 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17505 else
17506 cat conftest.err 1>&5
17507 fi
17508 $RM conftest*
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17510$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000017511 ;;
17512 esac
17513 fi
17514 ;;
17515esac
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
cristy8b350f62009-11-15 23:12:43 +000017580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000017581$as_echo_n "checking dynamic linker characteristics... " >&6; }
17582
17583library_names_spec=
17584libname_spec='lib$name'
17585soname_spec=
17586shrext_cmds=".so"
17587postinstall_cmds=
17588postuninstall_cmds=
17589finish_cmds=
17590finish_eval=
17591shlibpath_var=
17592shlibpath_overrides_runpath=unknown
17593version_type=none
17594dynamic_linker="$host_os ld.so"
17595sys_lib_dlsearch_path_spec="/lib /usr/lib"
17596need_lib_prefix=unknown
17597hardcode_into_libs=no
17598
17599# when you set need_version to no, make sure it does not cause -set_version
17600# flags to be left without arguments
17601need_version=unknown
17602
17603case $host_os in
17604aix3*)
17605 version_type=linux
17606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17607 shlibpath_var=LIBPATH
17608
17609 # AIX 3 has no versioning support, so we append a major version to the name.
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 ;;
17612
17613aix[4-9]*)
17614 version_type=linux
17615 need_lib_prefix=no
17616 need_version=no
17617 hardcode_into_libs=yes
17618 if test "$host_cpu" = ia64; then
17619 # AIX 5 supports IA64
17620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 else
17623 # With GCC up to 2.95.x, collect2 would create an import file
17624 # for dependence libraries. The import file would start with
17625 # the line `#! .'. This would cause the generated library to
17626 # depend on `.', always an invalid library. This was fixed in
17627 # development snapshots of GCC prior to 3.0.
17628 case $host_os in
17629 aix4 | aix4.[01] | aix4.[01].*)
17630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17631 echo ' yes '
17632 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17633 :
17634 else
17635 can_build_shared=no
17636 fi
17637 ;;
17638 esac
17639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17640 # soname into executable. Probably we can add versioning support to
17641 # collect2, so additional links can be useful in future.
17642 if test "$aix_use_runtimelinking" = yes; then
17643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17644 # instead of lib<name>.a to let people know that these are not
17645 # typical AIX shared libraries.
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647 else
17648 # We preserve .a as extension for shared libraries through AIX4.2
17649 # and later when we are not doing run time linking.
17650 library_names_spec='${libname}${release}.a $libname.a'
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 fi
17653 shlibpath_var=LIBPATH
17654 fi
17655 ;;
17656
17657amigaos*)
17658 case $host_cpu in
17659 powerpc)
17660 # Since July 2007 AmigaOS4 officially supports .so libraries.
17661 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17663 ;;
17664 m68k)
17665 library_names_spec='$libname.ixlibrary $libname.a'
17666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000017667 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 +000017668 ;;
17669 esac
17670 ;;
17671
17672beos*)
17673 library_names_spec='${libname}${shared_ext}'
17674 dynamic_linker="$host_os ld.so"
17675 shlibpath_var=LIBRARY_PATH
17676 ;;
17677
17678bsdi[45]*)
17679 version_type=linux
17680 need_version=no
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682 soname_spec='${libname}${release}${shared_ext}$major'
17683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17684 shlibpath_var=LD_LIBRARY_PATH
17685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17687 # the default ld.so.conf also contains /usr/contrib/lib and
17688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17689 # libtool to hard-code these into programs
17690 ;;
17691
17692cygwin* | mingw* | pw32* | cegcc*)
17693 version_type=windows
17694 shrext_cmds=".dll"
17695 need_version=no
17696 need_lib_prefix=no
17697
17698 case $GCC,$host_os in
17699 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17700 library_names_spec='$libname.dll.a'
17701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17702 postinstall_cmds='base_file=`basename \${file}`~
17703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17704 dldir=$destdir/`dirname \$dlpath`~
17705 test -d \$dldir || mkdir -p \$dldir~
17706 $install_prog $dir/$dlname \$dldir/$dlname~
17707 chmod a+x \$dldir/$dlname~
17708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17710 fi'
17711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17712 dlpath=$dir/\$dldll~
17713 $RM \$dlpath'
17714 shlibpath_overrides_runpath=yes
17715
17716 case $host_os in
17717 cygwin*)
17718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017720 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000017721 ;;
17722 mingw* | cegcc*)
17723 # MinGW DLLs use traditional 'lib' prefix
17724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017725 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17726 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17727 # It is most probably a Windows format PATH printed by
17728 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17729 # path with ; separators, and with drive letters. We can handle the
17730 # drive letters (cygwin fileutils understands them), so leave them,
17731 # especially as we might pass files found there to a mingw objdump,
17732 # which wouldn't understand a cygwinified path. Ahh.
17733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17734 else
17735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17736 fi
cristy3ed852e2009-09-05 21:47:34 +000017737 ;;
17738 pw32*)
17739 # pw32 DLLs use 'pw' prefix rather than 'lib'
17740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17741 ;;
17742 esac
17743 ;;
17744
17745 *)
17746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17747 ;;
17748 esac
17749 dynamic_linker='Win32 ld.exe'
17750 # FIXME: first we should search . and the directory the executable is in
17751 shlibpath_var=PATH
17752 ;;
17753
17754darwin* | rhapsody*)
17755 dynamic_linker="$host_os dyld"
17756 version_type=darwin
17757 need_lib_prefix=no
17758 need_version=no
17759 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17760 soname_spec='${libname}${release}${major}$shared_ext'
17761 shlibpath_overrides_runpath=yes
17762 shlibpath_var=DYLD_LIBRARY_PATH
17763 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17764
17765 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17766 ;;
17767
17768dgux*)
17769 version_type=linux
17770 need_lib_prefix=no
17771 need_version=no
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 shlibpath_var=LD_LIBRARY_PATH
17775 ;;
17776
17777freebsd1*)
17778 dynamic_linker=no
17779 ;;
17780
17781freebsd* | dragonfly*)
17782 # DragonFly does not have aout. When/if they implement a new
17783 # versioning mechanism, adjust this.
17784 if test -x /usr/bin/objformat; then
17785 objformat=`/usr/bin/objformat`
17786 else
17787 case $host_os in
17788 freebsd[123]*) objformat=aout ;;
17789 *) objformat=elf ;;
17790 esac
17791 fi
17792 version_type=freebsd-$objformat
17793 case $version_type in
17794 freebsd-elf*)
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17796 need_version=no
17797 need_lib_prefix=no
17798 ;;
17799 freebsd-*)
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17801 need_version=yes
17802 ;;
17803 esac
17804 shlibpath_var=LD_LIBRARY_PATH
17805 case $host_os in
17806 freebsd2*)
17807 shlibpath_overrides_runpath=yes
17808 ;;
17809 freebsd3.[01]* | freebsdelf3.[01]*)
17810 shlibpath_overrides_runpath=yes
17811 hardcode_into_libs=yes
17812 ;;
17813 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17814 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17815 shlibpath_overrides_runpath=no
17816 hardcode_into_libs=yes
17817 ;;
17818 *) # from 4.6 on, and DragonFly
17819 shlibpath_overrides_runpath=yes
17820 hardcode_into_libs=yes
17821 ;;
17822 esac
17823 ;;
17824
17825gnu*)
17826 version_type=linux
17827 need_lib_prefix=no
17828 need_version=no
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 shlibpath_var=LD_LIBRARY_PATH
17832 hardcode_into_libs=yes
17833 ;;
17834
17835hpux9* | hpux10* | hpux11*)
17836 # Give a soname corresponding to the major version so that dld.sl refuses to
17837 # link against other versions.
17838 version_type=sunos
17839 need_lib_prefix=no
17840 need_version=no
17841 case $host_cpu in
17842 ia64*)
17843 shrext_cmds='.so'
17844 hardcode_into_libs=yes
17845 dynamic_linker="$host_os dld.so"
17846 shlibpath_var=LD_LIBRARY_PATH
17847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849 soname_spec='${libname}${release}${shared_ext}$major'
17850 if test "X$HPUX_IA64_MODE" = X32; then
17851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17852 else
17853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17854 fi
17855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17856 ;;
17857 hppa*64*)
17858 shrext_cmds='.sl'
17859 hardcode_into_libs=yes
17860 dynamic_linker="$host_os dld.sl"
17861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17867 ;;
17868 *)
17869 shrext_cmds='.sl'
17870 dynamic_linker="$host_os dld.sl"
17871 shlibpath_var=SHLIB_PATH
17872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17874 soname_spec='${libname}${release}${shared_ext}$major'
17875 ;;
17876 esac
cristy18304f92009-11-22 15:48:26 +000017877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017878 postinstall_cmds='chmod 555 $lib'
17879 ;;
17880
17881interix[3-9]*)
17882 version_type=linux
17883 need_lib_prefix=no
17884 need_version=no
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=no
17890 hardcode_into_libs=yes
17891 ;;
17892
17893irix5* | irix6* | nonstopux*)
17894 case $host_os in
17895 nonstopux*) version_type=nonstopux ;;
17896 *)
17897 if test "$lt_cv_prog_gnu_ld" = yes; then
17898 version_type=linux
17899 else
17900 version_type=irix
17901 fi ;;
17902 esac
17903 need_lib_prefix=no
17904 need_version=no
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17907 case $host_os in
17908 irix5* | nonstopux*)
17909 libsuff= shlibsuff=
17910 ;;
17911 *)
17912 case $LD in # libtool.m4 will add one of these switches to LD
17913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17914 libsuff= shlibsuff= libmagic=32-bit;;
17915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17916 libsuff=32 shlibsuff=N32 libmagic=N32;;
17917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17919 *) libsuff= shlibsuff= libmagic=never-match;;
17920 esac
17921 ;;
17922 esac
17923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17924 shlibpath_overrides_runpath=no
17925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17927 hardcode_into_libs=yes
17928 ;;
17929
17930# No shared lib support for Linux oldld, aout, or coff.
17931linux*oldld* | linux*aout* | linux*coff*)
17932 dynamic_linker=no
17933 ;;
17934
17935# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017936linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017937 version_type=linux
17938 need_lib_prefix=no
17939 need_version=no
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 soname_spec='${libname}${release}${shared_ext}$major'
17942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 shlibpath_overrides_runpath=no
17945 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017946 save_LDFLAGS=$LDFLAGS
17947 save_libdir=$libdir
17948 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17949 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017951/* end confdefs.h. */
17952
17953int
17954main ()
17955{
17956
17957 ;
17958 return 0;
17959}
17960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017961if ac_fn_cxx_try_link "$LINENO"; then :
17962 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017963 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017964fi
cristy3ed852e2009-09-05 21:47:34 +000017965fi
cristy8b350f62009-11-15 23:12:43 +000017966rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017968 LDFLAGS=$save_LDFLAGS
17969 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017970
17971 # This implies no fast_install, which is unacceptable.
17972 # Some rework will be needed to allow for fast_install
17973 # before this can be enabled.
17974 hardcode_into_libs=yes
17975
cristy679ed8e2009-12-05 02:37:41 +000017976 # Add ABI-specific directories to the system library path.
17977 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17978
cristy3ed852e2009-09-05 21:47:34 +000017979 # Append ld.so.conf contents to the search path
17980 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017981 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 +000017982 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017983 fi
17984
17985 # We used to test for /lib/ld.so.1 and disable shared libraries on
17986 # powerpc, because MkLinux only supported shared libraries with the
17987 # GNU dynamic linker. Since this was broken with cross compilers,
17988 # most powerpc-linux boxes support dynamic linking these days and
17989 # people can always --disable-shared, the test was removed, and we
17990 # assume the GNU/Linux dynamic linker is in use.
17991 dynamic_linker='GNU/Linux ld.so'
17992 ;;
17993
17994netbsd*)
17995 version_type=sunos
17996 need_lib_prefix=no
17997 need_version=no
17998 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18001 dynamic_linker='NetBSD (a.out) ld.so'
18002 else
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18004 soname_spec='${libname}${release}${shared_ext}$major'
18005 dynamic_linker='NetBSD ld.elf_so'
18006 fi
18007 shlibpath_var=LD_LIBRARY_PATH
18008 shlibpath_overrides_runpath=yes
18009 hardcode_into_libs=yes
18010 ;;
18011
18012newsos6)
18013 version_type=linux
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 shlibpath_var=LD_LIBRARY_PATH
18016 shlibpath_overrides_runpath=yes
18017 ;;
18018
18019*nto* | *qnx*)
18020 version_type=qnx
18021 need_lib_prefix=no
18022 need_version=no
18023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024 soname_spec='${libname}${release}${shared_ext}$major'
18025 shlibpath_var=LD_LIBRARY_PATH
18026 shlibpath_overrides_runpath=no
18027 hardcode_into_libs=yes
18028 dynamic_linker='ldqnx.so'
18029 ;;
18030
18031openbsd*)
18032 version_type=sunos
18033 sys_lib_dlsearch_path_spec="/usr/lib"
18034 need_lib_prefix=no
18035 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18036 case $host_os in
18037 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18038 *) need_version=no ;;
18039 esac
18040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18042 shlibpath_var=LD_LIBRARY_PATH
18043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18044 case $host_os in
18045 openbsd2.[89] | openbsd2.[89].*)
18046 shlibpath_overrides_runpath=no
18047 ;;
18048 *)
18049 shlibpath_overrides_runpath=yes
18050 ;;
18051 esac
18052 else
18053 shlibpath_overrides_runpath=yes
18054 fi
18055 ;;
18056
18057os2*)
18058 libname_spec='$name'
18059 shrext_cmds=".dll"
18060 need_lib_prefix=no
18061 library_names_spec='$libname${shared_ext} $libname.a'
18062 dynamic_linker='OS/2 ld.exe'
18063 shlibpath_var=LIBPATH
18064 ;;
18065
18066osf3* | osf4* | osf5*)
18067 version_type=osf
18068 need_lib_prefix=no
18069 need_version=no
18070 soname_spec='${libname}${release}${shared_ext}$major'
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 shlibpath_var=LD_LIBRARY_PATH
18073 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18074 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18075 ;;
18076
18077rdos*)
18078 dynamic_linker=no
18079 ;;
18080
18081solaris*)
18082 version_type=linux
18083 need_lib_prefix=no
18084 need_version=no
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 shlibpath_overrides_runpath=yes
18089 hardcode_into_libs=yes
18090 # ldd complains unless libraries are executable
18091 postinstall_cmds='chmod +x $lib'
18092 ;;
18093
18094sunos4*)
18095 version_type=sunos
18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18097 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18098 shlibpath_var=LD_LIBRARY_PATH
18099 shlibpath_overrides_runpath=yes
18100 if test "$with_gnu_ld" = yes; then
18101 need_lib_prefix=no
18102 fi
18103 need_version=yes
18104 ;;
18105
18106sysv4 | sysv4.3*)
18107 version_type=linux
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 shlibpath_var=LD_LIBRARY_PATH
18111 case $host_vendor in
18112 sni)
18113 shlibpath_overrides_runpath=no
18114 need_lib_prefix=no
18115 runpath_var=LD_RUN_PATH
18116 ;;
18117 siemens)
18118 need_lib_prefix=no
18119 ;;
18120 motorola)
18121 need_lib_prefix=no
18122 need_version=no
18123 shlibpath_overrides_runpath=no
18124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18125 ;;
18126 esac
18127 ;;
18128
18129sysv4*MP*)
18130 if test -d /usr/nec ;then
18131 version_type=linux
18132 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18133 soname_spec='$libname${shared_ext}.$major'
18134 shlibpath_var=LD_LIBRARY_PATH
18135 fi
18136 ;;
18137
18138sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18139 version_type=freebsd-elf
18140 need_lib_prefix=no
18141 need_version=no
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 shlibpath_overrides_runpath=yes
18146 hardcode_into_libs=yes
18147 if test "$with_gnu_ld" = yes; then
18148 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18149 else
18150 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18151 case $host_os in
18152 sco3.2v5*)
18153 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18154 ;;
18155 esac
18156 fi
18157 sys_lib_dlsearch_path_spec='/usr/lib'
18158 ;;
18159
18160tpf*)
18161 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18162 version_type=linux
18163 need_lib_prefix=no
18164 need_version=no
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18166 shlibpath_var=LD_LIBRARY_PATH
18167 shlibpath_overrides_runpath=no
18168 hardcode_into_libs=yes
18169 ;;
18170
18171uts4*)
18172 version_type=linux
18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174 soname_spec='${libname}${release}${shared_ext}$major'
18175 shlibpath_var=LD_LIBRARY_PATH
18176 ;;
18177
18178*)
18179 dynamic_linker=no
18180 ;;
18181esac
cristy8b350f62009-11-15 23:12:43 +000018182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018183$as_echo "$dynamic_linker" >&6; }
18184test "$dynamic_linker" = no && can_build_shared=no
18185
18186variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18187if test "$GCC" = yes; then
18188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18189fi
18190
18191if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18192 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18193fi
18194if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18195 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18196fi
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
cristy8b350f62009-11-15 23:12:43 +000018233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018234$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18235hardcode_action_CXX=
18236if test -n "$hardcode_libdir_flag_spec_CXX" ||
18237 test -n "$runpath_var_CXX" ||
18238 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18239
18240 # We can hardcode non-existent directories.
18241 if test "$hardcode_direct_CXX" != no &&
18242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18243 # have to relink, otherwise we might link with an installed library
18244 # when we should be linking with a yet-to-be-installed one
18245 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18246 test "$hardcode_minus_L_CXX" != no; then
18247 # Linking always hardcodes the temporary library directory.
18248 hardcode_action_CXX=relink
18249 else
18250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18251 hardcode_action_CXX=immediate
18252 fi
18253else
18254 # We cannot hardcode anything, or else we can only hardcode existing
18255 # directories.
18256 hardcode_action_CXX=unsupported
18257fi
cristy8b350f62009-11-15 23:12:43 +000018258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018259$as_echo "$hardcode_action_CXX" >&6; }
18260
18261if test "$hardcode_action_CXX" = relink ||
18262 test "$inherit_rpath_CXX" = yes; then
18263 # Fast installation is not supported
18264 enable_fast_install=no
18265elif test "$shlibpath_overrides_runpath" = yes ||
18266 test "$enable_shared" = no; then
18267 # Fast installation is not necessary
18268 enable_fast_install=needless
18269fi
18270
18271
18272
18273
18274
18275
18276
18277 fi # test -n "$compiler"
18278
18279 CC=$lt_save_CC
18280 LDCXX=$LD
18281 LD=$lt_save_LD
18282 GCC=$lt_save_GCC
18283 with_gnu_ld=$lt_save_with_gnu_ld
18284 lt_cv_path_LDCXX=$lt_cv_path_LD
18285 lt_cv_path_LD=$lt_save_path_LD
18286 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18287 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18288fi # test "$_lt_caught_CXX_error" != yes
18289
18290ac_ext=c
18291ac_cpp='$CPP $CPPFLAGS'
18292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18294ac_compiler_gnu=$ac_cv_c_compiler_gnu
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308 ac_config_commands="$ac_config_commands libtool"
18309
18310
18311
18312
18313# Only expand once:
18314
18315
18316
18317
18318
18319# Configure libltdl
18320
18321
18322
18323
18324
18325
18326
cristy18304f92009-11-22 15:48:26 +000018327
cristy8b350f62009-11-15 23:12:43 +000018328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018329$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018330if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018331 $as_echo_n "(cached) " >&6
18332else
18333
18334module=yes
18335eval libltdl_cv_shlibext=$shrext_cmds
18336
18337fi
cristy8b350f62009-11-15 23:12:43 +000018338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018339$as_echo "$libltdl_cv_shlibext" >&6; }
18340if test -n "$libltdl_cv_shlibext"; then
18341
18342cat >>confdefs.h <<_ACEOF
18343#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18344_ACEOF
18345
18346fi
18347
cristy8b350f62009-11-15 23:12:43 +000018348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018349$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018350if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018351 $as_echo_n "(cached) " >&6
18352else
18353 lt_cv_module_path_var="$shlibpath_var"
18354fi
cristy8b350f62009-11-15 23:12:43 +000018355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018356$as_echo "$lt_cv_module_path_var" >&6; }
18357if test -n "$lt_cv_module_path_var"; then
18358
18359cat >>confdefs.h <<_ACEOF
18360#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18361_ACEOF
18362
18363fi
18364
cristy8b350f62009-11-15 23:12:43 +000018365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018366$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018367if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018368 $as_echo_n "(cached) " >&6
18369else
18370 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18371fi
cristy8b350f62009-11-15 23:12:43 +000018372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018373$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18374if test -n "$lt_cv_sys_dlsearch_path"; then
18375 sys_dlsearch_path=
18376 for dir in $lt_cv_sys_dlsearch_path; do
18377 if test -z "$sys_dlsearch_path"; then
18378 sys_dlsearch_path="$dir"
18379 else
18380 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18381 fi
18382 done
18383
18384cat >>confdefs.h <<_ACEOF
18385#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18386_ACEOF
18387
18388fi
18389
18390
18391LT_DLLOADERS=
18392
18393
18394ac_ext=c
18395ac_cpp='$CPP $CPPFLAGS'
18396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18398ac_compiler_gnu=$ac_cv_c_compiler_gnu
18399
18400
18401LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018403$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018404if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018405 $as_echo_n "(cached) " >&6
18406else
18407 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018409/* end confdefs.h. */
18410
18411/* Override any GCC internal prototype to avoid an error.
18412 Use char because int might match the return type of a GCC
18413 builtin and then its argument prototype would still apply. */
18414#ifdef __cplusplus
18415extern "C"
18416#endif
18417char dlopen ();
18418int
18419main ()
18420{
18421return dlopen ();
18422 ;
18423 return 0;
18424}
18425_ACEOF
18426for ac_lib in '' dl; do
18427 if test -z "$ac_lib"; then
18428 ac_res="none required"
18429 else
18430 ac_res=-l$ac_lib
18431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18432 fi
cristy8b350f62009-11-15 23:12:43 +000018433 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018434 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018435fi
cristy8b350f62009-11-15 23:12:43 +000018436rm -f core conftest.err conftest.$ac_objext \
18437 conftest$ac_exeext
18438 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018439 break
18440fi
18441done
cristy8b350f62009-11-15 23:12:43 +000018442if test "${ac_cv_search_dlopen+set}" = set; then :
18443
cristy3ed852e2009-09-05 21:47:34 +000018444else
18445 ac_cv_search_dlopen=no
18446fi
18447rm conftest.$ac_ext
18448LIBS=$ac_func_search_save_LIBS
18449fi
cristy8b350f62009-11-15 23:12:43 +000018450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018451$as_echo "$ac_cv_search_dlopen" >&6; }
18452ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018453if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18455
cristy8b350f62009-11-15 23:12:43 +000018456$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018457
18458 if test "$ac_cv_search_dlopen" != "none required" ; then
18459 LIBADD_DLOPEN="-ldl"
18460 fi
18461 libltdl_cv_lib_dl_dlopen="yes"
18462 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18463else
cristy8b350f62009-11-15 23:12:43 +000018464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018465/* end confdefs.h. */
18466#if HAVE_DLFCN_H
18467# include <dlfcn.h>
18468#endif
18469
18470int
18471main ()
18472{
18473dlopen(0, 0);
18474 ;
18475 return 0;
18476}
18477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018479
cristy8b350f62009-11-15 23:12:43 +000018480$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018481
18482 libltdl_cv_func_dlopen="yes"
18483 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18484else
cristy8b350f62009-11-15 23:12:43 +000018485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018486$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018487if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018488 $as_echo_n "(cached) " >&6
18489else
18490 ac_check_lib_save_LIBS=$LIBS
18491LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018493/* end confdefs.h. */
18494
18495/* Override any GCC internal prototype to avoid an error.
18496 Use char because int might match the return type of a GCC
18497 builtin and then its argument prototype would still apply. */
18498#ifdef __cplusplus
18499extern "C"
18500#endif
18501char dlopen ();
18502int
18503main ()
18504{
18505return dlopen ();
18506 ;
18507 return 0;
18508}
18509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018511 ac_cv_lib_svld_dlopen=yes
18512else
cristy8b350f62009-11-15 23:12:43 +000018513 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000018514fi
cristy8b350f62009-11-15 23:12:43 +000018515rm -f core conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018517LIBS=$ac_check_lib_save_LIBS
18518fi
cristy8b350f62009-11-15 23:12:43 +000018519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018520$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018521if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018522
cristy8b350f62009-11-15 23:12:43 +000018523$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018524
18525 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18526 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18527fi
18528
18529fi
cristy8b350f62009-11-15 23:12:43 +000018530rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018532fi
18533
18534if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18535then
18536 lt_save_LIBS="$LIBS"
18537 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000018538 for ac_func in dlerror
18539do :
18540 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18541if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018542 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018543#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000018544_ACEOF
18545
18546fi
18547done
18548
18549 LIBS="$lt_save_LIBS"
18550fi
18551
18552
18553LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000018554ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18555if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018556
cristy8b350f62009-11-15 23:12:43 +000018557$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018558
18559 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18560else
cristy8b350f62009-11-15 23:12:43 +000018561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018562$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018563if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018564 $as_echo_n "(cached) " >&6
18565else
18566 ac_check_lib_save_LIBS=$LIBS
18567LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018569/* end confdefs.h. */
18570
18571/* Override any GCC internal prototype to avoid an error.
18572 Use char because int might match the return type of a GCC
18573 builtin and then its argument prototype would still apply. */
18574#ifdef __cplusplus
18575extern "C"
18576#endif
18577char shl_load ();
18578int
18579main ()
18580{
18581return shl_load ();
18582 ;
18583 return 0;
18584}
18585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018586if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018587 ac_cv_lib_dld_shl_load=yes
18588else
cristy8b350f62009-11-15 23:12:43 +000018589 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000018590fi
cristy8b350f62009-11-15 23:12:43 +000018591rm -f core conftest.err conftest.$ac_objext \
18592 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018593LIBS=$ac_check_lib_save_LIBS
18594fi
cristy8b350f62009-11-15 23:12:43 +000018595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000018596$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018597if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018598
cristy8b350f62009-11-15 23:12:43 +000018599$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018600
18601 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18602 LIBADD_SHL_LOAD="-ldld"
18603fi
18604
18605fi
18606
18607
18608
18609case $host_os in
18610darwin[1567].*)
18611# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000018612 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18613if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018614
cristy8b350f62009-11-15 23:12:43 +000018615$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018616
18617 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18618fi
18619
18620 ;;
18621beos*)
18622 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18623 ;;
18624cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000018625 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18626"
18627if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18628 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000018629else
cristy8b350f62009-11-15 23:12:43 +000018630 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000018631fi
18632
cristy3ed852e2009-09-05 21:47:34 +000018633cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018634#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000018635_ACEOF
18636
cristy3ed852e2009-09-05 21:47:34 +000018637 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18638 ;;
18639esac
18640
cristy8b350f62009-11-15 23:12:43 +000018641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018642$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018643if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018644 $as_echo_n "(cached) " >&6
18645else
18646 ac_check_lib_save_LIBS=$LIBS
18647LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018649/* end confdefs.h. */
18650
18651/* Override any GCC internal prototype to avoid an error.
18652 Use char because int might match the return type of a GCC
18653 builtin and then its argument prototype would still apply. */
18654#ifdef __cplusplus
18655extern "C"
18656#endif
18657char dld_link ();
18658int
18659main ()
18660{
18661return dld_link ();
18662 ;
18663 return 0;
18664}
18665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018666if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018667 ac_cv_lib_dld_dld_link=yes
18668else
cristy8b350f62009-11-15 23:12:43 +000018669 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000018670fi
cristy8b350f62009-11-15 23:12:43 +000018671rm -f core conftest.err conftest.$ac_objext \
18672 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018673LIBS=$ac_check_lib_save_LIBS
18674fi
cristy8b350f62009-11-15 23:12:43 +000018675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000018676$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018677if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018678
cristy8b350f62009-11-15 23:12:43 +000018679$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018680
18681 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18682fi
18683
18684
18685
18686
18687LT_DLPREOPEN=
18688if test -n "$LT_DLLOADERS"
18689then
18690 for lt_loader in $LT_DLLOADERS; do
18691 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18692 done
18693
cristy8b350f62009-11-15 23:12:43 +000018694$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018695
18696fi
18697
18698
18699LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18700
18701
18702ac_ext=c
18703ac_cpp='$CPP $CPPFLAGS'
18704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18706ac_compiler_gnu=$ac_cv_c_compiler_gnu
18707
18708
cristy8b350f62009-11-15 23:12:43 +000018709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018710$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018711if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018712 $as_echo_n "(cached) " >&6
18713else
18714 lt_cv_sys_symbol_underscore=no
18715 cat > conftest.$ac_ext <<_LT_EOF
18716void nm_test_func(){}
18717int main(){nm_test_func;return 0;}
18718_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018720 (eval $ac_compile) 2>&5
18721 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18723 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018724 # Now try to grab the symbols.
18725 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018726 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 +000018727 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18728 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18730 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018731 # See whether the symbols have a leading underscore.
18732 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18733 lt_cv_sys_symbol_underscore=yes
18734 else
18735 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18736 :
18737 else
18738 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18739 fi
18740 fi
18741 else
18742 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18743 fi
18744 else
18745 echo "configure: failed program was:" >&5
18746 cat conftest.c >&5
18747 fi
18748 rm -rf conftest*
18749
18750fi
cristy8b350f62009-11-15 23:12:43 +000018751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018752$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18753 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18754
18755
18756if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18757 if test x"$libltdl_cv_func_dlopen" = xyes ||
18758 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018760$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018761if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018762 $as_echo_n "(cached) " >&6
18763else
18764 libltdl_cv_need_uscore=unknown
18765 save_LIBS="$LIBS"
18766 LIBS="$LIBS $LIBADD_DLOPEN"
18767 if test "$cross_compiling" = yes; then :
18768 libltdl_cv_need_uscore=cross
18769else
18770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18771 lt_status=$lt_dlunknown
18772 cat > conftest.$ac_ext <<_LT_EOF
cristya0b81c32010-01-22 02:54:33 +000018773#line 18773 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018774#include "confdefs.h"
18775
18776#if HAVE_DLFCN_H
18777#include <dlfcn.h>
18778#endif
18779
18780#include <stdio.h>
18781
18782#ifdef RTLD_GLOBAL
18783# define LT_DLGLOBAL RTLD_GLOBAL
18784#else
18785# ifdef DL_GLOBAL
18786# define LT_DLGLOBAL DL_GLOBAL
18787# else
18788# define LT_DLGLOBAL 0
18789# endif
18790#endif
18791
18792/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18793 find out it does not work in some platform. */
18794#ifndef LT_DLLAZY_OR_NOW
18795# ifdef RTLD_LAZY
18796# define LT_DLLAZY_OR_NOW RTLD_LAZY
18797# else
18798# ifdef DL_LAZY
18799# define LT_DLLAZY_OR_NOW DL_LAZY
18800# else
18801# ifdef RTLD_NOW
18802# define LT_DLLAZY_OR_NOW RTLD_NOW
18803# else
18804# ifdef DL_NOW
18805# define LT_DLLAZY_OR_NOW DL_NOW
18806# else
18807# define LT_DLLAZY_OR_NOW 0
18808# endif
18809# endif
18810# endif
18811# endif
18812#endif
18813
cristy18304f92009-11-22 15:48:26 +000018814void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018815int main ()
18816{
18817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18818 int status = $lt_dlunknown;
18819
18820 if (self)
18821 {
18822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018823 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018824 /* dlclose (self); */
18825 }
18826 else
18827 puts (dlerror ());
18828
18829 return status;
18830}
18831_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018833 (eval $ac_link) 2>&5
18834 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18836 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018837 (./conftest; exit; ) >&5 2>/dev/null
18838 lt_status=$?
18839 case x$lt_status in
18840 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18841 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18842 x$lt_dlunknown|x*) ;;
18843 esac
18844 else :
18845 # compilation failed
18846
18847 fi
18848fi
18849rm -fr conftest*
18850
18851 LIBS="$save_LIBS"
18852
18853fi
cristy8b350f62009-11-15 23:12:43 +000018854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018855$as_echo "$libltdl_cv_need_uscore" >&6; }
18856 fi
18857fi
18858
18859if test x"$libltdl_cv_need_uscore" = xyes; then
18860
cristy8b350f62009-11-15 23:12:43 +000018861$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018862
18863fi
18864
cristy8b350f62009-11-15 23:12:43 +000018865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018866$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018867if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018868 $as_echo_n "(cached) " >&6
18869else
18870 # PORTME does your system automatically load deplibs for dlopen?
18871 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18872 # For now, we just catch OSes we know something about -- in the
18873 # future, we'll try test this programmatically.
18874 lt_cv_sys_dlopen_deplibs=unknown
18875 case $host_os in
18876 aix3*|aix4.1.*|aix4.2.*)
18877 # Unknown whether this is true for these versions of AIX, but
18878 # we want this `case' here to explicitly catch those versions.
18879 lt_cv_sys_dlopen_deplibs=unknown
18880 ;;
18881 aix[4-9]*)
18882 lt_cv_sys_dlopen_deplibs=yes
18883 ;;
18884 amigaos*)
18885 case $host_cpu in
18886 powerpc)
18887 lt_cv_sys_dlopen_deplibs=no
18888 ;;
18889 esac
18890 ;;
18891 darwin*)
18892 # Assuming the user has installed a libdl from somewhere, this is true
18893 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18894 lt_cv_sys_dlopen_deplibs=yes
18895 ;;
18896 freebsd* | dragonfly*)
18897 lt_cv_sys_dlopen_deplibs=yes
18898 ;;
cristy18304f92009-11-22 15:48:26 +000018899 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018900 # GNU and its variants, using gnu ld.so (Glibc)
18901 lt_cv_sys_dlopen_deplibs=yes
18902 ;;
18903 hpux10*|hpux11*)
18904 lt_cv_sys_dlopen_deplibs=yes
18905 ;;
18906 interix*)
18907 lt_cv_sys_dlopen_deplibs=yes
18908 ;;
18909 irix[12345]*|irix6.[01]*)
18910 # Catch all versions of IRIX before 6.2, and indicate that we don't
18911 # know how it worked for any of those versions.
18912 lt_cv_sys_dlopen_deplibs=unknown
18913 ;;
18914 irix*)
18915 # The case above catches anything before 6.2, and it's known that
18916 # at 6.2 and later dlopen does load deplibs.
18917 lt_cv_sys_dlopen_deplibs=yes
18918 ;;
18919 netbsd*)
18920 lt_cv_sys_dlopen_deplibs=yes
18921 ;;
18922 openbsd*)
18923 lt_cv_sys_dlopen_deplibs=yes
18924 ;;
18925 osf[1234]*)
18926 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18927 # it did *not* use an RPATH in a shared library to find objects the
18928 # library depends on, so we explicitly say `no'.
18929 lt_cv_sys_dlopen_deplibs=no
18930 ;;
18931 osf5.0|osf5.0a|osf5.1)
18932 # dlopen *does* load deplibs and with the right loader patch applied
18933 # it even uses RPATH in a shared library to search for shared objects
18934 # that the library depends on, but there's no easy way to know if that
18935 # patch is installed. Since this is the case, all we can really
18936 # say is unknown -- it depends on the patch being installed. If
18937 # it is, this changes to `yes'. Without it, it would be `no'.
18938 lt_cv_sys_dlopen_deplibs=unknown
18939 ;;
18940 osf*)
18941 # the two cases above should catch all versions of osf <= 5.1. Read
18942 # the comments above for what we know about them.
18943 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18944 # is used to find them so we can finally say `yes'.
18945 lt_cv_sys_dlopen_deplibs=yes
18946 ;;
18947 qnx*)
18948 lt_cv_sys_dlopen_deplibs=yes
18949 ;;
18950 solaris*)
18951 lt_cv_sys_dlopen_deplibs=yes
18952 ;;
18953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18954 libltdl_cv_sys_dlopen_deplibs=yes
18955 ;;
18956 esac
18957
18958fi
cristy8b350f62009-11-15 23:12:43 +000018959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018960$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18961if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18962
cristy8b350f62009-11-15 23:12:43 +000018963$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018964
18965fi
18966
18967:
18968
cristy3ed852e2009-09-05 21:47:34 +000018969for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018970do :
18971 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18972"
18973if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018974 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018975#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018976_ACEOF
18977
18978fi
18979
18980done
18981
18982
cristy8b350f62009-11-15 23:12:43 +000018983ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018984# include <argz.h>
18985#endif
cristy8b350f62009-11-15 23:12:43 +000018986"
18987if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018988
18989cat >>confdefs.h <<_ACEOF
18990#define HAVE_ERROR_T 1
18991_ACEOF
18992
18993
18994else
18995
cristy8b350f62009-11-15 23:12:43 +000018996$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018997
18998
cristy8b350f62009-11-15 23:12:43 +000018999$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019000
19001fi
19002
19003
19004ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019005for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19006 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019007do :
19008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19010eval as_val=\$$as_ac_var
19011 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019012 cat >>confdefs.h <<_ACEOF
19013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19014_ACEOF
19015
19016else
19017 ARGZ_H=argz.h;
19018
19019 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19020
19021fi
19022done
19023
19024
cristy8b350f62009-11-15 23:12:43 +000019025if test -z "$ARGZ_H"; then :
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019027$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019028if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019029 $as_echo_n "(cached) " >&6
19030else
19031 case $host_os in #(
19032 *cygwin*)
19033 lt_cv_sys_argz_works=no
19034 if test "$cross_compiling" != no; then
19035 lt_cv_sys_argz_works="guessing no"
19036 else
19037 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19038 save_IFS=$IFS
19039 IFS=-.
19040 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19041 IFS=$save_IFS
19042 lt_os_major=${2-0}
19043 lt_os_minor=${3-0}
19044 lt_os_micro=${4-0}
19045 if test "$lt_os_major" -gt 1 \
19046 || { test "$lt_os_major" -eq 1 \
19047 && { test "$lt_os_minor" -gt 5 \
19048 || { test "$lt_os_minor" -eq 5 \
19049 && test "$lt_os_micro" -gt 24; }; }; }; then
19050 lt_cv_sys_argz_works=yes
19051 fi
19052 fi
19053 ;; #(
19054 *) lt_cv_sys_argz_works=yes ;;
19055 esac
19056fi
cristy8b350f62009-11-15 23:12:43 +000019057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019058$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019059 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019060
cristy8b350f62009-11-15 23:12:43 +000019061$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019062
19063else
19064 ARGZ_H=argz.h
19065
19066
19067 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19068
19069fi
cristy3ed852e2009-09-05 21:47:34 +000019070fi
19071
19072
19073
cristy8b350f62009-11-15 23:12:43 +000019074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019075$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019076if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019077 $as_echo_n "(cached) " >&6
19078else
19079 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19080 libltdl_cv_preloaded_symbols=yes
19081 else
19082 libltdl_cv_preloaded_symbols=no
19083 fi
19084
19085fi
cristy8b350f62009-11-15 23:12:43 +000019086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019087$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19088if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19089
cristy8b350f62009-11-15 23:12:43 +000019090$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019091
19092fi
19093
19094# Set options
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019107if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019108 withval=$with_included_ltdl;
19109fi
19110
19111
19112if test "x$with_included_ltdl" != xyes; then
19113 # We are not being forced to use the included libltdl sources, so
19114 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019115 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019116
cristy8b350f62009-11-15 23:12:43 +000019117"
19118if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19119 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 +000019120 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019121"
19122if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019124$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019125if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019126 $as_echo_n "(cached) " >&6
19127else
19128 ac_check_lib_save_LIBS=$LIBS
19129LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019131/* end confdefs.h. */
19132
19133/* Override any GCC internal prototype to avoid an error.
19134 Use char because int might match the return type of a GCC
19135 builtin and then its argument prototype would still apply. */
19136#ifdef __cplusplus
19137extern "C"
19138#endif
19139char lt_dladvise_preload ();
19140int
19141main ()
19142{
19143return lt_dladvise_preload ();
19144 ;
19145 return 0;
19146}
19147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019148if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019149 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19150else
cristy8b350f62009-11-15 23:12:43 +000019151 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019152fi
cristy8b350f62009-11-15 23:12:43 +000019153rm -f core conftest.err conftest.$ac_objext \
19154 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019155LIBS=$ac_check_lib_save_LIBS
19156fi
cristy8b350f62009-11-15 23:12:43 +000019157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019158$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019159if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019160 with_included_ltdl=no
19161else
19162 with_included_ltdl=yes
19163fi
19164
19165else
19166 with_included_ltdl=yes
19167fi
19168
19169else
19170 with_included_ltdl=yes
19171fi
19172
19173
19174fi
19175
19176
19177
19178
19179# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019180if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019181 withval=$with_ltdl_include;
19182fi
19183
19184
19185if test -n "$with_ltdl_include"; then
19186 if test -f "$with_ltdl_include/ltdl.h"; then :
19187 else
cristy8b350f62009-11-15 23:12:43 +000019188 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019189 fi
19190else
19191 with_ltdl_include=no
19192fi
19193
19194
19195# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019196if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019197 withval=$with_ltdl_lib;
19198fi
19199
19200
19201if test -n "$with_ltdl_lib"; then
19202 if test -f "$with_ltdl_lib/libltdl.la"; then :
19203 else
cristy8b350f62009-11-15 23:12:43 +000019204 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019205 fi
19206else
19207 with_ltdl_lib=no
19208fi
19209
19210case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19211 ,yes,no,no,)
19212 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019213 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019214 "") enable_ltdl_convenience=yes
19215 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19216esac
19217LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19218LTDLDEPS=$LIBLTDL
19219LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19220
19221
19222
19223
19224
19225# For backwards non-gettext consistent compatibility...
19226INCLTDL="$LTDLINCL"
19227
19228
19229 ;;
19230 ,no,no,no,)
19231 # If the included ltdl is not to be used, then use the
19232 # preinstalled libltdl we found.
19233
cristy8b350f62009-11-15 23:12:43 +000019234$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019235
19236 LIBLTDL=-lltdl
19237 LTDLDEPS=
19238 LTDLINCL=
19239 ;;
19240 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019241 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019242 ;;
19243 *) with_included_ltdl=no
19244 LIBLTDL="-L$with_ltdl_lib -lltdl"
19245 LTDLDEPS=
19246 LTDLINCL="-I$with_ltdl_include"
19247 ;;
19248esac
19249INCLTDL="$LTDLINCL"
19250
19251# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019253$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019255$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019257$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019259$as_echo "$LIBLTDL" >&6; }
19260
19261
19262
19263# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019264if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019265 enableval=$enable_ltdl_install;
19266fi
19267
19268
19269case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19270 *yes*) ;;
19271 *) enable_ltdl_convenience=yes ;;
19272esac
19273
19274 if test x"${enable_ltdl_install-no}" != xno; then
19275 INSTALL_LTDL_TRUE=
19276 INSTALL_LTDL_FALSE='#'
19277else
19278 INSTALL_LTDL_TRUE='#'
19279 INSTALL_LTDL_FALSE=
19280fi
19281
19282 if test x"${enable_ltdl_convenience-no}" != xno; then
19283 CONVENIENCE_LTDL_TRUE=
19284 CONVENIENCE_LTDL_FALSE='#'
19285else
19286 CONVENIENCE_LTDL_TRUE='#'
19287 CONVENIENCE_LTDL_FALSE=
19288fi
19289
19290
19291
19292
19293
19294
cristy18304f92009-11-22 15:48:26 +000019295
cristy3ed852e2009-09-05 21:47:34 +000019296# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19297# the user used. This is so that ltdl.h can pick up the parent projects
19298# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19299# definitions required by ltdl.c.
19300# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19301
19302
19303
cristy3ed852e2009-09-05 21:47:34 +000019304for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019305do :
19306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19308"
19309eval as_val=\$$as_ac_Header
19310 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019311 cat >>confdefs.h <<_ACEOF
19312#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19313_ACEOF
19314
19315fi
19316
19317done
19318
19319
cristy3ed852e2009-09-05 21:47:34 +000019320for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019321do :
19322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19323ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19324eval as_val=\$$as_ac_var
19325 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019326 cat >>confdefs.h <<_ACEOF
19327#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19328_ACEOF
19329
19330else
19331
19332
19333 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19334
19335fi
19336done
19337
cristy3ed852e2009-09-05 21:47:34 +000019338for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019339do :
19340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19341ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19342eval as_val=\$$as_ac_var
19343 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019344 cat >>confdefs.h <<_ACEOF
19345#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19346_ACEOF
19347
19348else
19349
19350
19351 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19352
19353fi
19354done
19355
19356
19357
19358cat >>confdefs.h <<_ACEOF
19359#define LT_LIBEXT "$libext"
19360_ACEOF
19361
19362
19363name=ltdl
19364LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19365
19366
19367
19368
19369
19370
19371
19372
19373# Only expand once:
19374
19375
19376
19377# Check to see if building shared libraries
19378libtool_build_shared_libs='no'
19379if test "$enable_shared" = 'yes'; then
19380 libtool_build_shared_libs='yes'
19381fi
19382
19383# Check to see if building static libraries
19384libtool_build_static_libs='no'
19385if test "$enable_static" = 'yes'; then
19386 libtool_build_static_libs='yes'
19387fi
19388
cristyfa112112010-01-04 17:48:07 +000019389 if test "${libtool_build_shared_libs}" = 'yes'; then
19390 WITH_SHARED_LIBS_TRUE=
19391 WITH_SHARED_LIBS_FALSE='#'
19392else
19393 WITH_SHARED_LIBS_TRUE='#'
19394 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019395fi
19396
19397#
19398# Enable support for building loadable modules
19399#
19400
19401# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019402if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019403 withval=$with_modules; with_modules=$withval
19404else
cristy5a1cefd2010-01-06 20:42:35 +000019405 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019406fi
19407
19408
19409# Only allow building loadable modules if we are building shared libraries
19410if test "$with_modules" != 'no' ; then
19411 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019412 { $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 +000019413$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19414 with_modules='no'
19415 fi
19416fi
19417if test "$with_modules" != 'no'; then
19418
cristy8b350f62009-11-15 23:12:43 +000019419$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019420
19421fi
19422 if test "$with_modules" != 'no'; then
19423 WITH_MODULES_TRUE=
19424 WITH_MODULES_FALSE='#'
19425else
19426 WITH_MODULES_TRUE='#'
19427 WITH_MODULES_FALSE=
19428fi
19429
19430
19431# Enable building/use of libltdl if we are building shared libraries regardless
19432# of whether modules are built or not.
19433with_ltdl='no'
19434if test "$libtool_build_shared_libs" != 'no'; then
19435 with_ltdl='yes'
19436fi
19437
19438 if test "$with_ltdl" != 'no'; then
19439 WITH_LTDL_TRUE=
19440 WITH_LTDL_FALSE='#'
19441else
19442 WITH_LTDL_TRUE='#'
19443 WITH_LTDL_FALSE=
19444fi
19445
19446if test "$with_ltdl" != 'no'; then
19447
cristy8b350f62009-11-15 23:12:43 +000019448$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019449
19450
19451 # Set DLLDFLAGS
19452 if test X"$enable_shared" = Xyes; then
19453 DLLDFLAGS=-export-dynamic
19454
19455 fi
19456fi
19457
19458# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019459# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019460# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019461if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019462 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19463else
19464 enable_delegate_build='no'
19465fi
19466
19467
19468# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019469if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019470 enableval=$enable_deprecated; enable_deprecated=$enableval
19471else
19472 enable_deprecated='no'
19473fi
19474
19475
19476if test "$enable_deprecated" = 'yes'; then
19477
cristy8b350f62009-11-15 23:12:43 +000019478$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019479
19480else
19481 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19482fi
19483
19484# Build a version of ImageMagick which operates uninstalled.
19485# Used to build distributions located via MAGICK_HOME / executable path
19486# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019487if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019488 enableval=$enable_installed; enable_installed=$enableval
19489else
19490 enable_installed='yes'
19491fi
19492
19493
19494if test "$enable_installed" = 'yes'; then
19495
cristy8b350f62009-11-15 23:12:43 +000019496$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019497
19498else
19499 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19500fi
19501
19502# Permit enciphering and deciphering image pixels.
19503# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000019504if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019505 enableval=$enable_cipher; enable_cipher=$enableval
19506else
19507 enable_cipher='yes'
19508fi
19509
19510
19511if test "$enable_cipher" = 'yes'; then
19512
cristy8b350f62009-11-15 23:12:43 +000019513$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019514
19515fi
19516
19517# Build an embeddable version of ImageMagick.
19518# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000019519if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019520 enableval=$enable_embeddable; enable_embeddable=$enableval
19521else
19522 enable_embeddable='no'
19523fi
19524
19525
19526if test "$enable_embeddable" = 'yes'; then
19527
cristy8b350f62009-11-15 23:12:43 +000019528$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019529
19530fi
19531
19532# Build a high dynamic range version of ImageMagick.
19533# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000019534if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019535 enableval=$enable_hdri; enable_hdri=$enableval
19536else
19537 enable_hdri='no'
19538fi
19539
19540
19541MAGICK_HDRI=""
19542if test "$enable_hdri" = 'yes'; then
19543 MAGICK_HDRI="HDRI"
19544
cristy8b350f62009-11-15 23:12:43 +000019545$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019546
19547fi
19548
cristy3ed852e2009-09-05 21:47:34 +000019549# Build a version of ImageMagick with assert statements.
19550# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000019551if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019552 enableval=$enable_assert; enable_assert=$enableval
19553else
19554 enable_assert='yes'
19555fi
19556
19557
19558if test "$enable_assert" = 'no'; then
19559
cristy8b350f62009-11-15 23:12:43 +000019560$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019561
19562fi
19563
19564# Add configure option --enable-maintainer-mode which enables dependency
19565# checking and generation useful to package maintainers. This is made an
19566# option to avoid confusing end users.
19567
cristy8b350f62009-11-15 23:12:43 +000019568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000019569$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19570 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000019571if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019572 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19573else
19574 USE_MAINTAINER_MODE=no
19575fi
19576
cristy8b350f62009-11-15 23:12:43 +000019577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000019578$as_echo "$USE_MAINTAINER_MODE" >&6; }
19579 if test $USE_MAINTAINER_MODE = yes; then
19580 MAINTAINER_MODE_TRUE=
19581 MAINTAINER_MODE_FALSE='#'
19582else
19583 MAINTAINER_MODE_TRUE='#'
19584 MAINTAINER_MODE_FALSE=
19585fi
19586
19587 MAINT=$MAINTAINER_MODE_TRUE
19588
19589
19590
19591
19592# Enable ccmalloc memory debugging support
19593# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000019594if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019595 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19596else
19597 enable_ccmalloc='no'
19598fi
19599
19600
19601# Enable Electric Fence memory debugging support
19602# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000019603if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019604 enableval=$enable_efence; enable_efence=$enableval
19605else
19606 enable_efence='no'
19607fi
19608
19609
19610# Enable prof-based profiling support
19611# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000019612if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019613 enableval=$enable_prof; enable_prof=$enableval
19614else
19615 enable_prof='no'
19616fi
19617
19618
19619# Enable gprof-based profiling support
19620# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000019621if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019622 enableval=$enable_gprof; enable_gprof=$enableval
19623else
19624 enable_gprof='no'
19625fi
19626
19627
19628# Enable gcov-based profiling support
19629# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000019630if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019631 enableval=$enable_gcov; enable_gcov=$enableval
19632else
19633 enable_gcov='no'
19634fi
19635
19636
19637enable_profiling='no'
19638if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19639 enable_profiling='yes'
19640 if test "$libtool_build_shared_libs" = 'yes'; then
19641 echo "Warning: Can not profile code using shared libraries"
19642 fi
19643fi
19644
19645# Magick API method prefix
19646
19647# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000019648if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019649 withval=$with_method_prefix; with_method_prefix=$enableval
19650else
19651 with_method_prefix=''
19652fi
19653
19654
19655if test "$with_method_prefix" != ''; then
19656
19657cat >>confdefs.h <<_ACEOF
19658#define NAMESPACE_PREFIX $with_method_prefix
19659_ACEOF
19660
19661fi
19662
19663# Number of bits in a Quantum
19664
19665# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000019666if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019667 withval=$with_quantum_depth; with_quantum_depth=$withval
19668else
19669 with_quantum_depth=16
19670fi
19671
19672
19673if test "$with_quantum_depth" != '8'; then
19674 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19675fi
19676
19677case "${with_quantum_depth}" in
19678 8 ) ;;
19679 16 ) ;;
19680 32 ) ;;
19681 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000019682 * ) { as_fn_set_status 16
19683as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000019684esac
19685QUANTUM_DEPTH="$with_quantum_depth"
19686
19687cat >>confdefs.h <<_ACEOF
19688#define QUANTUM_DEPTH $QUANTUM_DEPTH
19689_ACEOF
19690
19691
19692# Set pixel cache threshold
19693
19694# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000019695if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019696 withval=$with_cache; with_cache=$withval
19697else
19698 with_cache=''
19699fi
19700
19701
19702if test "$with_cache" != ''; then
19703
19704cat >>confdefs.h <<_ACEOF
19705#define PixelCacheThreshold $with_cache
19706_ACEOF
19707
19708 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19709fi
19710
19711# Disable/Enable support for full delegate paths
19712
19713# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000019714if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019715 withval=$with_frozenpaths; with_frozenpaths=$withval
19716else
19717 with_frozenpaths='no'
19718fi
19719
19720
19721# Enable build/install of Magick++
19722
19723# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019724if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019725 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19726else
19727 with_magick_plus_plus='yes'
19728fi
19729
19730
19731# Disable build/install of PerlMagick.
19732
19733# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019734if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019735 withval=$with_perl; with_perl=$withval
19736else
19737 with_perl=$libtool_build_shared_libs
19738fi
19739
19740
19741# Options to pass when configuring PerlMagick
19742
19743# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019744if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000019745 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000019746fi
19747
19748
cristy3ed852e2009-09-05 21:47:34 +000019749
19750# Enable umem, object-caching memory allocation library.
19751
19752# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019753if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019754 withval=$with_umem; with_umem=$withval
19755else
19756 with_umem='no'
19757fi
19758
19759if test "$with_umem" != 'yes' ; then
19760 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19761fi
19762
19763#
19764# Specify path to shared libstdc++ if not in normal location
19765#
19766
19767# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019768if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019769 withval=$with_libstdc; with_libstdc=$withval
19770else
19771 with_libstdc=''
19772fi
19773
19774
19775if test "$with_libstdc" != ''; then
19776 if test -d "$with_libstdc"; then
19777 LIBSTDCLDFLAGS="-L$with_libstdc"
19778 fi
19779fi
19780
19781
19782# Does gcc required -traditional?
19783if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019785$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019786if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019787 $as_echo_n "(cached) " >&6
19788else
19789 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019791/* end confdefs.h. */
19792#include <sgtty.h>
19793Autoconf TIOCGETP
19794_ACEOF
19795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019796 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019797 ac_cv_prog_gcc_traditional=yes
19798else
19799 ac_cv_prog_gcc_traditional=no
19800fi
19801rm -f conftest*
19802
19803
19804 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019806/* end confdefs.h. */
19807#include <termio.h>
19808Autoconf TCGETA
19809_ACEOF
19810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019811 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019812 ac_cv_prog_gcc_traditional=yes
19813fi
19814rm -f conftest*
19815
19816 fi
19817fi
cristy8b350f62009-11-15 23:12:43 +000019818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019819$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19820 if test $ac_cv_prog_gcc_traditional = yes; then
19821 CC="$CC -traditional"
19822 fi
19823fi
19824
19825
19826########
19827#
19828# Set defines required to build DLLs and modules using MinGW
19829#
19830########
19831# These options are set for multi-thread DLL module build
19832# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19833# module: _DLL
19834# executable/Magick++: _DLL _MAGICKMOD_
19835MODULE_EXTRA_CPPFLAGS=''
19836LIBRARY_EXTRA_CPPFLAGS=''
19837if test "${native_win32_build}" = 'yes'; then
19838 if test "${libtool_build_shared_libs}" = 'yes'; then
19839 CPPFLAGS="$CPPFLAGS -D_DLL"
19840 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19841 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19842 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19843 if test "$with_modules" = 'yes'; then
19844 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19845 else
19846 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19847 fi
19848 else
19849 CPPFLAGS="$CPPFLAGS -D_LIB"
19850 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19851 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19852 fi
19853 if test "$with_threads" = 'yes'; then
19854 CPPFLAGS="$CPPFLAGS -D_MT"
19855 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19856 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19857 fi
19858fi
19859
19860
19861
19862# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019864$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019865if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019866 $as_echo_n "(cached) " >&6
19867else
cristy8b350f62009-11-15 23:12:43 +000019868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019869/* end confdefs.h. */
19870#include <stdlib.h>
19871#include <stdarg.h>
19872#include <string.h>
19873#include <float.h>
19874
19875int
19876main ()
19877{
19878
19879 ;
19880 return 0;
19881}
19882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019883if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019884 ac_cv_header_stdc=yes
19885else
cristy8b350f62009-11-15 23:12:43 +000019886 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019887fi
cristy3ed852e2009-09-05 21:47:34 +000019888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889
19890if test $ac_cv_header_stdc = yes; then
19891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019893/* end confdefs.h. */
19894#include <string.h>
19895
19896_ACEOF
19897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019898 $EGREP "memchr" >/dev/null 2>&1; then :
19899
cristy3ed852e2009-09-05 21:47:34 +000019900else
19901 ac_cv_header_stdc=no
19902fi
19903rm -f conftest*
19904
19905fi
19906
19907if test $ac_cv_header_stdc = yes; then
19908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019910/* end confdefs.h. */
19911#include <stdlib.h>
19912
19913_ACEOF
19914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019915 $EGREP "free" >/dev/null 2>&1; then :
19916
cristy3ed852e2009-09-05 21:47:34 +000019917else
19918 ac_cv_header_stdc=no
19919fi
19920rm -f conftest*
19921
19922fi
19923
19924if test $ac_cv_header_stdc = yes; then
19925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019926 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019927 :
19928else
cristy8b350f62009-11-15 23:12:43 +000019929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019930/* end confdefs.h. */
19931#include <ctype.h>
19932#include <stdlib.h>
19933#if ((' ' & 0x0FF) == 0x020)
19934# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19935# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19936#else
19937# define ISLOWER(c) \
19938 (('a' <= (c) && (c) <= 'i') \
19939 || ('j' <= (c) && (c) <= 'r') \
19940 || ('s' <= (c) && (c) <= 'z'))
19941# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19942#endif
19943
19944#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19945int
19946main ()
19947{
19948 int i;
19949 for (i = 0; i < 256; i++)
19950 if (XOR (islower (i), ISLOWER (i))
19951 || toupper (i) != TOUPPER (i))
19952 return 2;
19953 return 0;
19954}
19955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019956if ac_fn_c_try_run "$LINENO"; then :
19957
cristy3ed852e2009-09-05 21:47:34 +000019958else
cristy8b350f62009-11-15 23:12:43 +000019959 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019960fi
cristy8b350f62009-11-15 23:12:43 +000019961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19962 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019963fi
19964
cristy3ed852e2009-09-05 21:47:34 +000019965fi
19966fi
cristy8b350f62009-11-15 23:12:43 +000019967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019968$as_echo "$ac_cv_header_stdc" >&6; }
19969if test $ac_cv_header_stdc = yes; then
19970
cristy8b350f62009-11-15 23:12:43 +000019971$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019972
19973fi
19974
19975if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019976 { $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 +000019977 header files. Compilation cannot proceed. Please install the ANSI C
19978 headers and rerun this script." >&5
19979$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19980 header files. Compilation cannot proceed. Please install the ANSI C
19981 headers and rerun this script." >&2;};
19982fi
cristya0b81c32010-01-22 02:54:33 +000019983
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
19985$as_echo_n "checking whether to enable assertions... " >&6; }
19986 # Check whether --enable-assert was given.
19987if test "${enable_assert+set}" = set; then :
19988 enableval=$enable_assert; ac_enable_assert=$enableval
19989 if test "x$enableval" = xno; then :
19990
19991$as_echo "#define NDEBUG 1" >>confdefs.h
19992
19993elif test "x$enableval" != xyes; then :
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
19995$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
19996 ac_enable_assert=yes
19997fi
19998else
19999 ac_enable_assert=yes
20000fi
20001
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20003$as_echo "$ac_enable_assert" >&6; }
20004
cristy3ed852e2009-09-05 21:47:34 +000020005ac_header_dirent=no
20006for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20007 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020009$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020011 $as_echo_n "(cached) " >&6
20012else
cristy8b350f62009-11-15 23:12:43 +000020013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020014/* end confdefs.h. */
20015#include <sys/types.h>
20016#include <$ac_hdr>
20017
20018int
20019main ()
20020{
20021if ((DIR *) 0)
20022return 0;
20023 ;
20024 return 0;
20025}
20026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020027if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020028 eval "$as_ac_Header=yes"
20029else
cristy8b350f62009-11-15 23:12:43 +000020030 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020031fi
cristy3ed852e2009-09-05 21:47:34 +000020032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20033fi
cristy8b350f62009-11-15 23:12:43 +000020034eval ac_res=\$$as_ac_Header
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020036$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020037eval as_val=\$$as_ac_Header
20038 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020039 cat >>confdefs.h <<_ACEOF
20040#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20041_ACEOF
20042
20043ac_header_dirent=$ac_hdr; break
20044fi
20045
20046done
20047# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20048if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020050$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020051if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020052 $as_echo_n "(cached) " >&6
20053else
20054 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020056/* end confdefs.h. */
20057
20058/* Override any GCC internal prototype to avoid an error.
20059 Use char because int might match the return type of a GCC
20060 builtin and then its argument prototype would still apply. */
20061#ifdef __cplusplus
20062extern "C"
20063#endif
20064char opendir ();
20065int
20066main ()
20067{
20068return opendir ();
20069 ;
20070 return 0;
20071}
20072_ACEOF
20073for ac_lib in '' dir; do
20074 if test -z "$ac_lib"; then
20075 ac_res="none required"
20076 else
20077 ac_res=-l$ac_lib
20078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20079 fi
cristy8b350f62009-11-15 23:12:43 +000020080 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020081 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020082fi
cristy8b350f62009-11-15 23:12:43 +000020083rm -f core conftest.err conftest.$ac_objext \
20084 conftest$ac_exeext
20085 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020086 break
20087fi
20088done
cristy8b350f62009-11-15 23:12:43 +000020089if test "${ac_cv_search_opendir+set}" = set; then :
20090
cristy3ed852e2009-09-05 21:47:34 +000020091else
20092 ac_cv_search_opendir=no
20093fi
20094rm conftest.$ac_ext
20095LIBS=$ac_func_search_save_LIBS
20096fi
cristy8b350f62009-11-15 23:12:43 +000020097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020098$as_echo "$ac_cv_search_opendir" >&6; }
20099ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020100if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20102
20103fi
20104
20105else
cristy8b350f62009-11-15 23:12:43 +000020106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020107$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020108if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020109 $as_echo_n "(cached) " >&6
20110else
20111 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020113/* end confdefs.h. */
20114
20115/* Override any GCC internal prototype to avoid an error.
20116 Use char because int might match the return type of a GCC
20117 builtin and then its argument prototype would still apply. */
20118#ifdef __cplusplus
20119extern "C"
20120#endif
20121char opendir ();
20122int
20123main ()
20124{
20125return opendir ();
20126 ;
20127 return 0;
20128}
20129_ACEOF
20130for ac_lib in '' x; do
20131 if test -z "$ac_lib"; then
20132 ac_res="none required"
20133 else
20134 ac_res=-l$ac_lib
20135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20136 fi
cristy8b350f62009-11-15 23:12:43 +000020137 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020138 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020139fi
cristy8b350f62009-11-15 23:12:43 +000020140rm -f core conftest.err conftest.$ac_objext \
20141 conftest$ac_exeext
20142 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020143 break
20144fi
20145done
cristy8b350f62009-11-15 23:12:43 +000020146if test "${ac_cv_search_opendir+set}" = set; then :
20147
cristy3ed852e2009-09-05 21:47:34 +000020148else
20149 ac_cv_search_opendir=no
20150fi
20151rm conftest.$ac_ext
20152LIBS=$ac_func_search_save_LIBS
20153fi
cristy8b350f62009-11-15 23:12:43 +000020154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020155$as_echo "$ac_cv_search_opendir" >&6; }
20156ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020157if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20159
20160fi
20161
20162fi
20163
20164
20165# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020166for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000020167do :
20168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20169ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20170eval as_val=\$$as_ac_Header
20171 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020172 cat >>confdefs.h <<_ACEOF
20173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20174_ACEOF
20175
20176fi
20177
20178done
20179
20180
20181########
20182#
20183# Checks for typedefs, structures, and compiler characteristics.
20184#
20185########
20186
cristy8b350f62009-11-15 23:12:43 +000020187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020188$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020189if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020190 $as_echo_n "(cached) " >&6
20191else
cristy8b350f62009-11-15 23:12:43 +000020192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020193/* end confdefs.h. */
20194
20195#include <stdbool.h>
20196#ifndef bool
20197 "error: bool is not defined"
20198#endif
20199#ifndef false
20200 "error: false is not defined"
20201#endif
20202#if false
20203 "error: false is not 0"
20204#endif
20205#ifndef true
20206 "error: true is not defined"
20207#endif
20208#if true != 1
20209 "error: true is not 1"
20210#endif
20211#ifndef __bool_true_false_are_defined
20212 "error: __bool_true_false_are_defined is not defined"
20213#endif
20214
20215 struct s { _Bool s: 1; _Bool t; } s;
20216
20217 char a[true == 1 ? 1 : -1];
20218 char b[false == 0 ? 1 : -1];
20219 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20220 char d[(bool) 0.5 == true ? 1 : -1];
20221 bool e = &s;
20222 char f[(_Bool) 0.0 == false ? 1 : -1];
20223 char g[true];
20224 char h[sizeof (_Bool)];
20225 char i[sizeof s.t];
20226 enum { j = false, k = true, l = false * true, m = true * 256 };
20227 /* The following fails for
20228 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20229 _Bool n[m];
20230 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20231 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20232# if defined __xlc__ || defined __GNUC__
20233 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20234 reported by James Lemley on 2005-10-05; see
20235 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20236 This test is not quite right, since xlc is allowed to
20237 reject this program, as the initializer for xlcbug is
20238 not one of the forms that C requires support for.
20239 However, doing the test right would require a runtime
20240 test, and that would make cross-compilation harder.
20241 Let us hope that IBM fixes the xlc bug, and also adds
20242 support for this kind of constant expression. In the
20243 meantime, this test will reject xlc, which is OK, since
20244 our stdbool.h substitute should suffice. We also test
20245 this with GCC, where it should work, to detect more
20246 quickly whether someone messes up the test in the
20247 future. */
20248 char digs[] = "0123456789";
20249 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20250# endif
20251 /* Catch a bug in an HP-UX C compiler. See
20252 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20253 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20254 */
20255 _Bool q = true;
20256 _Bool *pq = &q;
20257
20258int
20259main ()
20260{
20261
20262 *pq |= q;
20263 *pq |= ! q;
20264 /* Refer to every declared value, to avoid compiler optimizations. */
20265 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20266 + !m + !n + !o + !p + !q + !pq);
20267
20268 ;
20269 return 0;
20270}
20271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020272if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020273 ac_cv_header_stdbool_h=yes
20274else
cristy8b350f62009-11-15 23:12:43 +000020275 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020276fi
cristy3ed852e2009-09-05 21:47:34 +000020277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278fi
cristy8b350f62009-11-15 23:12:43 +000020279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020280$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020281ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20282if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020283
20284cat >>confdefs.h <<_ACEOF
20285#define HAVE__BOOL 1
20286_ACEOF
20287
20288
20289fi
20290
20291if test $ac_cv_header_stdbool_h = yes; then
20292
cristy8b350f62009-11-15 23:12:43 +000020293$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020294
20295fi
20296
cristy8b350f62009-11-15 23:12:43 +000020297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020298$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020299if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020300 $as_echo_n "(cached) " >&6
20301else
cristy8b350f62009-11-15 23:12:43 +000020302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020303/* end confdefs.h. */
20304
20305int
20306main ()
20307{
20308
20309volatile int x;
20310int * volatile y = (int *) 0;
20311return !x && !y;
20312 ;
20313 return 0;
20314}
20315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020316if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020317 ac_cv_c_volatile=yes
20318else
cristy8b350f62009-11-15 23:12:43 +000020319 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020320fi
cristy3ed852e2009-09-05 21:47:34 +000020321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20322fi
cristy8b350f62009-11-15 23:12:43 +000020323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020324$as_echo "$ac_cv_c_volatile" >&6; }
20325if test $ac_cv_c_volatile = no; then
20326
cristy8b350f62009-11-15 23:12:43 +000020327$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020328
20329fi
20330
cristy8b350f62009-11-15 23:12:43 +000020331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020332$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020333if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020334 $as_echo_n "(cached) " >&6
20335else
cristy8b350f62009-11-15 23:12:43 +000020336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020337/* end confdefs.h. */
20338#define x(y) #y
20339
20340char *s = x(teststring);
20341_ACEOF
20342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020343 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020344 ac_cv_c_stringize=no
20345else
20346 ac_cv_c_stringize=yes
20347fi
20348rm -f conftest*
20349
20350fi
cristy8b350f62009-11-15 23:12:43 +000020351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020352$as_echo "$ac_cv_c_stringize" >&6; }
20353if test $ac_cv_c_stringize = yes; then
20354
cristy8b350f62009-11-15 23:12:43 +000020355$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020356
20357fi
20358
cristy8b350f62009-11-15 23:12:43 +000020359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020360$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020361if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020362 $as_echo_n "(cached) " >&6
20363else
cristy8b350f62009-11-15 23:12:43 +000020364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020365/* end confdefs.h. */
20366#include <sys/types.h>
20367#include <sys/stat.h>
20368
20369#if defined S_ISBLK && defined S_IFDIR
20370extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20371#endif
20372
20373#if defined S_ISBLK && defined S_IFCHR
20374extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20375#endif
20376
20377#if defined S_ISLNK && defined S_IFREG
20378extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20379#endif
20380
20381#if defined S_ISSOCK && defined S_IFREG
20382extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20383#endif
20384
20385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020386if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020387 ac_cv_header_stat_broken=no
20388else
cristy8b350f62009-11-15 23:12:43 +000020389 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020390fi
cristy3ed852e2009-09-05 21:47:34 +000020391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20392fi
cristy8b350f62009-11-15 23:12:43 +000020393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020394$as_echo "$ac_cv_header_stat_broken" >&6; }
20395if test $ac_cv_header_stat_broken = yes; then
20396
cristy8b350f62009-11-15 23:12:43 +000020397$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020398
20399fi
20400
cristy8b350f62009-11-15 23:12:43 +000020401{ $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 +000020402$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020403if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020404 $as_echo_n "(cached) " >&6
20405else
cristy8b350f62009-11-15 23:12:43 +000020406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020407/* end confdefs.h. */
20408#include <sys/types.h>
20409#include <sys/time.h>
20410#include <time.h>
20411
20412int
20413main ()
20414{
20415if ((struct tm *) 0)
20416return 0;
20417 ;
20418 return 0;
20419}
20420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020421if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020422 ac_cv_header_time=yes
20423else
cristy8b350f62009-11-15 23:12:43 +000020424 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020425fi
cristy3ed852e2009-09-05 21:47:34 +000020426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20427fi
cristy8b350f62009-11-15 23:12:43 +000020428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020429$as_echo "$ac_cv_header_time" >&6; }
20430if test $ac_cv_header_time = yes; then
20431
cristy8b350f62009-11-15 23:12:43 +000020432$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020433
20434fi
20435
cristy8b350f62009-11-15 23:12:43 +000020436{ $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 +000020437$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020438if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020439 $as_echo_n "(cached) " >&6
20440else
cristy8b350f62009-11-15 23:12:43 +000020441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020442/* end confdefs.h. */
20443#include <sys/types.h>
20444#include <time.h>
20445
20446int
20447main ()
20448{
20449struct tm tm;
20450 int *p = &tm.tm_sec;
20451 return !p;
20452 ;
20453 return 0;
20454}
20455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020456if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020457 ac_cv_struct_tm=time.h
20458else
cristy8b350f62009-11-15 23:12:43 +000020459 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020460fi
cristy3ed852e2009-09-05 21:47:34 +000020461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462fi
cristy8b350f62009-11-15 23:12:43 +000020463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020464$as_echo "$ac_cv_struct_tm" >&6; }
20465if test $ac_cv_struct_tm = sys/time.h; then
20466
cristy8b350f62009-11-15 23:12:43 +000020467$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020468
20469fi
20470
cristy8b350f62009-11-15 23:12:43 +000020471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000020472$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020473if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020474 $as_echo_n "(cached) " >&6
20475else
20476 echo '#! /bin/cat
20477exit 69
20478' >conftest
20479chmod u+x conftest
20480(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20481if test $? -ne 69; then
20482 ac_cv_sys_interpreter=yes
20483else
20484 ac_cv_sys_interpreter=no
20485fi
20486rm -f conftest
20487fi
cristy8b350f62009-11-15 23:12:43 +000020488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000020489$as_echo "$ac_cv_sys_interpreter" >&6; }
20490interpval=$ac_cv_sys_interpreter
20491
20492
cristy3ed852e2009-09-05 21:47:34 +000020493# If the C compiler supports the keyword inline, do nothing. Otherwise
20494# define inline to __inline__ or __inline if it accepts one of those,
20495# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000020496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020497$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020498if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020499 $as_echo_n "(cached) " >&6
20500else
20501 ac_cv_c_inline=no
20502for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000020503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020504/* end confdefs.h. */
20505#ifndef __cplusplus
20506typedef int foo_t;
20507static $ac_kw foo_t static_foo () {return 0; }
20508$ac_kw foo_t foo () {return 0; }
20509#endif
20510
20511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020512if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020513 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020514fi
cristy3ed852e2009-09-05 21:47:34 +000020515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516 test "$ac_cv_c_inline" != no && break
20517done
20518
20519fi
cristy8b350f62009-11-15 23:12:43 +000020520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020521$as_echo "$ac_cv_c_inline" >&6; }
20522
cristy3ed852e2009-09-05 21:47:34 +000020523case $ac_cv_c_inline in
20524 inline | yes) ;;
20525 *)
20526 case $ac_cv_c_inline in
20527 no) ac_val=;;
20528 *) ac_val=$ac_cv_c_inline;;
20529 esac
20530 cat >>confdefs.h <<_ACEOF
20531#ifndef __cplusplus
20532#define inline $ac_val
20533#endif
20534_ACEOF
20535 ;;
20536esac
20537
20538
20539# If the C compiler supports the keyword restrict, do nothing. Otherwise
20540# define restrict to __restrict__ or __restrict if it accepts one of those,
20541# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000020542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000020543$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020544if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020545 $as_echo_n "(cached) " >&6
20546else
20547 ac_cv_c_restrict=no
20548 # The order here caters to the fact that C++ does not require restrict.
20549 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000020550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020551/* end confdefs.h. */
20552typedef int * int_ptr;
20553 int foo (int_ptr $ac_kw ip) {
20554 return ip[0];
20555 }
20556int
20557main ()
20558{
20559int s[1];
20560 int * $ac_kw t = s;
20561 t[0] = 0;
20562 return foo(t)
20563 ;
20564 return 0;
20565}
20566_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020567if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020568 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020569fi
cristy3ed852e2009-09-05 21:47:34 +000020570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 test "$ac_cv_c_restrict" != no && break
20572 done
20573
20574fi
cristy8b350f62009-11-15 23:12:43 +000020575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000020576$as_echo "$ac_cv_c_restrict" >&6; }
20577
cristy3ed852e2009-09-05 21:47:34 +000020578 case $ac_cv_c_restrict in
20579 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000020580 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020581 ;;
20582 *) cat >>confdefs.h <<_ACEOF
20583#define restrict $ac_cv_c_restrict
20584_ACEOF
20585 ;;
20586 esac
20587
20588
20589# If words are stored with the most significant byte first (like
20590# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000020591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020592$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020593if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020594 $as_echo_n "(cached) " >&6
20595else
20596 ac_cv_c_bigendian=unknown
20597 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000020598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020599/* end confdefs.h. */
20600#ifndef __APPLE_CC__
20601 not a universal capable compiler
20602 #endif
20603 typedef int dummy;
20604
20605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020606if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020607
20608 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000020609 # there are at least two -arch flags with different values.
20610 ac_arch=
20611 ac_prev=
20612 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20613 if test -n "$ac_prev"; then
20614 case $ac_word in
20615 i?86 | x86_64 | ppc | ppc64)
20616 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20617 ac_arch=$ac_word
20618 else
20619 ac_cv_c_bigendian=universal
20620 break
20621 fi
20622 ;;
20623 esac
20624 ac_prev=
20625 elif test "x$ac_word" = "x-arch"; then
20626 ac_prev=arch
20627 fi
20628 done
cristy3ed852e2009-09-05 21:47:34 +000020629fi
cristy3ed852e2009-09-05 21:47:34 +000020630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20631 if test $ac_cv_c_bigendian = unknown; then
20632 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000020633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020634/* end confdefs.h. */
20635#include <sys/types.h>
20636 #include <sys/param.h>
20637
20638int
20639main ()
20640{
20641#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20642 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20643 && LITTLE_ENDIAN)
20644 bogus endian macros
20645 #endif
20646
20647 ;
20648 return 0;
20649}
20650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020651if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020652 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020654/* end confdefs.h. */
20655#include <sys/types.h>
20656 #include <sys/param.h>
20657
20658int
20659main ()
20660{
20661#if BYTE_ORDER != BIG_ENDIAN
20662 not big endian
20663 #endif
20664
20665 ;
20666 return 0;
20667}
20668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020669if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020670 ac_cv_c_bigendian=yes
20671else
cristy8b350f62009-11-15 23:12:43 +000020672 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020673fi
cristy3ed852e2009-09-05 21:47:34 +000020674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020675fi
cristy3ed852e2009-09-05 21:47:34 +000020676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20677 fi
20678 if test $ac_cv_c_bigendian = unknown; then
20679 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020681/* end confdefs.h. */
20682#include <limits.h>
20683
20684int
20685main ()
20686{
20687#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20688 bogus endian macros
20689 #endif
20690
20691 ;
20692 return 0;
20693}
20694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020695if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020696 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020698/* end confdefs.h. */
20699#include <limits.h>
20700
20701int
20702main ()
20703{
20704#ifndef _BIG_ENDIAN
20705 not big endian
20706 #endif
20707
20708 ;
20709 return 0;
20710}
20711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020712if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020713 ac_cv_c_bigendian=yes
20714else
cristy8b350f62009-11-15 23:12:43 +000020715 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020716fi
cristy3ed852e2009-09-05 21:47:34 +000020717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020718fi
cristy3ed852e2009-09-05 21:47:34 +000020719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 fi
20721 if test $ac_cv_c_bigendian = unknown; then
20722 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020723 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020724 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020726/* end confdefs.h. */
20727short int ascii_mm[] =
20728 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20729 short int ascii_ii[] =
20730 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20731 int use_ascii (int i) {
20732 return ascii_mm[i] + ascii_ii[i];
20733 }
20734 short int ebcdic_ii[] =
20735 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20736 short int ebcdic_mm[] =
20737 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20738 int use_ebcdic (int i) {
20739 return ebcdic_mm[i] + ebcdic_ii[i];
20740 }
20741 extern int foo;
20742
20743int
20744main ()
20745{
20746return use_ascii (foo) == use_ebcdic (foo);
20747 ;
20748 return 0;
20749}
20750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020751if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020752 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20753 ac_cv_c_bigendian=yes
20754 fi
20755 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20756 if test "$ac_cv_c_bigendian" = unknown; then
20757 ac_cv_c_bigendian=no
20758 else
20759 # finding both strings is unlikely to happen, but who knows?
20760 ac_cv_c_bigendian=unknown
20761 fi
20762 fi
cristy3ed852e2009-09-05 21:47:34 +000020763fi
cristy3ed852e2009-09-05 21:47:34 +000020764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765else
cristy8b350f62009-11-15 23:12:43 +000020766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020767/* end confdefs.h. */
20768$ac_includes_default
20769int
20770main ()
20771{
20772
20773 /* Are we little or big endian? From Harbison&Steele. */
20774 union
20775 {
20776 long int l;
20777 char c[sizeof (long int)];
20778 } u;
20779 u.l = 1;
20780 return u.c[sizeof (long int) - 1] == 1;
20781
20782 ;
20783 return 0;
20784}
20785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020786if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020787 ac_cv_c_bigendian=no
20788else
cristy8b350f62009-11-15 23:12:43 +000020789 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020790fi
cristy8b350f62009-11-15 23:12:43 +000020791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20792 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020793fi
20794
cristy3ed852e2009-09-05 21:47:34 +000020795 fi
20796fi
cristy8b350f62009-11-15 23:12:43 +000020797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020798$as_echo "$ac_cv_c_bigendian" >&6; }
20799 case $ac_cv_c_bigendian in #(
20800 yes)
cristy8b350f62009-11-15 23:12:43 +000020801 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020802;; #(
20803 no)
20804 ;; #(
20805 universal)
20806
cristy8b350f62009-11-15 23:12:43 +000020807$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020808
20809 ;; #(
20810 *)
cristy8b350f62009-11-15 23:12:43 +000020811 as_fn_error "unknown endianness
20812 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020813 esac
20814
20815
20816# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020817ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20818if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020819
cristy3ed852e2009-09-05 21:47:34 +000020820else
20821
20822cat >>confdefs.h <<_ACEOF
20823#define mode_t int
20824_ACEOF
20825
20826fi
20827
20828
20829# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020830ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20831if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020832
cristy3ed852e2009-09-05 21:47:34 +000020833else
20834
20835cat >>confdefs.h <<_ACEOF
20836#define off_t long int
20837_ACEOF
20838
20839fi
20840
20841
20842# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020843ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20844if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020845
cristy3ed852e2009-09-05 21:47:34 +000020846else
20847
20848cat >>confdefs.h <<_ACEOF
20849#define pid_t int
20850_ACEOF
20851
20852fi
20853
20854
20855# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020856ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20857if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020858
cristy3ed852e2009-09-05 21:47:34 +000020859else
20860
20861cat >>confdefs.h <<_ACEOF
20862#define size_t unsigned int
20863_ACEOF
20864
20865fi
20866
20867
20868# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020869ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20870if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020871
cristy3ed852e2009-09-05 21:47:34 +000020872else
20873
20874cat >>confdefs.h <<_ACEOF
20875#define ssize_t int
20876_ACEOF
20877
20878fi
20879
20880
20881# If the C compiler supports a working long double type with more range
20882# or precision than the double type, define HAVE_LONG_DOUBLE.
20883
cristy8b350f62009-11-15 23:12:43 +000020884 { $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 +000020885$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020886if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020887 $as_echo_n "(cached) " >&6
20888else
cristy8b350f62009-11-15 23:12:43 +000020889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020890/* end confdefs.h. */
20891#include <float.h>
20892 long double const a[] =
20893 {
20894 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20895 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20896 };
20897 long double
20898 f (long double x)
20899 {
20900 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20901 + (x ? f (x) : 'c'));
20902 }
20903
20904int
20905main ()
20906{
20907static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20908 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20909 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20910 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20911 && (int) LDBL_EPSILON == 0
20912 )];
20913test_array [0] = 0
20914
20915 ;
20916 return 0;
20917}
20918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020919if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020920 ac_cv_type_long_double_wider=yes
20921else
cristy8b350f62009-11-15 23:12:43 +000020922 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020923fi
cristy3ed852e2009-09-05 21:47:34 +000020924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925fi
cristy8b350f62009-11-15 23:12:43 +000020926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020927$as_echo "$ac_cv_type_long_double_wider" >&6; }
20928 if test $ac_cv_type_long_double_wider = yes; then
20929
cristy8b350f62009-11-15 23:12:43 +000020930$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020931
20932 fi
20933
20934
20935# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20936# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020938$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020939if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020940 $as_echo_n "(cached) " >&6
20941else
cristy8b350f62009-11-15 23:12:43 +000020942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020943/* end confdefs.h. */
20944$ac_includes_default
20945int
20946main ()
20947{
20948static int test_array [1 - 2 * !(((char) -1) < 0)];
20949test_array [0] = 0
20950
20951 ;
20952 return 0;
20953}
20954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020955if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020956 ac_cv_c_char_unsigned=no
20957else
cristy8b350f62009-11-15 23:12:43 +000020958 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020959fi
cristy3ed852e2009-09-05 21:47:34 +000020960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961fi
cristy8b350f62009-11-15 23:12:43 +000020962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020963$as_echo "$ac_cv_c_char_unsigned" >&6; }
20964if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020965 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020966
20967fi
20968
20969
20970# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20971# The cast to long int works around a bug in the HP C Compiler
20972# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20973# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20974# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020976$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020977if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020978 $as_echo_n "(cached) " >&6
20979else
cristy8b350f62009-11-15 23:12:43 +000020980 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 +000020981
cristy3ed852e2009-09-05 21:47:34 +000020982else
cristy8b350f62009-11-15 23:12:43 +000020983 if test "$ac_cv_type_signed_short" = yes; then
20984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020986{ as_fn_set_status 77
20987as_fn_error "cannot compute sizeof (signed short)
20988See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020989 else
20990 ac_cv_sizeof_signed_short=0
20991 fi
20992fi
cristy8b350f62009-11-15 23:12:43 +000020993
cristy3ed852e2009-09-05 21:47:34 +000020994fi
cristy8b350f62009-11-15 23:12:43 +000020995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020996$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20997
20998
20999
21000cat >>confdefs.h <<_ACEOF
21001#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21002_ACEOF
21003
21004
21005
21006# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21007# The cast to long int works around a bug in the HP C Compiler
21008# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21009# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21010# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021012$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021013if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021014 $as_echo_n "(cached) " >&6
21015else
cristy8b350f62009-11-15 23:12:43 +000021016 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 +000021017
cristy3ed852e2009-09-05 21:47:34 +000021018else
cristy8b350f62009-11-15 23:12:43 +000021019 if test "$ac_cv_type_unsigned_short" = yes; then
21020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021022{ as_fn_set_status 77
21023as_fn_error "cannot compute sizeof (unsigned short)
21024See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021025 else
21026 ac_cv_sizeof_unsigned_short=0
21027 fi
21028fi
cristy8b350f62009-11-15 23:12:43 +000021029
cristy3ed852e2009-09-05 21:47:34 +000021030fi
cristy8b350f62009-11-15 23:12:43 +000021031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021032$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21033
21034
21035
21036cat >>confdefs.h <<_ACEOF
21037#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21038_ACEOF
21039
21040
21041
21042# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21043# The cast to long int works around a bug in the HP C Compiler
21044# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21045# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21046# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021048$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021049if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021050 $as_echo_n "(cached) " >&6
21051else
cristy8b350f62009-11-15 23:12:43 +000021052 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 +000021053
cristy3ed852e2009-09-05 21:47:34 +000021054else
cristy8b350f62009-11-15 23:12:43 +000021055 if test "$ac_cv_type_signed_int" = yes; then
21056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021058{ as_fn_set_status 77
21059as_fn_error "cannot compute sizeof (signed int)
21060See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021061 else
21062 ac_cv_sizeof_signed_int=0
21063 fi
21064fi
cristy8b350f62009-11-15 23:12:43 +000021065
cristy3ed852e2009-09-05 21:47:34 +000021066fi
cristy8b350f62009-11-15 23:12:43 +000021067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021068$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21069
21070
21071
21072cat >>confdefs.h <<_ACEOF
21073#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21074_ACEOF
21075
21076
21077
21078# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21079# The cast to long int works around a bug in the HP C Compiler
21080# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21081# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21082# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021084$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021085if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021086 $as_echo_n "(cached) " >&6
21087else
cristy8b350f62009-11-15 23:12:43 +000021088 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 +000021089
cristy3ed852e2009-09-05 21:47:34 +000021090else
cristy8b350f62009-11-15 23:12:43 +000021091 if test "$ac_cv_type_unsigned_int" = yes; then
21092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021094{ as_fn_set_status 77
21095as_fn_error "cannot compute sizeof (unsigned int)
21096See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021097 else
21098 ac_cv_sizeof_unsigned_int=0
21099 fi
21100fi
cristy8b350f62009-11-15 23:12:43 +000021101
cristy3ed852e2009-09-05 21:47:34 +000021102fi
cristy8b350f62009-11-15 23:12:43 +000021103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021104$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21105
21106
21107
21108cat >>confdefs.h <<_ACEOF
21109#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21110_ACEOF
21111
21112
21113
21114# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21115# The cast to long int works around a bug in the HP C Compiler
21116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21118# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021120$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021121if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021122 $as_echo_n "(cached) " >&6
21123else
cristy8b350f62009-11-15 23:12:43 +000021124 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 +000021125
cristy3ed852e2009-09-05 21:47:34 +000021126else
cristy8b350f62009-11-15 23:12:43 +000021127 if test "$ac_cv_type_signed_long" = yes; then
21128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021130{ as_fn_set_status 77
21131as_fn_error "cannot compute sizeof (signed long)
21132See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021133 else
21134 ac_cv_sizeof_signed_long=0
21135 fi
21136fi
cristy8b350f62009-11-15 23:12:43 +000021137
cristy3ed852e2009-09-05 21:47:34 +000021138fi
cristy8b350f62009-11-15 23:12:43 +000021139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021140$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21141
21142
21143
21144cat >>confdefs.h <<_ACEOF
21145#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21146_ACEOF
21147
21148
21149
21150# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21151# The cast to long int works around a bug in the HP C Compiler
21152# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21153# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21154# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021156$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021157if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021158 $as_echo_n "(cached) " >&6
21159else
cristy8b350f62009-11-15 23:12:43 +000021160 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 +000021161
cristy3ed852e2009-09-05 21:47:34 +000021162else
cristy8b350f62009-11-15 23:12:43 +000021163 if test "$ac_cv_type_unsigned_long" = yes; then
21164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021166{ as_fn_set_status 77
21167as_fn_error "cannot compute sizeof (unsigned long)
21168See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021169 else
21170 ac_cv_sizeof_unsigned_long=0
21171 fi
21172fi
cristy8b350f62009-11-15 23:12:43 +000021173
cristy3ed852e2009-09-05 21:47:34 +000021174fi
cristy8b350f62009-11-15 23:12:43 +000021175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021176$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21177
21178
21179
21180cat >>confdefs.h <<_ACEOF
21181#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21182_ACEOF
21183
21184
21185
21186# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21187# 'signed long long' is not supported then the value defined is zero.
21188# The cast to long int works around a bug in the HP C Compiler
21189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21191# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021193$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021194if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021195 $as_echo_n "(cached) " >&6
21196else
cristy8b350f62009-11-15 23:12:43 +000021197 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 +000021198
cristy3ed852e2009-09-05 21:47:34 +000021199else
cristy8b350f62009-11-15 23:12:43 +000021200 if test "$ac_cv_type_signed_long_long" = yes; then
21201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021203{ as_fn_set_status 77
21204as_fn_error "cannot compute sizeof (signed long long)
21205See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021206 else
21207 ac_cv_sizeof_signed_long_long=0
21208 fi
21209fi
cristy8b350f62009-11-15 23:12:43 +000021210
cristy3ed852e2009-09-05 21:47:34 +000021211fi
cristy8b350f62009-11-15 23:12:43 +000021212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021213$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21214
21215
21216
21217cat >>confdefs.h <<_ACEOF
21218#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21219_ACEOF
21220
21221
21222
21223# Obtain size of a 'unsigned long long' and define as
21224# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21225# supported then the value defined is zero.
21226# The cast to long int works around a bug in the HP C Compiler
21227# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21228# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21229# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021231$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021232if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021233 $as_echo_n "(cached) " >&6
21234else
cristy8b350f62009-11-15 23:12:43 +000021235 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 +000021236
cristy3ed852e2009-09-05 21:47:34 +000021237else
cristy8b350f62009-11-15 23:12:43 +000021238 if test "$ac_cv_type_unsigned_long_long" = yes; then
21239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021241{ as_fn_set_status 77
21242as_fn_error "cannot compute sizeof (unsigned long long)
21243See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021244 else
21245 ac_cv_sizeof_unsigned_long_long=0
21246 fi
21247fi
cristy8b350f62009-11-15 23:12:43 +000021248
cristy3ed852e2009-09-05 21:47:34 +000021249fi
cristy8b350f62009-11-15 23:12:43 +000021250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021251$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21252
21253
21254
21255cat >>confdefs.h <<_ACEOF
21256#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21257_ACEOF
21258
21259
21260
21261# Obtain size of off_t and define as SIZEOF_OFF_T
21262# The cast to long int works around a bug in the HP C Compiler
21263# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21264# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21265# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021267$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021268if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 $as_echo_n "(cached) " >&6
21270else
cristy8b350f62009-11-15 23:12:43 +000021271 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 +000021272
cristy3ed852e2009-09-05 21:47:34 +000021273else
cristy8b350f62009-11-15 23:12:43 +000021274 if test "$ac_cv_type_off_t" = yes; then
21275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021277{ as_fn_set_status 77
21278as_fn_error "cannot compute sizeof (off_t)
21279See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021280 else
21281 ac_cv_sizeof_off_t=0
21282 fi
21283fi
cristy8b350f62009-11-15 23:12:43 +000021284
cristy3ed852e2009-09-05 21:47:34 +000021285fi
cristy8b350f62009-11-15 23:12:43 +000021286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021287$as_echo "$ac_cv_sizeof_off_t" >&6; }
21288
21289
21290
21291cat >>confdefs.h <<_ACEOF
21292#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21293_ACEOF
21294
21295
21296
21297# Obtain size of size_t and define as SIZEOF_SIZE_T
21298# The cast to long int works around a bug in the HP C Compiler
21299# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21300# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21301# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021303$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021304if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021305 $as_echo_n "(cached) " >&6
21306else
cristy8b350f62009-11-15 23:12:43 +000021307 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 +000021308
cristy3ed852e2009-09-05 21:47:34 +000021309else
cristy8b350f62009-11-15 23:12:43 +000021310 if test "$ac_cv_type_size_t" = yes; then
21311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021313{ as_fn_set_status 77
21314as_fn_error "cannot compute sizeof (size_t)
21315See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021316 else
21317 ac_cv_sizeof_size_t=0
21318 fi
21319fi
cristy8b350f62009-11-15 23:12:43 +000021320
cristy3ed852e2009-09-05 21:47:34 +000021321fi
cristy8b350f62009-11-15 23:12:43 +000021322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021323$as_echo "$ac_cv_sizeof_size_t" >&6; }
21324
21325
21326
21327cat >>confdefs.h <<_ACEOF
21328#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21329_ACEOF
21330
21331
21332
21333# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21334# The cast to long int works around a bug in the HP C Compiler
21335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21337# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021339$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021340if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021341 $as_echo_n "(cached) " >&6
21342else
cristy8b350f62009-11-15 23:12:43 +000021343 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 +000021344
cristy3ed852e2009-09-05 21:47:34 +000021345else
cristy8b350f62009-11-15 23:12:43 +000021346 if test "$ac_cv_type_unsigned_intp" = yes; then
21347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021349{ as_fn_set_status 77
21350as_fn_error "cannot compute sizeof (unsigned int*)
21351See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021352 else
21353 ac_cv_sizeof_unsigned_intp=0
21354 fi
21355fi
cristy8b350f62009-11-15 23:12:43 +000021356
cristy3ed852e2009-09-05 21:47:34 +000021357fi
cristy8b350f62009-11-15 23:12:43 +000021358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021359$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21360
21361
21362
21363cat >>confdefs.h <<_ACEOF
21364#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21365_ACEOF
21366
21367
21368
21369#
21370# Compute sized types for current CPU and compiler options.
21371#
21372
cristy8b350f62009-11-15 23:12:43 +000021373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021374$as_echo_n "checking for signed 8-bit type... " >&6; }
21375INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021377$as_echo "$INT8_T" >&6; }
21378
21379
cristy8b350f62009-11-15 23:12:43 +000021380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021381$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21382UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021384$as_echo "$UINT8_T" >&6; }
21385
21386
cristy8b350f62009-11-15 23:12:43 +000021387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021388$as_echo_n "checking for signed 16-bit type... " >&6; }
21389INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021391$as_echo "$INT16_T" >&6; }
21392
21393
cristy8b350f62009-11-15 23:12:43 +000021394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021395$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21396UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021398$as_echo "$UINT16_T" >&6; }
21399
21400
cristy8b350f62009-11-15 23:12:43 +000021401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021402$as_echo_n "checking for signed 32-bit type... " >&6; }
21403INT32_T='none'
21404if test $ac_cv_sizeof_signed_int -eq 4; then
21405 INT32_T='signed int'
21406elif test $ac_cv_sizeof_signed_long -eq 4; then
21407 INT32_T='signed long'
21408fi
cristy8b350f62009-11-15 23:12:43 +000021409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021410$as_echo "$INT32_T" >&6; }
21411
21412
cristy8b350f62009-11-15 23:12:43 +000021413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021414$as_echo_n "checking for unsigned 32-bit type... " >&6; }
21415UINT32_T='none'
21416if test $ac_cv_sizeof_unsigned_int -eq 4; then
21417 UINT32_T='unsigned int'
21418elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21419 UINT32_T='unsigned long'
21420fi
cristy8b350f62009-11-15 23:12:43 +000021421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021422$as_echo "$UINT32_T" >&6; }
21423
21424
cristy8b350f62009-11-15 23:12:43 +000021425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021426$as_echo_n "checking for signed 64-bit type... " >&6; }
21427INT64_T='none'
21428if test $ac_cv_sizeof_signed_long -eq 8; then
21429 INT64_T='signed long'
21430elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21431 INT64_T='signed long long'
21432fi
cristy8b350f62009-11-15 23:12:43 +000021433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021434$as_echo "$INT64_T" >&6; }
21435
21436
cristy8b350f62009-11-15 23:12:43 +000021437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021438$as_echo_n "checking for unsigned 64-bit type... " >&6; }
21439UINT64_T='none'
21440if test $ac_cv_sizeof_unsigned_long -eq 8; then
21441 UINT64_T='unsigned long'
21442elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21443 UINT64_T='unsigned long long'
21444fi
cristy8b350f62009-11-15 23:12:43 +000021445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021446$as_echo "$UINT64_T" >&6; }
21447
21448
cristy8b350f62009-11-15 23:12:43 +000021449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021450$as_echo_n "checking for unsigned maximum type... " >&6; }
21451UINTMAX_T='none'
21452if test "$UINT64_T" != 'none'; then
21453 UINTMAX_T=$UINT64_T
21454elif test "$UINT32_T" != 'none'; then
21455 UINTMAX_T=$UINT32_T
21456fi
cristy8b350f62009-11-15 23:12:43 +000021457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021458$as_echo "$UINTMAX_T" >&6; }
21459
21460
cristy8b350f62009-11-15 23:12:43 +000021461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021462$as_echo_n "checking for pointer difference type... " >&6; }
21463UINTPTR_T='none'
21464if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21465 UINTPTR_T='unsigned long'
21466elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21467 UINTPTR_T='unsigned long long'
21468fi
cristy8b350f62009-11-15 23:12:43 +000021469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021470$as_echo "$UINTPTR_T" >&6; }
21471
21472
cristy8b350f62009-11-15 23:12:43 +000021473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021474$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021476/* end confdefs.h. */
21477
21478int
21479main ()
21480{
21481{ const char *func = __func__; return(func != 0 ? 0 : 1); }
21482 ;
21483 return 0;
21484}
21485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021486if ac_fn_c_try_compile "$LINENO"; then :
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021488$as_echo "yes" >&6; }
21489else
cristy8b350f62009-11-15 23:12:43 +000021490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021491$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021493$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021495/* end confdefs.h. */
21496
21497int
21498main ()
21499{
21500{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21501 ;
21502 return 0;
21503}
21504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021505if ac_fn_c_try_compile "$LINENO"; then :
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021507$as_echo "yes" >&6; }
21508
cristy8b350f62009-11-15 23:12:43 +000021509$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021510
21511else
cristy8b350f62009-11-15 23:12:43 +000021512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021513$as_echo "no" >&6; }
21514
cristy8b350f62009-11-15 23:12:43 +000021515$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021516
21517fi
cristy3ed852e2009-09-05 21:47:34 +000021518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21519fi
cristy3ed852e2009-09-05 21:47:34 +000021520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521
21522########
21523#
21524# Check for functions
21525#
21526########
cristy3ed852e2009-09-05 21:47:34 +000021527for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000021528do :
21529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21530ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21531eval as_val=\$$as_ac_Header
21532 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021533 cat >>confdefs.h <<_ACEOF
21534#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21535_ACEOF
21536
21537fi
21538
21539done
21540
cristy3ed852e2009-09-05 21:47:34 +000021541for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021542do :
21543 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21544if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021545 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021546#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021547_ACEOF
21548
21549fi
21550done
21551
cristy8b350f62009-11-15 23:12:43 +000021552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000021553$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021554if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021555 $as_echo_n "(cached) " >&6
21556else
cristy8b350f62009-11-15 23:12:43 +000021557 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021558 magick_cv_func_mmap_fileio=no
21559else
cristy8b350f62009-11-15 23:12:43 +000021560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021561/* end confdefs.h. */
21562$ac_includes_default
21563/* malloc might have been renamed as rpl_malloc. */
21564#undef malloc
21565
21566/*
21567 This test is derived from GNU Autoconf's similar macro.
21568 The purpose of this test is to verify that files may be memory
21569 mapped, and that memory mapping and file I/O are coherent.
21570
21571 The test creates a test file, memory maps the file, updates
21572 the file using the memory map, and then reads the file using
21573 file I/O to verify that the file contains the updates.
21574*/
21575
21576#include <fcntl.h>
21577#include <sys/mman.h>
21578
21579#if !STDC_HEADERS && !HAVE_STDLIB_H
21580char *malloc ();
21581#endif
21582
21583/* This mess was copied from the GNU getpagesize.h. */
21584#if !HAVE_GETPAGESIZE
21585/* Assume that all systems that can run configure have sys/param.h. */
21586# if !HAVE_SYS_PARAM_H
21587# define HAVE_SYS_PARAM_H 1
21588# endif
21589
21590# ifdef _SC_PAGESIZE
21591# define getpagesize() sysconf(_SC_PAGESIZE)
21592# else /* no _SC_PAGESIZE */
21593# if HAVE_SYS_PARAM_H
21594# include <sys/param.h>
21595# ifdef EXEC_PAGESIZE
21596# define getpagesize() EXEC_PAGESIZE
21597# else /* no EXEC_PAGESIZE */
21598# ifdef NBPG
21599# define getpagesize() NBPG * CLSIZE
21600# ifndef CLSIZE
21601# define CLSIZE 1
21602# endif /* no CLSIZE */
21603# else /* no NBPG */
21604# ifdef NBPC
21605# define getpagesize() NBPC
21606# else /* no NBPC */
21607# ifdef PAGESIZE
21608# define getpagesize() PAGESIZE
21609# endif /* PAGESIZE */
21610# endif /* no NBPC */
21611# endif /* no NBPG */
21612# endif /* no EXEC_PAGESIZE */
21613# else /* no HAVE_SYS_PARAM_H */
21614# define getpagesize() 8192 /* punt totally */
21615# endif /* no HAVE_SYS_PARAM_H */
21616# endif /* no _SC_PAGESIZE */
21617
21618#endif /* no HAVE_GETPAGESIZE */
21619
21620int
21621main ()
21622{
21623 char *data, *data2, *data3;
21624 int i, pagesize;
21625 int fd;
21626
21627 pagesize = getpagesize ();
21628
21629 /* First, make a file with some known garbage in it. */
21630 data = (char *) malloc (pagesize);
21631 if (!data)
21632 exit (1);
21633 for (i = 0; i < pagesize; ++i)
21634 *(data + i) = rand ();
21635 umask (0);
21636 fd = creat ("conftest.mmap", 0600);
21637 if (fd < 0)
21638 exit (1);
21639 if (write (fd, data, pagesize) != pagesize)
21640 exit (1);
21641 close (fd);
21642
21643 /* Mmap the file as read/write/shared and verify that we see the
21644 same garbage. */
21645 fd = open ("conftest.mmap", O_RDWR);
21646 if (fd < 0)
21647 exit (1);
21648 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21649 if (data2 == 0)
21650 exit (1);
21651 for (i = 0; i < pagesize; ++i)
21652 if (*(data + i) != *(data2 + i))
21653 exit (1);
21654
21655 /* Finally, make sure that changes to the mapped area
21656 percolate back to the file as seen by read(). */
21657 for (i = 0; i < pagesize; ++i)
21658 *(data2 + i) = *(data2 + i) + 1;
21659 data3 = (char *) malloc (pagesize);
21660 if (!data3)
21661 exit (1);
21662 if (read (fd, data3, pagesize) != pagesize)
21663 exit (1);
21664 for (i = 0; i < pagesize; ++i)
21665 if (*(data2 + i) != *(data3 + i))
21666 exit (1);
21667 close (fd);
21668 exit (0);
21669}
21670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021671if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021672 magick_cv_func_mmap_fileio=yes
21673else
cristy8b350f62009-11-15 23:12:43 +000021674 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021675fi
cristy8b350f62009-11-15 23:12:43 +000021676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21677 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021678fi
21679
cristy3ed852e2009-09-05 21:47:34 +000021680fi
cristy8b350f62009-11-15 23:12:43 +000021681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021682$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21683if test $magick_cv_func_mmap_fileio = yes; then
21684
cristy8b350f62009-11-15 23:12:43 +000021685$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021686
21687fi
21688rm -f conftest.mmap
21689
cristy8b350f62009-11-15 23:12:43 +000021690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021691$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021692if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021693 $as_echo_n "(cached) " >&6
21694else
cristy8b350f62009-11-15 23:12:43 +000021695 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021696 ac_cv_func_closedir_void=yes
21697else
cristy8b350f62009-11-15 23:12:43 +000021698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021699/* end confdefs.h. */
21700$ac_includes_default
21701#include <$ac_header_dirent>
21702#ifndef __cplusplus
21703int closedir ();
21704#endif
21705
21706int
21707main ()
21708{
21709return closedir (opendir (".")) != 0;
21710 ;
21711 return 0;
21712}
21713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021714if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 ac_cv_func_closedir_void=no
21716else
cristy8b350f62009-11-15 23:12:43 +000021717 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021718fi
cristy8b350f62009-11-15 23:12:43 +000021719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21720 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021721fi
21722
cristy3ed852e2009-09-05 21:47:34 +000021723fi
cristy8b350f62009-11-15 23:12:43 +000021724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021725$as_echo "$ac_cv_func_closedir_void" >&6; }
21726if test $ac_cv_func_closedir_void = yes; then
21727
cristy8b350f62009-11-15 23:12:43 +000021728$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021729
21730fi
21731
cristycd4c5312009-11-22 01:19:08 +000021732
21733
21734
21735 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021736do :
21737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021738ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21739"
cristy8b350f62009-11-15 23:12:43 +000021740eval as_val=\$$as_ac_Header
21741 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021742 cat >>confdefs.h <<_ACEOF
21743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21744_ACEOF
21745
21746fi
21747
21748done
21749
cristycd4c5312009-11-22 01:19:08 +000021750
21751
21752
21753
21754
21755
21756
cristy3ed852e2009-09-05 21:47:34 +000021757for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021758do :
21759 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21760if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021761 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021762#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021763_ACEOF
21764
21765fi
21766done
21767
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021770if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021771 $as_echo_n "(cached) " >&6
21772else
cristy8b350f62009-11-15 23:12:43 +000021773 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021774 ac_cv_func_mmap_fixed_mapped=no
21775else
cristy8b350f62009-11-15 23:12:43 +000021776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021777/* end confdefs.h. */
21778$ac_includes_default
21779/* malloc might have been renamed as rpl_malloc. */
21780#undef malloc
21781
21782/* Thanks to Mike Haertel and Jim Avera for this test.
21783 Here is a matrix of mmap possibilities:
21784 mmap private not fixed
21785 mmap private fixed at somewhere currently unmapped
21786 mmap private fixed at somewhere already mapped
21787 mmap shared not fixed
21788 mmap shared fixed at somewhere currently unmapped
21789 mmap shared fixed at somewhere already mapped
21790 For private mappings, we should verify that changes cannot be read()
21791 back from the file, nor mmap's back from the file at a different
21792 address. (There have been systems where private was not correctly
21793 implemented like the infamous i386 svr4.0, and systems where the
21794 VM page cache was not coherent with the file system buffer cache
21795 like early versions of FreeBSD and possibly contemporary NetBSD.)
21796 For shared mappings, we should conversely verify that changes get
21797 propagated back to all the places they're supposed to be.
21798
21799 Grep wants private fixed already mapped.
21800 The main things grep needs to know about mmap are:
21801 * does it exist and is it safe to write into the mmap'd area
21802 * how to use it (BSD variants) */
21803
21804#include <fcntl.h>
21805#include <sys/mman.h>
21806
21807#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21808char *malloc ();
21809#endif
21810
21811/* This mess was copied from the GNU getpagesize.h. */
21812#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021813# ifdef _SC_PAGESIZE
21814# define getpagesize() sysconf(_SC_PAGESIZE)
21815# else /* no _SC_PAGESIZE */
21816# ifdef HAVE_SYS_PARAM_H
21817# include <sys/param.h>
21818# ifdef EXEC_PAGESIZE
21819# define getpagesize() EXEC_PAGESIZE
21820# else /* no EXEC_PAGESIZE */
21821# ifdef NBPG
21822# define getpagesize() NBPG * CLSIZE
21823# ifndef CLSIZE
21824# define CLSIZE 1
21825# endif /* no CLSIZE */
21826# else /* no NBPG */
21827# ifdef NBPC
21828# define getpagesize() NBPC
21829# else /* no NBPC */
21830# ifdef PAGESIZE
21831# define getpagesize() PAGESIZE
21832# endif /* PAGESIZE */
21833# endif /* no NBPC */
21834# endif /* no NBPG */
21835# endif /* no EXEC_PAGESIZE */
21836# else /* no HAVE_SYS_PARAM_H */
21837# define getpagesize() 8192 /* punt totally */
21838# endif /* no HAVE_SYS_PARAM_H */
21839# endif /* no _SC_PAGESIZE */
21840
21841#endif /* no HAVE_GETPAGESIZE */
21842
21843int
21844main ()
21845{
21846 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021847 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021848 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021849 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021850
21851 pagesize = getpagesize ();
21852
21853 /* First, make a file with some known garbage in it. */
21854 data = (char *) malloc (pagesize);
21855 if (!data)
21856 return 1;
21857 for (i = 0; i < pagesize; ++i)
21858 *(data + i) = rand ();
21859 umask (0);
21860 fd = creat ("conftest.mmap", 0600);
21861 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021862 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021863 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021864 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021865 close (fd);
21866
cristycd4c5312009-11-22 01:19:08 +000021867 /* Next, check that the tail of a page is zero-filled. File must have
21868 non-zero length, otherwise we risk SIGBUS for entire page. */
21869 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21870 if (fd2 < 0)
21871 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021872 cdata2 = "";
21873 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021874 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021875 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021876 if (data2 == MAP_FAILED)
21877 return 6;
21878 for (i = 0; i < pagesize; ++i)
21879 if (*(data2 + i))
21880 return 7;
21881 close (fd2);
21882 if (munmap (data2, pagesize))
21883 return 8;
21884
cristy3ed852e2009-09-05 21:47:34 +000021885 /* Next, try to mmap the file at a fixed address which already has
21886 something else allocated at it. If we can, also make sure that
21887 we see the same garbage. */
21888 fd = open ("conftest.mmap", O_RDWR);
21889 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021890 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021891 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21892 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021893 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021894 for (i = 0; i < pagesize; ++i)
21895 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021896 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021897
21898 /* Finally, make sure that changes to the mapped area do not
21899 percolate back to the file as seen by read(). (This is a bug on
21900 some variants of i386 svr4.0.) */
21901 for (i = 0; i < pagesize; ++i)
21902 *(data2 + i) = *(data2 + i) + 1;
21903 data3 = (char *) malloc (pagesize);
21904 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021905 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021906 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021907 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021908 for (i = 0; i < pagesize; ++i)
21909 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021910 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021911 close (fd);
21912 return 0;
21913}
21914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021915if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021916 ac_cv_func_mmap_fixed_mapped=yes
21917else
cristy8b350f62009-11-15 23:12:43 +000021918 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021919fi
cristy8b350f62009-11-15 23:12:43 +000021920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21921 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021922fi
21923
cristy3ed852e2009-09-05 21:47:34 +000021924fi
cristy8b350f62009-11-15 23:12:43 +000021925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021926$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21927if test $ac_cv_func_mmap_fixed_mapped = yes; then
21928
cristy8b350f62009-11-15 23:12:43 +000021929$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021930
21931fi
cristycd4c5312009-11-22 01:19:08 +000021932rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021933
cristy3ed852e2009-09-05 21:47:34 +000021934for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021935do :
21936 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21937if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021938 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021939#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021940_ACEOF
21941
21942fi
21943
21944done
21945
cristy3ed852e2009-09-05 21:47:34 +000021946for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021947do :
21948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21949ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21950eval as_val=\$$as_ac_var
21951 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021952 cat >>confdefs.h <<_ACEOF
21953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21954_ACEOF
21955
21956fi
21957done
21958
21959if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021961$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021962if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021963 $as_echo_n "(cached) " >&6
21964else
cristy8b350f62009-11-15 23:12:43 +000021965 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 ac_cv_func_fork_works=cross
21967else
cristy8b350f62009-11-15 23:12:43 +000021968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021969/* end confdefs.h. */
21970$ac_includes_default
21971int
21972main ()
21973{
21974
21975 /* By Ruediger Kuhlmann. */
21976 return fork () < 0;
21977
21978 ;
21979 return 0;
21980}
21981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021982if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021983 ac_cv_func_fork_works=yes
21984else
cristy8b350f62009-11-15 23:12:43 +000021985 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021986fi
cristy8b350f62009-11-15 23:12:43 +000021987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21988 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021989fi
21990
cristy3ed852e2009-09-05 21:47:34 +000021991fi
cristy8b350f62009-11-15 23:12:43 +000021992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021993$as_echo "$ac_cv_func_fork_works" >&6; }
21994
21995else
21996 ac_cv_func_fork_works=$ac_cv_func_fork
21997fi
21998if test "x$ac_cv_func_fork_works" = xcross; then
21999 case $host in
22000 *-*-amigaos* | *-*-msdosdjgpp*)
22001 # Override, as these systems have only a dummy fork() stub
22002 ac_cv_func_fork_works=no
22003 ;;
22004 *)
22005 ac_cv_func_fork_works=yes
22006 ;;
22007 esac
cristy8b350f62009-11-15 23:12:43 +000022008 { $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 +000022009$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22010fi
22011ac_cv_func_vfork_works=$ac_cv_func_vfork
22012if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022015if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022016 $as_echo_n "(cached) " >&6
22017else
cristy8b350f62009-11-15 23:12:43 +000022018 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022019 ac_cv_func_vfork_works=cross
22020else
cristy8b350f62009-11-15 23:12:43 +000022021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022022/* end confdefs.h. */
22023/* Thanks to Paul Eggert for this test. */
22024$ac_includes_default
22025#include <sys/wait.h>
22026#ifdef HAVE_VFORK_H
22027# include <vfork.h>
22028#endif
22029/* On some sparc systems, changes by the child to local and incoming
22030 argument registers are propagated back to the parent. The compiler
22031 is told about this with #include <vfork.h>, but some compilers
22032 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22033 static variable whose address is put into a register that is
22034 clobbered by the vfork. */
22035static void
22036#ifdef __cplusplus
22037sparc_address_test (int arg)
22038# else
22039sparc_address_test (arg) int arg;
22040#endif
22041{
22042 static pid_t child;
22043 if (!child) {
22044 child = vfork ();
22045 if (child < 0) {
22046 perror ("vfork");
22047 _exit(2);
22048 }
22049 if (!child) {
22050 arg = getpid();
22051 write(-1, "", 0);
22052 _exit (arg);
22053 }
22054 }
22055}
22056
22057int
22058main ()
22059{
22060 pid_t parent = getpid ();
22061 pid_t child;
22062
22063 sparc_address_test (0);
22064
22065 child = vfork ();
22066
22067 if (child == 0) {
22068 /* Here is another test for sparc vfork register problems. This
22069 test uses lots of local variables, at least as many local
22070 variables as main has allocated so far including compiler
22071 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22072 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22073 reuse the register of parent for one of the local variables,
22074 since it will think that parent can't possibly be used any more
22075 in this routine. Assigning to the local variable will thus
22076 munge parent in the parent process. */
22077 pid_t
22078 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22079 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22080 /* Convince the compiler that p..p7 are live; otherwise, it might
22081 use the same hardware register for all 8 local variables. */
22082 if (p != p1 || p != p2 || p != p3 || p != p4
22083 || p != p5 || p != p6 || p != p7)
22084 _exit(1);
22085
22086 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22087 from child file descriptors. If the child closes a descriptor
22088 before it execs or exits, this munges the parent's descriptor
22089 as well. Test for this by closing stdout in the child. */
22090 _exit(close(fileno(stdout)) != 0);
22091 } else {
22092 int status;
22093 struct stat st;
22094
22095 while (wait(&status) != child)
22096 ;
22097 return (
22098 /* Was there some problem with vforking? */
22099 child < 0
22100
22101 /* Did the child fail? (This shouldn't happen.) */
22102 || status
22103
22104 /* Did the vfork/compiler bug occur? */
22105 || parent != getpid()
22106
22107 /* Did the file descriptor bug occur? */
22108 || fstat(fileno(stdout), &st) != 0
22109 );
22110 }
22111}
22112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022113if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022114 ac_cv_func_vfork_works=yes
22115else
cristy8b350f62009-11-15 23:12:43 +000022116 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022117fi
cristy8b350f62009-11-15 23:12:43 +000022118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22119 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120fi
22121
cristy3ed852e2009-09-05 21:47:34 +000022122fi
cristy8b350f62009-11-15 23:12:43 +000022123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022124$as_echo "$ac_cv_func_vfork_works" >&6; }
22125
22126fi;
22127if test "x$ac_cv_func_fork_works" = xcross; then
22128 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022129 { $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 +000022130$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22131fi
22132
22133if test "x$ac_cv_func_vfork_works" = xyes; then
22134
cristy8b350f62009-11-15 23:12:43 +000022135$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022136
22137else
22138
cristy8b350f62009-11-15 23:12:43 +000022139$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022140
22141fi
22142if test "x$ac_cv_func_fork_works" = xyes; then
22143
cristy8b350f62009-11-15 23:12:43 +000022144$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022145
22146fi
22147
cristy8b350f62009-11-15 23:12:43 +000022148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022149$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022150if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022151 $as_echo_n "(cached) " >&6
22152else
cristy8b350f62009-11-15 23:12:43 +000022153 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022154 ac_cv_func_memcmp_working=no
22155else
cristy8b350f62009-11-15 23:12:43 +000022156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022157/* end confdefs.h. */
22158$ac_includes_default
22159int
22160main ()
22161{
22162
22163 /* Some versions of memcmp are not 8-bit clean. */
22164 char c0 = '\100', c1 = '\200', c2 = '\201';
22165 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22166 return 1;
22167
22168 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22169 or more and with at least one buffer not starting on a 4-byte boundary.
22170 William Lewis provided this test program. */
22171 {
22172 char foo[21];
22173 char bar[21];
22174 int i;
22175 for (i = 0; i < 4; i++)
22176 {
22177 char *a = foo + i;
22178 char *b = bar + i;
22179 strcpy (a, "--------01111111");
22180 strcpy (b, "--------10000000");
22181 if (memcmp (a, b, 16) >= 0)
22182 return 1;
22183 }
22184 return 0;
22185 }
22186
22187 ;
22188 return 0;
22189}
22190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022191if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022192 ac_cv_func_memcmp_working=yes
22193else
cristy8b350f62009-11-15 23:12:43 +000022194 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022195fi
cristy8b350f62009-11-15 23:12:43 +000022196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22197 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022198fi
22199
cristy3ed852e2009-09-05 21:47:34 +000022200fi
cristy8b350f62009-11-15 23:12:43 +000022201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022202$as_echo "$ac_cv_func_memcmp_working" >&6; }
22203test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22204 *" memcmp.$ac_objext "* ) ;;
22205 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22206 ;;
22207esac
22208
22209
cristy3ed852e2009-09-05 21:47:34 +000022210for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022211do :
22212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22213ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22214eval as_val=\$$as_ac_Header
22215 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 cat >>confdefs.h <<_ACEOF
22217#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22218_ACEOF
22219
22220fi
22221
22222done
22223
cristy8b350f62009-11-15 23:12:43 +000022224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022225$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022226if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022227 $as_echo_n "(cached) " >&6
22228else
22229 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22230 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22231 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022233/* end confdefs.h. */
22234$ac_includes_default
22235#ifdef HAVE_SYS_SELECT_H
22236# include <sys/select.h>
22237#endif
22238#ifdef HAVE_SYS_SOCKET_H
22239# include <sys/socket.h>
22240#endif
22241
22242int
22243main ()
22244{
22245extern int select ($ac_arg1,
22246 $ac_arg234, $ac_arg234, $ac_arg234,
22247 $ac_arg5);
22248 ;
22249 return 0;
22250}
22251_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022252if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022253 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022254fi
cristy3ed852e2009-09-05 21:47:34 +000022255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256 done
22257 done
22258done
22259# Provide a safe default value.
22260: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22261
22262fi
cristy8b350f62009-11-15 23:12:43 +000022263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022264$as_echo "$ac_cv_func_select_args" >&6; }
22265ac_save_IFS=$IFS; IFS=','
22266set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22267IFS=$ac_save_IFS
22268shift
22269
22270cat >>confdefs.h <<_ACEOF
22271#define SELECT_TYPE_ARG1 $1
22272_ACEOF
22273
22274
22275cat >>confdefs.h <<_ACEOF
22276#define SELECT_TYPE_ARG234 ($2)
22277_ACEOF
22278
22279
22280cat >>confdefs.h <<_ACEOF
22281#define SELECT_TYPE_ARG5 ($3)
22282_ACEOF
22283
22284rm -f conftest*
22285
cristy8b350f62009-11-15 23:12:43 +000022286if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022287 $as_echo_n "(cached) " >&6
22288else
22289 ac_cv_func_setvbuf_reversed=no
22290fi
22291
22292
cristy8b350f62009-11-15 23:12:43 +000022293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022294$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022295if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022296 $as_echo_n "(cached) " >&6
22297else
cristy8b350f62009-11-15 23:12:43 +000022298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022299/* end confdefs.h. */
22300#include <sys/types.h>
22301#include <signal.h>
22302
22303int
22304main ()
22305{
22306return *(signal (0, 0)) (0) == 1;
22307 ;
22308 return 0;
22309}
22310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022311if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022312 ac_cv_type_signal=int
22313else
cristy8b350f62009-11-15 23:12:43 +000022314 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022315fi
cristy3ed852e2009-09-05 21:47:34 +000022316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317fi
cristy8b350f62009-11-15 23:12:43 +000022318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022319$as_echo "$ac_cv_type_signal" >&6; }
22320
22321cat >>confdefs.h <<_ACEOF
22322#define RETSIGTYPE $ac_cv_type_signal
22323_ACEOF
22324
22325
cristy8b350f62009-11-15 23:12:43 +000022326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022327$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022328if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022329 $as_echo_n "(cached) " >&6
22330else
cristy8b350f62009-11-15 23:12:43 +000022331 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022332 ac_cv_func_strtod=no
22333else
cristy8b350f62009-11-15 23:12:43 +000022334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022335/* end confdefs.h. */
22336
22337$ac_includes_default
22338#ifndef strtod
22339double strtod ();
22340#endif
22341int
22342main()
22343{
22344 {
22345 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22346 char *string = " +69";
22347 char *term;
22348 double value;
22349 value = strtod (string, &term);
22350 if (value != 69 || term != (string + 4))
22351 return 1;
22352 }
22353
22354 {
22355 /* Under Solaris 2.4, strtod returns the wrong value for the
22356 terminating character under some conditions. */
22357 char *string = "NaN";
22358 char *term;
22359 strtod (string, &term);
22360 if (term != string && *(term - 1) == 0)
22361 return 1;
22362 }
22363 return 0;
22364}
22365
22366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022367if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022368 ac_cv_func_strtod=yes
22369else
cristy8b350f62009-11-15 23:12:43 +000022370 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022371fi
cristy8b350f62009-11-15 23:12:43 +000022372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22373 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022374fi
22375
cristy3ed852e2009-09-05 21:47:34 +000022376fi
cristy8b350f62009-11-15 23:12:43 +000022377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022378$as_echo "$ac_cv_func_strtod" >&6; }
22379if test $ac_cv_func_strtod = no; then
22380 case " $LIBOBJS " in
22381 *" strtod.$ac_objext "* ) ;;
22382 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22383 ;;
22384esac
22385
cristy8b350f62009-11-15 23:12:43 +000022386ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22387if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022388
cristy3ed852e2009-09-05 21:47:34 +000022389fi
22390
cristy3ed852e2009-09-05 21:47:34 +000022391if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022393$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022394if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022395 $as_echo_n "(cached) " >&6
22396else
22397 ac_check_lib_save_LIBS=$LIBS
22398LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022400/* end confdefs.h. */
22401
22402/* Override any GCC internal prototype to avoid an error.
22403 Use char because int might match the return type of a GCC
22404 builtin and then its argument prototype would still apply. */
22405#ifdef __cplusplus
22406extern "C"
22407#endif
22408char pow ();
22409int
22410main ()
22411{
22412return pow ();
22413 ;
22414 return 0;
22415}
22416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 ac_cv_lib_m_pow=yes
22419else
cristy8b350f62009-11-15 23:12:43 +000022420 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000022421fi
cristy8b350f62009-11-15 23:12:43 +000022422rm -f core conftest.err conftest.$ac_objext \
22423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022424LIBS=$ac_check_lib_save_LIBS
22425fi
cristy8b350f62009-11-15 23:12:43 +000022426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022427$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022428if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022429 POW_LIB=-lm
22430else
cristy8b350f62009-11-15 23:12:43 +000022431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022432$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22433fi
22434
22435fi
22436
22437fi
22438
cristy3ed852e2009-09-05 21:47:34 +000022439for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000022440do :
22441 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22442if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022443 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022444#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000022445_ACEOF
22446
cristy8b350f62009-11-15 23:12:43 +000022447ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22448if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022449
cristy8b350f62009-11-15 23:12:43 +000022450$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022451
22452fi
22453
22454fi
22455done
22456
22457
22458
cristy393bbe52010-01-11 16:32:56 +000022459for 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 spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000022460do :
22461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22462ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22463eval as_val=\$$as_ac_var
22464 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022465 cat >>confdefs.h <<_ACEOF
22466#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22467_ACEOF
22468
22469fi
22470done
22471
22472
cristye43a45e2009-09-28 14:49:00 +000022473#
22474# Check for clock_gettime().
22475#
cristy8b350f62009-11-15 23:12:43 +000022476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022477$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022478if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022479 $as_echo_n "(cached) " >&6
22480else
22481 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022483/* end confdefs.h. */
22484
22485/* Override any GCC internal prototype to avoid an error.
22486 Use char because int might match the return type of a GCC
22487 builtin and then its argument prototype would still apply. */
22488#ifdef __cplusplus
22489extern "C"
22490#endif
22491char clock_gettime ();
22492int
22493main ()
22494{
22495return clock_gettime ();
22496 ;
22497 return 0;
22498}
22499_ACEOF
22500for ac_lib in '' rt; do
22501 if test -z "$ac_lib"; then
22502 ac_res="none required"
22503 else
22504 ac_res=-l$ac_lib
22505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22506 fi
cristy8b350f62009-11-15 23:12:43 +000022507 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022508 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000022509fi
cristy8b350f62009-11-15 23:12:43 +000022510rm -f core conftest.err conftest.$ac_objext \
22511 conftest$ac_exeext
22512 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022513 break
22514fi
22515done
cristy8b350f62009-11-15 23:12:43 +000022516if test "${ac_cv_search_clock_gettime+set}" = set; then :
22517
cristye43a45e2009-09-28 14:49:00 +000022518else
22519 ac_cv_search_clock_gettime=no
22520fi
22521rm conftest.$ac_ext
22522LIBS=$ac_func_search_save_LIBS
22523fi
cristy8b350f62009-11-15 23:12:43 +000022524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022525$as_echo "$ac_cv_search_clock_gettime" >&6; }
22526ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000022527if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000022528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22529
22530
cristy8b350f62009-11-15 23:12:43 +000022531$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022532
cristy8b350f62009-11-15 23:12:43 +000022533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000022534$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022536/* end confdefs.h. */
22537#include <time.h>
22538int
22539main ()
22540{
22541clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000022542 ;
22543 return 0;
22544}
22545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022546if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022547
cristy8b350f62009-11-15 23:12:43 +000022548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000022549$as_echo "yes" >&6; }
22550
cristy8b350f62009-11-15 23:12:43 +000022551$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022552
22553
22554else
cristy8b350f62009-11-15 23:12:43 +000022555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000022556$as_echo "no" >&6; }
22557
22558fi
cristye43a45e2009-09-28 14:49:00 +000022559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560
22561else
22562
cristy8b350f62009-11-15 23:12:43 +000022563 for ac_func in gettimeofday ftime
22564do :
22565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22566ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22567eval as_val=\$$as_ac_var
22568 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000022569 cat >>confdefs.h <<_ACEOF
22570#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22571_ACEOF
22572 break
22573fi
22574done
22575
22576
22577
22578fi
22579
22580
cristy3ed852e2009-09-05 21:47:34 +000022581########
22582#
22583# Check for function prototypes
22584#
22585########
22586
cristy8b350f62009-11-15 23:12:43 +000022587ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000022588#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022589"
22590if test "x$ac_cv_have_decl_pread" = x""yes; then :
22591 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022592else
cristy8b350f62009-11-15 23:12:43 +000022593 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022594fi
22595
cristy3ed852e2009-09-05 21:47:34 +000022596cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022597#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022599ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000022600#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022601"
22602if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22603 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022604else
cristy8b350f62009-11-15 23:12:43 +000022605 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022606fi
22607
cristy3ed852e2009-09-05 21:47:34 +000022608cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022609#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022610_ACEOF
22611
22612
cristy8b350f62009-11-15 23:12:43 +000022613ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000022614#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000022615"
22616if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22617 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022618else
cristy8b350f62009-11-15 23:12:43 +000022619 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022620fi
22621
cristy3ed852e2009-09-05 21:47:34 +000022622cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022623#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022624_ACEOF
22625
22626
cristy8b350f62009-11-15 23:12:43 +000022627ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000022628#include <stdio.h>
22629#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000022630"
22631if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22632 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022633else
cristy8b350f62009-11-15 23:12:43 +000022634 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022635fi
22636
cristy3ed852e2009-09-05 21:47:34 +000022637cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022638#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022639_ACEOF
22640
22641
cristy3ed852e2009-09-05 21:47:34 +000022642########
22643#
22644# C++ Support Tests (For Magick++)
22645#
22646########
22647have_magick_plus_plus='no'
22648if test "$with_magick_plus_plus" = 'yes'; then
22649 OLIBS="$LIBS"
22650 LIBS=''
22651 ac_ext=cpp
22652ac_cpp='$CXXCPP $CPPFLAGS'
22653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22656
22657
22658 # Full set of headers used...
22659 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22660 # functional iomanip iosfwd iostream iterator list string strstream utility
22661 ac_ext=cpp
22662ac_cpp='$CXXCPP $CPPFLAGS'
22663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22666
22667 ac_ext=cpp
22668ac_cpp='$CXXCPP $CPPFLAGS'
22669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22672if test -z "$CXX"; then
22673 if test -n "$CCC"; then
22674 CXX=$CCC
22675 else
22676 if test -n "$ac_tool_prefix"; then
22677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22678 do
22679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022682$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022683if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022684 $as_echo_n "(cached) " >&6
22685else
22686 if test -n "$CXX"; then
22687 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22688else
22689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22690for as_dir in $PATH
22691do
22692 IFS=$as_save_IFS
22693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22696 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022698 break 2
22699 fi
22700done
cristy8b350f62009-11-15 23:12:43 +000022701 done
cristy3ed852e2009-09-05 21:47:34 +000022702IFS=$as_save_IFS
22703
22704fi
22705fi
22706CXX=$ac_cv_prog_CXX
22707if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022709$as_echo "$CXX" >&6; }
22710else
cristy8b350f62009-11-15 23:12:43 +000022711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022712$as_echo "no" >&6; }
22713fi
22714
22715
22716 test -n "$CXX" && break
22717 done
22718fi
22719if test -z "$CXX"; then
22720 ac_ct_CXX=$CXX
22721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22722do
22723 # Extract the first word of "$ac_prog", so it can be a program name with args.
22724set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022726$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022727if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022728 $as_echo_n "(cached) " >&6
22729else
22730 if test -n "$ac_ct_CXX"; then
22731 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22732else
22733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22734for as_dir in $PATH
22735do
22736 IFS=$as_save_IFS
22737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22740 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022742 break 2
22743 fi
22744done
cristy8b350f62009-11-15 23:12:43 +000022745 done
cristy3ed852e2009-09-05 21:47:34 +000022746IFS=$as_save_IFS
22747
22748fi
22749fi
22750ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22751if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022753$as_echo "$ac_ct_CXX" >&6; }
22754else
cristy8b350f62009-11-15 23:12:43 +000022755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022756$as_echo "no" >&6; }
22757fi
22758
22759
22760 test -n "$ac_ct_CXX" && break
22761done
22762
22763 if test "x$ac_ct_CXX" = x; then
22764 CXX="g++"
22765 else
22766 case $cross_compiling:$ac_tool_warned in
22767yes:)
cristy8b350f62009-11-15 23:12:43 +000022768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22770ac_tool_warned=yes ;;
22771esac
22772 CXX=$ac_ct_CXX
22773 fi
22774fi
22775
22776 fi
22777fi
22778# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022779$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022780set X $ac_compile
22781ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022782for ac_option in --version -v -V -qversion; do
22783 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022784case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22787esac
cristy8b350f62009-11-15 23:12:43 +000022788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22789$as_echo "$ac_try_echo"; } >&5
22790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022791 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022792 if test -s conftest.err; then
22793 sed '10a\
22794... rest of stderr output deleted ...
22795 10q' conftest.err >conftest.er1
22796 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022797 fi
cristycd4c5312009-11-22 01:19:08 +000022798 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22800 test $ac_status = 0; }
22801done
cristy3ed852e2009-09-05 21:47:34 +000022802
cristy8b350f62009-11-15 23:12:43 +000022803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022804$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022805if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022806 $as_echo_n "(cached) " >&6
22807else
cristy8b350f62009-11-15 23:12:43 +000022808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022809/* end confdefs.h. */
22810
22811int
22812main ()
22813{
22814#ifndef __GNUC__
22815 choke me
22816#endif
22817
22818 ;
22819 return 0;
22820}
22821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022822if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022823 ac_compiler_gnu=yes
22824else
cristy8b350f62009-11-15 23:12:43 +000022825 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022826fi
cristy3ed852e2009-09-05 21:47:34 +000022827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22829
22830fi
cristy8b350f62009-11-15 23:12:43 +000022831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022832$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22833if test $ac_compiler_gnu = yes; then
22834 GXX=yes
22835else
22836 GXX=
22837fi
22838ac_test_CXXFLAGS=${CXXFLAGS+set}
22839ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022842if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022843 $as_echo_n "(cached) " >&6
22844else
22845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22846 ac_cxx_werror_flag=yes
22847 ac_cv_prog_cxx_g=no
22848 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022850/* end confdefs.h. */
22851
22852int
22853main ()
22854{
22855
22856 ;
22857 return 0;
22858}
22859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022860if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022861 ac_cv_prog_cxx_g=yes
22862else
cristy8b350f62009-11-15 23:12:43 +000022863 CXXFLAGS=""
22864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022865/* end confdefs.h. */
22866
22867int
22868main ()
22869{
22870
22871 ;
22872 return 0;
22873}
22874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022875if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022876
cristy8b350f62009-11-15 23:12:43 +000022877else
22878 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022879 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022881/* end confdefs.h. */
22882
22883int
22884main ()
22885{
22886
22887 ;
22888 return 0;
22889}
22890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022891if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022892 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022893fi
cristy3ed852e2009-09-05 21:47:34 +000022894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895fi
cristy3ed852e2009-09-05 21:47:34 +000022896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897fi
cristy3ed852e2009-09-05 21:47:34 +000022898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22900fi
cristy8b350f62009-11-15 23:12:43 +000022901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022902$as_echo "$ac_cv_prog_cxx_g" >&6; }
22903if test "$ac_test_CXXFLAGS" = set; then
22904 CXXFLAGS=$ac_save_CXXFLAGS
22905elif test $ac_cv_prog_cxx_g = yes; then
22906 if test "$GXX" = yes; then
22907 CXXFLAGS="-g -O2"
22908 else
22909 CXXFLAGS="-g"
22910 fi
22911else
22912 if test "$GXX" = yes; then
22913 CXXFLAGS="-O2"
22914 else
22915 CXXFLAGS=
22916 fi
22917fi
22918ac_ext=cpp
22919ac_cpp='$CXXCPP $CPPFLAGS'
22920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22923
22924depcc="$CXX" am_compiler_list=
22925
cristy8b350f62009-11-15 23:12:43 +000022926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022927$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022928if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022929 $as_echo_n "(cached) " >&6
22930else
22931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22932 # We make a subdir and do the tests there. Otherwise we can end up
22933 # making bogus files that we don't know about and never remove. For
22934 # instance it was reported that on HP-UX the gcc test will end up
22935 # making a dummy file named `D' -- because `-MD' means `put the output
22936 # in D'.
22937 mkdir conftest.dir
22938 # Copy depcomp to subdir because otherwise we won't find it if we're
22939 # using a relative directory.
22940 cp "$am_depcomp" conftest.dir
22941 cd conftest.dir
22942 # We will build objects and dependencies in a subdirectory because
22943 # it helps to detect inapplicable dependency modes. For instance
22944 # both Tru64's cc and ICC support -MD to output dependencies as a
22945 # side effect of compilation, but ICC will put the dependencies in
22946 # the current directory while Tru64 will put them in the object
22947 # directory.
22948 mkdir sub
22949
22950 am_cv_CXX_dependencies_compiler_type=none
22951 if test "$am_compiler_list" = ""; then
22952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22953 fi
22954 am__universal=false
22955 case " $depcc " in #(
22956 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22957 esac
22958
22959 for depmode in $am_compiler_list; do
22960 # Setup a source with many dependencies, because some compilers
22961 # like to wrap large dependency lists on column 80 (with \), and
22962 # we should not choose a depcomp mode which is confused by this.
22963 #
22964 # We need to recreate these files for each test, as the compiler may
22965 # overwrite some of them when testing with obscure command lines.
22966 # This happens at least with the AIX C compiler.
22967 : > sub/conftest.c
22968 for i in 1 2 3 4 5 6; do
22969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22970 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22971 # Solaris 8's {/usr,}/bin/sh.
22972 touch sub/conftst$i.h
22973 done
22974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22975
22976 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22977 # mode. It turns out that the SunPro C++ compiler does not properly
22978 # handle `-M -o', and we need to detect this. Also, some Intel
22979 # versions had trouble with output in subdirs
22980 am__obj=sub/conftest.${OBJEXT-o}
22981 am__minus_obj="-o $am__obj"
22982 case $depmode in
22983 gcc)
22984 # This depmode causes a compiler race in universal mode.
22985 test "$am__universal" = false || continue
22986 ;;
22987 nosideeffect)
22988 # after this tag, mechanisms are not by side-effect, so they'll
22989 # only be used when explicitly requested
22990 if test "x$enable_dependency_tracking" = xyes; then
22991 continue
22992 else
22993 break
22994 fi
22995 ;;
22996 msvisualcpp | msvcmsys)
22997 # This compiler won't grok `-c -o', but also, the minuso test has
22998 # not run yet. These depmodes are late enough in the game, and
22999 # so weak that their functioning should not be impacted.
23000 am__obj=conftest.${OBJEXT-o}
23001 am__minus_obj=
23002 ;;
23003 none) break ;;
23004 esac
23005 if depmode=$depmode \
23006 source=sub/conftest.c object=$am__obj \
23007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23008 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23009 >/dev/null 2>conftest.err &&
23010 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23011 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23012 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23013 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23014 # icc doesn't choke on unknown options, it will just issue warnings
23015 # or remarks (even with -Werror). So we grep stderr for any message
23016 # that says an option was ignored or not supported.
23017 # When given -MP, icc 7.0 and 7.1 complain thusly:
23018 # icc: Command line warning: ignoring option '-M'; no argument required
23019 # The diagnosis changed in icc 8.0:
23020 # icc: Command line remark: option '-MP' not supported
23021 if (grep 'ignoring option' conftest.err ||
23022 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23023 am_cv_CXX_dependencies_compiler_type=$depmode
23024 break
23025 fi
23026 fi
23027 done
23028
23029 cd ..
23030 rm -rf conftest.dir
23031else
23032 am_cv_CXX_dependencies_compiler_type=none
23033fi
23034
23035fi
cristy8b350f62009-11-15 23:12:43 +000023036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023037$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23038CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23039
23040 if
23041 test "x$enable_dependency_tracking" != xno \
23042 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23043 am__fastdepCXX_TRUE=
23044 am__fastdepCXX_FALSE='#'
23045else
23046 am__fastdepCXX_TRUE='#'
23047 am__fastdepCXX_FALSE=
23048fi
23049
23050
cristy8b350f62009-11-15 23:12:43 +000023051 { $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 +000023052$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023053if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023054 $as_echo_n "(cached) " >&6
23055else
23056
23057 ac_ext=cpp
23058ac_cpp='$CXXCPP $CPPFLAGS'
23059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23062
cristy8b350f62009-11-15 23:12:43 +000023063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023064/* end confdefs.h. */
23065
23066int f(int x){return 1;}
23067int f(char x){return 1;}
23068int f(bool x){return 1;}
23069
23070int
23071main ()
23072{
23073bool b = true; return f(b);
23074 ;
23075 return 0;
23076}
23077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023078if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023079 ac_cv_cxx_have_bool=yes
23080else
cristy8b350f62009-11-15 23:12:43 +000023081 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023082fi
cristy3ed852e2009-09-05 21:47:34 +000023083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 ac_ext=cpp
23085ac_cpp='$CXXCPP $CPPFLAGS'
23086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23089
23090
23091fi
cristy8b350f62009-11-15 23:12:43 +000023092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000023093$as_echo "$ac_cv_cxx_have_bool" >&6; }
23094if test "$ac_cv_cxx_have_bool" = yes; then
23095
cristy8b350f62009-11-15 23:12:43 +000023096$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023097
23098fi
23099
cristy8b350f62009-11-15 23:12:43 +000023100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023101$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023102if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023103 $as_echo_n "(cached) " >&6
23104else
23105
23106 ac_ext=cpp
23107ac_cpp='$CXXCPP $CPPFLAGS'
23108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23111
cristy8b350f62009-11-15 23:12:43 +000023112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023113/* end confdefs.h. */
23114namespace Outer { namespace Inner { int i = 0; }}
23115int
23116main ()
23117{
23118using namespace Outer::Inner; return i;
23119 ;
23120 return 0;
23121}
23122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023123if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023124 ac_cv_cxx_have_namespaces=yes
23125else
cristy8b350f62009-11-15 23:12:43 +000023126 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023127fi
cristy3ed852e2009-09-05 21:47:34 +000023128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129 ac_ext=cpp
23130ac_cpp='$CXXCPP $CPPFLAGS'
23131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23134
23135
23136fi
cristy8b350f62009-11-15 23:12:43 +000023137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023138$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
23139if test "$ac_cv_cxx_have_namespaces" = yes; then
23140
cristy8b350f62009-11-15 23:12:43 +000023141$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023142
23143fi
23144
cristy8b350f62009-11-15 23:12:43 +000023145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023146$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023147if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023148 $as_echo_n "(cached) " >&6
23149else
23150
23151 ac_ext=cpp
23152ac_cpp='$CXXCPP $CPPFLAGS'
23153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23156
cristy8b350f62009-11-15 23:12:43 +000023157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023158/* end confdefs.h. */
23159#include <iostream>
23160 std::istream& is = std::cin;
23161
23162int
23163main ()
23164{
23165return 0;
23166 ;
23167 return 0;
23168}
23169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023170if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023171 ac_cv_cxx_have_std_namespace=yes
23172else
cristy8b350f62009-11-15 23:12:43 +000023173 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023174fi
cristy3ed852e2009-09-05 21:47:34 +000023175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23176 ac_ext=cpp
23177ac_cpp='$CXXCPP $CPPFLAGS'
23178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23181
23182
23183fi
cristy8b350f62009-11-15 23:12:43 +000023184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023185$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
23186if test "$ac_cv_cxx_have_std_namespace" = yes; then
23187
cristy8b350f62009-11-15 23:12:43 +000023188$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023189
23190fi
23191
cristy8b350f62009-11-15 23:12:43 +000023192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023193$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023194if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023195 $as_echo_n "(cached) " >&6
23196else
23197
23198
23199 ac_ext=cpp
23200ac_cpp='$CXXCPP $CPPFLAGS'
23201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23204
cristy8b350f62009-11-15 23:12:43 +000023205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023206/* end confdefs.h. */
23207#include <iostream>
23208#include <map>
23209#include <iomanip>
23210#include <cmath>
23211#ifdef HAVE_NAMESPACES
23212using namespace std;
23213#endif
23214int
23215main ()
23216{
23217return 0;
23218 ;
23219 return 0;
23220}
23221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023222if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023223 ac_cv_cxx_have_std_libs=yes
23224else
cristy8b350f62009-11-15 23:12:43 +000023225 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023226fi
cristy3ed852e2009-09-05 21:47:34 +000023227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 ac_ext=cpp
23229ac_cpp='$CXXCPP $CPPFLAGS'
23230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23233
23234
23235fi
cristy8b350f62009-11-15 23:12:43 +000023236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023237$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23238if test "$ac_cv_cxx_have_std_libs" = yes; then
23239
cristy8b350f62009-11-15 23:12:43 +000023240$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023241
23242fi
23243
cristy8b350f62009-11-15 23:12:43 +000023244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023245$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023246if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023247 $as_echo_n "(cached) " >&6
23248else
23249
23250 ac_ext=cpp
23251ac_cpp='$CXXCPP $CPPFLAGS'
23252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23255
cristy8b350f62009-11-15 23:12:43 +000023256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023257/* end confdefs.h. */
23258const wchar_t* s=L"wide string";
23259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023260if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023261 ac_cv_cxx_have_lstring=yes
23262else
cristy8b350f62009-11-15 23:12:43 +000023263 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023264fi
cristy3ed852e2009-09-05 21:47:34 +000023265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23266 ac_ext=cpp
23267ac_cpp='$CXXCPP $CPPFLAGS'
23268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23271
23272
23273fi
cristy8b350f62009-11-15 23:12:43 +000023274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023275$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23276if test "$ac_cv_cxx_have_lstring" = yes; then
23277
cristy8b350f62009-11-15 23:12:43 +000023278$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023279
23280fi
23281
23282
23283 OPENMP_CXXFLAGS=
23284 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023285if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023286 enableval=$enable_openmp;
23287fi
23288
23289 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23291$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023292if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023293 $as_echo_n "(cached) " >&6
23294else
cristy8b350f62009-11-15 23:12:43 +000023295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023297
23298#ifndef _OPENMP
23299 choke me
23300#endif
23301#include <omp.h>
23302int main () { return omp_get_num_threads (); }
23303
23304_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023305if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023306 ac_cv_prog_cxx_openmp='none needed'
23307else
cristy8b350f62009-11-15 23:12:43 +000023308 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023309 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23310 ac_save_CXXFLAGS=$CXXFLAGS
23311 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23313/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023314
23315#ifndef _OPENMP
23316 choke me
23317#endif
23318#include <omp.h>
23319int main () { return omp_get_num_threads (); }
23320
23321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023322if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023323 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023324fi
cristy8b350f62009-11-15 23:12:43 +000023325rm -f core conftest.err conftest.$ac_objext \
23326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023327 CXXFLAGS=$ac_save_CXXFLAGS
23328 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23329 break
23330 fi
23331 done
23332fi
cristy8b350f62009-11-15 23:12:43 +000023333rm -f core conftest.err conftest.$ac_objext \
23334 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023335fi
cristy8b350f62009-11-15 23:12:43 +000023336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023337$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23338 case $ac_cv_prog_cxx_openmp in #(
23339 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023340 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023341 *)
cristy8b350f62009-11-15 23:12:43 +000023342 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023343 esac
23344 fi
23345
23346
23347 ac_ext=c
23348ac_cpp='$CPP $CPPFLAGS'
23349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23351ac_compiler_gnu=$ac_cv_c_compiler_gnu
23352
23353
cristy8b350f62009-11-15 23:12:43 +000023354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023355$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23356 if \
23357 test $ac_cv_cxx_have_bool = 'yes' && \
23358 test $ac_cv_cxx_have_lstring = 'yes' && \
23359 test $ac_cv_cxx_have_namespaces = 'yes' && \
23360 test $ac_cv_cxx_have_std_libs = 'yes' && \
23361 test $ac_cv_cxx_have_std_namespace = 'yes'; then
23362 have_magick_plus_plus='yes'
23363 else
23364 have_magick_plus_plus='no (failed tests)'
23365 fi
cristy8b350f62009-11-15 23:12:43 +000023366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo "$have_magick_plus_plus" >&6; }
23368 LIBS="$OLIBS"
23369fi
23370 if test "$have_magick_plus_plus" = 'yes'; then
23371 WITH_MAGICK_PLUS_PLUS_TRUE=
23372 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23373else
23374 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23375 WITH_MAGICK_PLUS_PLUS_FALSE=
23376fi
23377
23378
23379# Only check for delegate libraries in subdirectories if requested.
23380if test "$enable_delegate_build" != 'no'; then
23381 # Check for delegate sub-directories and add -I & -L options as required.
23382 # This presumes that delegates are installed as detailed in the ImageMagick
23383 # README. If delegates are installed in a standard location where the
23384 # compiler will automatically find them then these options should not be
23385 # required.
23386
23387 #
23388 # Most delegates have includes in the same directory as the library, but not all...
23389 #
23390 # Includes
cristy5850e4b2010-01-08 14:28:24 +000023391 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000023392 if test -d "$builddir/$dir"; then
23393 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23394 else
23395 if test -d "$srcdirfull/$dir"; then
23396 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23397 fi
23398 fi
23399 done
23400
23401 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000023402 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000023403 if test -d "$builddir/$dir/.libs"; then
23404 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23405 else
23406 if test -d "$srcdirfull/$dir/.libs"; then
23407 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23408 fi
23409 fi
23410 if test -d "$builddir/$dir"; then
23411 LDFLAGS="$LDFLAGS -L$builddir/$dir"
23412 else
23413 if test -d "$srcdirfull/$dir"; then
23414 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23415 fi
23416 fi
23417 done
23418fi
23419
23420# Assume that delegate headers reside under same directory as ImageMagick
23421# installation prefix.
23422MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23423
23424#
23425# Find the X11 RGB database
23426#
cristy8b350f62009-11-15 23:12:43 +000023427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000023428$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023429if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023430 $as_echo_n "(cached) " >&6
23431else
23432 # Look for the header file in a standard set of common directories.
23433# Check X11 before X11Rn because it is often a symlink to the current release.
23434 for ac_dir in \
23435 /lib/usr/lib/X11 \
23436 /usr/X11/lib \
23437 /usr/X11R4/lib \
23438 /usr/X11R5/lib \
23439 /usr/X11R6/lib \
23440 /usr/X11R7/lib \
23441 /usr/X386/lib \
23442 /usr/XFree86/lib/X11 \
23443 /usr/athena/lib \
23444 /usr/lib \
23445 /usr/lib/X11 \
23446 /usr/lib/X11R4 \
23447 /usr/lib/X11R5 \
23448 /usr/lib/X11R6 \
23449 /usr/lib/X11R7 \
23450 /usr/local/X11/lib \
23451 /usr/local/X11R4/lib \
23452 /usr/local/X11R5/lib \
23453 /usr/local/X11R6/lib \
23454 /usr/local/lib \
23455 /usr/local/lib/X11 \
23456 /usr/local/lib/X11R4 \
23457 /usr/local/lib/X11R5 \
23458 /usr/local/lib/X11R6 \
23459 /usr/local/lib/X11R7 \
23460 /usr/local/x11r5/lib \
23461 /usr/lpp/Xamples/lib \
23462 /usr/openwin/lib \
23463 /usr/openwin/share/lib \
23464 /usr/unsupported/lib \
23465 /usr/x386/lib \
23466 ; do
23467 if test -f "$ac_dir/X11/rgb.txt"; then
23468 im_cv_x_configure="$ac_dir/X11/"
23469 break
23470 elif test -f "$ac_dir/rgb.txt"; then
23471 im_cv_x_configure="$ac_dir/"
23472 break
23473 fi
23474
23475 done
23476fi
cristy8b350f62009-11-15 23:12:43 +000023477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000023478$as_echo "$im_cv_x_configure" >&6; }
23479X11_CONFIGURE_PATH="$im_cv_x_configure"
23480case "${build_os}" in
23481 mingw* )
23482 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23483 ;;
23484esac
23485
23486cat >>confdefs.h <<_ACEOF
23487#define X11_CONFIGURE_PATH "$X11ConfigurePath"
23488_ACEOF
23489
23490
23491#
23492# Find OpenMP library
23493#
23494GOMP_LIBS=''
23495if test "$enable_openmp" != 'no'; then
23496 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000023497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023498$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023499if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023500 $as_echo_n "(cached) " >&6
23501else
23502 ac_check_lib_save_LIBS=$LIBS
23503LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023505/* end confdefs.h. */
23506
23507/* Override any GCC internal prototype to avoid an error.
23508 Use char because int might match the return type of a GCC
23509 builtin and then its argument prototype would still apply. */
23510#ifdef __cplusplus
23511extern "C"
23512#endif
23513char GOMP_parallel_start ();
23514int
23515main ()
23516{
23517return GOMP_parallel_start ();
23518 ;
23519 return 0;
23520}
23521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023523 ac_cv_lib_gomp_GOMP_parallel_start=yes
23524else
cristy8b350f62009-11-15 23:12:43 +000023525 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000023526fi
cristy8b350f62009-11-15 23:12:43 +000023527rm -f core conftest.err conftest.$ac_objext \
23528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023529LIBS=$ac_check_lib_save_LIBS
23530fi
cristy8b350f62009-11-15 23:12:43 +000023531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000023532$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023533if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023534 GOMP_LIBS="-lgomp"
23535fi
23536 # gcc
23537 else
cristy8b350f62009-11-15 23:12:43 +000023538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000023539$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023540if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023541 $as_echo_n "(cached) " >&6
23542else
23543 ac_check_lib_save_LIBS=$LIBS
23544LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023546/* end confdefs.h. */
23547
23548/* Override any GCC internal prototype to avoid an error.
23549 Use char because int might match the return type of a GCC
23550 builtin and then its argument prototype would still apply. */
23551#ifdef __cplusplus
23552extern "C"
23553#endif
23554char sunw_mp_register_warn ();
23555int
23556main ()
23557{
23558return sunw_mp_register_warn ();
23559 ;
23560 return 0;
23561}
23562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023564 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23565else
cristy8b350f62009-11-15 23:12:43 +000023566 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000023567fi
cristy8b350f62009-11-15 23:12:43 +000023568rm -f core conftest.err conftest.$ac_objext \
23569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023570LIBS=$ac_check_lib_save_LIBS
23571fi
cristy8b350f62009-11-15 23:12:43 +000023572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000023573$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023574if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023575 GOMP_LIBS="-lmtsk"
23576fi
23577 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000023578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023580if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023581 $as_echo_n "(cached) " >&6
23582else
23583 ac_check_lib_save_LIBS=$LIBS
23584LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023586/* end confdefs.h. */
23587
23588/* Override any GCC internal prototype to avoid an error.
23589 Use char because int might match the return type of a GCC
23590 builtin and then its argument prototype would still apply. */
23591#ifdef __cplusplus
23592extern "C"
23593#endif
23594char _xlsmpFlush ();
23595int
23596main ()
23597{
23598return _xlsmpFlush ();
23599 ;
23600 return 0;
23601}
23602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023603if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023604 ac_cv_lib_xlsmp__xlsmpFlush=yes
23605else
cristy8b350f62009-11-15 23:12:43 +000023606 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000023607fi
cristy8b350f62009-11-15 23:12:43 +000023608rm -f core conftest.err conftest.$ac_objext \
23609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023610LIBS=$ac_check_lib_save_LIBS
23611fi
cristy8b350f62009-11-15 23:12:43 +000023612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000023613$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023614if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023615 GOMP_LIBS="-lxlsmp"
23616fi
23617 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000023618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023619$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023620if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023621 $as_echo_n "(cached) " >&6
23622else
23623 ac_check_lib_save_LIBS=$LIBS
23624LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023626/* end confdefs.h. */
23627
23628/* Override any GCC internal prototype to avoid an error.
23629 Use char because int might match the return type of a GCC
23630 builtin and then its argument prototype would still apply. */
23631#ifdef __cplusplus
23632extern "C"
23633#endif
23634char mp_destroy ();
23635int
23636main ()
23637{
23638return mp_destroy ();
23639 ;
23640 return 0;
23641}
23642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023643if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023644 ac_cv_lib_mp_mp_destroy=yes
23645else
cristy8b350f62009-11-15 23:12:43 +000023646 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000023647fi
cristy8b350f62009-11-15 23:12:43 +000023648rm -f core conftest.err conftest.$ac_objext \
23649 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023650LIBS=$ac_check_lib_save_LIBS
23651fi
cristy8b350f62009-11-15 23:12:43 +000023652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000023653$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023654if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023655 GOMP_LIBS="-lmp"
23656fi
23657 # SGI IRIX 6.5 MIPSpro C/C++
23658 fi
23659 LIBS="$GOMP_LIBS $LIBS"
23660fi
23661
23662
23663#
23664# Find Posix threads library
23665#
23666THREAD_LIBS=''
23667if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23668
23669 if test "x$PTHREAD_LIBS" = "x"; then
23670 case "${host_cpu}-${host_os}" in
23671 *-freebsd*)
23672
23673
23674
23675ac_ext=c
23676ac_cpp='$CPP $CPPFLAGS'
23677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23679ac_compiler_gnu=$ac_cv_c_compiler_gnu
23680
23681magick_pthread_lib_ok=no
23682
23683LIB=-lc_r
23684save_LIBS="$LIBS"
23685LIBS="$LIBS $LIB"
23686
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023690/* end confdefs.h. */
23691#include <pthread.h>
23692int
23693main ()
23694{
23695 pthread_t th;
23696 pthread_join(th, 0);
23697 pthread_attr_init(0);
23698 pthread_cleanup_push(0, 0);
23699 pthread_create(0,0,0,0);
23700 pthread_cleanup_pop(0);
23701 ;
23702 return 0;
23703}
23704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023705if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023706 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023707fi
cristy8b350f62009-11-15 23:12:43 +000023708rm -f core conftest.err conftest.$ac_objext \
23709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023710
cristy8b350f62009-11-15 23:12:43 +000023711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023712$as_echo "${magick_pthread_lib_ok}" >&6; }
23713if test "$magick_pthread_lib_ok" = yes
23714then
23715 PTHREAD_LIBS=-lc_r
23716 :
23717else
23718
23719 :
23720fi
23721
23722LIBS="$save_LIBS"
23723
23724ac_ext=c
23725ac_cpp='$CPP $CPPFLAGS'
23726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23728ac_compiler_gnu=$ac_cv_c_compiler_gnu
23729
23730 ;;
23731 esac
23732 fi
23733
23734 for lib in pthread pthreads; do
23735 if test "x$PTHREAD_LIBS" = "x"; then
23736
23737
23738
23739ac_ext=c
23740ac_cpp='$CPP $CPPFLAGS'
23741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23743ac_compiler_gnu=$ac_cv_c_compiler_gnu
23744
23745magick_pthread_lib_ok=no
23746
23747LIB=-l$lib
23748save_LIBS="$LIBS"
23749LIBS="$LIBS $LIB"
23750
cristy8b350f62009-11-15 23:12:43 +000023751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023752$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023754/* end confdefs.h. */
23755#include <pthread.h>
23756int
23757main ()
23758{
23759 pthread_t th;
23760 pthread_join(th, 0);
23761 pthread_attr_init(0);
23762 pthread_cleanup_push(0, 0);
23763 pthread_create(0,0,0,0);
23764 pthread_cleanup_pop(0);
23765 ;
23766 return 0;
23767}
23768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023770 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023771fi
cristy8b350f62009-11-15 23:12:43 +000023772rm -f core conftest.err conftest.$ac_objext \
23773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023774
cristy8b350f62009-11-15 23:12:43 +000023775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023776$as_echo "${magick_pthread_lib_ok}" >&6; }
23777if test "$magick_pthread_lib_ok" = yes
23778then
23779 PTHREAD_LIBS=-l$lib
23780 :
23781else
23782
23783 :
23784fi
23785
23786LIBS="$save_LIBS"
23787
23788ac_ext=c
23789ac_cpp='$CPP $CPPFLAGS'
23790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23792ac_compiler_gnu=$ac_cv_c_compiler_gnu
23793
23794
23795 fi
23796 done
23797
23798 THREAD_LIBS="$PTHREAD_LIBS"
23799 LIBS="$LIBS $THREAD_LIBS"
23800fi
23801
23802
23803#
23804# Check for umem.
23805#
23806have_umem='no'
23807UMEM_LIBS=''
23808if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023810$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023812$as_echo "" >&6; }
23813 failed=0
23814 passed=0
cristy8b350f62009-11-15 23:12:43 +000023815 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23816if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023817 passed=`expr $passed + 1`
23818else
23819 failed=`expr $failed + 1`
23820fi
23821
23822
cristy8b350f62009-11-15 23:12:43 +000023823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023824$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023825if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023826 $as_echo_n "(cached) " >&6
23827else
23828 ac_check_lib_save_LIBS=$LIBS
23829LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023831/* end confdefs.h. */
23832
23833/* Override any GCC internal prototype to avoid an error.
23834 Use char because int might match the return type of a GCC
23835 builtin and then its argument prototype would still apply. */
23836#ifdef __cplusplus
23837extern "C"
23838#endif
23839char umem_alloc ();
23840int
23841main ()
23842{
23843return umem_alloc ();
23844 ;
23845 return 0;
23846}
23847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023849 ac_cv_lib_umem_umem_alloc=yes
23850else
cristy8b350f62009-11-15 23:12:43 +000023851 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023852fi
cristy8b350f62009-11-15 23:12:43 +000023853rm -f core conftest.err conftest.$ac_objext \
23854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023855LIBS=$ac_check_lib_save_LIBS
23856fi
cristy8b350f62009-11-15 23:12:43 +000023857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023858$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023859if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023860 passed=`expr $passed + 1`
23861else
23862 failed=`expr $failed + 1`
23863fi
23864
cristy8b350f62009-11-15 23:12:43 +000023865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023866$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023867if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023868 $as_echo_n "(cached) " >&6
23869else
23870 ac_check_lib_save_LIBS=$LIBS
23871LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023873/* end confdefs.h. */
23874
23875/* Override any GCC internal prototype to avoid an error.
23876 Use char because int might match the return type of a GCC
23877 builtin and then its argument prototype would still apply. */
23878#ifdef __cplusplus
23879extern "C"
23880#endif
23881char umem_free ();
23882int
23883main ()
23884{
23885return umem_free ();
23886 ;
23887 return 0;
23888}
23889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023890if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023891 ac_cv_lib_umem_umem_free=yes
23892else
cristy8b350f62009-11-15 23:12:43 +000023893 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023894fi
cristy8b350f62009-11-15 23:12:43 +000023895rm -f core conftest.err conftest.$ac_objext \
23896 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023897LIBS=$ac_check_lib_save_LIBS
23898fi
cristy8b350f62009-11-15 23:12:43 +000023899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023900$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023901if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023902 passed=`expr $passed + 1`
23903else
23904 failed=`expr $failed + 1`
23905fi
23906
cristy8b350f62009-11-15 23:12:43 +000023907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023908$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23909 if test $passed -gt 0; then
23910 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023912$as_echo "no -- some components failed test" >&6; }
23913 have_umem='no (failed tests)'
23914 else
23915 UMEM_LIBS='-lumem'
23916 LIBS="$UMEM_LIBS $LIBS"
23917
cristy8b350f62009-11-15 23:12:43 +000023918$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023919
cristy8b350f62009-11-15 23:12:43 +000023920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023921$as_echo "yes" >&6; }
23922 have_umem='yes'
23923 fi
23924 else
cristy8b350f62009-11-15 23:12:43 +000023925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023926$as_echo "no" >&6; }
23927 fi
23928fi
23929 if test "$have_umem" = 'yes'; then
23930 HasUMEM_TRUE=
23931 HasUMEM_FALSE='#'
23932else
23933 HasUMEM_TRUE='#'
23934 HasUMEM_FALSE=
23935fi
23936
23937
23938
23939#
23940# Add support for ccmalloc memory debugging library if requested
23941#
23942have_ccmalloc='no'
23943CCMALLOC_LIBS=''
23944if test "$enable_ccmalloc" = 'yes'; then
23945 # Extract the first word of "ccmalloc", so it can be a program name with args.
23946set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023948$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023949if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023950 $as_echo_n "(cached) " >&6
23951else
23952 case $CCMALLOCDelegate in
23953 [\\/]* | ?:[\\/]*)
23954 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23955 ;;
23956 *)
23957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23958for as_dir in $PATH
23959do
23960 IFS=$as_save_IFS
23961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23964 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023966 break 2
23967 fi
23968done
cristy8b350f62009-11-15 23:12:43 +000023969 done
cristy3ed852e2009-09-05 21:47:34 +000023970IFS=$as_save_IFS
23971
23972 ;;
23973esac
23974fi
23975CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23976if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023978$as_echo "$CCMALLOCDelegate" >&6; }
23979else
cristy8b350f62009-11-15 23:12:43 +000023980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023981$as_echo "no" >&6; }
23982fi
23983
23984
23985 if test -n "$CCMALLOCDelegate"; then
23986 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23987 OLIBS="$LIBS"
23988 # Assume that gcc is used with ccmalloc.
23989 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023991$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023992if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023993 $as_echo_n "(cached) " >&6
23994else
23995 ac_check_lib_save_LIBS=$LIBS
23996LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023998/* end confdefs.h. */
23999
24000/* Override any GCC internal prototype to avoid an error.
24001 Use char because int might match the return type of a GCC
24002 builtin and then its argument prototype would still apply. */
24003#ifdef __cplusplus
24004extern "C"
24005#endif
24006char ccmalloc_malloc ();
24007int
24008main ()
24009{
24010return ccmalloc_malloc ();
24011 ;
24012 return 0;
24013}
24014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024015if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024016 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24017else
cristy8b350f62009-11-15 23:12:43 +000024018 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024019fi
cristy8b350f62009-11-15 23:12:43 +000024020rm -f core conftest.err conftest.$ac_objext \
24021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024022LIBS=$ac_check_lib_save_LIBS
24023fi
cristy8b350f62009-11-15 23:12:43 +000024024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024025$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024026if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024027 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24028fi
24029
24030 if test -n "$CCMALLOC_LIBS"; then
24031 LIBS="$OLIBS"
24032 LIBS="$LIBS $CCMALLOC_LIBS"
24033 have_ccmalloc='yes'
24034 else
24035 LIBS="$OLIBS"
24036 fi
24037 fi
24038fi
24039
24040#
24041# Add support for efence memory debugging library if requested
24042#
24043if test "$enable_efence" = 'yes'; then
24044 EFENCE_LIBS='-lefence'
24045 LIBS="$EFENCE_LIBS $LIBS"
24046fi
24047
24048#
24049# Find math library
24050#
24051MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024053$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024054if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024055 $as_echo_n "(cached) " >&6
24056else
24057 ac_check_lib_save_LIBS=$LIBS
24058LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024060/* end confdefs.h. */
24061
24062/* Override any GCC internal prototype to avoid an error.
24063 Use char because int might match the return type of a GCC
24064 builtin and then its argument prototype would still apply. */
24065#ifdef __cplusplus
24066extern "C"
24067#endif
24068char sqrt ();
24069int
24070main ()
24071{
24072return sqrt ();
24073 ;
24074 return 0;
24075}
24076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024077if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024078 ac_cv_lib_m_sqrt=yes
24079else
cristy8b350f62009-11-15 23:12:43 +000024080 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000024081fi
cristy8b350f62009-11-15 23:12:43 +000024082rm -f core conftest.err conftest.$ac_objext \
24083 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024084LIBS=$ac_check_lib_save_LIBS
24085fi
cristy8b350f62009-11-15 23:12:43 +000024086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024087$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024088if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024089 MATH_LIBS="-lm"
24090fi
24091
24092LIBS="$MATH_LIBS $LIBS"
24093
24094
24095
24096#
24097# Check for BZLIB
24098#
24099
24100
24101# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024102if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024103 withval=$with_bzlib; with_bzlib=$withval
24104else
24105 with_bzlib='yes'
24106fi
24107
24108
24109if test "$with_bzlib" != 'yes'; then
24110 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24111fi
24112
24113have_bzlib='no'
24114if test "$with_bzlib" != 'no'; then
24115 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024117$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024119$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024121$as_echo "" >&6; }
24122 failed=0
24123 passed=0
24124 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024125 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24126if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024127 passed=`expr $passed + 1`
24128else
24129 failed=`expr $failed + 1`
24130fi
24131
24132
cristy8b350f62009-11-15 23:12:43 +000024133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024134$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024135if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024136 $as_echo_n "(cached) " >&6
24137else
24138 ac_check_lib_save_LIBS=$LIBS
24139LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024141/* end confdefs.h. */
24142
24143/* Override any GCC internal prototype to avoid an error.
24144 Use char because int might match the return type of a GCC
24145 builtin and then its argument prototype would still apply. */
24146#ifdef __cplusplus
24147extern "C"
24148#endif
24149char BZ2_bzDecompress ();
24150int
24151main ()
24152{
24153return BZ2_bzDecompress ();
24154 ;
24155 return 0;
24156}
24157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024158if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024159 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24160else
cristy8b350f62009-11-15 23:12:43 +000024161 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024162fi
cristy8b350f62009-11-15 23:12:43 +000024163rm -f core conftest.err conftest.$ac_objext \
24164 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024165LIBS=$ac_check_lib_save_LIBS
24166fi
cristy8b350f62009-11-15 23:12:43 +000024167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024168$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024169if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024170 found_libbz=`expr $found_libbz + 1`
24171fi
24172
24173 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024175$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024176if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024177 $as_echo_n "(cached) " >&6
24178else
24179 ac_check_lib_save_LIBS=$LIBS
24180LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024182/* end confdefs.h. */
24183
24184/* Override any GCC internal prototype to avoid an error.
24185 Use char because int might match the return type of a GCC
24186 builtin and then its argument prototype would still apply. */
24187#ifdef __cplusplus
24188extern "C"
24189#endif
24190char _imp__BZ2_decompress ();
24191int
24192main ()
24193{
24194return _imp__BZ2_decompress ();
24195 ;
24196 return 0;
24197}
24198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024199if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024200 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24201else
cristy8b350f62009-11-15 23:12:43 +000024202 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024203fi
cristy8b350f62009-11-15 23:12:43 +000024204rm -f core conftest.err conftest.$ac_objext \
24205 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024206LIBS=$ac_check_lib_save_LIBS
24207fi
cristy8b350f62009-11-15 23:12:43 +000024208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024209$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024210if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024211 found_libbz=`expr $found_libbz + 1`
24212fi
24213
24214 fi
24215 if test $found_libbz -gt 0; then
24216 passed=`expr $passed + 1`
24217 else
24218 failed=`expr $failed + 1`
24219 fi
cristy8b350f62009-11-15 23:12:43 +000024220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024221$as_echo_n "checking if BZLIB package is complete... " >&6; }
24222 if test $passed -gt 0; then
24223 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo "no -- some components failed test" >&6; }
24226 have_bzlib='no (failed tests)'
24227 else
24228 BZLIB_LIBS='-lbz2'
24229 LIBS="$BZLIB_LIBS $LIBS"
24230
cristy8b350f62009-11-15 23:12:43 +000024231$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024232
cristy8b350f62009-11-15 23:12:43 +000024233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo "yes" >&6; }
24235 have_bzlib='yes'
24236 fi
24237 else
cristy8b350f62009-11-15 23:12:43 +000024238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024239$as_echo "no" >&6; }
24240 fi
24241fi
24242 if test "$have_bzlib" = 'yes'; then
24243 BZLIB_DELEGATE_TRUE=
24244 BZLIB_DELEGATE_FALSE='#'
24245else
24246 BZLIB_DELEGATE_TRUE='#'
24247 BZLIB_DELEGATE_FALSE=
24248fi
24249
24250
24251
24252#
24253# Find the X11 include and library directories.
24254#
24255IPC_LIBS=''
24256X11_LIBS=''
24257XEXT_LIBS=''
24258XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024260$as_echo_n "checking for X... " >&6; }
24261
24262
24263# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024264if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024265 withval=$with_x;
24266fi
24267
24268# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24269if test "x$with_x" = xno; then
24270 # The user explicitly disabled X.
24271 have_x=disabled
24272else
24273 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000024274 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24275 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024276 $as_echo_n "(cached) " >&6
24277else
24278 # One or both of the vars are not set, and there is no cached value.
24279ac_x_includes=no ac_x_libraries=no
24280rm -f -r conftest.dir
24281if mkdir conftest.dir; then
24282 cd conftest.dir
24283 cat >Imakefile <<'_ACEOF'
24284incroot:
24285 @echo incroot='${INCROOT}'
24286usrlibdir:
24287 @echo usrlibdir='${USRLIBDIR}'
24288libdir:
24289 @echo libdir='${LIBDIR}'
24290_ACEOF
24291 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24293 for ac_var in incroot usrlibdir libdir; do
24294 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24295 done
24296 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24297 for ac_extension in a so sl dylib la dll; do
24298 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24299 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24300 ac_im_usrlibdir=$ac_im_libdir; break
24301 fi
24302 done
24303 # Screen out bogus values from the imake configuration. They are
24304 # bogus both because they are the default anyway, and because
24305 # using them would break gcc on systems where it needs fixed includes.
24306 case $ac_im_incroot in
24307 /usr/include) ac_x_includes= ;;
24308 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24309 esac
24310 case $ac_im_usrlibdir in
24311 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24312 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24313 esac
24314 fi
24315 cd ..
24316 rm -f -r conftest.dir
24317fi
24318
24319# Standard set of common directories for X headers.
24320# Check X11 before X11Rn because it is often a symlink to the current release.
24321ac_x_header_dirs='
24322/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024323/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024324/usr/X11R6/include
24325/usr/X11R5/include
24326/usr/X11R4/include
24327
24328/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024329/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024330/usr/include/X11R6
24331/usr/include/X11R5
24332/usr/include/X11R4
24333
24334/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024335/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024336/usr/local/X11R6/include
24337/usr/local/X11R5/include
24338/usr/local/X11R4/include
24339
24340/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024341/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024342/usr/local/include/X11R6
24343/usr/local/include/X11R5
24344/usr/local/include/X11R4
24345
24346/usr/X386/include
24347/usr/x386/include
24348/usr/XFree86/include/X11
24349
24350/usr/include
24351/usr/local/include
24352/usr/unsupported/include
24353/usr/athena/include
24354/usr/local/x11r5/include
24355/usr/lpp/Xamples/include
24356
24357/usr/openwin/include
24358/usr/openwin/share/include'
24359
24360if test "$ac_x_includes" = no; then
24361 # Guess where to find include files, by looking for Xlib.h.
24362 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024364/* end confdefs.h. */
24365#include <X11/Xlib.h>
24366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024367if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024368 # We can compile using X headers with no special include directory.
24369ac_x_includes=
24370else
cristyc7083c12009-10-14 03:16:55 +000024371 for ac_dir in $ac_x_header_dirs; do
24372 if test -r "$ac_dir/X11/Xlib.h"; then
24373 ac_x_includes=$ac_dir
24374 break
24375 fi
24376done
24377fi
cristyc7083c12009-10-14 03:16:55 +000024378rm -f conftest.err conftest.$ac_ext
24379fi # $ac_x_includes = no
24380
24381if test "$ac_x_libraries" = no; then
24382 # Check for the libraries.
24383 # See if we find them without any special options.
24384 # Don't add to $LIBS permanently.
24385 ac_save_LIBS=$LIBS
24386 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024388/* end confdefs.h. */
24389#include <X11/Xlib.h>
24390int
24391main ()
24392{
24393XrmInitialize ()
24394 ;
24395 return 0;
24396}
24397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024398if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024399 LIBS=$ac_save_LIBS
24400# We can link X programs with no special library path.
24401ac_x_libraries=
24402else
cristy8b350f62009-11-15 23:12:43 +000024403 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024404for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24405do
24406 # Don't even attempt the hair of trying to link an X program!
24407 for ac_extension in a so sl dylib la dll; do
24408 if test -r "$ac_dir/libX11.$ac_extension"; then
24409 ac_x_libraries=$ac_dir
24410 break 2
24411 fi
24412 done
24413done
24414fi
cristy8b350f62009-11-15 23:12:43 +000024415rm -f core conftest.err conftest.$ac_objext \
24416 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024417fi # $ac_x_libraries = no
24418
24419case $ac_x_includes,$ac_x_libraries in #(
24420 no,* | *,no | *\'*)
24421 # Didn't find X, or a directory has "'" in its name.
24422 ac_cv_have_x="have_x=no";; #(
24423 *)
24424 # Record where we found X for the cache.
24425 ac_cv_have_x="have_x=yes\
24426 ac_x_includes='$ac_x_includes'\
24427 ac_x_libraries='$ac_x_libraries'"
24428esac
24429fi
24430;; #(
24431 *) have_x=yes;;
24432 esac
24433 eval "$ac_cv_have_x"
24434fi # $with_x != no
24435
24436if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000024438$as_echo "$have_x" >&6; }
24439 no_x=yes
24440else
24441 # If each of the values was on the command line, it overrides each guess.
24442 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24443 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24444 # Update the cache value to reflect the command line values.
24445 ac_cv_have_x="have_x=yes\
24446 ac_x_includes='$x_includes'\
24447 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000024448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000024449$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24450fi
24451
cristy3ed852e2009-09-05 21:47:34 +000024452if test "$no_x" = yes; then
24453 # Not all programs may use this symbol, but it does not hurt to define it.
24454
cristy8b350f62009-11-15 23:12:43 +000024455$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024456
24457 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24458else
24459 if test -n "$x_includes"; then
24460 X_CFLAGS="$X_CFLAGS -I$x_includes"
24461 fi
24462
24463 # It would also be nice to do this for all -L options, not just this one.
24464 if test -n "$x_libraries"; then
24465 X_LIBS="$X_LIBS -L$x_libraries"
24466 # For Solaris; some versions of Sun CC require a space after -R and
24467 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000024468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000024469$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24470 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24471 ac_xsave_c_werror_flag=$ac_c_werror_flag
24472 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000024473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024474/* end confdefs.h. */
24475
24476int
24477main ()
24478{
24479
24480 ;
24481 return 0;
24482}
24483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024484if ac_fn_c_try_link "$LINENO"; then :
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024486$as_echo "no" >&6; }
24487 X_LIBS="$X_LIBS -R$x_libraries"
24488else
cristy8b350f62009-11-15 23:12:43 +000024489 LIBS="$ac_xsave_LIBS -R $x_libraries"
24490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024491/* end confdefs.h. */
24492
24493int
24494main ()
24495{
24496
24497 ;
24498 return 0;
24499}
24500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024501if ac_fn_c_try_link "$LINENO"; then :
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024503$as_echo "yes" >&6; }
24504 X_LIBS="$X_LIBS -R $x_libraries"
24505else
cristy8b350f62009-11-15 23:12:43 +000024506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024507$as_echo "neither works" >&6; }
24508fi
cristy8b350f62009-11-15 23:12:43 +000024509rm -f core conftest.err conftest.$ac_objext \
24510 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024511fi
cristy8b350f62009-11-15 23:12:43 +000024512rm -f core conftest.err conftest.$ac_objext \
24513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024514 ac_c_werror_flag=$ac_xsave_c_werror_flag
24515 LIBS=$ac_xsave_LIBS
24516 fi
24517
24518 # Check for system-dependent libraries X programs must link with.
24519 # Do this before checking for the system-independent R6 libraries
24520 # (-lICE), since we may need -lsocket or whatever for X linking.
24521
24522 if test "$ISC" = yes; then
24523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24524 else
24525 # Martyn Johnson says this is needed for Ultrix, if the X
24526 # libraries were built with DECnet support. And Karl Berry says
24527 # the Alpha needs dnet_stub (dnet does not exist).
24528 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000024529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024530/* end confdefs.h. */
24531
24532/* Override any GCC internal prototype to avoid an error.
24533 Use char because int might match the return type of a GCC
24534 builtin and then its argument prototype would still apply. */
24535#ifdef __cplusplus
24536extern "C"
24537#endif
24538char XOpenDisplay ();
24539int
24540main ()
24541{
24542return XOpenDisplay ();
24543 ;
24544 return 0;
24545}
24546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024548
cristy8b350f62009-11-15 23:12:43 +000024549else
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024551$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024552if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024553 $as_echo_n "(cached) " >&6
24554else
24555 ac_check_lib_save_LIBS=$LIBS
24556LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024558/* end confdefs.h. */
24559
24560/* Override any GCC internal prototype to avoid an error.
24561 Use char because int might match the return type of a GCC
24562 builtin and then its argument prototype would still apply. */
24563#ifdef __cplusplus
24564extern "C"
24565#endif
24566char dnet_ntoa ();
24567int
24568main ()
24569{
24570return dnet_ntoa ();
24571 ;
24572 return 0;
24573}
24574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024575if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024576 ac_cv_lib_dnet_dnet_ntoa=yes
24577else
cristy8b350f62009-11-15 23:12:43 +000024578 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024579fi
cristy8b350f62009-11-15 23:12:43 +000024580rm -f core conftest.err conftest.$ac_objext \
24581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024582LIBS=$ac_check_lib_save_LIBS
24583fi
cristy8b350f62009-11-15 23:12:43 +000024584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024585$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024586if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024587 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24588fi
24589
24590 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000024591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000024592$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024593if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024594 $as_echo_n "(cached) " >&6
24595else
24596 ac_check_lib_save_LIBS=$LIBS
24597LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024599/* end confdefs.h. */
24600
24601/* Override any GCC internal prototype to avoid an error.
24602 Use char because int might match the return type of a GCC
24603 builtin and then its argument prototype would still apply. */
24604#ifdef __cplusplus
24605extern "C"
24606#endif
24607char dnet_ntoa ();
24608int
24609main ()
24610{
24611return dnet_ntoa ();
24612 ;
24613 return 0;
24614}
24615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024617 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24618else
cristy8b350f62009-11-15 23:12:43 +000024619 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024620fi
cristy8b350f62009-11-15 23:12:43 +000024621rm -f core conftest.err conftest.$ac_objext \
24622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024623LIBS=$ac_check_lib_save_LIBS
24624fi
cristy8b350f62009-11-15 23:12:43 +000024625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024626$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024627if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024628 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24629fi
24630
24631 fi
24632fi
cristy8b350f62009-11-15 23:12:43 +000024633rm -f core conftest.err conftest.$ac_objext \
24634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024635 LIBS="$ac_xsave_LIBS"
24636
24637 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24638 # to get the SysV transport functions.
24639 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24640 # needs -lnsl.
24641 # The nsl library prevents programs from opening the X display
24642 # on Irix 5.2, according to T.E. Dickey.
24643 # The functions gethostbyname, getservbyname, and inet_addr are
24644 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000024645 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24646if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024647
cristy3ed852e2009-09-05 21:47:34 +000024648fi
24649
cristy3ed852e2009-09-05 21:47:34 +000024650 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024653if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024654 $as_echo_n "(cached) " >&6
24655else
24656 ac_check_lib_save_LIBS=$LIBS
24657LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024659/* end confdefs.h. */
24660
24661/* Override any GCC internal prototype to avoid an error.
24662 Use char because int might match the return type of a GCC
24663 builtin and then its argument prototype would still apply. */
24664#ifdef __cplusplus
24665extern "C"
24666#endif
24667char gethostbyname ();
24668int
24669main ()
24670{
24671return gethostbyname ();
24672 ;
24673 return 0;
24674}
24675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024676if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024677 ac_cv_lib_nsl_gethostbyname=yes
24678else
cristy8b350f62009-11-15 23:12:43 +000024679 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024680fi
cristy8b350f62009-11-15 23:12:43 +000024681rm -f core conftest.err conftest.$ac_objext \
24682 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024683LIBS=$ac_check_lib_save_LIBS
24684fi
cristy8b350f62009-11-15 23:12:43 +000024685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024686$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024687if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24689fi
24690
24691 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024693$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024694if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 $as_echo_n "(cached) " >&6
24696else
24697 ac_check_lib_save_LIBS=$LIBS
24698LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024700/* end confdefs.h. */
24701
24702/* Override any GCC internal prototype to avoid an error.
24703 Use char because int might match the return type of a GCC
24704 builtin and then its argument prototype would still apply. */
24705#ifdef __cplusplus
24706extern "C"
24707#endif
24708char gethostbyname ();
24709int
24710main ()
24711{
24712return gethostbyname ();
24713 ;
24714 return 0;
24715}
24716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024717if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024718 ac_cv_lib_bsd_gethostbyname=yes
24719else
cristy8b350f62009-11-15 23:12:43 +000024720 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024721fi
cristy8b350f62009-11-15 23:12:43 +000024722rm -f core conftest.err conftest.$ac_objext \
24723 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024724LIBS=$ac_check_lib_save_LIBS
24725fi
cristy8b350f62009-11-15 23:12:43 +000024726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024727$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024728if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024729 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24730fi
24731
24732 fi
24733 fi
24734
24735 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24736 # socket/setsockopt and other routines are undefined under SCO ODT
24737 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24738 # on later versions), says Simon Leinen: it contains gethostby*
24739 # variants that don't use the name server (or something). -lsocket
24740 # must be given before -lnsl if both are needed. We assume that
24741 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024742 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24743if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024744
cristy3ed852e2009-09-05 21:47:34 +000024745fi
24746
cristy3ed852e2009-09-05 21:47:34 +000024747 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024749$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024750if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024751 $as_echo_n "(cached) " >&6
24752else
24753 ac_check_lib_save_LIBS=$LIBS
24754LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024756/* end confdefs.h. */
24757
24758/* Override any GCC internal prototype to avoid an error.
24759 Use char because int might match the return type of a GCC
24760 builtin and then its argument prototype would still apply. */
24761#ifdef __cplusplus
24762extern "C"
24763#endif
24764char connect ();
24765int
24766main ()
24767{
24768return connect ();
24769 ;
24770 return 0;
24771}
24772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024773if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024774 ac_cv_lib_socket_connect=yes
24775else
cristy8b350f62009-11-15 23:12:43 +000024776 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024777fi
cristy8b350f62009-11-15 23:12:43 +000024778rm -f core conftest.err conftest.$ac_objext \
24779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024780LIBS=$ac_check_lib_save_LIBS
24781fi
cristy8b350f62009-11-15 23:12:43 +000024782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024783$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024784if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024785 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24786fi
24787
24788 fi
24789
24790 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024791 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24792if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024793
cristy3ed852e2009-09-05 21:47:34 +000024794fi
24795
cristy3ed852e2009-09-05 21:47:34 +000024796 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024798$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024799if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024800 $as_echo_n "(cached) " >&6
24801else
24802 ac_check_lib_save_LIBS=$LIBS
24803LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024805/* end confdefs.h. */
24806
24807/* Override any GCC internal prototype to avoid an error.
24808 Use char because int might match the return type of a GCC
24809 builtin and then its argument prototype would still apply. */
24810#ifdef __cplusplus
24811extern "C"
24812#endif
24813char remove ();
24814int
24815main ()
24816{
24817return remove ();
24818 ;
24819 return 0;
24820}
24821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024822if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024823 ac_cv_lib_posix_remove=yes
24824else
cristy8b350f62009-11-15 23:12:43 +000024825 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024826fi
cristy8b350f62009-11-15 23:12:43 +000024827rm -f core conftest.err conftest.$ac_objext \
24828 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024829LIBS=$ac_check_lib_save_LIBS
24830fi
cristy8b350f62009-11-15 23:12:43 +000024831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024832$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024833if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024834 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24835fi
24836
24837 fi
24838
24839 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024840 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24841if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024842
cristy3ed852e2009-09-05 21:47:34 +000024843fi
24844
cristy3ed852e2009-09-05 21:47:34 +000024845 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024847$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024848if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024849 $as_echo_n "(cached) " >&6
24850else
24851 ac_check_lib_save_LIBS=$LIBS
24852LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024854/* end confdefs.h. */
24855
24856/* Override any GCC internal prototype to avoid an error.
24857 Use char because int might match the return type of a GCC
24858 builtin and then its argument prototype would still apply. */
24859#ifdef __cplusplus
24860extern "C"
24861#endif
24862char shmat ();
24863int
24864main ()
24865{
24866return shmat ();
24867 ;
24868 return 0;
24869}
24870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024872 ac_cv_lib_ipc_shmat=yes
24873else
cristy8b350f62009-11-15 23:12:43 +000024874 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024875fi
cristy8b350f62009-11-15 23:12:43 +000024876rm -f core conftest.err conftest.$ac_objext \
24877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024878LIBS=$ac_check_lib_save_LIBS
24879fi
cristy8b350f62009-11-15 23:12:43 +000024880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024881$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024882if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024883 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24884fi
24885
24886 fi
24887 fi
24888
24889 # Check for libraries that X11R6 Xt/Xaw programs need.
24890 ac_save_LDFLAGS=$LDFLAGS
24891 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24892 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24893 # check for ICE first), but we must link in the order -lSM -lICE or
24894 # we get undefined symbols. So assume we have SM if we have ICE.
24895 # These have to be linked with before -lX11, unlike the other
24896 # libraries we check for below, so use a different variable.
24897 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024899$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024900if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024901 $as_echo_n "(cached) " >&6
24902else
24903 ac_check_lib_save_LIBS=$LIBS
24904LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024906/* end confdefs.h. */
24907
24908/* Override any GCC internal prototype to avoid an error.
24909 Use char because int might match the return type of a GCC
24910 builtin and then its argument prototype would still apply. */
24911#ifdef __cplusplus
24912extern "C"
24913#endif
24914char IceConnectionNumber ();
24915int
24916main ()
24917{
24918return IceConnectionNumber ();
24919 ;
24920 return 0;
24921}
24922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024923if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024924 ac_cv_lib_ICE_IceConnectionNumber=yes
24925else
cristy8b350f62009-11-15 23:12:43 +000024926 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024927fi
cristy8b350f62009-11-15 23:12:43 +000024928rm -f core conftest.err conftest.$ac_objext \
24929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024930LIBS=$ac_check_lib_save_LIBS
24931fi
cristy8b350f62009-11-15 23:12:43 +000024932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024933$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024934if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024935 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24936fi
24937
24938 LDFLAGS=$ac_save_LDFLAGS
24939
24940fi
24941
24942if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024944$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024946$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024948$as_echo "" >&6; }
24949 LDFLAGS="$LDFLAGS $X_LIBS"
24950 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24951 LIBS="$X11_LIBS $LIBS"
24952 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24953
24954
cristy8b350f62009-11-15 23:12:43 +000024955$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024956
24957 #
24958 # Check for X11 shared memory extension
24959 #
24960 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024961 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24962if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024963 have_shmctl='yes'
24964fi
24965
24966 if test "$have_shmctl" != 'yes'; then
24967 PERSIST_LIBS=$LIBS
24968 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024970/* end confdefs.h. */
24971
24972/* Override any GCC internal prototype to avoid an error.
24973 Use char because int might match the return type of a GCC
24974 builtin and then its argument prototype would still apply. */
24975#ifdef __cplusplus
24976extern "C"
24977#endif
24978char shmctl ();
24979int
24980main ()
24981{
24982return shmctl ();
24983 ;
24984 return 0;
24985}
24986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024988 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024989fi
cristy8b350f62009-11-15 23:12:43 +000024990rm -f core conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024992 LIBS=$PERSIST_LIBS
24993 fi
24994
24995 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024997$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024998if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024999 $as_echo_n "(cached) " >&6
25000else
25001 ac_check_lib_save_LIBS=$LIBS
25002LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025004/* end confdefs.h. */
25005
25006/* Override any GCC internal prototype to avoid an error.
25007 Use char because int might match the return type of a GCC
25008 builtin and then its argument prototype would still apply. */
25009#ifdef __cplusplus
25010extern "C"
25011#endif
25012char XShmAttach ();
25013int
25014main ()
25015{
25016return XShmAttach ();
25017 ;
25018 return 0;
25019}
25020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025022 ac_cv_lib_Xext_XShmAttach=yes
25023else
cristy8b350f62009-11-15 23:12:43 +000025024 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025025fi
cristy8b350f62009-11-15 23:12:43 +000025026rm -f core conftest.err conftest.$ac_objext \
25027 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025028LIBS=$ac_check_lib_save_LIBS
25029fi
cristy8b350f62009-11-15 23:12:43 +000025030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025031$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025032if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025034$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025035
25036fi
25037
25038 fi
25039
25040 #
25041 # Check for X11 shape extension
25042 #
cristy8b350f62009-11-15 23:12:43 +000025043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025044$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025045if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025046 $as_echo_n "(cached) " >&6
25047else
25048 ac_check_lib_save_LIBS=$LIBS
25049LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025051/* end confdefs.h. */
25052
25053/* Override any GCC internal prototype to avoid an error.
25054 Use char because int might match the return type of a GCC
25055 builtin and then its argument prototype would still apply. */
25056#ifdef __cplusplus
25057extern "C"
25058#endif
25059char XShapeCombineMask ();
25060int
25061main ()
25062{
25063return XShapeCombineMask ();
25064 ;
25065 return 0;
25066}
25067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025068if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025069 ac_cv_lib_Xext_XShapeCombineMask=yes
25070else
cristy8b350f62009-11-15 23:12:43 +000025071 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025072fi
cristy8b350f62009-11-15 23:12:43 +000025073rm -f core conftest.err conftest.$ac_objext \
25074 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025075LIBS=$ac_check_lib_save_LIBS
25076fi
cristy8b350f62009-11-15 23:12:43 +000025077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025078$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025079if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025080 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025081$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025082
25083fi
25084
cristy8b350f62009-11-15 23:12:43 +000025085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025086$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025087if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025088 $as_echo_n "(cached) " >&6
25089else
25090 ac_check_lib_save_LIBS=$LIBS
25091LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025093/* end confdefs.h. */
25094
25095/* Override any GCC internal prototype to avoid an error.
25096 Use char because int might match the return type of a GCC
25097 builtin and then its argument prototype would still apply. */
25098#ifdef __cplusplus
25099extern "C"
25100#endif
25101char XtSetEventDispatcher ();
25102int
25103main ()
25104{
25105return XtSetEventDispatcher ();
25106 ;
25107 return 0;
25108}
25109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025110if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025111 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25112else
cristy8b350f62009-11-15 23:12:43 +000025113 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025114fi
cristy8b350f62009-11-15 23:12:43 +000025115rm -f core conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117LIBS=$ac_check_lib_save_LIBS
25118fi
cristy8b350f62009-11-15 23:12:43 +000025119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025121if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025122 XT_LIBS='-lXt'
25123fi
25124
25125 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25126fi
25127if test "$no_x" != 'yes'; then
25128 have_x='yes'
25129else
25130 have_x='no'
25131fi
25132 if test "$have_x" = 'yes'; then
25133 X11_DELEGATE_TRUE=
25134 X11_DELEGATE_FALSE='#'
25135else
25136 X11_DELEGATE_TRUE='#'
25137 X11_DELEGATE_FALSE=
25138fi
25139
25140
25141
25142
25143
25144#
25145# Check for ZLIB
25146#
25147
25148# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025149if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025150 withval=$with_zlib; with_zlib=$withval
25151else
25152 with_zlib='yes'
25153fi
25154
25155
25156if test "$with_zlib" != 'yes'; then
25157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25158fi
25159
25160have_zlib='no'
25161ZLIB_LIBS=''
25162if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025164$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025166$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025168$as_echo "" >&6; }
25169 ZLIB_LIBS=''
25170 failed=0
25171 passed=0
cristy8b350f62009-11-15 23:12:43 +000025172 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25173if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025174 passed=`expr $passed + 1`
25175else
25176 failed=`expr $failed + 1`
25177fi
25178
25179
cristy8b350f62009-11-15 23:12:43 +000025180 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25181if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025182 passed=`expr $passed + 1`
25183else
25184 failed=`expr $failed + 1`
25185fi
25186
25187
cristy8b350f62009-11-15 23:12:43 +000025188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025189$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025190if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025191 $as_echo_n "(cached) " >&6
25192else
25193 ac_check_lib_save_LIBS=$LIBS
25194LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025196/* end confdefs.h. */
25197
25198/* Override any GCC internal prototype to avoid an error.
25199 Use char because int might match the return type of a GCC
25200 builtin and then its argument prototype would still apply. */
25201#ifdef __cplusplus
25202extern "C"
25203#endif
25204char compress ();
25205int
25206main ()
25207{
25208return compress ();
25209 ;
25210 return 0;
25211}
25212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025213if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025214 ac_cv_lib_z_compress=yes
25215else
cristy8b350f62009-11-15 23:12:43 +000025216 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025217fi
cristy8b350f62009-11-15 23:12:43 +000025218rm -f core conftest.err conftest.$ac_objext \
25219 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025220LIBS=$ac_check_lib_save_LIBS
25221fi
cristy8b350f62009-11-15 23:12:43 +000025222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025223$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025224if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025225 passed=`expr $passed + 1`
25226else
25227 failed=`expr $failed + 1`
25228fi
25229
cristy8b350f62009-11-15 23:12:43 +000025230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025231$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025232if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025233 $as_echo_n "(cached) " >&6
25234else
25235 ac_check_lib_save_LIBS=$LIBS
25236LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025238/* end confdefs.h. */
25239
25240/* Override any GCC internal prototype to avoid an error.
25241 Use char because int might match the return type of a GCC
25242 builtin and then its argument prototype would still apply. */
25243#ifdef __cplusplus
25244extern "C"
25245#endif
25246char uncompress ();
25247int
25248main ()
25249{
25250return uncompress ();
25251 ;
25252 return 0;
25253}
25254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025256 ac_cv_lib_z_uncompress=yes
25257else
cristy8b350f62009-11-15 23:12:43 +000025258 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025259fi
cristy8b350f62009-11-15 23:12:43 +000025260rm -f core conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025262LIBS=$ac_check_lib_save_LIBS
25263fi
cristy8b350f62009-11-15 23:12:43 +000025264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025265$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025266if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025267 passed=`expr $passed + 1`
25268else
25269 failed=`expr $failed + 1`
25270fi
25271
cristy8b350f62009-11-15 23:12:43 +000025272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025273$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025274if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025275 $as_echo_n "(cached) " >&6
25276else
25277 ac_check_lib_save_LIBS=$LIBS
25278LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025280/* end confdefs.h. */
25281
25282/* Override any GCC internal prototype to avoid an error.
25283 Use char because int might match the return type of a GCC
25284 builtin and then its argument prototype would still apply. */
25285#ifdef __cplusplus
25286extern "C"
25287#endif
25288char deflate ();
25289int
25290main ()
25291{
25292return deflate ();
25293 ;
25294 return 0;
25295}
25296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025298 ac_cv_lib_z_deflate=yes
25299else
cristy8b350f62009-11-15 23:12:43 +000025300 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025301fi
cristy8b350f62009-11-15 23:12:43 +000025302rm -f core conftest.err conftest.$ac_objext \
25303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025304LIBS=$ac_check_lib_save_LIBS
25305fi
cristy8b350f62009-11-15 23:12:43 +000025306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025307$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025308if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025309 passed=`expr $passed + 1`
25310else
25311 failed=`expr $failed + 1`
25312fi
25313
cristy8b350f62009-11-15 23:12:43 +000025314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025316if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025317 $as_echo_n "(cached) " >&6
25318else
25319 ac_check_lib_save_LIBS=$LIBS
25320LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025322/* end confdefs.h. */
25323
25324/* Override any GCC internal prototype to avoid an error.
25325 Use char because int might match the return type of a GCC
25326 builtin and then its argument prototype would still apply. */
25327#ifdef __cplusplus
25328extern "C"
25329#endif
25330char inflate ();
25331int
25332main ()
25333{
25334return inflate ();
25335 ;
25336 return 0;
25337}
25338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025340 ac_cv_lib_z_inflate=yes
25341else
cristy8b350f62009-11-15 23:12:43 +000025342 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025343fi
cristy8b350f62009-11-15 23:12:43 +000025344rm -f core conftest.err conftest.$ac_objext \
25345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025346LIBS=$ac_check_lib_save_LIBS
25347fi
cristy8b350f62009-11-15 23:12:43 +000025348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025349$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025350if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025351 passed=`expr $passed + 1`
25352else
25353 failed=`expr $failed + 1`
25354fi
25355
cristy8b350f62009-11-15 23:12:43 +000025356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025357$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025358if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025359 $as_echo_n "(cached) " >&6
25360else
25361 ac_check_lib_save_LIBS=$LIBS
25362LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025364/* end confdefs.h. */
25365
25366/* Override any GCC internal prototype to avoid an error.
25367 Use char because int might match the return type of a GCC
25368 builtin and then its argument prototype would still apply. */
25369#ifdef __cplusplus
25370extern "C"
25371#endif
25372char gzseek ();
25373int
25374main ()
25375{
25376return gzseek ();
25377 ;
25378 return 0;
25379}
25380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025382 ac_cv_lib_z_gzseek=yes
25383else
cristy8b350f62009-11-15 23:12:43 +000025384 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025385fi
cristy8b350f62009-11-15 23:12:43 +000025386rm -f core conftest.err conftest.$ac_objext \
25387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025388LIBS=$ac_check_lib_save_LIBS
25389fi
cristy8b350f62009-11-15 23:12:43 +000025390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025391$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025392if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025393 passed=`expr $passed + 1`
25394else
25395 failed=`expr $failed + 1`
25396fi
25397
cristy8b350f62009-11-15 23:12:43 +000025398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025399$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025400if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025401 $as_echo_n "(cached) " >&6
25402else
25403 ac_check_lib_save_LIBS=$LIBS
25404LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025406/* end confdefs.h. */
25407
25408/* Override any GCC internal prototype to avoid an error.
25409 Use char because int might match the return type of a GCC
25410 builtin and then its argument prototype would still apply. */
25411#ifdef __cplusplus
25412extern "C"
25413#endif
25414char gztell ();
25415int
25416main ()
25417{
25418return gztell ();
25419 ;
25420 return 0;
25421}
25422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025424 ac_cv_lib_z_gztell=yes
25425else
cristy8b350f62009-11-15 23:12:43 +000025426 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000025427fi
cristy8b350f62009-11-15 23:12:43 +000025428rm -f core conftest.err conftest.$ac_objext \
25429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025430LIBS=$ac_check_lib_save_LIBS
25431fi
cristy8b350f62009-11-15 23:12:43 +000025432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000025433$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025434if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025435 passed=`expr $passed + 1`
25436else
25437 failed=`expr $failed + 1`
25438fi
25439
cristy8b350f62009-11-15 23:12:43 +000025440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025441$as_echo_n "checking if ZLIB package is complete... " >&6; }
25442 if test $passed -gt 0; then
25443 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025445$as_echo "no -- some components failed test" >&6; }
25446 have_zlib='no (failed tests)'
25447 else
25448 ZLIB_LIBS='-lz'
25449 LIBS="$ZLIB_LIBS $LIBS"
25450
cristy8b350f62009-11-15 23:12:43 +000025451$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025452
cristy8b350f62009-11-15 23:12:43 +000025453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025454$as_echo "yes" >&6; }
25455 have_zlib='yes'
25456 fi
25457 else
cristy8b350f62009-11-15 23:12:43 +000025458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459$as_echo "no" >&6; }
25460 fi
25461fi
25462 if test "$have_zlib" = 'yes'; then
25463 ZLIB_DELEGATE_TRUE=
25464 ZLIB_DELEGATE_FALSE='#'
25465else
25466 ZLIB_DELEGATE_TRUE='#'
25467 ZLIB_DELEGATE_FALSE=
25468fi
25469
25470
25471
25472#
25473# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25474#
25475LIB_DL=''
25476if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025478$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025479if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025480 $as_echo_n "(cached) " >&6
25481else
25482 ac_check_lib_save_LIBS=$LIBS
25483LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025485/* end confdefs.h. */
25486
25487/* Override any GCC internal prototype to avoid an error.
25488 Use char because int might match the return type of a GCC
25489 builtin and then its argument prototype would still apply. */
25490#ifdef __cplusplus
25491extern "C"
25492#endif
25493char dlopen ();
25494int
25495main ()
25496{
25497return dlopen ();
25498 ;
25499 return 0;
25500}
25501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025503 ac_cv_lib_dl_dlopen=yes
25504else
cristy8b350f62009-11-15 23:12:43 +000025505 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000025506fi
cristy8b350f62009-11-15 23:12:43 +000025507rm -f core conftest.err conftest.$ac_objext \
25508 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025509LIBS=$ac_check_lib_save_LIBS
25510fi
cristy8b350f62009-11-15 23:12:43 +000025511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000025512$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025513if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025514 LIB_DL='-ldl'
25515fi
25516
25517 LIBS="$LIB_DL $LIBS"
25518fi
25519
25520
25521
25522#
25523# Check for Autotrace delegate library.
25524#
25525
25526# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000025527if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025528 withval=$with_autotrace; with_autotrace=$withval
25529else
25530 with_autotrace='no'
25531fi
25532
25533
25534if test "$with_autotrace" != 'yes'; then
25535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25536fi
25537
25538have_autotrace='no'
25539AUTOTRACE_CFLAGS=""
25540AUTOTRACE_LIBS=""
25541AUTOTRACE_PKG=""
25542if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025544$as_echo "-------------------------------------------------------------" >&6; }
25545
25546pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025548$as_echo_n "checking for AUTOTRACE... " >&6; }
25549
25550if test -n "$AUTOTRACE_CFLAGS"; then
25551 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25552 elif test -n "$PKG_CONFIG"; then
25553 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025555 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25556 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25558 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025559 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25560else
25561 pkg_failed=yes
25562fi
25563 else
25564 pkg_failed=untried
25565fi
25566if test -n "$AUTOTRACE_LIBS"; then
25567 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25568 elif test -n "$PKG_CONFIG"; then
25569 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025571 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25572 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25574 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025575 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25576else
25577 pkg_failed=yes
25578fi
25579 else
25580 pkg_failed=untried
25581fi
25582
25583
25584
25585if test $pkg_failed = yes; then
25586
25587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25588 _pkg_short_errors_supported=yes
25589else
25590 _pkg_short_errors_supported=no
25591fi
25592 if test $_pkg_short_errors_supported = yes; then
25593 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25594 else
25595 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25596 fi
25597 # Put the nasty error message in config.log where it belongs
25598 echo "$AUTOTRACE_PKG_ERRORS" >&5
25599
cristy8b350f62009-11-15 23:12:43 +000025600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025601$as_echo "no" >&6; }
25602 have_autotrace=no
25603elif test $pkg_failed = untried; then
25604 have_autotrace=no
25605else
25606 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25607 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000025608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025609$as_echo "yes" >&6; }
25610 have_autotrace=yes
25611fi
cristy8b350f62009-11-15 23:12:43 +000025612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025613$as_echo "" >&6; }
25614fi
25615
25616if test "$have_autotrace" = 'yes'; then
25617 failed=0
25618
cristy8b350f62009-11-15 23:12:43 +000025619$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025620
25621 if test "$with_modules" = 'no'; then
25622 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25623 fi
25624fi
25625
25626 if test "$have_autotrace" = 'yes'; then
25627 AUTOTRACE_DELEGATE_TRUE=
25628 AUTOTRACE_DELEGATE_FALSE='#'
25629else
25630 AUTOTRACE_DELEGATE_TRUE='#'
25631 AUTOTRACE_DELEGATE_FALSE=
25632fi
25633
25634
25635
25636
25637
25638#
25639# Check for Display Postscript delegate library.
25640#
25641
25642# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000025643if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025644 withval=$with_dps; with_dps=$withval
25645else
25646 with_dps='yes'
25647fi
25648
25649
25650if test "$with_dps" != 'yes'; then
25651 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25652fi
25653
25654have_dps='no'
25655DPS_LIBS=''
25656if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025658$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025660$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025662$as_echo "" >&6; }
25663 failed=0
25664 passed=0
25665 PERSIST_CPPFLAGS="$CPPFLAGS"
25666 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025667 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25668if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025669 passed=`expr $passed + 1`
25670else
25671 failed=`expr $failed + 1`
25672fi
25673
25674
25675 # DPS issues:
25676 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25677 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25678 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25679 # ImageMagick itself doesn't use -lXt.
25680 have_libdps='no'
25681 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025683$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025684if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025685 $as_echo_n "(cached) " >&6
25686else
25687 ac_check_lib_save_LIBS=$LIBS
25688LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025690/* end confdefs.h. */
25691
25692/* Override any GCC internal prototype to avoid an error.
25693 Use char because int might match the return type of a GCC
25694 builtin and then its argument prototype would still apply. */
25695#ifdef __cplusplus
25696extern "C"
25697#endif
25698char DPSInitialize ();
25699int
25700main ()
25701{
25702return DPSInitialize ();
25703 ;
25704 return 0;
25705}
25706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025707if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025708 ac_cv_lib_dps_DPSInitialize=yes
25709else
cristy8b350f62009-11-15 23:12:43 +000025710 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025711fi
cristy8b350f62009-11-15 23:12:43 +000025712rm -f core conftest.err conftest.$ac_objext \
25713 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025714LIBS=$ac_check_lib_save_LIBS
25715fi
cristy8b350f62009-11-15 23:12:43 +000025716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025717$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025718if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025719 have_libdps='yes'
25720else
25721 have_libdps='no'
25722fi
25723
25724 if test "$have_libdps" != 'yes'; then
25725 # Unset cache variable so we can try again.
25726 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025728$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025729if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025730 $as_echo_n "(cached) " >&6
25731else
25732 ac_check_lib_save_LIBS=$LIBS
25733LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025735/* end confdefs.h. */
25736
25737/* Override any GCC internal prototype to avoid an error.
25738 Use char because int might match the return type of a GCC
25739 builtin and then its argument prototype would still apply. */
25740#ifdef __cplusplus
25741extern "C"
25742#endif
25743char DPSInitialize ();
25744int
25745main ()
25746{
25747return DPSInitialize ();
25748 ;
25749 return 0;
25750}
25751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025753 ac_cv_lib_dps_DPSInitialize=yes
25754else
cristy8b350f62009-11-15 23:12:43 +000025755 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025756fi
cristy8b350f62009-11-15 23:12:43 +000025757rm -f core conftest.err conftest.$ac_objext \
25758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025759LIBS=$ac_check_lib_save_LIBS
25760fi
cristy8b350f62009-11-15 23:12:43 +000025761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025762$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025763if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025764 have_libdps='yes'
25765else
25766 have_libdps='no'
25767fi
25768
25769 if test "$have_libdps" = 'yes'; then
25770 LIBDPS_XT='-lXt'
25771 fi
25772 fi
25773 if test "$have_libdps" = 'yes'; then
25774 passed=`expr $passed + 1`
25775 else
25776 failed=`expr $failed + 1`
25777 fi
cristy8b350f62009-11-15 23:12:43 +000025778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025779$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025780if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025781 $as_echo_n "(cached) " >&6
25782else
25783 ac_check_lib_save_LIBS=$LIBS
25784LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025786/* end confdefs.h. */
25787
25788/* Override any GCC internal prototype to avoid an error.
25789 Use char because int might match the return type of a GCC
25790 builtin and then its argument prototype would still apply. */
25791#ifdef __cplusplus
25792extern "C"
25793#endif
25794char XDPSPixelsPerPoint ();
25795int
25796main ()
25797{
25798return XDPSPixelsPerPoint ();
25799 ;
25800 return 0;
25801}
25802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025803if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025804 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25805else
cristy8b350f62009-11-15 23:12:43 +000025806 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025807fi
cristy8b350f62009-11-15 23:12:43 +000025808rm -f core conftest.err conftest.$ac_objext \
25809 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025810LIBS=$ac_check_lib_save_LIBS
25811fi
cristy8b350f62009-11-15 23:12:43 +000025812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025813$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025814if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025815 passed=`expr $passed + 1`
25816else
25817 failed=`expr $failed + 1`
25818fi
25819
cristy8b350f62009-11-15 23:12:43 +000025820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025821$as_echo_n "checking if DPS package is complete... " >&6; }
25822 if test $passed -gt 0; then
25823 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025825$as_echo "no -- some components failed test" >&6; }
25826 have_dps='no (failed tests)'
25827 CPPFLAGS="$PERSIST_CPPFLAGS"
25828 else
25829 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25830 LIBS="$DPS_LIBS $LIBS"
25831
cristy8b350f62009-11-15 23:12:43 +000025832$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025833
cristy8b350f62009-11-15 23:12:43 +000025834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025835$as_echo "yes" >&6; }
25836 have_dps='yes'
25837 fi
25838 else
cristy8b350f62009-11-15 23:12:43 +000025839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025840$as_echo "no" >&6; }
25841 CPPFLAGS=$PERSIST_CPPFLAGS
25842 fi
25843fi
25844 if test "$have_dps" = 'yes'; then
25845 DPS_DELEGATE_TRUE=
25846 DPS_DELEGATE_FALSE='#'
25847else
25848 DPS_DELEGATE_TRUE='#'
25849 DPS_DELEGATE_FALSE=
25850fi
25851
25852
25853
25854
25855#
25856# Check for DJVU delegate library.
25857#
25858
25859# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025860if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025861 withval=$with_djvu; with_djvu=$withval
25862else
25863 with_djvu='yes'
25864fi
25865
25866
25867if test "$with_djvu" != 'yes'; then
25868 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25869fi
25870
25871have_djvu='no'
25872DJVU_LIBS=''
25873if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025875$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025877$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo "" >&6; }
25880 failed=0
25881 passed=0
cristy8b350f62009-11-15 23:12:43 +000025882 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25883if test "x$ac_cv_header_libdjvu_ddjvuapi_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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025891$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025892if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025893 $as_echo_n "(cached) " >&6
25894else
25895 ac_check_lib_save_LIBS=$LIBS
25896LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025898/* end confdefs.h. */
25899
25900/* Override any GCC internal prototype to avoid an error.
25901 Use char because int might match the return type of a GCC
25902 builtin and then its argument prototype would still apply. */
25903#ifdef __cplusplus
25904extern "C"
25905#endif
25906char ddjvu_context_create ();
25907int
25908main ()
25909{
25910return ddjvu_context_create ();
25911 ;
25912 return 0;
25913}
25914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025916 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25917else
cristy8b350f62009-11-15 23:12:43 +000025918 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025919fi
cristy8b350f62009-11-15 23:12:43 +000025920rm -f core conftest.err conftest.$ac_objext \
25921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025922LIBS=$ac_check_lib_save_LIBS
25923fi
cristy8b350f62009-11-15 23:12:43 +000025924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025925$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025926if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 passed=`expr $passed + 1`
25928else
25929 failed=`expr $failed + 1`
25930fi
25931
cristy8b350f62009-11-15 23:12:43 +000025932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025933$as_echo_n "checking if DJVU package is complete... " >&6; }
25934 if test $passed -gt 0; then
25935 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025937$as_echo "no -- some components failed test" >&6; }
25938 have_djvu='no (failed tests)'
25939 else
25940 DJVU_LIBS='-ldjvulibre'
25941 LIBS="$DJVU_LIBS $LIBS"
25942
cristy8b350f62009-11-15 23:12:43 +000025943$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025944
cristy8b350f62009-11-15 23:12:43 +000025945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025946$as_echo "yes" >&6; }
25947 have_djvu='yes'
25948 fi
25949 else
cristy8b350f62009-11-15 23:12:43 +000025950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025951$as_echo "no" >&6; }
25952 fi
25953fi
25954 if test "$have_djvu" = 'yes'; then
25955 DJVU_DELEGATE_TRUE=
25956 DJVU_DELEGATE_FALSE='#'
25957else
25958 DJVU_DELEGATE_TRUE='#'
25959 DJVU_DELEGATE_FALSE=
25960fi
25961
25962
25963
25964
25965#
cristy430a7312010-01-21 20:44:04 +000025966# Set DejaVu font directory.
25967#
25968
25969# Check whether --with-dejavu-font-dir was given.
25970if test "${with_dejavu_font_dir+set}" = set; then :
25971 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
25972else
25973 with_dejavu_font_dir='default'
25974fi
25975
25976
25977if test "$with_dejavu_font_dir" != 'default'; then
25978 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
25979fi
25980
25981
25982#
cristy3ed852e2009-09-05 21:47:34 +000025983# Check for FFTW delegate library.
25984#
25985
25986# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025987if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 withval=$with_fftw; with_fftw=$withval
25989else
25990 with_fftw='yes'
25991fi
25992
25993
25994if test "$with_fftw" != 'yes'; then
25995 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25996fi
25997
25998have_fftw='no'
25999FFTW_LIBS=''
26000if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026002$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026004$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026006$as_echo "" >&6; }
26007 failed=0
26008 passed=0
cristy8b350f62009-11-15 23:12:43 +000026009 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26010if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026011 passed=`expr $passed + 1`
26012else
26013 failed=`expr $failed + 1`
26014fi
26015
26016
cristy8b350f62009-11-15 23:12:43 +000026017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026018$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026019if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026020 $as_echo_n "(cached) " >&6
26021else
26022 ac_check_lib_save_LIBS=$LIBS
26023LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026025/* end confdefs.h. */
26026
26027/* Override any GCC internal prototype to avoid an error.
26028 Use char because int might match the return type of a GCC
26029 builtin and then its argument prototype would still apply. */
26030#ifdef __cplusplus
26031extern "C"
26032#endif
26033char fftw_execute ();
26034int
26035main ()
26036{
26037return fftw_execute ();
26038 ;
26039 return 0;
26040}
26041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026043 ac_cv_lib_fftw3_fftw_execute=yes
26044else
cristy8b350f62009-11-15 23:12:43 +000026045 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026046fi
cristy8b350f62009-11-15 23:12:43 +000026047rm -f core conftest.err conftest.$ac_objext \
26048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026049LIBS=$ac_check_lib_save_LIBS
26050fi
cristy8b350f62009-11-15 23:12:43 +000026051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026052$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026053if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026054 passed=`expr $passed + 1`
26055else
26056 failed=`expr $failed + 1`
26057fi
26058
cristy8b350f62009-11-15 23:12:43 +000026059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026060$as_echo_n "checking if FFTW package is complete... " >&6; }
26061 if test $passed -gt 0; then
26062 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026064$as_echo "no -- some components failed test" >&6; }
26065 have_fftw='no (failed tests)'
26066 else
26067 FFTW_LIBS='-lfftw3'
26068 LIBS="$FFTW_LIBS $LIBS"
26069
cristy8b350f62009-11-15 23:12:43 +000026070$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026071
cristy8b350f62009-11-15 23:12:43 +000026072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026073$as_echo "yes" >&6; }
26074 have_fftw='yes'
26075 fi
26076 else
cristy8b350f62009-11-15 23:12:43 +000026077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026078$as_echo "no" >&6; }
26079 fi
26080fi
26081 if test "$have_fftw" = 'yes'; then
26082 FFTW_DELEGATE_TRUE=
26083 FFTW_DELEGATE_FALSE='#'
26084else
26085 FFTW_DELEGATE_TRUE='#'
26086 FFTW_DELEGATE_FALSE=
26087fi
26088
26089
26090
26091
26092#
26093# Check for FlashPIX delegate library.
26094#
26095
26096# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026097if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026098 withval=$with_fpx; with_fpx=$withval
26099else
26100 with_fpx='yes'
26101fi
26102
26103
26104if test "$with_fpx" != 'yes'; then
26105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26106fi
26107
26108have_fpx='no'
26109FPX_LIBS=''
26110if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026112$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026114$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026116$as_echo "" >&6; }
26117 failed=0
26118 passed=0
26119 ac_ext=cpp
26120ac_cpp='$CXXCPP $CPPFLAGS'
26121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26124
26125
cristy8b350f62009-11-15 23:12:43 +000026126ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26127if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026128 passed=`expr $passed + 1`
26129else
26130 failed=`expr $failed + 1`
26131fi
26132
26133
cristy8b350f62009-11-15 23:12:43 +000026134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026135$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026136if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026137 $as_echo_n "(cached) " >&6
26138else
26139 ac_check_lib_save_LIBS=$LIBS
26140LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026142/* end confdefs.h. */
26143
26144/* Override any GCC internal prototype to avoid an error.
26145 Use char because int might match the return type of a GCC
26146 builtin and then its argument prototype would still apply. */
26147#ifdef __cplusplus
26148extern "C"
26149#endif
26150char FPX_OpenImageByFilename ();
26151int
26152main ()
26153{
26154return FPX_OpenImageByFilename ();
26155 ;
26156 return 0;
26157}
26158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026159if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026160 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26161else
cristy8b350f62009-11-15 23:12:43 +000026162 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026163fi
cristy8b350f62009-11-15 23:12:43 +000026164rm -f core conftest.err conftest.$ac_objext \
26165 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026166LIBS=$ac_check_lib_save_LIBS
26167fi
cristy8b350f62009-11-15 23:12:43 +000026168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026169$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026170if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026171 passed=`expr $passed + 1`
26172else
26173 failed=`expr $failed + 1`
26174fi
26175
26176 ac_ext=c
26177ac_cpp='$CPP $CPPFLAGS'
26178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26180ac_compiler_gnu=$ac_cv_c_compiler_gnu
26181
cristy8b350f62009-11-15 23:12:43 +000026182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026183$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26184 if test $passed -gt 0; then
26185 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026187$as_echo "no -- some components failed test" >&6; }
26188 have_fpx='no (failed tests)'
26189 else
26190 FPX_LIBS='-lfpx'
26191
cristy8b350f62009-11-15 23:12:43 +000026192$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026193
cristy8b350f62009-11-15 23:12:43 +000026194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026195$as_echo "yes" >&6; }
26196 have_fpx='yes'
26197 PERLMAINCC="$CXX"
26198 fi
26199 else
cristy8b350f62009-11-15 23:12:43 +000026200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026201$as_echo "no" >&6; }
26202 fi
26203fi
26204 if test "$have_fpx" = 'yes'; then
26205 FPX_DELEGATE_TRUE=
26206 FPX_DELEGATE_FALSE='#'
26207else
26208 FPX_DELEGATE_TRUE='#'
26209 FPX_DELEGATE_FALSE=
26210fi
26211
26212
26213
26214
26215#
26216# Check for fontconfig delegate library.
26217#
26218
26219# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026220if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026221 withval=$with_fontconfig; with_fontconfig=$withval
26222else
26223 with_fontconfig=$have_x
26224fi
26225
26226
26227if test "$with_fontconfig" != 'yes'; then
26228 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26229fi
26230
26231have_fontconfig='no'
26232FONTCONFIG_CFLAGS=""
26233FONTCONFIG_LIBS=""
26234FONTCONFIG_PKG=""
26235if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026237$as_echo "-------------------------------------------------------------" >&6; }
26238
26239pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026241$as_echo_n "checking for FONTCONFIG... " >&6; }
26242
26243if test -n "$FONTCONFIG_CFLAGS"; then
26244 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26245 elif test -n "$PKG_CONFIG"; then
26246 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026248 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26249 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26251 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026252 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26253else
26254 pkg_failed=yes
26255fi
26256 else
26257 pkg_failed=untried
26258fi
26259if test -n "$FONTCONFIG_LIBS"; then
26260 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26261 elif test -n "$PKG_CONFIG"; then
26262 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026264 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26265 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26267 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026268 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26269else
26270 pkg_failed=yes
26271fi
26272 else
26273 pkg_failed=untried
26274fi
26275
26276
26277
26278if test $pkg_failed = yes; then
26279
26280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26281 _pkg_short_errors_supported=yes
26282else
26283 _pkg_short_errors_supported=no
26284fi
26285 if test $_pkg_short_errors_supported = yes; then
26286 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26287 else
26288 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26289 fi
26290 # Put the nasty error message in config.log where it belongs
26291 echo "$FONTCONFIG_PKG_ERRORS" >&5
26292
cristy8b350f62009-11-15 23:12:43 +000026293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026294$as_echo "no" >&6; }
26295 have_fontconfig=no
26296elif test $pkg_failed = untried; then
26297 have_fontconfig=no
26298else
26299 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26300 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026302$as_echo "yes" >&6; }
26303 have_fontconfig=yes
26304fi
cristy8b350f62009-11-15 23:12:43 +000026305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026306$as_echo "" >&6; }
26307fi
26308
26309if test "$have_fontconfig" = 'yes'; then
26310
cristy8b350f62009-11-15 23:12:43 +000026311$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026312
26313 if test "$with_modules" = 'no'; then
26314 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26315 fi
26316fi
26317
26318 if test "$have_fontconfig" = 'yes'; then
26319 FONTCONFIG_DELEGATE_TRUE=
26320 FONTCONFIG_DELEGATE_FALSE='#'
26321else
26322 FONTCONFIG_DELEGATE_TRUE='#'
26323 FONTCONFIG_DELEGATE_FALSE=
26324fi
26325
26326
26327
26328
26329
26330#
26331# Check for freetype delegate library.
26332#
26333
26334# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026335if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026336 withval=$with_freetype; with_freetype=$withval
26337else
26338 with_freetype='yes'
26339fi
26340
26341
26342
26343if test "$with_freetype" != 'yes'; then
26344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26345fi
26346
26347have_freetype='no'
26348FREETYPE_LIBS=''
26349if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026351$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026355$as_echo "" >&6; }
26356 failed=0
26357 passed=0
cristy66291112009-10-03 22:44:36 +000026358 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026359 PERSIST_CPPFLAGS="$CPPFLAGS"
26360 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26361 :
26362 else
26363 freetype_config=''
26364 for ac_prog in freetype-config
26365do
26366 # Extract the first word of "$ac_prog", so it can be a program name with args.
26367set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026369$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026370if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026371 $as_echo_n "(cached) " >&6
26372else
26373 if test -n "$freetype_config"; then
26374 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26375else
26376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26377for as_dir in $PATH
26378do
26379 IFS=$as_save_IFS
26380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26383 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026385 break 2
26386 fi
26387done
cristy8b350f62009-11-15 23:12:43 +000026388 done
cristy3ed852e2009-09-05 21:47:34 +000026389IFS=$as_save_IFS
26390
26391fi
26392fi
26393freetype_config=$ac_cv_prog_freetype_config
26394if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026396$as_echo "$freetype_config" >&6; }
26397else
cristy8b350f62009-11-15 23:12:43 +000026398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026399$as_echo "no" >&6; }
26400fi
26401
26402
26403 test -n "$freetype_config" && break
26404done
26405 if test -n "$freetype_config"; then
26406 freetype_cflags=`$freetype_config --cflags`
26407 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000026408 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000026409 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26410 fi
26411 fi
26412
26413 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026416if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026417 $as_echo_n "(cached) " >&6
26418else
26419 ac_check_lib_save_LIBS=$LIBS
26420LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026422/* end confdefs.h. */
26423
26424/* Override any GCC internal prototype to avoid an error.
26425 Use char because int might match the return type of a GCC
26426 builtin and then its argument prototype would still apply. */
26427#ifdef __cplusplus
26428extern "C"
26429#endif
26430char FT_Init_FreeType ();
26431int
26432main ()
26433{
26434return FT_Init_FreeType ();
26435 ;
26436 return 0;
26437}
26438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026440 ac_cv_lib_freetype_FT_Init_FreeType=yes
26441else
cristy8b350f62009-11-15 23:12:43 +000026442 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000026443fi
cristy8b350f62009-11-15 23:12:43 +000026444rm -f core conftest.err conftest.$ac_objext \
26445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026446LIBS=$ac_check_lib_save_LIBS
26447fi
cristy8b350f62009-11-15 23:12:43 +000026448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000026449$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026450if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026451 FREETYPE_LIBS='-lfreetype'
26452fi
26453
26454 if test "$FREETYPE_LIBS" != ''; then
26455 passed=`expr $passed + 1`
26456 else
26457 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000026458 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026459 fi
26460 fi
26461
cristy8b350f62009-11-15 23:12:43 +000026462 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26463if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026464 FT2BUILD_H='#include <ft2build.h>'
26465else
26466 ft2build=''
26467fi
26468
26469
cristy8b350f62009-11-15 23:12:43 +000026470 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26471"
26472if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026473 have_freetype_h='yes'
26474else
26475 have_freetype_h='no'
26476fi
26477
26478
26479 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26480 passed=`expr $passed + 1`
26481 else
26482 failed=`expr $failed + 1`
26483 CPPFLAGS="$PERSIST_CPPFLAGS"
26484 fi
26485
cristy8b350f62009-11-15 23:12:43 +000026486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026487$as_echo_n "checking if FreeType package is complete... " >&6; }
26488 if test $passed -gt 0; then
26489 if test $failed -gt 0; then
26490 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo "no -- some components failed test" >&6; }
26493 have_freetype='no (failed tests)'
26494 else
26495 LIBS="$FREETYPE_LIBS $LIBS"
26496
cristy8b350f62009-11-15 23:12:43 +000026497$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026498
26499 if test "$ac_cv_header_ft2build_h" = 'yes'; then
26500
cristy8b350f62009-11-15 23:12:43 +000026501$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026502
26503 fi
cristy8b350f62009-11-15 23:12:43 +000026504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026505$as_echo "yes" >&6; }
26506 have_freetype='yes'
26507 fi
26508 else
cristy8b350f62009-11-15 23:12:43 +000026509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026510$as_echo "no" >&6; }
26511 fi
26512fi
26513 if test "$have_freetype" = 'yes'; then
26514 FREETYPE_DELEGATE_TRUE=
26515 FREETYPE_DELEGATE_FALSE='#'
26516else
26517 FREETYPE_DELEGATE_TRUE='#'
26518 FREETYPE_DELEGATE_FALSE=
26519fi
26520
26521
26522
26523
26524
26525#
26526# Check for Ghostscript library or framework.
26527#
26528# Test for iapi.h & test for gsapi_new_instance in -lgs
26529# or -framework Ghostscript
26530
26531
26532# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000026533if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 withval=$with_gslib; with_gslib=$withval
26535else
26536 with_gslib='no'
26537fi
26538
26539
cristyb7931f12009-09-25 10:22:21 +000026540gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000026541if test "$with_gslib" != 'yes'; then
26542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26543fi
26544
26545have_gslib='no'
26546GS_LIBS=''
26547if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026549$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000026551$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000026554 framework=0
cristy3ed852e2009-09-05 21:47:34 +000026555 failed=0
26556 passed=0
cristy8b350f62009-11-15 23:12:43 +000026557 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26558if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026559 passed=`expr $passed + 1`
26560else
26561 failed=`expr $failed + 1`
26562fi
26563
26564
cristy8b350f62009-11-15 23:12:43 +000026565 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26566if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026567 passed=`expr $passed + 1`
26568else
26569 failed=`expr $failed + 1`
26570fi
26571
26572
cristy8b350f62009-11-15 23:12:43 +000026573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000026574$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026575if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026576 $as_echo_n "(cached) " >&6
26577else
26578 ac_check_framework_save_LIBS=$LIBS
26579LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026581/* end confdefs.h. */
26582
26583/* Override any GCC internal prototype to avoid an error.
26584 Use char because int might match the return type of a GCC
26585 builtin and then its argument prototype would still apply. */
26586#ifdef __cplusplus
26587extern "C"
26588#endif
26589char gsapi_new_instance ();
26590int
26591main ()
26592{
26593return gsapi_new_instance ();
26594 ;
26595 return 0;
26596}
26597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026598if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026599 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26600else
cristy8b350f62009-11-15 23:12:43 +000026601 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026602fi
cristy8b350f62009-11-15 23:12:43 +000026603rm -f core conftest.err conftest.$ac_objext \
26604 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026605LIBS=$ac_check_framework_save_LIBS
26606fi
cristy8b350f62009-11-15 23:12:43 +000026607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026608$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026609if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026610 framework=`expr $framework + 1`
26611else
cristy8b350f62009-11-15 23:12:43 +000026612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026614if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026615 $as_echo_n "(cached) " >&6
26616else
26617 ac_check_lib_save_LIBS=$LIBS
26618LIBS="-lgs $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 gsapi_new_instance ();
26629int
26630main ()
26631{
26632return gsapi_new_instance ();
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_gs_gsapi_new_instance=yes
26639else
cristy8b350f62009-11-15 23:12:43 +000026640 ac_cv_lib_gs_gsapi_new_instance=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_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026648if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 passed=`expr $passed + 1`
26650else
26651 failed=`expr $failed + 1`
26652fi
26653
26654fi
cristy8b350f62009-11-15 23:12:43 +000026655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo_n "checking if Ghostscript package is complete... " >&6; }
26657 if test $passed -gt 0; then
26658 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026660$as_echo "no -- some components failed test" >&6; }
26661 have_gslib='no (failed tests)'
26662 else
26663 if test $framework -gt 0; then
26664 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000026665 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "yes, using framework." >&6; }
26668 else
cristy8b350f62009-11-15 23:12:43 +000026669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000026670$as_echo "yes, using library." >&6; }
26671 GS_LIBS='-lgs'
26672 fi
26673 LIBS="$GS_LIBS $LIBS"
26674
cristy8b350f62009-11-15 23:12:43 +000026675$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026676
26677 have_gslib='yes'
26678 fi
26679 else
cristy8b350f62009-11-15 23:12:43 +000026680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo "no" >&6; }
26682 fi
26683fi
26684 if test "$have_gslib" = 'yes'; then
26685 GS_DELEGATE_TRUE=
26686 GS_DELEGATE_FALSE='#'
26687else
26688 GS_DELEGATE_TRUE='#'
26689 GS_DELEGATE_FALSE=
26690fi
26691
26692
26693
26694# Set default font search path
26695
26696# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026697if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026698 withval=$with_fontpath; with_fontpath=$withval
26699else
26700 with_fontpath=''
26701fi
26702
26703
26704if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26705 with_fontpath=''
26706else
26707
26708cat >>confdefs.h <<_ACEOF
26709#define MAGICK_FONT_PATH "$with_fontpath"
26710_ACEOF
26711
26712fi
26713if test "$with_fontpath=" != ''; then
26714 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26715fi
26716
26717# Set Ghostscript font directory
26718
26719# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026720if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026721 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26722else
26723 with_gs_font_dir='default'
26724fi
26725
26726
26727if test "$with_gs_font_dir" != 'default'; then
26728 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26729fi
26730
26731
26732#
26733# Check for GVC delegate library.
26734#
26735
26736# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026737if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026738 withval=$with_gvc; with_gvc=$withval
26739else
26740 with_gvc='yes'
26741fi
26742
26743
26744if test "$with_gvc" != 'yes'; then
26745 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26746fi
26747
26748GVC_PKG=""
26749if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo "-------------------------------------------------------------" >&6; }
26752
26753pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo_n "checking for GVC... " >&6; }
26756
26757if test -n "$GVC_CFLAGS"; then
26758 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26759 elif test -n "$PKG_CONFIG"; then
26760 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026762 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26763 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26765 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026766 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26767else
26768 pkg_failed=yes
26769fi
26770 else
26771 pkg_failed=untried
26772fi
26773if test -n "$GVC_LIBS"; then
26774 pkg_cv_GVC_LIBS="$GVC_LIBS"
26775 elif test -n "$PKG_CONFIG"; then
26776 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026778 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26779 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26781 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026782 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26783else
26784 pkg_failed=yes
26785fi
26786 else
26787 pkg_failed=untried
26788fi
26789
26790
26791
26792if test $pkg_failed = yes; then
26793
26794if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26795 _pkg_short_errors_supported=yes
26796else
26797 _pkg_short_errors_supported=no
26798fi
26799 if test $_pkg_short_errors_supported = yes; then
26800 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26801 else
26802 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26803 fi
26804 # Put the nasty error message in config.log where it belongs
26805 echo "$GVC_PKG_ERRORS" >&5
26806
cristy8b350f62009-11-15 23:12:43 +000026807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026808$as_echo "no" >&6; }
26809 have_gvc=no
26810elif test $pkg_failed = untried; then
26811 have_gvc=no
26812else
26813 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26814 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026816$as_echo "yes" >&6; }
26817 have_gvc=yes
26818fi
cristy8b350f62009-11-15 23:12:43 +000026819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026820$as_echo "" >&6; }
26821fi
26822
26823if test "$have_gvc" = 'yes'; then
26824
cristy8b350f62009-11-15 23:12:43 +000026825$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026826
26827 if test "$with_modules" = 'no'; then
26828 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26829 fi
26830fi
26831
26832 if test "$have_gvc" = 'yes'; then
26833 GVC_DELEGATE_TRUE=
26834 GVC_DELEGATE_FALSE='#'
26835else
26836 GVC_DELEGATE_TRUE='#'
26837 GVC_DELEGATE_FALSE=
26838fi
26839
26840
26841
26842
26843
26844#
26845# Check for JBIG delegate library.
26846#
26847
26848
26849# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026850if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026851 withval=$with_jbig; with_jbig=$withval
26852else
26853 with_jbig='yes'
26854fi
26855
26856
26857have_jbig='no'
26858JBIG_LIBS=''
26859if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026861$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026863$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026865$as_echo "" >&6; }
26866 failed=0
26867 passed=0
cristy8b350f62009-11-15 23:12:43 +000026868 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26869if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026870 passed=`expr $passed + 1`
26871else
26872 failed=`expr $failed + 1`
26873fi
26874
26875
cristy8b350f62009-11-15 23:12:43 +000026876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026877$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026878if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026879 $as_echo_n "(cached) " >&6
26880else
26881 ac_check_lib_save_LIBS=$LIBS
26882LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026884/* end confdefs.h. */
26885
26886/* Override any GCC internal prototype to avoid an error.
26887 Use char because int might match the return type of a GCC
26888 builtin and then its argument prototype would still apply. */
26889#ifdef __cplusplus
26890extern "C"
26891#endif
26892char jbg_dec_init ();
26893int
26894main ()
26895{
26896return jbg_dec_init ();
26897 ;
26898 return 0;
26899}
26900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026901if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026902 ac_cv_lib_jbig_jbg_dec_init=yes
26903else
cristy8b350f62009-11-15 23:12:43 +000026904 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026905fi
cristy8b350f62009-11-15 23:12:43 +000026906rm -f core conftest.err conftest.$ac_objext \
26907 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026908LIBS=$ac_check_lib_save_LIBS
26909fi
cristy8b350f62009-11-15 23:12:43 +000026910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026911$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026912if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026913 passed=`expr $passed + 1`
26914else
26915 failed=`expr $failed + 1`
26916fi
26917
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo_n "checking if JBIG package is complete... " >&6; }
26920 if test $passed -gt 0; then
26921 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "no -- some components failed test" >&6; }
26924 have_jbig='no (failed tests)'
26925 else
26926 JBIG_LIBS='-ljbig'
26927 LIBS="$JBIG_LIBS $LIBS"
26928
cristy8b350f62009-11-15 23:12:43 +000026929$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026930
cristy8b350f62009-11-15 23:12:43 +000026931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026932$as_echo "yes" >&6; }
26933 have_jbig='yes'
26934 fi
26935 else
cristy8b350f62009-11-15 23:12:43 +000026936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026937$as_echo "no" >&6; }
26938 fi
26939fi
26940 if test "$have_jbig" = 'yes'; then
26941 JBIG_DELEGATE_TRUE=
26942 JBIG_DELEGATE_FALSE='#'
26943else
26944 JBIG_DELEGATE_TRUE='#'
26945 JBIG_DELEGATE_FALSE=
26946fi
26947
26948
26949
26950
26951#
26952# Check for JPEG delegate library.
26953#
26954
26955# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026956if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026957 withval=$with_jpeg; with_jpeg=$withval
26958else
26959 with_jpeg='yes'
26960fi
26961
26962
26963if test "$with_jpeg" != 'yes'; then
26964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26965fi
26966
26967have_jpeg='no'
26968JPEG_LIBS=''
26969if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026971$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026973$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026975$as_echo "" >&6; }
26976 failed=0
26977 passed=0
cristy8b350f62009-11-15 23:12:43 +000026978 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26979if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026980 passed=`expr $passed + 1`
26981else
26982 failed=`expr $failed + 1`
26983fi
26984
26985
cristy8b350f62009-11-15 23:12:43 +000026986 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26987if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026988 passed=`expr $passed + 1`
26989else
26990 failed=`expr $failed + 1`
26991fi
26992
26993
cristy8b350f62009-11-15 23:12:43 +000026994 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26995if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026996 passed=`expr $passed + 1`
26997else
26998 failed=`expr $failed + 1`
26999fi
27000
27001
cristy8b350f62009-11-15 23:12:43 +000027002 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27003if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027004 passed=`expr $passed + 1`
27005else
27006 failed=`expr $failed + 1`
27007fi
27008
27009
cristy8b350f62009-11-15 23:12:43 +000027010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027011$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027012if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027013 $as_echo_n "(cached) " >&6
27014else
27015 ac_check_lib_save_LIBS=$LIBS
27016LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027018/* end confdefs.h. */
27019
27020/* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
27023#ifdef __cplusplus
27024extern "C"
27025#endif
27026char jpeg_read_header ();
27027int
27028main ()
27029{
27030return jpeg_read_header ();
27031 ;
27032 return 0;
27033}
27034_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027035if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027036 ac_cv_lib_jpeg_jpeg_read_header=yes
27037else
cristy8b350f62009-11-15 23:12:43 +000027038 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027039fi
cristy8b350f62009-11-15 23:12:43 +000027040rm -f core conftest.err conftest.$ac_objext \
27041 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027042LIBS=$ac_check_lib_save_LIBS
27043fi
cristy8b350f62009-11-15 23:12:43 +000027044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027045$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027046if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027047 passed=`expr $passed + 1`
27048else
27049 failed=`expr $failed + 1`
27050fi
27051
27052
27053# Test for compatible JPEG library
27054if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027056$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027057if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027058 $as_echo_n "(cached) " >&6
27059else
cristy8b350f62009-11-15 23:12:43 +000027060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027061/* end confdefs.h. */
27062#include <stdio.h>
27063#include <stdlib.h>
27064#include <jpeglib.h>
27065
27066int
27067main ()
27068{
27069
27070#if JPEG_LIB_VERSION < 62
27071#error IJG JPEG library must be version 6b or newer!
27072#endif
27073return 0;
27074
27075 ;
27076 return 0;
27077}
27078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027079if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027080 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27081else
cristy8b350f62009-11-15 23:12:43 +000027082 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027083fi
cristy3ed852e2009-09-05 21:47:34 +000027084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27085fi
cristy8b350f62009-11-15 23:12:43 +000027086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027087$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27088fi
cristy8b350f62009-11-15 23:12:43 +000027089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027090$as_echo_n "checking if JPEG package is complete... " >&6; }
27091 if test $passed -gt 0; then
27092 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo "no -- some components failed test" >&6; }
27095 have_jpeg='no (failed tests)'
27096 else
27097 JPEG_LIBS='-ljpeg'
27098 LIBS="$JPEG_LIBS $LIBS"
27099
cristy8b350f62009-11-15 23:12:43 +000027100$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027101
cristy8b350f62009-11-15 23:12:43 +000027102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027103$as_echo "yes" >&6; }
27104 have_jpeg='yes'
27105 fi
27106 else
cristy8b350f62009-11-15 23:12:43 +000027107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027108$as_echo "no" >&6; }
27109 fi
27110fi
27111 if test "$have_jpeg" = 'yes'; then
27112 JPEG_DELEGATE_TRUE=
27113 JPEG_DELEGATE_FALSE='#'
27114else
27115 JPEG_DELEGATE_TRUE='#'
27116 JPEG_DELEGATE_FALSE=
27117fi
27118
27119
27120
27121
27122#
27123# Check for JPEG Version 2 delegate library.
27124#
27125
27126# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027127if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027128 withval=$with_jp2; with_jp2=$withval
27129else
27130 with_jp2='yes'
27131fi
27132
27133
27134if test "$with_jp2" != 'yes'; then
27135 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27136fi
27137
27138have_jp2='no'
27139JP2_LIBS=''
27140if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027142$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027144$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027146$as_echo "" >&6; }
27147 failed=0
27148 passed=0
cristy8b350f62009-11-15 23:12:43 +000027149 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27150if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027151 passed=`expr $passed + 1`
27152else
27153 failed=`expr $failed + 1`
27154fi
27155
27156
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027159if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027160 $as_echo_n "(cached) " >&6
27161else
27162 ac_check_lib_save_LIBS=$LIBS
27163LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027165/* end confdefs.h. */
27166
27167/* Override any GCC internal prototype to avoid an error.
27168 Use char because int might match the return type of a GCC
27169 builtin and then its argument prototype would still apply. */
27170#ifdef __cplusplus
27171extern "C"
27172#endif
27173char jas_stream_fopen ();
27174int
27175main ()
27176{
27177return jas_stream_fopen ();
27178 ;
27179 return 0;
27180}
27181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027183 ac_cv_lib_jasper_jas_stream_fopen=yes
27184else
cristy8b350f62009-11-15 23:12:43 +000027185 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027186fi
cristy8b350f62009-11-15 23:12:43 +000027187rm -f core conftest.err conftest.$ac_objext \
27188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027189LIBS=$ac_check_lib_save_LIBS
27190fi
cristy8b350f62009-11-15 23:12:43 +000027191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027192$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027193if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027194 passed=`expr $passed + 1`
27195else
27196 failed=`expr $failed + 1`
27197fi
27198
cristy8b350f62009-11-15 23:12:43 +000027199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027200$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27201 if test $passed -gt 0; then
27202 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027204$as_echo "no -- some components failed test" >&6; }
27205 have_jp2='no (failed tests)'
27206 else
27207 JP2_LIBS='-ljasper'
27208 LIBS="$JP2_LIBS $LIBS"
27209
cristy8b350f62009-11-15 23:12:43 +000027210$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027211
cristy8b350f62009-11-15 23:12:43 +000027212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027213$as_echo "yes" >&6; }
27214 have_jp2='yes'
27215 fi
27216 else
cristy8b350f62009-11-15 23:12:43 +000027217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027218$as_echo "no" >&6; }
27219 fi
27220fi
27221 if test "$have_jp2" = 'yes'; then
27222 JP2_DELEGATE_TRUE=
27223 JP2_DELEGATE_FALSE='#'
27224else
27225 JP2_DELEGATE_TRUE='#'
27226 JP2_DELEGATE_FALSE=
27227fi
27228
27229
27230
27231
27232#
27233# Check for LCMS delegate library.
27234#
27235
27236# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027237if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027238 withval=$with_lcms; with_lcms=$withval
27239else
27240 with_lcms='yes'
27241fi
27242
27243
27244if test "$with_lcms" != 'yes'; then
27245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27246fi
27247
27248have_lcms='no'
27249LCMS_LIBS=''
27250if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027252$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027254$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo "" >&6; }
27257 failed=0
27258 passed=0
27259 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000027260 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27261if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 have_lcms_header='yes'
27263fi
27264
27265
27266 if test "$have_lcms_header" = 'yes'; then
27267 passed=`expr $passed + 1`
27268
cristy8b350f62009-11-15 23:12:43 +000027269$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027270
27271 else
cristy8b350f62009-11-15 23:12:43 +000027272 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27273if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027274 have_lcms_header='yes'
27275fi
27276
27277
27278 if test "$have_lcms_header" = 'yes'; then
27279 passed=`expr $passed + 1`
27280
cristy8b350f62009-11-15 23:12:43 +000027281$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027282
27283 else
27284 failed=`expr $failed + 1`
27285 fi
27286 fi
cristy8b350f62009-11-15 23:12:43 +000027287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000027288$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027289if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027290 $as_echo_n "(cached) " >&6
27291else
27292 ac_check_lib_save_LIBS=$LIBS
27293LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027295/* end confdefs.h. */
27296
27297/* Override any GCC internal prototype to avoid an error.
27298 Use char because int might match the return type of a GCC
27299 builtin and then its argument prototype would still apply. */
27300#ifdef __cplusplus
27301extern "C"
27302#endif
27303char cmsOpenProfileFromMem ();
27304int
27305main ()
27306{
27307return cmsOpenProfileFromMem ();
27308 ;
27309 return 0;
27310}
27311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027313 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27314else
cristy8b350f62009-11-15 23:12:43 +000027315 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000027316fi
cristy8b350f62009-11-15 23:12:43 +000027317rm -f core conftest.err conftest.$ac_objext \
27318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027319LIBS=$ac_check_lib_save_LIBS
27320fi
cristy8b350f62009-11-15 23:12:43 +000027321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027322$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027323if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027324 passed=`expr $passed + 1`
27325else
27326 failed=`expr $failed + 1`
27327fi
27328
cristy8b350f62009-11-15 23:12:43 +000027329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027330$as_echo_n "checking if LCMS package is complete... " >&6; }
27331 if test $passed -gt 0; then
27332 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027334$as_echo "no -- some components failed test" >&6; }
27335 have_lcms='no (failed tests)'
27336 else
27337 LCMS_LIBS='-llcms'
27338 LIBS="$LCMS_LIBS $LIBS"
27339
cristy8b350f62009-11-15 23:12:43 +000027340$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027341
cristy8b350f62009-11-15 23:12:43 +000027342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027343$as_echo "yes" >&6; }
27344 have_lcms='yes'
27345 fi
27346 else
cristy8b350f62009-11-15 23:12:43 +000027347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027348$as_echo "no" >&6; }
27349 fi
27350fi
27351 if test "$have_lcms" = 'yes'; then
27352 LCMS_DELEGATE_TRUE=
27353 LCMS_DELEGATE_FALSE='#'
27354else
27355 LCMS_DELEGATE_TRUE='#'
27356 LCMS_DELEGATE_FALSE=
27357fi
27358
27359
27360
27361
27362#
27363# Check for the LQR (Liquid Rescale) delegate library.
27364#
27365
27366# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000027367if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027368 withval=$with_lqr; with_lqr=$withval
27369else
27370 with_lqr='yes'
27371fi
27372
27373
27374if test "$with_lqr" != 'yes'; then
27375 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27376fi
27377
27378have_lqr='no'
27379LQR_CFLAGS=""
27380LQR_LIBS=""
27381LQR_PKG=""
27382if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027384$as_echo "-------------------------------------------------------------" >&6; }
27385
27386pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027388$as_echo_n "checking for LQR... " >&6; }
27389
27390if test -n "$LQR_CFLAGS"; then
27391 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27392 elif test -n "$PKG_CONFIG"; then
27393 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027395 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27396 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27398 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027399 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27400else
27401 pkg_failed=yes
27402fi
27403 else
27404 pkg_failed=untried
27405fi
27406if test -n "$LQR_LIBS"; then
27407 pkg_cv_LQR_LIBS="$LQR_LIBS"
27408 elif test -n "$PKG_CONFIG"; then
27409 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027411 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27412 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27414 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027415 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27416else
27417 pkg_failed=yes
27418fi
27419 else
27420 pkg_failed=untried
27421fi
27422
27423
27424
27425if test $pkg_failed = yes; then
27426
27427if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27428 _pkg_short_errors_supported=yes
27429else
27430 _pkg_short_errors_supported=no
27431fi
27432 if test $_pkg_short_errors_supported = yes; then
27433 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27434 else
27435 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27436 fi
27437 # Put the nasty error message in config.log where it belongs
27438 echo "$LQR_PKG_ERRORS" >&5
27439
cristy8b350f62009-11-15 23:12:43 +000027440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027441$as_echo "no" >&6; }
27442 have_lqr=no
27443elif test $pkg_failed = untried; then
27444 have_lqr=no
27445else
27446 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27447 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027449$as_echo "yes" >&6; }
27450 have_lqr=yes
27451fi
cristy8b350f62009-11-15 23:12:43 +000027452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027453$as_echo "" >&6; }
27454fi
27455
27456if test "$have_lqr" = 'yes'; then
27457
cristy8b350f62009-11-15 23:12:43 +000027458$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027459
27460 CFLAGS="$LQR_CFLAGS $CFLAGS"
27461fi
27462
27463 if test "$have_lqr" = 'yes'; then
27464 LQR_DELEGATE_TRUE=
27465 LQR_DELEGATE_FALSE='#'
27466else
27467 LQR_DELEGATE_TRUE='#'
27468 LQR_DELEGATE_FALSE=
27469fi
27470
27471
27472
27473
27474
27475#
27476# Check for the OpenEXR delegate library.
27477#
27478
27479# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000027480if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027481 withval=$with_openexr; with_openexr=$withval
27482else
27483 with_openexr='yes'
27484fi
27485
27486
27487if test "$with_openexr" != 'yes'; then
27488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27489fi
27490
27491have_openexr='no'
27492OPENEXR_CFLAGS=""
27493OPENEXR_LIBS=""
27494OPENEXR_PKG=""
27495if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027497$as_echo "-------------------------------------------------------------" >&6; }
27498
27499pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027501$as_echo_n "checking for OPENEXR... " >&6; }
27502
27503if test -n "$OPENEXR_CFLAGS"; then
27504 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27505 elif test -n "$PKG_CONFIG"; then
27506 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027508 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27509 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27511 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027512 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27513else
27514 pkg_failed=yes
27515fi
27516 else
27517 pkg_failed=untried
27518fi
27519if test -n "$OPENEXR_LIBS"; then
27520 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27521 elif test -n "$PKG_CONFIG"; then
27522 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027524 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27525 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27527 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027528 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27529else
27530 pkg_failed=yes
27531fi
27532 else
27533 pkg_failed=untried
27534fi
27535
27536
27537
27538if test $pkg_failed = yes; then
27539
27540if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27541 _pkg_short_errors_supported=yes
27542else
27543 _pkg_short_errors_supported=no
27544fi
27545 if test $_pkg_short_errors_supported = yes; then
27546 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27547 else
27548 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27549 fi
27550 # Put the nasty error message in config.log where it belongs
27551 echo "$OPENEXR_PKG_ERRORS" >&5
27552
cristy8b350f62009-11-15 23:12:43 +000027553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027554$as_echo "no" >&6; }
27555 have_openexr=no
27556elif test $pkg_failed = untried; then
27557 have_openexr=no
27558else
27559 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27560 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027562$as_echo "yes" >&6; }
27563 have_openexr=yes
27564fi
cristy8b350f62009-11-15 23:12:43 +000027565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo "" >&6; }
27567fi
27568
27569if test "$have_openexr" = 'yes'; then
27570
cristy8b350f62009-11-15 23:12:43 +000027571$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027572
27573 if test "$with_modules" = 'no'; then
27574 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27575 fi
27576fi
27577
27578 if test "$have_openexr" = 'yes'; then
27579 OPENEXR_DELEGATE_TRUE=
27580 OPENEXR_DELEGATE_FALSE='#'
27581else
27582 OPENEXR_DELEGATE_TRUE='#'
27583 OPENEXR_DELEGATE_FALSE=
27584fi
27585
27586
27587
27588
27589
27590#
27591# Check for PNG delegate library.
27592#
27593
27594# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000027595if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027596 withval=$with_png; with_png=$withval
27597else
27598 with_png='yes'
27599fi
27600
27601
27602if test "$with_png" != 'yes'; then
27603 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
27604fi
27605
27606have_png='no'
27607PNG_LIBS=''
27608if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027610$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027612$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo "" >&6; }
27615 failed=0
27616 passed=0
cristy8b350f62009-11-15 23:12:43 +000027617 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
27618if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027619 passed=`expr $passed + 1`
27620else
27621 failed=`expr $failed + 1`
27622fi
27623
27624
cristy8b350f62009-11-15 23:12:43 +000027625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027627if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 $as_echo_n "(cached) " >&6
27629else
27630 ac_check_lib_save_LIBS=$LIBS
27631LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027633/* end confdefs.h. */
27634
27635/* Override any GCC internal prototype to avoid an error.
27636 Use char because int might match the return type of a GCC
27637 builtin and then its argument prototype would still apply. */
27638#ifdef __cplusplus
27639extern "C"
27640#endif
27641char png_get_io_ptr ();
27642int
27643main ()
27644{
27645return png_get_io_ptr ();
27646 ;
27647 return 0;
27648}
27649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027650if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027651 ac_cv_lib_png_png_get_io_ptr=yes
27652else
cristy8b350f62009-11-15 23:12:43 +000027653 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000027654fi
cristy8b350f62009-11-15 23:12:43 +000027655rm -f core conftest.err conftest.$ac_objext \
27656 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657LIBS=$ac_check_lib_save_LIBS
27658fi
cristy8b350f62009-11-15 23:12:43 +000027659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027661if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027662 passed=`expr $passed + 1`
27663else
27664 failed=`expr $failed + 1`
27665fi
27666
cristy8b350f62009-11-15 23:12:43 +000027667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027668$as_echo_n "checking if PNG package is complete... " >&6; }
27669 if test $passed -gt 0; then
27670 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027672$as_echo "no -- some components failed test" >&6; }
27673 have_png='no (failed tests)'
27674 else
27675 PNG_LIBS='-lpng'
27676 LIBS="$PNG_LIBS $LIBS"
27677
cristy8b350f62009-11-15 23:12:43 +000027678$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027679
cristy8b350f62009-11-15 23:12:43 +000027680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027681$as_echo "yes" >&6; }
27682 have_png='yes'
27683 fi
27684 else
cristy8b350f62009-11-15 23:12:43 +000027685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027686$as_echo "no" >&6; }
27687 fi
27688fi
27689 if test "$have_png" = 'yes'; then
27690 PNG_DELEGATE_TRUE=
27691 PNG_DELEGATE_FALSE='#'
27692else
27693 PNG_DELEGATE_TRUE='#'
27694 PNG_DELEGATE_FALSE=
27695fi
27696
27697
27698
27699
27700#
27701# Check for RSVG delegate library.
27702#
27703
27704# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027705if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027706 withval=$with_rsvg; with_rsvg=$withval
27707else
27708 with_rsvg=$have_x
27709fi
27710
27711
27712if test "$with_rsvg" != 'yes'; then
27713 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27714fi
27715
27716have_rsvg='no'
27717have_cairo='no'
27718RSVG_CFLAGS=""
27719RSVG_LIBS=""
27720RSVG_PKG=""
27721if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027723$as_echo "-------------------------------------------------------------" >&6; }
27724
27725pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027727$as_echo_n "checking for RSVG... " >&6; }
27728
27729if test -n "$RSVG_CFLAGS"; then
27730 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27731 elif test -n "$PKG_CONFIG"; then
27732 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027733 { { $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 +000027734 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27735 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27737 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027738 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27739else
27740 pkg_failed=yes
27741fi
27742 else
27743 pkg_failed=untried
27744fi
27745if test -n "$RSVG_LIBS"; then
27746 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27747 elif test -n "$PKG_CONFIG"; then
27748 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027749 { { $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 +000027750 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27751 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27753 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027754 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27755else
27756 pkg_failed=yes
27757fi
27758 else
27759 pkg_failed=untried
27760fi
27761
27762
27763
27764if test $pkg_failed = yes; then
27765
27766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27767 _pkg_short_errors_supported=yes
27768else
27769 _pkg_short_errors_supported=no
27770fi
27771 if test $_pkg_short_errors_supported = yes; then
27772 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27773 else
27774 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27775 fi
27776 # Put the nasty error message in config.log where it belongs
27777 echo "$RSVG_PKG_ERRORS" >&5
27778
cristy8b350f62009-11-15 23:12:43 +000027779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo "no" >&6; }
27781 have_rsvg=no
27782elif test $pkg_failed = untried; then
27783 have_rsvg=no
27784else
27785 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27786 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027788$as_echo "yes" >&6; }
27789 have_rsvg=yes
27790fi
cristy8b350f62009-11-15 23:12:43 +000027791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo "" >&6; }
27793
27794pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027796$as_echo_n "checking for CAIRO_SVG... " >&6; }
27797
27798if test -n "$CAIRO_SVG_CFLAGS"; then
27799 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27800 elif test -n "$PKG_CONFIG"; then
27801 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027803 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27804 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27806 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027807 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27808else
27809 pkg_failed=yes
27810fi
27811 else
27812 pkg_failed=untried
27813fi
27814if test -n "$CAIRO_SVG_LIBS"; then
27815 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27816 elif test -n "$PKG_CONFIG"; then
27817 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027819 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27820 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27822 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027823 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27824else
27825 pkg_failed=yes
27826fi
27827 else
27828 pkg_failed=untried
27829fi
27830
27831
27832
27833if test $pkg_failed = yes; then
27834
27835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27836 _pkg_short_errors_supported=yes
27837else
27838 _pkg_short_errors_supported=no
27839fi
27840 if test $_pkg_short_errors_supported = yes; then
27841 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27842 else
27843 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27844 fi
27845 # Put the nasty error message in config.log where it belongs
27846 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27847
cristy8b350f62009-11-15 23:12:43 +000027848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027849$as_echo "no" >&6; }
27850 have_cairo=no
27851elif test $pkg_failed = untried; then
27852 have_cairo=no
27853else
27854 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27855 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027857$as_echo "yes" >&6; }
27858 have_cairo=yes
27859fi
cristy8b350f62009-11-15 23:12:43 +000027860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027861$as_echo "" >&6; }
27862fi
27863
27864if test "$have_rsvg" = 'yes'; then
27865
cristy8b350f62009-11-15 23:12:43 +000027866$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027867
27868 if test "$with_modules" = 'no'; then
27869 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27870 fi
27871fi
27872
27873if test "$have_cairo" = 'yes'; then
27874
cristy8b350f62009-11-15 23:12:43 +000027875$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027876
27877 if test "$with_modules" = 'no'; then
27878 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27879 fi
27880fi
27881
27882 if test "$have_rsvg" = 'yes'; then
27883 RSVG_DELEGATE_TRUE=
27884 RSVG_DELEGATE_FALSE='#'
27885else
27886 RSVG_DELEGATE_TRUE='#'
27887 RSVG_DELEGATE_FALSE=
27888fi
27889
27890 if test "$have_cairo" = 'yes'; then
27891 CAIRO_DELEGATE_TRUE=
27892 CAIRO_DELEGATE_FALSE='#'
27893else
27894 CAIRO_DELEGATE_TRUE='#'
27895 CAIRO_DELEGATE_FALSE=
27896fi
27897
27898
27899
27900
27901
27902#
27903# Check for TIFF delegate library.
27904#
27905
27906# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027907if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 withval=$with_tiff; with_tiff=$withval
27909else
27910 with_tiff='yes'
27911fi
27912
27913
27914if test "$with_tiff" != 'yes'; then
27915 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27916fi
27917
27918have_tiff='no'
27919TIFF_LIBS=''
27920if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027922$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027924$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027926$as_echo "" >&6; }
27927 failed=0
27928 passed=0
cristy8b350f62009-11-15 23:12:43 +000027929 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27930if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027931 passed=`expr $passed + 1`
27932else
27933 failed=`expr $failed + 1`
27934fi
27935
27936
cristy8b350f62009-11-15 23:12:43 +000027937 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27938if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027939 passed=`expr $passed + 1`
27940else
27941 failed=`expr $failed + 1`
27942fi
27943
27944
cristy8b350f62009-11-15 23:12:43 +000027945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027946$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027947if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 $as_echo_n "(cached) " >&6
27949else
27950 ac_check_lib_save_LIBS=$LIBS
27951LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027953/* end confdefs.h. */
27954
27955/* Override any GCC internal prototype to avoid an error.
27956 Use char because int might match the return type of a GCC
27957 builtin and then its argument prototype would still apply. */
27958#ifdef __cplusplus
27959extern "C"
27960#endif
27961char TIFFOpen ();
27962int
27963main ()
27964{
27965return TIFFOpen ();
27966 ;
27967 return 0;
27968}
27969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027971 ac_cv_lib_tiff_TIFFOpen=yes
27972else
cristy8b350f62009-11-15 23:12:43 +000027973 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027974fi
cristy8b350f62009-11-15 23:12:43 +000027975rm -f core conftest.err conftest.$ac_objext \
27976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027977LIBS=$ac_check_lib_save_LIBS
27978fi
cristy8b350f62009-11-15 23:12:43 +000027979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027980$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027981if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 passed=`expr $passed + 1`
27983else
27984 failed=`expr $failed + 1`
27985fi
27986
cristy8b350f62009-11-15 23:12:43 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027988$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027989if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027990 $as_echo_n "(cached) " >&6
27991else
27992 ac_check_lib_save_LIBS=$LIBS
27993LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027995/* end confdefs.h. */
27996
27997/* Override any GCC internal prototype to avoid an error.
27998 Use char because int might match the return type of a GCC
27999 builtin and then its argument prototype would still apply. */
28000#ifdef __cplusplus
28001extern "C"
28002#endif
28003char TIFFClientOpen ();
28004int
28005main ()
28006{
28007return TIFFClientOpen ();
28008 ;
28009 return 0;
28010}
28011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028013 ac_cv_lib_tiff_TIFFClientOpen=yes
28014else
cristy8b350f62009-11-15 23:12:43 +000028015 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028016fi
cristy8b350f62009-11-15 23:12:43 +000028017rm -f core conftest.err conftest.$ac_objext \
28018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028019LIBS=$ac_check_lib_save_LIBS
28020fi
cristy8b350f62009-11-15 23:12:43 +000028021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028022$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028023if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 passed=`expr $passed + 1`
28025else
28026 failed=`expr $failed + 1`
28027fi
28028
cristy8b350f62009-11-15 23:12:43 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028031if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 $as_echo_n "(cached) " >&6
28033else
28034 ac_check_lib_save_LIBS=$LIBS
28035LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028037/* end confdefs.h. */
28038
28039/* Override any GCC internal prototype to avoid an error.
28040 Use char because int might match the return type of a GCC
28041 builtin and then its argument prototype would still apply. */
28042#ifdef __cplusplus
28043extern "C"
28044#endif
28045char TIFFIsByteSwapped ();
28046int
28047main ()
28048{
28049return TIFFIsByteSwapped ();
28050 ;
28051 return 0;
28052}
28053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028055 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28056else
cristy8b350f62009-11-15 23:12:43 +000028057 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028058fi
cristy8b350f62009-11-15 23:12:43 +000028059rm -f core conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028061LIBS=$ac_check_lib_save_LIBS
28062fi
cristy8b350f62009-11-15 23:12:43 +000028063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028065if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 passed=`expr $passed + 1`
28067else
28068 failed=`expr $failed + 1`
28069fi
28070
cristy8b350f62009-11-15 23:12:43 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028073if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028074 $as_echo_n "(cached) " >&6
28075else
28076 ac_check_lib_save_LIBS=$LIBS
28077LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028079/* end confdefs.h. */
28080
28081/* Override any GCC internal prototype to avoid an error.
28082 Use char because int might match the return type of a GCC
28083 builtin and then its argument prototype would still apply. */
28084#ifdef __cplusplus
28085extern "C"
28086#endif
28087char TIFFReadRGBATile ();
28088int
28089main ()
28090{
28091return TIFFReadRGBATile ();
28092 ;
28093 return 0;
28094}
28095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028097 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28098else
cristy8b350f62009-11-15 23:12:43 +000028099 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028100fi
cristy8b350f62009-11-15 23:12:43 +000028101rm -f core conftest.err conftest.$ac_objext \
28102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028103LIBS=$ac_check_lib_save_LIBS
28104fi
cristy8b350f62009-11-15 23:12:43 +000028105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028106$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028107if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028108 passed=`expr $passed + 1`
28109else
28110 failed=`expr $failed + 1`
28111fi
28112
cristy8b350f62009-11-15 23:12:43 +000028113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028114$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028115if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028116 $as_echo_n "(cached) " >&6
28117else
28118 ac_check_lib_save_LIBS=$LIBS
28119LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028121/* end confdefs.h. */
28122
28123/* Override any GCC internal prototype to avoid an error.
28124 Use char because int might match the return type of a GCC
28125 builtin and then its argument prototype would still apply. */
28126#ifdef __cplusplus
28127extern "C"
28128#endif
28129char TIFFReadRGBAStrip ();
28130int
28131main ()
28132{
28133return TIFFReadRGBAStrip ();
28134 ;
28135 return 0;
28136}
28137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028138if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028139 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28140else
cristy8b350f62009-11-15 23:12:43 +000028141 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028142fi
cristy8b350f62009-11-15 23:12:43 +000028143rm -f core conftest.err conftest.$ac_objext \
28144 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028145LIBS=$ac_check_lib_save_LIBS
28146fi
cristy8b350f62009-11-15 23:12:43 +000028147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028148$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028149if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028150 passed=`expr $passed + 1`
28151else
28152 failed=`expr $failed + 1`
28153fi
28154
cristy8b350f62009-11-15 23:12:43 +000028155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028156$as_echo_n "checking if TIFF package is complete... " >&6; }
28157 if test $passed -gt 0; then
28158 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028160$as_echo "no -- some components failed test" >&6; }
28161 have_tiff='no (failed tests)'
28162 else
28163 TIFF_LIBS='-ltiff'
28164 LIBS="$TIFF_LIBS $LIBS"
28165
cristy8b350f62009-11-15 23:12:43 +000028166$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028167
cristy8b350f62009-11-15 23:12:43 +000028168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028169$as_echo "yes" >&6; }
28170 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028171 for ac_header in tiffconf.h
28172do :
28173 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28174if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028176#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028177_ACEOF
28178
28179fi
28180
28181done
28182
cristy8b350f62009-11-15 23:12:43 +000028183 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028184 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28185 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028186do :
28187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28188ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28189eval as_val=\$$as_ac_var
28190 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028191 cat >>confdefs.h <<_ACEOF
28192#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28193_ACEOF
28194
28195fi
28196done
28197
28198 fi
28199 else
cristy8b350f62009-11-15 23:12:43 +000028200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028201$as_echo "no" >&6; }
28202 fi
28203fi
28204 if test "$have_tiff" = 'yes'; then
28205 TIFF_DELEGATE_TRUE=
28206 TIFF_DELEGATE_FALSE='#'
28207else
28208 TIFF_DELEGATE_TRUE='#'
28209 TIFF_DELEGATE_FALSE=
28210fi
28211
28212
28213
28214
28215#
28216# Set Windows font directory.
28217#
28218
28219# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028220if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28222else
28223 with_windows_font_dir=''
28224fi
28225
28226if test "$with_windows_font_dir" != '' ; then
28227 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28228fi
28229
28230
28231#
28232# Check for WMF delegate library.
28233#
28234
28235# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028236if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028237 withval=$with_wmf; with_wmf=$withval
28238else
cristy8d63d1d2010-01-06 20:38:37 +000028239 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028240fi
28241
28242
28243if test "$with_wmf" != 'yes'; then
28244 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28245fi
28246
28247have_wmf='no'
28248WMF_LIBS=''
28249WMF_LIBS_DEPS=''
28250OLIBS="$LIBS"
28251if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028253$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028255$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028257$as_echo "" >&6; }
28258 have_libwmf='no'
28259 have_libwmflite='no'
28260 have_libwmf_ipa_h='no'
28261
cristy8b350f62009-11-15 23:12:43 +000028262 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
28263"
28264if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028265 have_libwmf_ipa_h='yes'
28266fi
28267
28268
28269 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028272if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 $as_echo_n "(cached) " >&6
28274else
28275 ac_check_lib_save_LIBS=$LIBS
28276LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028278/* end confdefs.h. */
28279
28280/* Override any GCC internal prototype to avoid an error.
28281 Use char because int might match the return type of a GCC
28282 builtin and then its argument prototype would still apply. */
28283#ifdef __cplusplus
28284extern "C"
28285#endif
28286char wmf_lite_create ();
28287int
28288main ()
28289{
28290return wmf_lite_create ();
28291 ;
28292 return 0;
28293}
28294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028296 ac_cv_lib_wmflite_wmf_lite_create=yes
28297else
cristy8b350f62009-11-15 23:12:43 +000028298 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000028299fi
cristy8b350f62009-11-15 23:12:43 +000028300rm -f core conftest.err conftest.$ac_objext \
28301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028302LIBS=$ac_check_lib_save_LIBS
28303fi
cristy8b350f62009-11-15 23:12:43 +000028304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028305$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028306if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 have_libwmflite='yes'
28308fi
28309
28310 if test "$have_libwmflite" = 'yes'; then
28311
cristy8b350f62009-11-15 23:12:43 +000028312$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028313
28314 WMF_LIBS='-lwmflite'
28315 LIBS="$WMF_LIBS $LIBS"
28316 have_wmf='yes'
28317 else
28318 WMF_LIBS_DEPS=''
28319 WMF_CONFIG_LIBS=`libwmf-config --libs`
28320 for lib in xml2 expat freetype jpeg png z; do
28321 testlib="-l${lib}"
28322 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
28323 done
cristy8b350f62009-11-15 23:12:43 +000028324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000028325$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028326if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028327 $as_echo_n "(cached) " >&6
28328else
28329 ac_check_lib_save_LIBS=$LIBS
28330LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028332/* end confdefs.h. */
28333
28334/* Override any GCC internal prototype to avoid an error.
28335 Use char because int might match the return type of a GCC
28336 builtin and then its argument prototype would still apply. */
28337#ifdef __cplusplus
28338extern "C"
28339#endif
28340char wmf_api_create ();
28341int
28342main ()
28343{
28344return wmf_api_create ();
28345 ;
28346 return 0;
28347}
28348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028350 ac_cv_lib_wmf_wmf_api_create=yes
28351else
cristy8b350f62009-11-15 23:12:43 +000028352 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000028353fi
cristy8b350f62009-11-15 23:12:43 +000028354rm -f core conftest.err conftest.$ac_objext \
28355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028356LIBS=$ac_check_lib_save_LIBS
28357fi
cristy8b350f62009-11-15 23:12:43 +000028358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028359$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028360if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028361 have_libwmf='yes'
28362fi
28363
28364 if test "$have_libwmf" = 'yes'; then
28365
cristy8b350f62009-11-15 23:12:43 +000028366$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028367
28368 WMF_LIBS='-lwmf'
28369 LIBS="$WMF_LIBS $LIBS"
28370 have_wmf='yes'
28371 else
cristy8b350f62009-11-15 23:12:43 +000028372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028373$as_echo "no -- some components failed test" >&6; }
28374 have_wmf='no (failed tests)'
28375 have_wmflite='no (failed tests)'
28376 LIBS="$OLIBS"
28377 WMF_LIBS=''
28378 fi
28379 fi
28380 fi
cristy8b350f62009-11-15 23:12:43 +000028381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028382$as_echo_n "checking if WMF package is complete... " >&6; }
28383 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028385$as_echo "yes" >&6; }
28386 else
cristy8b350f62009-11-15 23:12:43 +000028387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028388$as_echo "no" >&6; }
28389 fi
28390fi
28391 if test "$have_wmf" = 'yes'; then
28392 WMF_DELEGATE_TRUE=
28393 WMF_DELEGATE_FALSE='#'
28394else
28395 WMF_DELEGATE_TRUE='#'
28396 WMF_DELEGATE_FALSE=
28397fi
28398
28399
28400
28401
28402
28403#
28404# Check for XML delegate library.
28405#
28406
28407# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000028408if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028409 withval=$with_xml; with_xml=$withval
28410else
28411 with_xml=$have_x
28412fi
28413
28414
28415if test "$with_xml" != 'yes' ; then
28416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28417fi
28418
28419have_xml='no'
28420XML_LIBS=''
28421if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028423$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028427$as_echo "" >&6; }
28428 PERSIST_LDFLAGS=$LDFLAGS
28429 PERSIST_CPPFLAGS=$CPPFLAGS
28430 xml2_config=''
28431 for ac_prog in xml2-config
28432do
28433 # Extract the first word of "$ac_prog", so it can be a program name with args.
28434set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028436$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028437if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028438 $as_echo_n "(cached) " >&6
28439else
28440 if test -n "$xml2_config"; then
28441 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28442else
28443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28444for as_dir in $PATH
28445do
28446 IFS=$as_save_IFS
28447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28450 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028452 break 2
28453 fi
28454done
cristy8b350f62009-11-15 23:12:43 +000028455 done
cristy3ed852e2009-09-05 21:47:34 +000028456IFS=$as_save_IFS
28457
28458fi
28459fi
28460xml2_config=$ac_cv_prog_xml2_config
28461if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000028462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028463$as_echo "$xml2_config" >&6; }
28464else
cristy8b350f62009-11-15 23:12:43 +000028465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028466$as_echo "no" >&6; }
28467fi
28468
28469
28470 test -n "$xml2_config" && break
28471done
28472 if test -n "$xml2_config"; then
28473 # Debian installs libxml headers under /usr/include/libxml2/libxml with
28474 # the shared library installed under /usr/lib, whereas the package
28475 # installs itself under $prefix/libxml and $prefix/lib.
28476 xml2_prefix=`xml2-config --prefix`
28477 if test -d "${xml2_prefix}/include/libxml2"; then
28478 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28479 fi
28480 if test "${xml2_prefix}" != '/usr'; then
28481 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28482 fi
28483 fi
28484 failed=0
28485 passed=0
cristy8b350f62009-11-15 23:12:43 +000028486 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28487if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028488 passed=`expr $passed + 1`
28489else
28490 failed=`expr $failed + 1`
28491fi
28492
28493
cristy8b350f62009-11-15 23:12:43 +000028494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028495$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028496if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028497 $as_echo_n "(cached) " >&6
28498else
28499 ac_check_lib_save_LIBS=$LIBS
28500LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028502/* end confdefs.h. */
28503
28504/* Override any GCC internal prototype to avoid an error.
28505 Use char because int might match the return type of a GCC
28506 builtin and then its argument prototype would still apply. */
28507#ifdef __cplusplus
28508extern "C"
28509#endif
28510char xmlParseExternalEntity ();
28511int
28512main ()
28513{
28514return xmlParseExternalEntity ();
28515 ;
28516 return 0;
28517}
28518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028519if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028520 ac_cv_lib_xml2_xmlParseExternalEntity=yes
28521else
cristy8b350f62009-11-15 23:12:43 +000028522 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000028523fi
cristy8b350f62009-11-15 23:12:43 +000028524rm -f core conftest.err conftest.$ac_objext \
28525 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028526LIBS=$ac_check_lib_save_LIBS
28527fi
cristy8b350f62009-11-15 23:12:43 +000028528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000028529$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028530if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028531 passed=`expr $passed + 1`
28532else
28533 failed=`expr $failed + 1`
28534fi
28535
cristy8b350f62009-11-15 23:12:43 +000028536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028537$as_echo_n "checking if XML package is complete... " >&6; }
28538 if test $passed -gt 0; then
28539 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028541$as_echo "no -- some components failed test" >&6; }
28542 have_xml='no (failed tests)'
28543 LDFLAGS="$PERSIST_LDFLAGS"
28544 CPPFLAGS="$PERSIST_CPPFLAGS"
28545 else
28546 XML_LIBS='-lxml2'
28547 LIBS="$XML_LIBS $LIBS"
28548
cristy8b350f62009-11-15 23:12:43 +000028549$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028550
cristy8b350f62009-11-15 23:12:43 +000028551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028552$as_echo "yes" >&6; }
28553 have_xml='yes'
28554 fi
28555 else
cristy8b350f62009-11-15 23:12:43 +000028556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028557$as_echo "no" >&6; }
28558 fi
28559fi
28560 if test "$have_xml" = 'yes'; then
28561 XML_DELEGATE_TRUE=
28562 XML_DELEGATE_FALSE='#'
28563else
28564 XML_DELEGATE_TRUE='#'
28565 XML_DELEGATE_FALSE=
28566fi
28567
28568
28569
28570
28571# Substitute compiler name to build/link PerlMagick
28572#
28573
28574
28575#
28576# Configure install Paths
28577#
28578
28579# Subdirectory under lib to place ImageMagick lib files
28580LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28581
28582cat >>confdefs.h <<_ACEOF
28583#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28584_ACEOF
28585
28586
28587# Path to ImageMagick bin directory
28588EXECUTABLE_PATH="${BIN_DIR}"
28589DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28590case "${build_os}" in
28591 mingw* )
28592 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28593 ;;
28594esac
28595
28596cat >>confdefs.h <<_ACEOF
28597#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28598_ACEOF
28599
28600
28601
28602# Path to ImageMagick lib
28603LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28604DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28605case "${build_os}" in
28606 mingw* )
28607 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28608 ;;
28609esac
28610
28611cat >>confdefs.h <<_ACEOF
28612#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28613_ACEOF
28614
28615
28616
28617# Subdirectory under lib to place ImageMagick configuration files
28618CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28619
28620cat >>confdefs.h <<_ACEOF
28621#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
28622_ACEOF
28623
28624CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28625DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28626case "${build_os}" in
28627 mingw* )
28628 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
28629 ;;
28630esac
28631
28632cat >>confdefs.h <<_ACEOF
28633#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
28634_ACEOF
28635
28636
28637
28638#
28639# Subdirectory under lib to place ImageMagick coder module files
28640CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
28641
28642cat >>confdefs.h <<_ACEOF
28643#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
28644_ACEOF
28645
28646CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
28647DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
28648case "${build_os}" in
28649 mingw* )
28650 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
28651 ;;
28652esac
28653
28654cat >>confdefs.h <<_ACEOF
28655#define CODER_PATH "$DEFINE_CODER_PATH"
28656_ACEOF
28657
28658
28659
28660#
28661# Subdirectory under lib to place ImageMagick filter module files
28662FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
28663
28664cat >>confdefs.h <<_ACEOF
28665#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
28666_ACEOF
28667
28668FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
28669DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
28670case "${build_os}" in
28671 mingw* )
28672 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28673 ;;
28674esac
28675
28676cat >>confdefs.h <<_ACEOF
28677#define FILTER_PATH "$DEFINE_FILTER_PATH"
28678_ACEOF
28679
28680
28681
28682#
28683# Path to ImageMagick documentation files
28684DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28685DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28686DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28687case "${build_os}" in
28688 mingw* )
28689 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28690 ;;
28691esac
28692
28693cat >>confdefs.h <<_ACEOF
28694#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28695_ACEOF
28696
28697
28698
28699#
28700# Path to ImageMagick share files
28701SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28702SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28703DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28704case "${build_os}" in
28705 mingw* )
28706 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28707 ;;
28708esac
28709
28710cat >>confdefs.h <<_ACEOF
28711#define SHARE_PATH "$DEFINE_SHARE_PATH"
28712_ACEOF
28713
28714
28715
28716# Subdirectory under share to place ImageMagick configuration files
28717SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28718
28719cat >>confdefs.h <<_ACEOF
28720#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28721_ACEOF
28722
28723SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28724DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28725case "${build_os}" in
28726 mingw* )
28727 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28728 ;;
28729esac
28730
28731cat >>confdefs.h <<_ACEOF
28732#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28733_ACEOF
28734
28735
28736
28737#
28738# program_transform_name is formed for use in a Makefile, so create a
28739# modified version for use in a shell script.
28740configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28741
28742# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028744$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028746$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028748$as_echo "" >&6; }
28749AutotraceDecodeDelegateDefault='autotrace'
28750AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028751BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028752BZIPDelegateDefault='bzip2'
28753BrowseDelegateDefault='xdg-open'
28754CGMDecodeDelegateDefault='ralcgm'
28755CatDelegateDefault='cat'
28756DNGDecodeDelegateDefault='ufraw-batch'
28757GVCDecodeDelegateDefault='dot'
28758DVIDecodeDelegateDefault='dvips'
28759EchoDelegateDefault='echo'
28760EditorDelegateDefault='xterm'
28761FIGDecodeDelegateDefault='fig2dev'
28762ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28763DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28764MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28765GnuplotDecodeDelegateDefault='gnuplot'
28766HDRDecodeDelegateDefault='ra_pfm'
28767HPGLDecodeDelegateDefault='hp2xx'
28768HTMLDecodeDelegateDefault='html2ps'
28769ILBMDecodeDelegateDefault='ilbmtoppm'
28770ILBMEncodeDelegateDefault='ppmtoilbm'
28771LPDelegateDefault='lp'
28772LPRDelegateDefault='lpr'
28773LZWDecodeDelegateDefault='uncompress'
28774LZWEncodeDelegateDefault='compress'
28775LaunchDelegateDefault='gimp'
28776MANDelegateDefault='groff'
28777MPEGDecodeDelegateDefault='ffmpeg'
28778MPEGEncodeDelegateDefault='ffmpeg'
28779MVDelegateDefault='mv'
28780PCLDelegateDefault='pcl6'
28781PGPDecodeDelegateDefault='pgpv'
28782POVDelegateDefault='povray'
28783if test "$native_win32_build" = 'yes'; then
28784 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028785elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028786 PSDelegateDefault='gsc'
28787else
28788 PSDelegateDefault='gs'
28789fi
28790RLEEncodeDelegateDefault='rawtorle'
28791RMDelegateDefault='rm'
28792SCANDecodeDelegateDefault='scanimage'
28793TXTDelegateDefault='enscript'
28794WMFDecodeDelegateDefault='wmf2eps'
28795WWWDecodeDelegateDefault='curl'
28796XPSDelegateDefault='gxps'
28797ZipDelegateDefault='gzip'
28798
28799# Search for delegates
28800# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28801set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028803$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028804if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028805 $as_echo_n "(cached) " >&6
28806else
28807 case $AutotraceDecodeDelegate in
28808 [\\/]* | ?:[\\/]*)
28809 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28810 ;;
28811 *)
28812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28813for as_dir in $PATH
28814do
28815 IFS=$as_save_IFS
28816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28819 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028821 break 2
28822 fi
28823done
cristy8b350f62009-11-15 23:12:43 +000028824 done
cristy3ed852e2009-09-05 21:47:34 +000028825IFS=$as_save_IFS
28826
28827 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28828 ;;
28829esac
28830fi
28831AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28832if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028834$as_echo "$AutotraceDecodeDelegate" >&6; }
28835else
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo "no" >&6; }
28838fi
28839
28840
28841# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28842set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028844$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028845if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028846 $as_echo_n "(cached) " >&6
28847else
28848 case $AVIDecodeDelegate in
28849 [\\/]* | ?:[\\/]*)
28850 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28851 ;;
28852 *)
28853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28854for as_dir in $PATH
28855do
28856 IFS=$as_save_IFS
28857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28860 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028862 break 2
28863 fi
28864done
cristy8b350f62009-11-15 23:12:43 +000028865 done
cristy3ed852e2009-09-05 21:47:34 +000028866IFS=$as_save_IFS
28867
28868 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28869 ;;
28870esac
28871fi
28872AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28873if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028875$as_echo "$AVIDecodeDelegate" >&6; }
28876else
cristy8b350f62009-11-15 23:12:43 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028878$as_echo "no" >&6; }
28879fi
28880
28881
28882# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28883set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028885$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028886if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028887 $as_echo_n "(cached) " >&6
28888else
28889 case $BlenderDecodeDelegate in
28890 [\\/]* | ?:[\\/]*)
28891 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28892 ;;
28893 *)
28894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28895for as_dir in $PATH
28896do
28897 IFS=$as_save_IFS
28898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28901 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028903 break 2
28904 fi
28905done
cristy8b350f62009-11-15 23:12:43 +000028906 done
cristy3ed852e2009-09-05 21:47:34 +000028907IFS=$as_save_IFS
28908
28909 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28910 ;;
28911esac
28912fi
28913BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28914if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028916$as_echo "$BlenderDecodeDelegate" >&6; }
28917else
cristy8b350f62009-11-15 23:12:43 +000028918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028919$as_echo "no" >&6; }
28920fi
28921
28922
28923# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28924set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028926$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028927if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028928 $as_echo_n "(cached) " >&6
28929else
28930 case $BZIPDelegate in
28931 [\\/]* | ?:[\\/]*)
28932 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28933 ;;
28934 *)
28935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28936for as_dir in $PATH
28937do
28938 IFS=$as_save_IFS
28939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28942 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028944 break 2
28945 fi
28946done
cristy8b350f62009-11-15 23:12:43 +000028947 done
cristy3ed852e2009-09-05 21:47:34 +000028948IFS=$as_save_IFS
28949
28950 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28951 ;;
28952esac
28953fi
28954BZIPDelegate=$ac_cv_path_BZIPDelegate
28955if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028957$as_echo "$BZIPDelegate" >&6; }
28958else
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo "no" >&6; }
28961fi
28962
28963
28964# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28965set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028967$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028968if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028969 $as_echo_n "(cached) " >&6
28970else
28971 case $BrowseDelegate in
28972 [\\/]* | ?:[\\/]*)
28973 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28974 ;;
28975 *)
28976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28977for as_dir in $PATH
28978do
28979 IFS=$as_save_IFS
28980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28983 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028985 break 2
28986 fi
28987done
cristy8b350f62009-11-15 23:12:43 +000028988 done
cristy3ed852e2009-09-05 21:47:34 +000028989IFS=$as_save_IFS
28990
28991 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28992 ;;
28993esac
28994fi
28995BrowseDelegate=$ac_cv_path_BrowseDelegate
28996if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028998$as_echo "$BrowseDelegate" >&6; }
28999else
cristy8b350f62009-11-15 23:12:43 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029001$as_echo "no" >&6; }
29002fi
29003
29004
29005# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29006set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029008$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029009if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 $as_echo_n "(cached) " >&6
29011else
29012 case $CGMDecodeDelegate in
29013 [\\/]* | ?:[\\/]*)
29014 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29015 ;;
29016 *)
29017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29018for as_dir in $PATH
29019do
29020 IFS=$as_save_IFS
29021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29024 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029026 break 2
29027 fi
29028done
cristy8b350f62009-11-15 23:12:43 +000029029 done
cristy3ed852e2009-09-05 21:47:34 +000029030IFS=$as_save_IFS
29031
29032 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29033 ;;
29034esac
29035fi
29036CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29037if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029039$as_echo "$CGMDecodeDelegate" >&6; }
29040else
cristy8b350f62009-11-15 23:12:43 +000029041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029042$as_echo "no" >&6; }
29043fi
29044
29045
29046# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29047set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029049$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029050if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029051 $as_echo_n "(cached) " >&6
29052else
29053 case $CatDelegate in
29054 [\\/]* | ?:[\\/]*)
29055 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29056 ;;
29057 *)
29058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29059for as_dir in $PATH
29060do
29061 IFS=$as_save_IFS
29062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29065 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067 break 2
29068 fi
29069done
cristy8b350f62009-11-15 23:12:43 +000029070 done
cristy3ed852e2009-09-05 21:47:34 +000029071IFS=$as_save_IFS
29072
29073 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29074 ;;
29075esac
29076fi
29077CatDelegate=$ac_cv_path_CatDelegate
29078if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029080$as_echo "$CatDelegate" >&6; }
29081else
cristy8b350f62009-11-15 23:12:43 +000029082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029083$as_echo "no" >&6; }
29084fi
29085
29086
29087# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29088set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029090$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029091if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029092 $as_echo_n "(cached) " >&6
29093else
29094 case $DNGDecodeDelegate in
29095 [\\/]* | ?:[\\/]*)
29096 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29097 ;;
29098 *)
29099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29100for as_dir in $PATH
29101do
29102 IFS=$as_save_IFS
29103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29106 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029108 break 2
29109 fi
29110done
cristy8b350f62009-11-15 23:12:43 +000029111 done
cristy3ed852e2009-09-05 21:47:34 +000029112IFS=$as_save_IFS
29113
29114 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29115 ;;
29116esac
29117fi
29118DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29119if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029121$as_echo "$DNGDecodeDelegate" >&6; }
29122else
cristy8b350f62009-11-15 23:12:43 +000029123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029124$as_echo "no" >&6; }
29125fi
29126
29127
29128# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29129set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029131$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029132if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 $as_echo_n "(cached) " >&6
29134else
29135 case $GVCDecodeDelegate in
29136 [\\/]* | ?:[\\/]*)
29137 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29138 ;;
29139 *)
29140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29141for as_dir in $PATH
29142do
29143 IFS=$as_save_IFS
29144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29147 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029149 break 2
29150 fi
29151done
cristy8b350f62009-11-15 23:12:43 +000029152 done
cristy3ed852e2009-09-05 21:47:34 +000029153IFS=$as_save_IFS
29154
29155 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29156 ;;
29157esac
29158fi
29159GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29160if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029162$as_echo "$GVCDecodeDelegate" >&6; }
29163else
cristy8b350f62009-11-15 23:12:43 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "no" >&6; }
29166fi
29167
29168
29169# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29170set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029172$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029173if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029174 $as_echo_n "(cached) " >&6
29175else
29176 case $DVIDecodeDelegate in
29177 [\\/]* | ?:[\\/]*)
29178 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29179 ;;
29180 *)
29181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29182for as_dir in $PATH
29183do
29184 IFS=$as_save_IFS
29185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29188 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029190 break 2
29191 fi
29192done
cristy8b350f62009-11-15 23:12:43 +000029193 done
cristy3ed852e2009-09-05 21:47:34 +000029194IFS=$as_save_IFS
29195
29196 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29197 ;;
29198esac
29199fi
29200DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29201if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029203$as_echo "$DVIDecodeDelegate" >&6; }
29204else
cristy8b350f62009-11-15 23:12:43 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029206$as_echo "no" >&6; }
29207fi
29208
29209
29210# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29211set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029213$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029214if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 $as_echo_n "(cached) " >&6
29216else
29217 case $EchoDelegate in
29218 [\\/]* | ?:[\\/]*)
29219 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29220 ;;
29221 *)
29222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29223for as_dir in $PATH
29224do
29225 IFS=$as_save_IFS
29226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29229 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029231 break 2
29232 fi
29233done
cristy8b350f62009-11-15 23:12:43 +000029234 done
cristy3ed852e2009-09-05 21:47:34 +000029235IFS=$as_save_IFS
29236
29237 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29238 ;;
29239esac
29240fi
29241EchoDelegate=$ac_cv_path_EchoDelegate
29242if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029244$as_echo "$EchoDelegate" >&6; }
29245else
cristy8b350f62009-11-15 23:12:43 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029247$as_echo "no" >&6; }
29248fi
29249
29250
29251# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29252set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029254$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029255if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029256 $as_echo_n "(cached) " >&6
29257else
29258 case $EditorDelegate in
29259 [\\/]* | ?:[\\/]*)
29260 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29261 ;;
29262 *)
29263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29264for as_dir in $PATH
29265do
29266 IFS=$as_save_IFS
29267 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29270 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272 break 2
29273 fi
29274done
cristy8b350f62009-11-15 23:12:43 +000029275 done
cristy3ed852e2009-09-05 21:47:34 +000029276IFS=$as_save_IFS
29277
29278 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29279 ;;
29280esac
29281fi
29282EditorDelegate=$ac_cv_path_EditorDelegate
29283if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029285$as_echo "$EditorDelegate" >&6; }
29286else
cristy8b350f62009-11-15 23:12:43 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo "no" >&6; }
29289fi
29290
29291
29292# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29293set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029295$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029296if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029297 $as_echo_n "(cached) " >&6
29298else
29299 case $FIGDecodeDelegate in
29300 [\\/]* | ?:[\\/]*)
29301 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29302 ;;
29303 *)
29304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29305for as_dir in $PATH
29306do
29307 IFS=$as_save_IFS
29308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29311 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029313 break 2
29314 fi
29315done
cristy8b350f62009-11-15 23:12:43 +000029316 done
cristy3ed852e2009-09-05 21:47:34 +000029317IFS=$as_save_IFS
29318
29319 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29320 ;;
29321esac
29322fi
29323FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29324if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029326$as_echo "$FIGDecodeDelegate" >&6; }
29327else
cristy8b350f62009-11-15 23:12:43 +000029328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029329$as_echo "no" >&6; }
29330fi
29331
29332
29333# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29334set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029337if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029338 $as_echo_n "(cached) " >&6
29339else
29340 case $ConvertDelegate in
29341 [\\/]* | ?:[\\/]*)
29342 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29343 ;;
29344 *)
29345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29346for as_dir in $PATH
29347do
29348 IFS=$as_save_IFS
29349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29352 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029354 break 2
29355 fi
29356done
cristy8b350f62009-11-15 23:12:43 +000029357 done
cristy3ed852e2009-09-05 21:47:34 +000029358IFS=$as_save_IFS
29359
29360 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29361 ;;
29362esac
29363fi
29364ConvertDelegate=$ac_cv_path_ConvertDelegate
29365if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029367$as_echo "$ConvertDelegate" >&6; }
29368else
cristy8b350f62009-11-15 23:12:43 +000029369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029370$as_echo "no" >&6; }
29371fi
29372
29373
29374# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29375set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029377$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029378if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029379 $as_echo_n "(cached) " >&6
29380else
29381 case $DisplayDelegate in
29382 [\\/]* | ?:[\\/]*)
29383 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29384 ;;
29385 *)
29386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29387for as_dir in $PATH
29388do
29389 IFS=$as_save_IFS
29390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29393 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029395 break 2
29396 fi
29397done
cristy8b350f62009-11-15 23:12:43 +000029398 done
cristy3ed852e2009-09-05 21:47:34 +000029399IFS=$as_save_IFS
29400
29401 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29402 ;;
29403esac
29404fi
29405DisplayDelegate=$ac_cv_path_DisplayDelegate
29406if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029408$as_echo "$DisplayDelegate" >&6; }
29409else
cristy8b350f62009-11-15 23:12:43 +000029410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029411$as_echo "no" >&6; }
29412fi
29413
29414
29415# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29416set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029418$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029419if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 $as_echo_n "(cached) " >&6
29421else
29422 case $MogrifyDelegate in
29423 [\\/]* | ?:[\\/]*)
29424 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29425 ;;
29426 *)
29427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29428for as_dir in $PATH
29429do
29430 IFS=$as_save_IFS
29431 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29434 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029436 break 2
29437 fi
29438done
cristy8b350f62009-11-15 23:12:43 +000029439 done
cristy3ed852e2009-09-05 21:47:34 +000029440IFS=$as_save_IFS
29441
29442 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29443 ;;
29444esac
29445fi
29446MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29447if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029449$as_echo "$MogrifyDelegate" >&6; }
29450else
cristy8b350f62009-11-15 23:12:43 +000029451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029452$as_echo "no" >&6; }
29453fi
29454
29455
29456# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29457set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029459$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029460if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029461 $as_echo_n "(cached) " >&6
29462else
29463 case $GnuplotDecodeDelegate in
29464 [\\/]* | ?:[\\/]*)
29465 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29466 ;;
29467 *)
29468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29469for as_dir in $PATH
29470do
29471 IFS=$as_save_IFS
29472 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29475 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029477 break 2
29478 fi
29479done
cristy8b350f62009-11-15 23:12:43 +000029480 done
cristy3ed852e2009-09-05 21:47:34 +000029481IFS=$as_save_IFS
29482
29483 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29484 ;;
29485esac
29486fi
29487GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29488if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029490$as_echo "$GnuplotDecodeDelegate" >&6; }
29491else
cristy8b350f62009-11-15 23:12:43 +000029492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029493$as_echo "no" >&6; }
29494fi
29495
29496
29497# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29498set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029500$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029501if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029502 $as_echo_n "(cached) " >&6
29503else
29504 case $HDRDecodeDelegate in
29505 [\\/]* | ?:[\\/]*)
29506 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29507 ;;
29508 *)
29509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29510for as_dir in $PATH
29511do
29512 IFS=$as_save_IFS
29513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29516 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029518 break 2
29519 fi
29520done
cristy8b350f62009-11-15 23:12:43 +000029521 done
cristy3ed852e2009-09-05 21:47:34 +000029522IFS=$as_save_IFS
29523
29524 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29525 ;;
29526esac
29527fi
29528HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29529if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029531$as_echo "$HDRDecodeDelegate" >&6; }
29532else
cristy8b350f62009-11-15 23:12:43 +000029533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029534$as_echo "no" >&6; }
29535fi
29536
29537
29538# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29539set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029541$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029542if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029543 $as_echo_n "(cached) " >&6
29544else
29545 case $HPGLDecodeDelegate in
29546 [\\/]* | ?:[\\/]*)
29547 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29548 ;;
29549 *)
29550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29551for as_dir in $PATH
29552do
29553 IFS=$as_save_IFS
29554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29557 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029559 break 2
29560 fi
29561done
cristy8b350f62009-11-15 23:12:43 +000029562 done
cristy3ed852e2009-09-05 21:47:34 +000029563IFS=$as_save_IFS
29564
29565 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29566 ;;
29567esac
29568fi
29569HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29570if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029572$as_echo "$HPGLDecodeDelegate" >&6; }
29573else
cristy8b350f62009-11-15 23:12:43 +000029574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029575$as_echo "no" >&6; }
29576fi
29577
29578
29579# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29580set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029582$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029583if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029584 $as_echo_n "(cached) " >&6
29585else
29586 case $HTMLDecodeDelegate in
29587 [\\/]* | ?:[\\/]*)
29588 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29589 ;;
29590 *)
29591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29592for as_dir in $PATH
29593do
29594 IFS=$as_save_IFS
29595 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29598 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029600 break 2
29601 fi
29602done
cristy8b350f62009-11-15 23:12:43 +000029603 done
cristy3ed852e2009-09-05 21:47:34 +000029604IFS=$as_save_IFS
29605
29606 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29607 ;;
29608esac
29609fi
29610HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29611if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029613$as_echo "$HTMLDecodeDelegate" >&6; }
29614else
cristy8b350f62009-11-15 23:12:43 +000029615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029616$as_echo "no" >&6; }
29617fi
29618
29619
29620# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
29621set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029623$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029624if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029625 $as_echo_n "(cached) " >&6
29626else
29627 case $ILBMDecodeDelegate in
29628 [\\/]* | ?:[\\/]*)
29629 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
29630 ;;
29631 *)
29632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29633for as_dir in $PATH
29634do
29635 IFS=$as_save_IFS
29636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29639 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029641 break 2
29642 fi
29643done
cristy8b350f62009-11-15 23:12:43 +000029644 done
cristy3ed852e2009-09-05 21:47:34 +000029645IFS=$as_save_IFS
29646
29647 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
29648 ;;
29649esac
29650fi
29651ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
29652if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654$as_echo "$ILBMDecodeDelegate" >&6; }
29655else
cristy8b350f62009-11-15 23:12:43 +000029656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029657$as_echo "no" >&6; }
29658fi
29659
29660
29661# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
29662set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029664$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029665if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029666 $as_echo_n "(cached) " >&6
29667else
29668 case $ILBMEncodeDelegate in
29669 [\\/]* | ?:[\\/]*)
29670 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
29671 ;;
29672 *)
29673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29674for as_dir in $PATH
29675do
29676 IFS=$as_save_IFS
29677 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29680 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029682 break 2
29683 fi
29684done
cristy8b350f62009-11-15 23:12:43 +000029685 done
cristy3ed852e2009-09-05 21:47:34 +000029686IFS=$as_save_IFS
29687
29688 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29689 ;;
29690esac
29691fi
29692ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29693if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029695$as_echo "$ILBMEncodeDelegate" >&6; }
29696else
cristy8b350f62009-11-15 23:12:43 +000029697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029698$as_echo "no" >&6; }
29699fi
29700
29701
29702# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29703set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029705$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029706if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029707 $as_echo_n "(cached) " >&6
29708else
29709 case $LPDelegate in
29710 [\\/]* | ?:[\\/]*)
29711 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29712 ;;
29713 *)
29714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29715for as_dir in $PATH
29716do
29717 IFS=$as_save_IFS
29718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29721 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029723 break 2
29724 fi
29725done
cristy8b350f62009-11-15 23:12:43 +000029726 done
cristy3ed852e2009-09-05 21:47:34 +000029727IFS=$as_save_IFS
29728
29729 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29730 ;;
29731esac
29732fi
29733LPDelegate=$ac_cv_path_LPDelegate
29734if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo "$LPDelegate" >&6; }
29737else
cristy8b350f62009-11-15 23:12:43 +000029738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029739$as_echo "no" >&6; }
29740fi
29741
29742
29743# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29744set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029747if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029748 $as_echo_n "(cached) " >&6
29749else
29750 case $LPRDelegate in
29751 [\\/]* | ?:[\\/]*)
29752 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29753 ;;
29754 *)
29755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29756for as_dir in $PATH
29757do
29758 IFS=$as_save_IFS
29759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29762 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029764 break 2
29765 fi
29766done
cristy8b350f62009-11-15 23:12:43 +000029767 done
cristy3ed852e2009-09-05 21:47:34 +000029768IFS=$as_save_IFS
29769
29770 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29771 ;;
29772esac
29773fi
29774LPRDelegate=$ac_cv_path_LPRDelegate
29775if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029777$as_echo "$LPRDelegate" >&6; }
29778else
cristy8b350f62009-11-15 23:12:43 +000029779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029780$as_echo "no" >&6; }
29781fi
29782
29783
29784# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29785set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029787$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029788if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029789 $as_echo_n "(cached) " >&6
29790else
29791 case $LZWDecodeDelegate in
29792 [\\/]* | ?:[\\/]*)
29793 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29794 ;;
29795 *)
29796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29797for as_dir in $PATH
29798do
29799 IFS=$as_save_IFS
29800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29803 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029805 break 2
29806 fi
29807done
cristy8b350f62009-11-15 23:12:43 +000029808 done
cristy3ed852e2009-09-05 21:47:34 +000029809IFS=$as_save_IFS
29810
29811 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29812 ;;
29813esac
29814fi
29815LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29816if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029818$as_echo "$LZWDecodeDelegate" >&6; }
29819else
cristy8b350f62009-11-15 23:12:43 +000029820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029821$as_echo "no" >&6; }
29822fi
29823
29824
29825# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29826set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029828$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029829if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029830 $as_echo_n "(cached) " >&6
29831else
29832 case $LZWEncodeDelegate in
29833 [\\/]* | ?:[\\/]*)
29834 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29835 ;;
29836 *)
29837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29838for as_dir in $PATH
29839do
29840 IFS=$as_save_IFS
29841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29844 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029846 break 2
29847 fi
29848done
cristy8b350f62009-11-15 23:12:43 +000029849 done
cristy3ed852e2009-09-05 21:47:34 +000029850IFS=$as_save_IFS
29851
29852 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29853 ;;
29854esac
29855fi
29856LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29857if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029859$as_echo "$LZWEncodeDelegate" >&6; }
29860else
cristy8b350f62009-11-15 23:12:43 +000029861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029862$as_echo "no" >&6; }
29863fi
29864
29865
29866# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29867set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029869$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029870if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029871 $as_echo_n "(cached) " >&6
29872else
29873 case $LaunchDelegate in
29874 [\\/]* | ?:[\\/]*)
29875 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29876 ;;
29877 *)
29878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29879for as_dir in $PATH
29880do
29881 IFS=$as_save_IFS
29882 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29885 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029887 break 2
29888 fi
29889done
cristy8b350f62009-11-15 23:12:43 +000029890 done
cristy3ed852e2009-09-05 21:47:34 +000029891IFS=$as_save_IFS
29892
29893 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29894 ;;
29895esac
29896fi
29897LaunchDelegate=$ac_cv_path_LaunchDelegate
29898if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029900$as_echo "$LaunchDelegate" >&6; }
29901else
cristy8b350f62009-11-15 23:12:43 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029903$as_echo "no" >&6; }
29904fi
29905
29906
29907# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29908set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029910$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029911if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029912 $as_echo_n "(cached) " >&6
29913else
29914 case $MANDelegate in
29915 [\\/]* | ?:[\\/]*)
29916 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29917 ;;
29918 *)
29919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29920for as_dir in $PATH
29921do
29922 IFS=$as_save_IFS
29923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29926 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029928 break 2
29929 fi
29930done
cristy8b350f62009-11-15 23:12:43 +000029931 done
cristy3ed852e2009-09-05 21:47:34 +000029932IFS=$as_save_IFS
29933
29934 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29935 ;;
29936esac
29937fi
29938MANDelegate=$ac_cv_path_MANDelegate
29939if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029941$as_echo "$MANDelegate" >&6; }
29942else
cristy8b350f62009-11-15 23:12:43 +000029943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029944$as_echo "no" >&6; }
29945fi
29946
29947
29948# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29949set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029951$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029952if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029953 $as_echo_n "(cached) " >&6
29954else
29955 case $MPEGDecodeDelegate in
29956 [\\/]* | ?:[\\/]*)
29957 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29958 ;;
29959 *)
29960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29961for as_dir in $PATH
29962do
29963 IFS=$as_save_IFS
29964 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29967 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029969 break 2
29970 fi
29971done
cristy8b350f62009-11-15 23:12:43 +000029972 done
cristy3ed852e2009-09-05 21:47:34 +000029973IFS=$as_save_IFS
29974
29975 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29976 ;;
29977esac
29978fi
29979MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29980if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029982$as_echo "$MPEGDecodeDelegate" >&6; }
29983else
cristy8b350f62009-11-15 23:12:43 +000029984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029985$as_echo "no" >&6; }
29986fi
29987
29988
29989# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29990set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029992$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029993if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029994 $as_echo_n "(cached) " >&6
29995else
29996 case $MPEGEncodeDelegate in
29997 [\\/]* | ?:[\\/]*)
29998 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29999 ;;
30000 *)
30001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30002for as_dir in $PATH
30003do
30004 IFS=$as_save_IFS
30005 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030006 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30008 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030010 break 2
30011 fi
30012done
cristy8b350f62009-11-15 23:12:43 +000030013 done
cristy3ed852e2009-09-05 21:47:34 +000030014IFS=$as_save_IFS
30015
30016 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30017 ;;
30018esac
30019fi
30020MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30021if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030023$as_echo "$MPEGEncodeDelegate" >&6; }
30024else
cristy8b350f62009-11-15 23:12:43 +000030025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030026$as_echo "no" >&6; }
30027fi
30028
30029
30030# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30031set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030033$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030034if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030035 $as_echo_n "(cached) " >&6
30036else
30037 case $MVDelegate in
30038 [\\/]* | ?:[\\/]*)
30039 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30040 ;;
30041 *)
30042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30043for as_dir in $PATH
30044do
30045 IFS=$as_save_IFS
30046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30049 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030051 break 2
30052 fi
30053done
cristy8b350f62009-11-15 23:12:43 +000030054 done
cristy3ed852e2009-09-05 21:47:34 +000030055IFS=$as_save_IFS
30056
30057 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30058 ;;
30059esac
30060fi
30061MVDelegate=$ac_cv_path_MVDelegate
30062if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo "$MVDelegate" >&6; }
30065else
cristy8b350f62009-11-15 23:12:43 +000030066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030067$as_echo "no" >&6; }
30068fi
30069
30070
30071# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30072set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030074$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030075if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030076 $as_echo_n "(cached) " >&6
30077else
30078 case $PCLDelegate in
30079 [\\/]* | ?:[\\/]*)
30080 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30081 ;;
30082 *)
30083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30084for as_dir in $PATH
30085do
30086 IFS=$as_save_IFS
30087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30090 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030092 break 2
30093 fi
30094done
cristy8b350f62009-11-15 23:12:43 +000030095 done
cristy3ed852e2009-09-05 21:47:34 +000030096IFS=$as_save_IFS
30097
30098 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30099 ;;
30100esac
30101fi
30102PCLDelegate=$ac_cv_path_PCLDelegate
30103if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030105$as_echo "$PCLDelegate" >&6; }
30106else
cristy8b350f62009-11-15 23:12:43 +000030107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030108$as_echo "no" >&6; }
30109fi
30110
30111
30112# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30113set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030115$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030116if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030117 $as_echo_n "(cached) " >&6
30118else
30119 case $PGPDecodeDelegate in
30120 [\\/]* | ?:[\\/]*)
30121 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30122 ;;
30123 *)
30124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30125for as_dir in $PATH
30126do
30127 IFS=$as_save_IFS
30128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30131 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030133 break 2
30134 fi
30135done
cristy8b350f62009-11-15 23:12:43 +000030136 done
cristy3ed852e2009-09-05 21:47:34 +000030137IFS=$as_save_IFS
30138
30139 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30140 ;;
30141esac
30142fi
30143PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30144if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030146$as_echo "$PGPDecodeDelegate" >&6; }
30147else
cristy8b350f62009-11-15 23:12:43 +000030148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030149$as_echo "no" >&6; }
30150fi
30151
30152
30153# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30154set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030156$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030157if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030158 $as_echo_n "(cached) " >&6
30159else
30160 case $POVDelegate in
30161 [\\/]* | ?:[\\/]*)
30162 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30163 ;;
30164 *)
30165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30166for as_dir in $PATH
30167do
30168 IFS=$as_save_IFS
30169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30172 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030174 break 2
30175 fi
30176done
cristy8b350f62009-11-15 23:12:43 +000030177 done
cristy3ed852e2009-09-05 21:47:34 +000030178IFS=$as_save_IFS
30179
30180 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30181 ;;
30182esac
30183fi
30184POVDelegate=$ac_cv_path_POVDelegate
30185if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030187$as_echo "$POVDelegate" >&6; }
30188else
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo "no" >&6; }
30191fi
30192
30193
30194for ac_prog in gsx gsc "$PSDelegateDefault"
30195do
30196 # Extract the first word of "$ac_prog", so it can be a program name with args.
30197set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030199$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030200if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030201 $as_echo_n "(cached) " >&6
30202else
30203 case $PSDelegate in
30204 [\\/]* | ?:[\\/]*)
30205 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30206 ;;
30207 *)
30208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30209for as_dir in $PATH
30210do
30211 IFS=$as_save_IFS
30212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30215 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030217 break 2
30218 fi
30219done
cristy8b350f62009-11-15 23:12:43 +000030220 done
cristy3ed852e2009-09-05 21:47:34 +000030221IFS=$as_save_IFS
30222
30223 ;;
30224esac
30225fi
30226PSDelegate=$ac_cv_path_PSDelegate
30227if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030229$as_echo "$PSDelegate" >&6; }
30230else
cristy8b350f62009-11-15 23:12:43 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo "no" >&6; }
30233fi
30234
30235
30236 test -n "$PSDelegate" && break
30237done
30238test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30239
30240# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30241set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030243$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030244if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030245 $as_echo_n "(cached) " >&6
30246else
30247 case $RLEEncodeDelegate in
30248 [\\/]* | ?:[\\/]*)
30249 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30250 ;;
30251 *)
30252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30253for as_dir in $PATH
30254do
30255 IFS=$as_save_IFS
30256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30259 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030261 break 2
30262 fi
30263done
cristy8b350f62009-11-15 23:12:43 +000030264 done
cristy3ed852e2009-09-05 21:47:34 +000030265IFS=$as_save_IFS
30266
30267 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30268 ;;
30269esac
30270fi
30271RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30272if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030274$as_echo "$RLEEncodeDelegate" >&6; }
30275else
cristy8b350f62009-11-15 23:12:43 +000030276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030277$as_echo "no" >&6; }
30278fi
30279
30280
30281# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30282set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030284$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030285if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030286 $as_echo_n "(cached) " >&6
30287else
30288 case $RMDelegate in
30289 [\\/]* | ?:[\\/]*)
30290 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30291 ;;
30292 *)
30293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30294for as_dir in $PATH
30295do
30296 IFS=$as_save_IFS
30297 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030298 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30300 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030302 break 2
30303 fi
30304done
cristy8b350f62009-11-15 23:12:43 +000030305 done
cristy3ed852e2009-09-05 21:47:34 +000030306IFS=$as_save_IFS
30307
30308 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30309 ;;
30310esac
30311fi
30312RMDelegate=$ac_cv_path_RMDelegate
30313if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030315$as_echo "$RMDelegate" >&6; }
30316else
cristy8b350f62009-11-15 23:12:43 +000030317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030318$as_echo "no" >&6; }
30319fi
30320
30321
30322# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30323set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030325$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030326if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030327 $as_echo_n "(cached) " >&6
30328else
30329 case $SCANDecodeDelegate in
30330 [\\/]* | ?:[\\/]*)
30331 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30332 ;;
30333 *)
30334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30335for as_dir in $PATH
30336do
30337 IFS=$as_save_IFS
30338 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030339 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30341 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030343 break 2
30344 fi
30345done
cristy8b350f62009-11-15 23:12:43 +000030346 done
cristy3ed852e2009-09-05 21:47:34 +000030347IFS=$as_save_IFS
30348
30349 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30350 ;;
30351esac
30352fi
30353SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30354if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030356$as_echo "$SCANDecodeDelegate" >&6; }
30357else
cristy8b350f62009-11-15 23:12:43 +000030358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030359$as_echo "no" >&6; }
30360fi
30361
30362
30363# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30364set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030366$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030367if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030368 $as_echo_n "(cached) " >&6
30369else
30370 case $TXTDelegate in
30371 [\\/]* | ?:[\\/]*)
30372 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30373 ;;
30374 *)
30375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30376for as_dir in $PATH
30377do
30378 IFS=$as_save_IFS
30379 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30382 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030384 break 2
30385 fi
30386done
cristy8b350f62009-11-15 23:12:43 +000030387 done
cristy3ed852e2009-09-05 21:47:34 +000030388IFS=$as_save_IFS
30389
30390 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30391 ;;
30392esac
30393fi
30394TXTDelegate=$ac_cv_path_TXTDelegate
30395if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030397$as_echo "$TXTDelegate" >&6; }
30398else
cristy8b350f62009-11-15 23:12:43 +000030399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030400$as_echo "no" >&6; }
30401fi
30402
30403
30404# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30405set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030407$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030408if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030409 $as_echo_n "(cached) " >&6
30410else
30411 case $WMFDecodeDelegate in
30412 [\\/]* | ?:[\\/]*)
30413 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30414 ;;
30415 *)
30416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30417for as_dir in $PATH
30418do
30419 IFS=$as_save_IFS
30420 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30423 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030425 break 2
30426 fi
30427done
cristy8b350f62009-11-15 23:12:43 +000030428 done
cristy3ed852e2009-09-05 21:47:34 +000030429IFS=$as_save_IFS
30430
30431 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30432 ;;
30433esac
30434fi
30435WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30436if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030438$as_echo "$WMFDecodeDelegate" >&6; }
30439else
cristy8b350f62009-11-15 23:12:43 +000030440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030441$as_echo "no" >&6; }
30442fi
30443
30444
30445# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30446set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030448$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030449if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030450 $as_echo_n "(cached) " >&6
30451else
30452 case $WWWDecodeDelegate in
30453 [\\/]* | ?:[\\/]*)
30454 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30455 ;;
30456 *)
30457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30458for as_dir in $PATH
30459do
30460 IFS=$as_save_IFS
30461 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30464 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030466 break 2
30467 fi
30468done
cristy8b350f62009-11-15 23:12:43 +000030469 done
cristy3ed852e2009-09-05 21:47:34 +000030470IFS=$as_save_IFS
30471
30472 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30473 ;;
30474esac
30475fi
30476WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30477if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030479$as_echo "$WWWDecodeDelegate" >&6; }
30480else
cristy8b350f62009-11-15 23:12:43 +000030481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030482$as_echo "no" >&6; }
30483fi
30484
30485
30486# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30487set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030489$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030490if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030491 $as_echo_n "(cached) " >&6
30492else
30493 case $XPSDelegate in
30494 [\\/]* | ?:[\\/]*)
30495 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
30496 ;;
30497 *)
30498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30499for as_dir in $PATH
30500do
30501 IFS=$as_save_IFS
30502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30505 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030507 break 2
30508 fi
30509done
cristy8b350f62009-11-15 23:12:43 +000030510 done
cristy3ed852e2009-09-05 21:47:34 +000030511IFS=$as_save_IFS
30512
30513 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
30514 ;;
30515esac
30516fi
30517XPSDelegate=$ac_cv_path_XPSDelegate
30518if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030520$as_echo "$XPSDelegate" >&6; }
30521else
cristy8b350f62009-11-15 23:12:43 +000030522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030523$as_echo "no" >&6; }
30524fi
30525
30526
30527# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
30528set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030530$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030531if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030532 $as_echo_n "(cached) " >&6
30533else
30534 case $ZipDelegate in
30535 [\\/]* | ?:[\\/]*)
30536 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
30537 ;;
30538 *)
30539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30540for as_dir in $PATH
30541do
30542 IFS=$as_save_IFS
30543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30546 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030548 break 2
30549 fi
30550done
cristy8b350f62009-11-15 23:12:43 +000030551 done
cristy3ed852e2009-09-05 21:47:34 +000030552IFS=$as_save_IFS
30553
30554 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
30555 ;;
30556esac
30557fi
30558ZipDelegate=$ac_cv_path_ZipDelegate
30559if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030561$as_echo "$ZipDelegate" >&6; }
30562else
cristy8b350f62009-11-15 23:12:43 +000030563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030564$as_echo "no" >&6; }
30565fi
30566
30567
30568
30569# Prefer lpr to lp; lp needs options tacked on.
30570if test "$LPRDelegate" != no; then
30571 PrintDelegate="$LPRDelegate"
30572else
30573 PrintDelegate="$LPDelegate -c -s"
30574fi
30575
30576
30577# Installed ImageMagick utiltity paths
30578ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
30579DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
30580MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
30581
30582# Set delegate booleans
30583have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
30584have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
30585have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
30586have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
30587have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
30588have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
30589have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
30590have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
30591have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
30592have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
30593have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
30594
30595#
30596# Test for font directories
30597#
30598type_include_files=''
30599
cristy430a7312010-01-21 20:44:04 +000030600# Dejavu fonts.
30601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
30602$as_echo_n "checking for Dejavu fonts directory... " >&6; }
30603dejavu_font_dir=''
30604if test "${with_dejavu_font_dir}" != 'default'; then
30605 dejavu_font_dir="${with_dejavu_font_dir}/"
30606else
30607 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
30608 if test -f "${font_dir}DejaVuSerif.ttf"; then
30609 dejavu_font_dir="${font_dir}"
30610 break 1
30611 fi
30612 done
30613fi
30614if test "${dejavu_font_dir}x" != 'x'; then
30615 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
30617$as_echo "$dejavu_font_dir" >&6; }
30618else
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30620$as_echo "not found!" >&6; };
30621fi
30622
30623
cristy3ed852e2009-09-05 21:47:34 +000030624# Windows
30625windows_font_dir=''
30626if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
30627 windows_font_dir="${with_windows_font_dir}/"
30628fi
cristy430a7312010-01-21 20:44:04 +000030629if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030630 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
30631 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
30632 fi
30633 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
30634 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
30635 fi
30636 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
30637 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
30638 fi
30639fi
cristy430a7312010-01-21 20:44:04 +000030640if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030641 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
30642fi
30643
30644
30645# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000030646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000030647$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
30648ghostscript_font_dir=''
30649if test "${with_gs_font_dir}" != 'default'; then
30650 ghostscript_font_dir="${with_gs_font_dir}/"
30651else
30652 if test "${native_win32_build}" = 'yes'; then
30653 # Native Windows Build
30654 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
30655 if test -f "${font_dir}a010013l.pfb"; then
30656 ghostscript_font_dir="$font_dir"
30657 break 1
30658 fi
30659 done
30660 if test "${PSDelegate}" != 'gswin32c'; then
30661 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
30662 fi
30663 else
30664 # Linux / Mac OS X / Unix Build
30665 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
30666 if test -f "${font_dir}a010013l.pfb"; then
30667 ghostscript_font_dir="${font_dir}"
30668 break 1
30669 fi
30670 done
30671 if test "${ghostscript_font_dir}x" = 'x'; then
30672 if test "$PSDelegate" != 'gs'; then
30673 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
30674 fi
30675 fi
30676 fi
30677fi
30678if test "${ghostscript_font_dir}x" != 'x'; then
30679 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000030680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000030681$as_echo "$ghostscript_font_dir" >&6; }
30682else
cristy8b350f62009-11-15 23:12:43 +000030683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000030684$as_echo "not found!" >&6; };
30685fi
30686
30687case "${build_os}" in
30688 mingw* )
30689 PSDelegate=`$WinPathScript "$PSDelegate" 1`
30690 ;;
30691esac
30692
30693
30694
30695#
30696# Handle case where user doesn't want frozen paths
30697#
30698if test "$with_frozenpaths" != 'yes'; then
30699 # Re-set delegate definitions to default (no paths)
30700 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30701 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30702 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30703 BZIPDelegate="$BZIPDelegateDefault"
30704 BrowseDelegate="$BrowseDelegateDefault"
30705 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30706 CatDelegate="$CatDelegateDefault"
30707 ConvertDelegate="$ConvertDelegateDefault"
30708 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30709 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30710 EchoDelegate="$EchoDelegateDefault"
30711 EditorDelegate="$EditorDelegateDefault"
30712 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30713 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30714 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30715 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30716 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30717 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30718 LPDelegate="$LPDelegateDefault"
30719 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30720 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30721 LaunchDelegate="$LaunchDelegateDefault"
30722 MANDelegate="$MANDelegateDefault"
30723 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30724 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30725 MVDelegate="$MVDelegateDefault"
30726 MogrifyDelegate="$MogrifyDelegateDefault"
30727 PCLDelegate="$PCLDelegateDefault"
30728 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30729 POVDelegate="$POVDelegateDefault"
30730 PSDelegate="$PSDelegateDefault"
30731 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30732 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30733 RMDelegate="$RMDelegateDefault"
30734 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30735 ShowImageDelegate="$ShowImageDelegateDefault"
30736 TXTDelegate="$TXTDelegateDefault"
30737 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30738 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30739 XPSDelegate="$XPSDelegateDefault"
30740 ZipDelegate="$ZipDelegateDefault"
30741fi
30742
30743# Delegate substitutions
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786#
30787# RPM support.
30788#
30789RPM=''
30790for ac_prog in gnutar gtar tar
30791do
30792 # Extract the first word of "$ac_prog", so it can be a program name with args.
30793set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030795$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030796if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030797 $as_echo_n "(cached) " >&6
30798else
30799 if test -n "$TAR"; then
30800 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30801else
30802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30803for as_dir in $PATH
30804do
30805 IFS=$as_save_IFS
30806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30809 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030811 break 2
30812 fi
30813done
cristy8b350f62009-11-15 23:12:43 +000030814 done
cristy3ed852e2009-09-05 21:47:34 +000030815IFS=$as_save_IFS
30816
30817fi
30818fi
30819TAR=$ac_cv_prog_TAR
30820if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030822$as_echo "$TAR" >&6; }
30823else
cristy8b350f62009-11-15 23:12:43 +000030824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030825$as_echo "no" >&6; }
30826fi
30827
30828
30829 test -n "$TAR" && break
30830done
30831
30832for ac_prog in perl
30833do
30834 # Extract the first word of "$ac_prog", so it can be a program name with args.
30835set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030838if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030839 $as_echo_n "(cached) " >&6
30840else
30841 if test -n "$PERL"; then
30842 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30843else
30844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30845for as_dir in $PATH
30846do
30847 IFS=$as_save_IFS
30848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30851 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030853 break 2
30854 fi
30855done
cristy8b350f62009-11-15 23:12:43 +000030856 done
cristy3ed852e2009-09-05 21:47:34 +000030857IFS=$as_save_IFS
30858
30859fi
30860fi
30861PERL=$ac_cv_prog_PERL
30862if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030864$as_echo "$PERL" >&6; }
30865else
cristy8b350f62009-11-15 23:12:43 +000030866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030867$as_echo "no" >&6; }
30868fi
30869
30870
30871 test -n "$PERL" && break
30872done
30873
30874for ac_prog in rpmbuild rpm
30875do
30876 # Extract the first word of "$ac_prog", so it can be a program name with args.
30877set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030879$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030880if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030881 $as_echo_n "(cached) " >&6
30882else
30883 if test -n "$RPM"; then
30884 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30885else
30886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30887for as_dir in $PATH
30888do
30889 IFS=$as_save_IFS
30890 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030891 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30893 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030895 break 2
30896 fi
30897done
cristy8b350f62009-11-15 23:12:43 +000030898 done
cristy3ed852e2009-09-05 21:47:34 +000030899IFS=$as_save_IFS
30900
30901fi
30902fi
30903RPM=$ac_cv_prog_RPM
30904if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030906$as_echo "$RPM" >&6; }
30907else
cristy8b350f62009-11-15 23:12:43 +000030908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030909$as_echo "no" >&6; }
30910fi
30911
30912
30913 test -n "$RPM" && break
30914done
30915
30916
30917ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30918
30919
30920AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30921
30922
30923AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30924
30925
30926AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30927
30928
30929 if test "x$RPM" != "x" ; then
30930 RPM_DELEGATE_TRUE=
30931 RPM_DELEGATE_FALSE='#'
30932else
30933 RPM_DELEGATE_TRUE='#'
30934 RPM_DELEGATE_FALSE=
30935fi
30936
30937
30938#
30939# 7ZIP support (http://p7zip.sourceforge.net/)
30940#
30941P7ZIP=''
30942for ac_prog in 7za
30943do
30944 # Extract the first word of "$ac_prog", so it can be a program name with args.
30945set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030947$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030948if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030949 $as_echo_n "(cached) " >&6
30950else
30951 if test -n "$P7ZIP"; then
30952 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30953else
30954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30955for as_dir in $PATH
30956do
30957 IFS=$as_save_IFS
30958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30961 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030963 break 2
30964 fi
30965done
cristy8b350f62009-11-15 23:12:43 +000030966 done
cristy3ed852e2009-09-05 21:47:34 +000030967IFS=$as_save_IFS
30968
30969fi
30970fi
30971P7ZIP=$ac_cv_prog_P7ZIP
30972if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030974$as_echo "$P7ZIP" >&6; }
30975else
cristy8b350f62009-11-15 23:12:43 +000030976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030977$as_echo "no" >&6; }
30978fi
30979
30980
30981 test -n "$P7ZIP" && break
30982done
30983
30984
30985 if test "x$P7ZIP" != "x" ; then
30986 P7ZIP_DELEGATE_TRUE=
30987 P7ZIP_DELEGATE_FALSE='#'
30988else
30989 P7ZIP_DELEGATE_TRUE='#'
30990 P7ZIP_DELEGATE_FALSE=
30991fi
30992
30993
30994#
30995# ZIP support (http://www.info-zip.org/Zip.html)
30996#
30997ZIP=''
30998for ac_prog in zip
30999do
31000 # Extract the first word of "$ac_prog", so it can be a program name with args.
31001set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031003$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031004if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031005 $as_echo_n "(cached) " >&6
31006else
31007 if test -n "$ZIP"; then
31008 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31009else
31010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31011for as_dir in $PATH
31012do
31013 IFS=$as_save_IFS
31014 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031015 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31017 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031019 break 2
31020 fi
31021done
cristy8b350f62009-11-15 23:12:43 +000031022 done
cristy3ed852e2009-09-05 21:47:34 +000031023IFS=$as_save_IFS
31024
31025fi
31026fi
31027ZIP=$ac_cv_prog_ZIP
31028if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031030$as_echo "$ZIP" >&6; }
31031else
cristy8b350f62009-11-15 23:12:43 +000031032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031033$as_echo "no" >&6; }
31034fi
31035
31036
31037 test -n "$ZIP" && break
31038done
31039
31040
31041 if test "x$ZIP" != "x" ; then
31042 ZIP_DELEGATE_TRUE=
31043 ZIP_DELEGATE_FALSE='#'
31044else
31045 ZIP_DELEGATE_TRUE='#'
31046 ZIP_DELEGATE_FALSE=
31047fi
31048
31049
31050#
31051# GhostPCL related configuration.
31052#
31053PCLColorDevice=ppmraw
31054PCLCMYKDevice=bmpsep8
31055PCLMonoDevice=pbmraw
31056if test -z "$PCLVersion"; then
31057 PCLVersion='unknown'
31058fi
31059if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031061$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031063$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031065$as_echo "" >&6; }
31066 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031068$as_echo_n "checking for pcl color device... " >&6; }
31069 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31070 :
31071 else
31072 PCLColorDevice=ppmraw
31073 fi
cristy8b350f62009-11-15 23:12:43 +000031074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031075$as_echo "$PCLColorDevice" >&6; }
31076
31077 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031079$as_echo_n "checking for pcl CMYK device... " >&6; }
31080 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31081 :
31082 else
31083 PCLCMYKDevice=$PCLColorDevice
31084 fi
cristy8b350f62009-11-15 23:12:43 +000031085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031086$as_echo "$PCLCMYKDevice" >&6; }
31087
31088 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031090$as_echo_n "checking for pcl mono device... " >&6; }
31091 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31092 :
31093 else
31094 PCLMonoDevice=$PCLColorDevice
31095 fi
cristy8b350f62009-11-15 23:12:43 +000031096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031097$as_echo "$PCLMonoDevice" >&6; }
31098fi
31099
31100
31101
31102
31103
31104
31105#
31106# GhostXPS related configuration.
31107#
31108XPSColorDevice=ppmraw
31109XPSCMYKDevice=bmpsep8
31110XPSMonoDevice=pbmraw
31111if test -z "$XPSVersion"; then
31112 XPSVersion='unknown'
31113fi
31114if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031116$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031118$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031120$as_echo "" >&6; }
31121 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031123$as_echo_n "checking for xps color device... " >&6; }
31124 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31125 :
31126 else
31127 XPSColorDevice=ppmraw
31128 fi
cristy8b350f62009-11-15 23:12:43 +000031129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031130$as_echo "$XPSColorDevice" >&6; }
31131
31132 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031134$as_echo_n "checking for xps CMYK device... " >&6; }
31135 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31136 :
31137 else
31138 XPSCMYKDevice=$XPSColorDevice
31139 fi
cristy8b350f62009-11-15 23:12:43 +000031140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031141$as_echo "$XPSCMYKDevice" >&6; }
31142
31143 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031145$as_echo_n "checking for xps mono device... " >&6; }
31146 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31147 :
31148 else
31149 XPSMonoDevice=$XPSColorDevice
31150 fi
cristy8b350f62009-11-15 23:12:43 +000031151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031152$as_echo "$XPSMonoDevice" >&6; }
31153fi
31154
31155
31156
31157
31158
31159
31160#
31161# Ghostscript related configuration.
31162#
31163if test "$have_png" = 'yes'; then
31164 GSAlphaDevice=pngalpha
31165else
31166 GSAlphaDevice=pnmraw
31167fi
31168GSColorDevice=pnmraw
31169GSCMYKDevice=pam
31170GSMonoDevice=pbmraw
31171GSPDFDevice=pdfwrite
31172GSPSDevice=pswrite
31173GSEPSDevice=epswrite
31174GSVersion='unknown'
31175if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031177$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031179$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031181$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo_n "checking for Ghostscript version... " >&6; }
31184 if GSVersion=`$PSDelegate --version`; then
31185 :
31186 else
31187 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31188 fi
cristy8b350f62009-11-15 23:12:43 +000031189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031190$as_echo "$GSVersion" >&6; }
31191
31192 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031194$as_echo_n "checking for gs alpha device... " >&6; }
31195 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31196 :
31197 else
31198 GSAlphaDevice=pnmraw
31199 fi
cristy8b350f62009-11-15 23:12:43 +000031200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031201$as_echo "$GSAlphaDevice" >&6; }
31202
31203 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031205$as_echo_n "checking for gs color device... " >&6; }
31206 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31207 :
31208 else
31209 GSColorDevice=pnmraw
31210 fi
cristy8b350f62009-11-15 23:12:43 +000031211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031212$as_echo "$GSColorDevice" >&6; }
31213
31214 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031216$as_echo_n "checking for gs CMYK device... " >&6; }
31217 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31218 :
31219 else
31220 GSCMYKDevice=bmpsep8
31221 fi
cristy8b350f62009-11-15 23:12:43 +000031222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031223$as_echo "$GSCMYKDevice" >&6; }
31224
31225 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031227$as_echo_n "checking for gs mono device... " >&6; }
31228 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31229 :
31230 else
31231 GSMonoDevice=$GSColorDevice
31232 fi
cristy8b350f62009-11-15 23:12:43 +000031233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031234$as_echo "$GSMonoDevice" >&6; }
31235
31236 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000031237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031238$as_echo_n "checking for gs PDF writing device... " >&6; }
31239 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31240 :
31241 else
31242 GSPDFDevice=nodevice
31243 fi
cristy8b350f62009-11-15 23:12:43 +000031244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031245$as_echo "$GSPDFDevice" >&6; }
31246
31247 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000031248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031249$as_echo_n "checking for gs PS writing device... " >&6; }
31250 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31251 :
31252 else
31253 GSPSDevice=nodevice
31254 fi
cristy8b350f62009-11-15 23:12:43 +000031255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031256$as_echo "$GSPSDevice" >&6; }
31257
31258 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000031259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031260$as_echo_n "checking for gs EPS writing device... " >&6; }
31261 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31262 :
31263 else
31264 GSEPSDevice=nodevice
31265 fi
cristy8b350f62009-11-15 23:12:43 +000031266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031267$as_echo "$GSEPSDevice" >&6; }
31268fi
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279#
31280# PerlMagick-related configuration
31281#
31282
31283# Look for PERL if PerlMagick requested
31284# If name/path of desired PERL interpreter is specified, look for that one first
31285have_perl='no'
31286if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031288$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031290$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031292$as_echo "" >&6; }
31293 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031295$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031296if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031297 $as_echo_n "(cached) " >&6
31298else
31299 ac_cv_path_PERL="$with_perl"
31300fi
cristy8b350f62009-11-15 23:12:43 +000031301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031302$as_echo "$ac_cv_path_PERL" >&6; };
31303 PERL=$ac_cv_path_PERL
31304 have_perl="$ac_cv_path_PERL"
31305 else
31306 for ac_prog in perl perl5
31307do
31308 # Extract the first word of "$ac_prog", so it can be a program name with args.
31309set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031311$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031312if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031313 $as_echo_n "(cached) " >&6
31314else
31315 case $PERL in
31316 [\\/]* | ?:[\\/]*)
31317 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31318 ;;
31319 *)
31320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31321for as_dir in $PATH
31322do
31323 IFS=$as_save_IFS
31324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31327 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031329 break 2
31330 fi
31331done
cristy8b350f62009-11-15 23:12:43 +000031332 done
cristy3ed852e2009-09-05 21:47:34 +000031333IFS=$as_save_IFS
31334
31335 ;;
31336esac
31337fi
31338PERL=$ac_cv_path_PERL
31339if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031341$as_echo "$PERL" >&6; }
31342else
cristy8b350f62009-11-15 23:12:43 +000031343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo "no" >&6; }
31345fi
31346
31347
31348 test -n "$PERL" && break
31349done
31350 if test "$ac_cv_path_PERL"; then
31351 have_perl="$ac_cv_path_PERL"
31352 fi
31353 fi
31354fi
31355
cristy949301e2010-01-06 01:38:40 +000031356if test "$with_perl" != 'yes' ; then
31357 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31358fi
31359
31360PERL_SUPPORTS_DESTDIR='no'
31361
cristy3ed852e2009-09-05 21:47:34 +000031362with_perl_static='no'
31363with_perl_dynamic='no'
31364if test "$have_perl" != 'no'; then
31365 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31366 with_perl_static='yes'
31367 fi
31368 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31369 with_perl_dynamic='yes'
31370 fi
31371 # Is PERL's MakeMaker new enough to support DESTDIR?
31372 # Make sure we have perl
31373if test -z "$PERL"; then
31374# Extract the first word of "perl", so it can be a program name with args.
31375set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031377$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031378if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031379 $as_echo_n "(cached) " >&6
31380else
31381 if test -n "$PERL"; then
31382 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31383else
31384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31385for as_dir in $PATH
31386do
31387 IFS=$as_save_IFS
31388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31391 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000031392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031393 break 2
31394 fi
31395done
cristy8b350f62009-11-15 23:12:43 +000031396 done
cristy3ed852e2009-09-05 21:47:34 +000031397IFS=$as_save_IFS
31398
31399fi
31400fi
31401PERL=$ac_cv_prog_PERL
31402if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031404$as_echo "$PERL" >&6; }
31405else
cristy8b350f62009-11-15 23:12:43 +000031406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031407$as_echo "no" >&6; }
31408fi
31409
31410
31411fi
31412
31413# Check if version of Perl is sufficient
31414ac_perl_version="5.8.1"
31415
31416if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000031417 { $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 +000031418$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31419 # NB: It would be nice to log the error if there is one, but we cannot rely
31420 # on autoconf internals
31421 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31422 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031424$as_echo "no" >&6; };
31425 PERL_SUPPORTS_DESTDIR='no'
31426 else
cristy8b350f62009-11-15 23:12:43 +000031427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000031428$as_echo "ok" >&6; };
31429 PERL_SUPPORTS_DESTDIR='yes'
31430 fi
31431else
cristy8b350f62009-11-15 23:12:43 +000031432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031433$as_echo "$as_me: WARNING: could not find perl" >&2;}
31434fi
31435
31436fi
31437 if test "$have_perl" != 'no'; then
31438 WITH_PERL_TRUE=
31439 WITH_PERL_FALSE='#'
31440else
31441 WITH_PERL_TRUE='#'
31442 WITH_PERL_FALSE=
31443fi
31444
31445 if test $with_perl_static = 'yes'; then
31446 WITH_PERL_STATIC_TRUE=
31447 WITH_PERL_STATIC_FALSE='#'
31448else
31449 WITH_PERL_STATIC_TRUE='#'
31450 WITH_PERL_STATIC_FALSE=
31451fi
31452
31453 if test $with_perl_dynamic = 'yes'; then
31454 WITH_PERL_DYNAMIC_TRUE=
31455 WITH_PERL_DYNAMIC_FALSE='#'
31456else
31457 WITH_PERL_DYNAMIC_TRUE='#'
31458 WITH_PERL_DYNAMIC_FALSE=
31459fi
31460
31461
31462
31463# Determine path to pick up MagickCore library from for use with building PerlMagick
31464MAGICKCORE_PATH="${LIB_DIR}"
31465if test $with_perl_static = 'yes'; then
31466 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31467 libtool_objdir=$objdir
31468
31469 # Linker search path to library, followed by -lMagickCore
31470 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31471fi
31472
31473
31474# Create a simple string containing format names for all delegate libraries
31475DELEGATES=''
31476if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31477if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
31478if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
31479if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
31480if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
31481if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
31482if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
31483if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
31484if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
31485if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
31486if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
31487if test "$have_jpeg" = 'yes'; then
31488 DELEGATES="$DELEGATES jpeg";
31489 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
31490fi
31491if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
31492if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
31493if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
31494if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
31495if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
31496if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
31497if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
31498if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
31499if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
31500if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
31501if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
31502if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
31503
31504
31505
31506#
31507# Handle special compiler flags
31508#
31509
31510# Add '-p' if prof source profiling support enabled
31511if test "$enable_prof" = 'yes'; then
31512 CFLAGS="-p $CFLAGS"
31513 CXXFLAGS="-p $CXXFLAGS"
31514 LDFLAGS="-p $LDFLAGS"
31515fi
31516
31517# Add '-pg' if gprof source profiling support enabled
31518if test "$enable_gprof" = 'yes'; then
31519 CFLAGS="-pg $CFLAGS"
31520 CXXFLAGS="-pg $CXXFLAGS"
31521 LDFLAGS="-pg $LDFLAGS"
31522fi
31523
31524# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
31525# This is a gcc-specific feature
31526if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031528$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031529if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031530 $as_echo_n "(cached) " >&6
31531else
31532 ac_check_lib_save_LIBS=$LIBS
31533LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031535/* end confdefs.h. */
31536
31537/* Override any GCC internal prototype to avoid an error.
31538 Use char because int might match the return type of a GCC
31539 builtin and then its argument prototype would still apply. */
31540#ifdef __cplusplus
31541extern "C"
31542#endif
31543char _gcov_init ();
31544int
31545main ()
31546{
31547return _gcov_init ();
31548 ;
31549 return 0;
31550}
31551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031553 ac_cv_lib_gcov__gcov_init=yes
31554else
cristy8b350f62009-11-15 23:12:43 +000031555 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031556fi
cristy8b350f62009-11-15 23:12:43 +000031557rm -f core conftest.err conftest.$ac_objext \
31558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031559LIBS=$ac_check_lib_save_LIBS
31560fi
cristy8b350f62009-11-15 23:12:43 +000031561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031562$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031563if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031564 cat >>confdefs.h <<_ACEOF
31565#define HAVE_LIBGCOV 1
31566_ACEOF
31567
31568 LIBS="-lgcov $LIBS"
31569
31570fi
31571
cristy8b350f62009-11-15 23:12:43 +000031572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031573$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031574if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031575 $as_echo_n "(cached) " >&6
31576else
31577 ac_check_lib_save_LIBS=$LIBS
31578LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031580/* end confdefs.h. */
31581
31582/* Override any GCC internal prototype to avoid an error.
31583 Use char because int might match the return type of a GCC
31584 builtin and then its argument prototype would still apply. */
31585#ifdef __cplusplus
31586extern "C"
31587#endif
31588char __gcov_init ();
31589int
31590main ()
31591{
31592return __gcov_init ();
31593 ;
31594 return 0;
31595}
31596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031597if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031598 ac_cv_lib_gcov___gcov_init=yes
31599else
cristy8b350f62009-11-15 23:12:43 +000031600 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031601fi
cristy8b350f62009-11-15 23:12:43 +000031602rm -f core conftest.err conftest.$ac_objext \
31603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031604LIBS=$ac_check_lib_save_LIBS
31605fi
cristy8b350f62009-11-15 23:12:43 +000031606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031607$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031608if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031609 cat >>confdefs.h <<_ACEOF
31610#define HAVE_LIBGCOV 1
31611_ACEOF
31612
31613 LIBS="-lgcov $LIBS"
31614
31615fi
31616
31617 case "$target_os" in
31618 darwin*)
31619 OSX_GCOV_LDFLAG="-Wl,-single_module"
31620 ;;
31621 *)
31622 OSX_GCOV_LDFLAG=""
31623 ;;
31624 esac
31625
31626 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
31627 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
31628 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
31629fi
31630
31631#
31632# Build library dependency list for libMagickCore
31633#
31634
31635MAGICK_LIBLTDL='' # Libltdl for build
31636MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
31637MAGICK_LTDLDEPS='' # extra libltdl dependencies
31638if test "$with_ltdl" != 'no'
31639then
31640 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
31641 MAGICK_API_LIBLTDL='-lltdl'
31642 fi
31643 MAGICK_LIBLTDL=${LIBLTDL}
31644 MAGICK_LTDLDEPS=${LTDLDEPS}
31645fi
31646
31647
31648
31649if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000031650 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 +000031651else
cristy2e8b51d2009-10-17 18:26:15 +000031652 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 +000031653fi
31654
31655
31656#
31657# Remove extraneous spaces from output variables (asthetic)
31658#
31659X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
31660X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
31661X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
31662X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
31663
31664CC=`echo $CC | sed -e 's/ */ /g'`
31665CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
31666CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
31667CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
31668DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
31669DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
31670LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
31671TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31672MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
31673#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31674
31675# Pass only user-provided LIBS as "global" libraries
31676LIBS=$USER_LIBS
31677
31678#AC_SUBST(CPPFLAGS)
31679
31680#AC_SUBST(LDFLAGS)
31681#AC_SUBST(X_PRE_LIBS)
31682#AC_SUBST(X_LIBS)
31683#AC_SUBST(X_EXTRA_LIBS)
31684
31685MAGICK_CFLAGS=$CFLAGS
31686MAGICK_CXXFLAGS="$CXXFLAGS"
31687MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
31688MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
31689MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
31690MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
31691
31692
31693
31694
31695
31696
31697
31698
31699# Set configured scripts to executable.
31700ac_config_commands="$ac_config_commands default"
31701
31702ac_config_commands="$ac_config_commands MagickCore-config.in"
31703
31704ac_config_commands="$ac_config_commands Magick-config.in"
31705
31706ac_config_commands="$ac_config_commands MagickWand-config.in"
31707
31708ac_config_commands="$ac_config_commands Wand-config.in"
31709
31710ac_config_commands="$ac_config_commands Magick++-config.in"
31711
31712ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31713
31714
cristy8b350f62009-11-15 23:12:43 +000031715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031716$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000031718$as_echo "Update ImageMagick configuration" >&6; }
31719cat >confcache <<\_ACEOF
31720# This file is a shell script that caches the results of configure
31721# tests run on this system so they can be shared between configure
31722# scripts and configure runs, see configure's option --config-cache.
31723# It is not useful on other systems. If it contains results you don't
31724# want to keep, you may remove or edit it.
31725#
31726# config.status only pays attention to the cache file if you give it
31727# the --recheck option to rerun configure.
31728#
31729# `ac_cv_env_foo' variables (set or unset) will be overridden when
31730# loading this file, other *unset* `ac_cv_foo' will be assigned the
31731# following values.
31732
31733_ACEOF
31734
31735# The following way of writing the cache mishandles newlines in values,
31736# but we know of no workaround that is simple, portable, and efficient.
31737# So, we kill variables containing newlines.
31738# Ultrix sh set writes to stderr and can't be redirected directly,
31739# and sets the high bit in the cache file unless we assign to the vars.
31740(
31741 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31742 eval ac_val=\$$ac_var
31743 case $ac_val in #(
31744 *${as_nl}*)
31745 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000031746 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000031747$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31748 esac
31749 case $ac_var in #(
31750 _ | IFS | as_nl) ;; #(
31751 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000031752 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000031753 esac ;;
31754 esac
31755 done
31756
31757 (set) 2>&1 |
31758 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31759 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000031760 # `set' does not quote correctly, so add quotes: double-quote
31761 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000031762 sed -n \
31763 "s/'/'\\\\''/g;
31764 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31765 ;; #(
31766 *)
31767 # `set' quotes correctly as required by POSIX, so do not add quotes.
31768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31769 ;;
31770 esac |
31771 sort
31772) |
31773 sed '
31774 /^ac_cv_env_/b end
31775 t clear
31776 :clear
31777 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31778 t end
31779 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31780 :end' >>confcache
31781if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31782 if test -w "$cache_file"; then
31783 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031784 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031785$as_echo "$as_me: updating cache $cache_file" >&6;}
31786 cat confcache >$cache_file
31787 else
cristy8b350f62009-11-15 23:12:43 +000031788 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031789$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31790 fi
31791fi
31792rm -f confcache
31793
31794test "x$prefix" = xNONE && prefix=$ac_default_prefix
31795# Let make expand exec_prefix.
31796test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31797
31798DEFS=-DHAVE_CONFIG_H
31799
31800ac_libobjs=
31801ac_ltlibobjs=
31802for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31803 # 1. Remove the extension, and $U if already installed.
31804 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31805 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31806 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31807 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031808 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31809 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031810done
31811LIBOBJS=$ac_libobjs
31812
31813LTLIBOBJS=$ac_ltlibobjs
31814
31815
31816 if test -n "$EXEEXT"; then
31817 am__EXEEXT_TRUE=
31818 am__EXEEXT_FALSE='#'
31819else
31820 am__EXEEXT_TRUE='#'
31821 am__EXEEXT_FALSE=
31822fi
31823
31824if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031825 as_fn_error "conditional \"AMDEP\" was never defined.
31826Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031827fi
31828if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031829 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31830Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031831fi
cristya0b81c32010-01-22 02:54:33 +000031832if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31833 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31834Usually this means the macro was only invoked conditionally." "$LINENO" 5
31835fi
cristy3ed852e2009-09-05 21:47:34 +000031836if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031837 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31838Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031839fi
31840if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031841 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31842Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031843fi
31844if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031845 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31846Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031847fi
31848if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031849 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31850Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031851fi
31852if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031853 as_fn_error "conditional \"USING_CL\" was never defined.
31854Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031855fi
cristy18304f92009-11-22 15:48:26 +000031856if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31857 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31858Usually this means the macro was only invoked conditionally." "$LINENO" 5
31859fi
cristy3ed852e2009-09-05 21:47:34 +000031860if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031861 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31862Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031863fi
31864if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031865 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31866Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031867fi
31868LT_CONFIG_H=config/config.h
31869
31870 _ltdl_libobjs=
31871 _ltdl_ltlibobjs=
31872 if test -n "$_LT_LIBOBJS"; then
31873 # Remove the extension.
31874 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31875 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31876 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31877 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31878 done
31879 fi
31880 ltdl_LIBOBJS=$_ltdl_libobjs
31881
31882 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31883
31884
cristyfa112112010-01-04 17:48:07 +000031885if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
31886 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
31887Usually this means the macro was only invoked conditionally." "$LINENO" 5
31888fi
cristy3ed852e2009-09-05 21:47:34 +000031889if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031890 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31891Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031892fi
31893if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031894 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31895Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031896fi
31897if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031898 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31899Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031900fi
31901
31902if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031903 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31904Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031905fi
31906if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031907 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31908Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031909fi
31910if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031911 as_fn_error "conditional \"HasUMEM\" was never defined.
31912Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031913fi
31914if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031915 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31916Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031917fi
31918if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031919 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31920Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031921fi
31922if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031923 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31924Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031925fi
31926if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031927 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31928Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031929fi
31930if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031931 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31932Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031933fi
31934if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031935 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31936Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031937fi
31938if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031939 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31940Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031941fi
31942if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031943 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31944Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031945fi
31946if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031947 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31948Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031949fi
31950if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031951 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31952Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031953fi
31954if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031955 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31956Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031957fi
31958if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031959 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31960Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031961fi
31962if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031963 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31964Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031965fi
31966if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031967 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31968Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031969fi
31970if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031971 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31972Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031973fi
31974if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031975 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31976Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031977fi
31978if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031979 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31980Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031981fi
31982if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031983 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31984Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031985fi
31986if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031987 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31988Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031989fi
31990if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031991 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31992Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031993fi
31994if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031995 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31996Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031997fi
31998if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031999 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32000Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032001fi
32002if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032003 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32004Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032005fi
32006if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032007 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32008Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032009fi
32010if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032011 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32012Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032013fi
32014if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032015 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32016Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032017fi
32018if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032019 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32020Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032021fi
32022if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032023 as_fn_error "conditional \"WITH_PERL\" was never defined.
32024Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032025fi
32026if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032027 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32028Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032029fi
32030if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032031 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32032Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032033fi
32034
32035: ${CONFIG_STATUS=./config.status}
32036ac_write_fail=0
32037ac_clean_files_save=$ac_clean_files
32038ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032039{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032040$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032041as_write_fail=0
32042cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032043#! $SHELL
32044# Generated by $as_me.
32045# Run this file to recreate the current configuration.
32046# Compiler output produced by configure, useful for debugging
32047# configure, is in config.log if it exists.
32048
32049debug=false
32050ac_cs_recheck=false
32051ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032052
cristy8b350f62009-11-15 23:12:43 +000032053SHELL=\${CONFIG_SHELL-$SHELL}
32054export SHELL
32055_ASEOF
32056cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32057## -------------------- ##
32058## M4sh Initialization. ##
32059## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032060
32061# Be more Bourne compatible
32062DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032063if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032064 emulate sh
32065 NULLCMD=:
32066 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32067 # is contrary to our usage. Disable this feature.
32068 alias -g '${1+"$@"}'='"$@"'
32069 setopt NO_GLOB_SUBST
32070else
cristy8b350f62009-11-15 23:12:43 +000032071 case `(set -o) 2>/dev/null` in #(
32072 *posix*) :
32073 set -o posix ;; #(
32074 *) :
32075 ;;
cristy3ed852e2009-09-05 21:47:34 +000032076esac
cristy3ed852e2009-09-05 21:47:34 +000032077fi
32078
32079
cristy3ed852e2009-09-05 21:47:34 +000032080as_nl='
32081'
32082export as_nl
32083# Printing a long string crashes Solaris 7 /usr/bin/printf.
32084as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32085as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32086as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032087# Prefer a ksh shell builtin over an external printf program on Solaris,
32088# but without wasting forks for bash or zsh.
32089if test -z "$BASH_VERSION$ZSH_VERSION" \
32090 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32091 as_echo='print -r --'
32092 as_echo_n='print -rn --'
32093elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032094 as_echo='printf %s\n'
32095 as_echo_n='printf %s'
32096else
32097 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32098 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32099 as_echo_n='/usr/ucb/echo -n'
32100 else
32101 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32102 as_echo_n_body='eval
32103 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032104 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032105 *"$as_nl"*)
32106 expr "X$arg" : "X\\(.*\\)$as_nl";
32107 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32108 esac;
32109 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32110 '
32111 export as_echo_n_body
32112 as_echo_n='sh -c $as_echo_n_body as_echo'
32113 fi
32114 export as_echo_body
32115 as_echo='sh -c $as_echo_body as_echo'
32116fi
32117
32118# The user is always right.
32119if test "${PATH_SEPARATOR+set}" != set; then
32120 PATH_SEPARATOR=:
32121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32123 PATH_SEPARATOR=';'
32124 }
32125fi
32126
cristy3ed852e2009-09-05 21:47:34 +000032127
32128# IFS
32129# We need space, tab and new line, in precisely that order. Quoting is
32130# there to prevent editors from complaining about space-tab.
32131# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32132# splitting by setting IFS to empty value.)
32133IFS=" "" $as_nl"
32134
32135# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032136case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032137 *[\\/]* ) as_myself=$0 ;;
32138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32139for as_dir in $PATH
32140do
32141 IFS=$as_save_IFS
32142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032143 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32144 done
cristy3ed852e2009-09-05 21:47:34 +000032145IFS=$as_save_IFS
32146
32147 ;;
32148esac
32149# We did not find ourselves, most probably we were run as `sh COMMAND'
32150# in which case we are not to be found in the path.
32151if test "x$as_myself" = x; then
32152 as_myself=$0
32153fi
32154if test ! -f "$as_myself"; then
32155 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032156 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032157fi
32158
cristy8b350f62009-11-15 23:12:43 +000032159# Unset variables that we do not need and which cause bugs (e.g. in
32160# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32161# suppresses any "Segmentation fault" message there. '((' could
32162# trigger a bug in pdksh 5.2.14.
32163for as_var in BASH_ENV ENV MAIL MAILPATH
32164do eval test x\${$as_var+set} = xset \
32165 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032166done
32167PS1='$ '
32168PS2='> '
32169PS4='+ '
32170
32171# NLS nuisances.
32172LC_ALL=C
32173export LC_ALL
32174LANGUAGE=C
32175export LANGUAGE
32176
cristy8b350f62009-11-15 23:12:43 +000032177# CDPATH.
32178(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32179
32180
32181# as_fn_error ERROR [LINENO LOG_FD]
32182# ---------------------------------
32183# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32184# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32185# script with status $?, using 1 if that was 0.
32186as_fn_error ()
32187{
32188 as_status=$?; test $as_status -eq 0 && as_status=1
32189 if test "$3"; then
32190 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32191 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32192 fi
32193 $as_echo "$as_me: error: $1" >&2
32194 as_fn_exit $as_status
32195} # as_fn_error
32196
32197
32198# as_fn_set_status STATUS
32199# -----------------------
32200# Set $? to STATUS, without forking.
32201as_fn_set_status ()
32202{
32203 return $1
32204} # as_fn_set_status
32205
32206# as_fn_exit STATUS
32207# -----------------
32208# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32209as_fn_exit ()
32210{
32211 set +e
32212 as_fn_set_status $1
32213 exit $1
32214} # as_fn_exit
32215
32216# as_fn_unset VAR
32217# ---------------
32218# Portably unset VAR.
32219as_fn_unset ()
32220{
32221 { eval $1=; unset $1;}
32222}
32223as_unset=as_fn_unset
32224# as_fn_append VAR VALUE
32225# ----------------------
32226# Append the text in VALUE to the end of the definition contained in VAR. Take
32227# advantage of any shell optimizations that allow amortized linear growth over
32228# repeated appends, instead of the typical quadratic growth present in naive
32229# implementations.
32230if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32231 eval 'as_fn_append ()
32232 {
32233 eval $1+=\$2
32234 }'
32235else
32236 as_fn_append ()
32237 {
32238 eval $1=\$$1\$2
32239 }
32240fi # as_fn_append
32241
32242# as_fn_arith ARG...
32243# ------------------
32244# Perform arithmetic evaluation on the ARGs, and store the result in the
32245# global $as_val. Take advantage of shells that can avoid forks. The arguments
32246# must be portable across $(()) and expr.
32247if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32248 eval 'as_fn_arith ()
32249 {
32250 as_val=$(( $* ))
32251 }'
32252else
32253 as_fn_arith ()
32254 {
32255 as_val=`expr "$@" || test $? -eq 1`
32256 }
32257fi # as_fn_arith
32258
32259
cristy3ed852e2009-09-05 21:47:34 +000032260if expr a : '\(a\)' >/dev/null 2>&1 &&
32261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32262 as_expr=expr
32263else
32264 as_expr=false
32265fi
32266
32267if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32268 as_basename=basename
32269else
32270 as_basename=false
32271fi
32272
cristy8b350f62009-11-15 23:12:43 +000032273if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32274 as_dirname=dirname
32275else
32276 as_dirname=false
32277fi
cristy3ed852e2009-09-05 21:47:34 +000032278
cristy3ed852e2009-09-05 21:47:34 +000032279as_me=`$as_basename -- "$0" ||
32280$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32281 X"$0" : 'X\(//\)$' \| \
32282 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32283$as_echo X/"$0" |
32284 sed '/^.*\/\([^/][^/]*\)\/*$/{
32285 s//\1/
32286 q
32287 }
32288 /^X\/\(\/\/\)$/{
32289 s//\1/
32290 q
32291 }
32292 /^X\/\(\/\).*/{
32293 s//\1/
32294 q
32295 }
32296 s/.*/./; q'`
32297
cristy8b350f62009-11-15 23:12:43 +000032298# Avoid depending upon Character Ranges.
32299as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32300as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32301as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32302as_cr_digits='0123456789'
32303as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000032304
32305ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000032306case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000032307-n*)
cristy8b350f62009-11-15 23:12:43 +000032308 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000032309 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000032310 xy) ECHO_C='\c';;
32311 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32312 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000032313 esac;;
32314*)
32315 ECHO_N='-n';;
32316esac
cristy3ed852e2009-09-05 21:47:34 +000032317
32318rm -f conf$$ conf$$.exe conf$$.file
32319if test -d conf$$.dir; then
32320 rm -f conf$$.dir/conf$$.file
32321else
32322 rm -f conf$$.dir
32323 mkdir conf$$.dir 2>/dev/null
32324fi
32325if (echo >conf$$.file) 2>/dev/null; then
32326 if ln -s conf$$.file conf$$ 2>/dev/null; then
32327 as_ln_s='ln -s'
32328 # ... but there are two gotchas:
32329 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32330 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32331 # In both cases, we have to default to `cp -p'.
32332 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32333 as_ln_s='cp -p'
32334 elif ln conf$$.file conf$$ 2>/dev/null; then
32335 as_ln_s=ln
32336 else
32337 as_ln_s='cp -p'
32338 fi
32339else
32340 as_ln_s='cp -p'
32341fi
32342rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32343rmdir conf$$.dir 2>/dev/null
32344
cristy8b350f62009-11-15 23:12:43 +000032345
32346# as_fn_mkdir_p
32347# -------------
32348# Create "$as_dir" as a directory, including parents if necessary.
32349as_fn_mkdir_p ()
32350{
32351
32352 case $as_dir in #(
32353 -*) as_dir=./$as_dir;;
32354 esac
32355 test -d "$as_dir" || eval $as_mkdir_p || {
32356 as_dirs=
32357 while :; do
32358 case $as_dir in #(
32359 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32360 *) as_qdir=$as_dir;;
32361 esac
32362 as_dirs="'$as_qdir' $as_dirs"
32363 as_dir=`$as_dirname -- "$as_dir" ||
32364$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32365 X"$as_dir" : 'X\(//\)[^/]' \| \
32366 X"$as_dir" : 'X\(//\)$' \| \
32367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32368$as_echo X"$as_dir" |
32369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32370 s//\1/
32371 q
32372 }
32373 /^X\(\/\/\)[^/].*/{
32374 s//\1/
32375 q
32376 }
32377 /^X\(\/\/\)$/{
32378 s//\1/
32379 q
32380 }
32381 /^X\(\/\).*/{
32382 s//\1/
32383 q
32384 }
32385 s/.*/./; q'`
32386 test -d "$as_dir" && break
32387 done
32388 test -z "$as_dirs" || eval "mkdir $as_dirs"
32389 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32390
32391
32392} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032393if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032394 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000032395else
32396 test -d ./-p && rmdir ./-p
32397 as_mkdir_p=false
32398fi
32399
32400if test -x / >/dev/null 2>&1; then
32401 as_test_x='test -x'
32402else
32403 if ls -dL / >/dev/null 2>&1; then
32404 as_ls_L_option=L
32405 else
32406 as_ls_L_option=
32407 fi
32408 as_test_x='
32409 eval sh -c '\''
32410 if test -d "$1"; then
32411 test -d "$1/.";
32412 else
cristy8b350f62009-11-15 23:12:43 +000032413 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000032414 -*)set "./$1";;
32415 esac;
cristy8b350f62009-11-15 23:12:43 +000032416 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000032417 ???[sx]*):;;*)false;;esac;fi
32418 '\'' sh
32419 '
32420fi
32421as_executable_p=$as_test_x
32422
32423# Sed expression to map a string onto a valid CPP name.
32424as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32425
32426# Sed expression to map a string onto a valid variable name.
32427as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32428
32429
32430exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000032431## ----------------------------------- ##
32432## Main body of $CONFIG_STATUS script. ##
32433## ----------------------------------- ##
32434_ASEOF
32435test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032436
cristy8b350f62009-11-15 23:12:43 +000032437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32438# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000032439# report actual input values of CONFIG_FILES etc. instead of their
32440# values after options handling.
32441ac_log="
cristydc0f0892009-12-29 02:21:55 +000032442This file was extended by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +000032443generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000032444
32445 CONFIG_FILES = $CONFIG_FILES
32446 CONFIG_HEADERS = $CONFIG_HEADERS
32447 CONFIG_LINKS = $CONFIG_LINKS
32448 CONFIG_COMMANDS = $CONFIG_COMMANDS
32449 $ $0 $@
32450
32451on `(hostname || uname -n) 2>/dev/null | sed 1q`
32452"
32453
32454_ACEOF
32455
32456case $ac_config_files in *"
32457"*) set x $ac_config_files; shift; ac_config_files=$*;;
32458esac
32459
32460case $ac_config_headers in *"
32461"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32462esac
32463
32464
32465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32466# Files that config.status was made for.
32467config_files="$ac_config_files"
32468config_headers="$ac_config_headers"
32469config_commands="$ac_config_commands"
32470
32471_ACEOF
32472
32473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32474ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000032475\`$as_me' instantiates files and other configuration actions
32476from templates according to the current configuration. Unless the files
32477and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000032478
cristy8b350f62009-11-15 23:12:43 +000032479Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000032480
32481 -h, --help print this help, then exit
32482 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000032483 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000032484 -q, --quiet, --silent
32485 do not print progress messages
32486 -d, --debug don't remove temporary files
32487 --recheck update $as_me by reconfiguring in the same conditions
32488 --file=FILE[:TEMPLATE]
32489 instantiate the configuration file FILE
32490 --header=FILE[:TEMPLATE]
32491 instantiate the configuration header FILE
32492
32493Configuration files:
32494$config_files
32495
32496Configuration headers:
32497$config_headers
32498
32499Configuration commands:
32500$config_commands
32501
cristy8b350f62009-11-15 23:12:43 +000032502Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000032503
32504_ACEOF
32505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000032506ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000032507ac_cs_version="\\
cristydc0f0892009-12-29 02:21:55 +000032508ImageMagick config.status 6.5.9
cristycd4c5312009-11-22 01:19:08 +000032509configured by $0, generated by GNU Autoconf 2.65,
32510 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000032511
cristy8b350f62009-11-15 23:12:43 +000032512Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000032513This config.status script is free software; the Free Software Foundation
32514gives unlimited permission to copy, distribute and modify it."
32515
32516ac_pwd='$ac_pwd'
32517srcdir='$srcdir'
32518INSTALL='$INSTALL'
32519MKDIR_P='$MKDIR_P'
32520AWK='$AWK'
32521test -n "\$AWK" || AWK=awk
32522_ACEOF
32523
32524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32525# The default lists apply if the user does not specify any file.
32526ac_need_defaults=:
32527while test $# != 0
32528do
32529 case $1 in
32530 --*=*)
32531 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32532 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32533 ac_shift=:
32534 ;;
32535 *)
32536 ac_option=$1
32537 ac_optarg=$2
32538 ac_shift=shift
32539 ;;
32540 esac
32541
32542 case $ac_option in
32543 # Handling of the options.
32544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32545 ac_cs_recheck=: ;;
32546 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32547 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000032548 --config | --confi | --conf | --con | --co | --c )
32549 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000032550 --debug | --debu | --deb | --de | --d | -d )
32551 debug=: ;;
32552 --file | --fil | --fi | --f )
32553 $ac_shift
32554 case $ac_optarg in
32555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32556 esac
cristy8b350f62009-11-15 23:12:43 +000032557 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032558 ac_need_defaults=false;;
32559 --header | --heade | --head | --hea )
32560 $ac_shift
32561 case $ac_optarg in
32562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32563 esac
cristy8b350f62009-11-15 23:12:43 +000032564 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032565 ac_need_defaults=false;;
32566 --he | --h)
32567 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000032568 as_fn_error "ambiguous option: \`$1'
32569Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000032570 --help | --hel | -h )
32571 $as_echo "$ac_cs_usage"; exit ;;
32572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32573 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32574 ac_cs_silent=: ;;
32575
32576 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000032577 -*) as_fn_error "unrecognized option: \`$1'
32578Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000032579
cristy8b350f62009-11-15 23:12:43 +000032580 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000032581 ac_need_defaults=false ;;
32582
32583 esac
32584 shift
32585done
32586
32587ac_configure_extra_args=
32588
32589if $ac_cs_silent; then
32590 exec 6>/dev/null
32591 ac_configure_extra_args="$ac_configure_extra_args --silent"
32592fi
32593
32594_ACEOF
32595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32596if \$ac_cs_recheck; then
32597 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32598 shift
32599 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32600 CONFIG_SHELL='$SHELL'
32601 export CONFIG_SHELL
32602 exec "\$@"
32603fi
32604
32605_ACEOF
32606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32607exec 5>>config.log
32608{
32609 echo
32610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32611## Running $as_me. ##
32612_ASBOX
32613 $as_echo "$ac_log"
32614} >&5
32615
32616_ACEOF
32617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32618#
32619# INIT-COMMANDS
32620#
32621PACKAGE="$PACKAGE"
32622AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32623
32624
32625# The HP-UX ksh and POSIX shell print the target directory to stdout
32626# if CDPATH is set.
32627(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32628
32629sed_quote_subst='$sed_quote_subst'
32630double_quote_subst='$double_quote_subst'
32631delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000032632SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32633Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32634GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32635EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32636FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32637LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32638macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32639macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32640AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32641DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32642OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32643enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32644enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32645pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32646enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32647host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32648host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32649host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32650build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32651build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32652build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32653NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32654LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32655max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32656ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32657exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32658lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32659lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32660lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32661reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32662reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32663deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32664file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
32665AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
32666AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32667STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
32668RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
32669old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32670old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32671old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32672CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
32673CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32674compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
32675GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
32676lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
32677lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
32678lt_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"`'
32679lt_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"`'
32680objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
32681SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
32682ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
32683MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
32684lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
32685lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
32686lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
32687lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
32688lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
32689need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
32690DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
32691NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
32692LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
32693OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32694OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
32695libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
32696shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32697extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32698archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
32699enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
32700export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32701whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32702compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
32703old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32704old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32705archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32706archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32707module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32708module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32709with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
32710allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32711no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32712hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32713hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32714hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32715hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32716hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32717hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32718hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32719hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32720inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32721link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32722fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32723always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32724export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32725exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32726include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32727prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32728file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32729variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32730need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32731need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32732version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32733runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32734shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32735shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32736libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32737library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32738soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32739postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32740postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32741finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32742finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32743hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32744sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32745sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32746hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32747enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32748enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32749enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32750old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32751striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32752compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32753predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32754postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32755predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32756postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32757compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32758LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32759old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32760compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32761GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32762lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32763lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32764lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32765lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32766lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32767archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32768enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32769export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32770whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32771compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32772old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32773old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32774archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32775archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32776module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32777module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32778with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32779allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32780no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32781hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32782hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32783hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32784hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32785hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32786hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32787hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32788hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32789inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32790link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32791fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32792always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32793export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32794exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32795include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32796prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32797file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32798hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32799compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32800predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32801postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32802predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32803postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32804compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032805
32806LTCC='$LTCC'
32807LTCFLAGS='$LTCFLAGS'
32808compiler='$compiler_DEFAULT'
32809
32810# Quote evaled strings.
32811for var in SED \
32812GREP \
32813EGREP \
32814FGREP \
32815LD \
32816NM \
32817LN_S \
32818lt_SP2NL \
32819lt_NL2SP \
32820reload_flag \
32821deplibs_check_method \
32822file_magic_cmd \
32823AR \
32824AR_FLAGS \
32825STRIP \
32826RANLIB \
32827CC \
32828CFLAGS \
32829compiler \
32830lt_cv_sys_global_symbol_pipe \
32831lt_cv_sys_global_symbol_to_cdecl \
32832lt_cv_sys_global_symbol_to_c_name_address \
32833lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032834SHELL \
32835ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032836lt_prog_compiler_no_builtin_flag \
32837lt_prog_compiler_wl \
32838lt_prog_compiler_pic \
32839lt_prog_compiler_static \
32840lt_cv_prog_compiler_c_o \
32841need_locks \
32842DSYMUTIL \
32843NMEDIT \
32844LIPO \
32845OTOOL \
32846OTOOL64 \
32847shrext_cmds \
32848export_dynamic_flag_spec \
32849whole_archive_flag_spec \
32850compiler_needs_object \
32851with_gnu_ld \
32852allow_undefined_flag \
32853no_undefined_flag \
32854hardcode_libdir_flag_spec \
32855hardcode_libdir_flag_spec_ld \
32856hardcode_libdir_separator \
32857fix_srcfile_path \
32858exclude_expsyms \
32859include_expsyms \
32860file_list_spec \
32861variables_saved_for_relink \
32862libname_spec \
32863library_names_spec \
32864soname_spec \
32865finish_eval \
32866old_striplib \
32867striplib \
32868compiler_lib_search_dirs \
32869predep_objects \
32870postdep_objects \
32871predeps \
32872postdeps \
32873compiler_lib_search_path \
32874LD_CXX \
32875compiler_CXX \
32876lt_prog_compiler_no_builtin_flag_CXX \
32877lt_prog_compiler_wl_CXX \
32878lt_prog_compiler_pic_CXX \
32879lt_prog_compiler_static_CXX \
32880lt_cv_prog_compiler_c_o_CXX \
32881export_dynamic_flag_spec_CXX \
32882whole_archive_flag_spec_CXX \
32883compiler_needs_object_CXX \
32884with_gnu_ld_CXX \
32885allow_undefined_flag_CXX \
32886no_undefined_flag_CXX \
32887hardcode_libdir_flag_spec_CXX \
32888hardcode_libdir_flag_spec_ld_CXX \
32889hardcode_libdir_separator_CXX \
32890fix_srcfile_path_CXX \
32891exclude_expsyms_CXX \
32892include_expsyms_CXX \
32893file_list_spec_CXX \
32894compiler_lib_search_dirs_CXX \
32895predep_objects_CXX \
32896postdep_objects_CXX \
32897predeps_CXX \
32898postdeps_CXX \
32899compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032900 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032901 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032903 ;;
32904 *)
32905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32906 ;;
32907 esac
32908done
32909
32910# Double-quote double-evaled strings.
32911for var in reload_cmds \
32912old_postinstall_cmds \
32913old_postuninstall_cmds \
32914old_archive_cmds \
32915extract_expsyms_cmds \
32916old_archive_from_new_cmds \
32917old_archive_from_expsyms_cmds \
32918archive_cmds \
32919archive_expsym_cmds \
32920module_cmds \
32921module_expsym_cmds \
32922export_symbols_cmds \
32923prelink_cmds \
32924postinstall_cmds \
32925postuninstall_cmds \
32926finish_cmds \
32927sys_lib_search_path_spec \
32928sys_lib_dlsearch_path_spec \
32929old_archive_cmds_CXX \
32930old_archive_from_new_cmds_CXX \
32931old_archive_from_expsyms_cmds_CXX \
32932archive_cmds_CXX \
32933archive_expsym_cmds_CXX \
32934module_cmds_CXX \
32935module_expsym_cmds_CXX \
32936export_symbols_cmds_CXX \
32937prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032938 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032939 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032940 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 +000032941 ;;
32942 *)
32943 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32944 ;;
32945 esac
32946done
32947
cristy18304f92009-11-22 15:48:26 +000032948# Fix-up fallback echo if it was mangled by the above quoting rules.
32949case \$lt_ECHO in
32950*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32951 ;;
32952esac
32953
cristy3ed852e2009-09-05 21:47:34 +000032954ac_aux_dir='$ac_aux_dir'
32955xsi_shell='$xsi_shell'
32956lt_shell_append='$lt_shell_append'
32957
32958# See if we are running on zsh, and set the options which allow our
32959# commands through without removal of \ escapes INIT.
32960if test -n "\${ZSH_VERSION+set}" ; then
32961 setopt NO_GLOB_SUBST
32962fi
32963
32964
32965 PACKAGE='$PACKAGE'
32966 VERSION='$VERSION'
32967 TIMESTAMP='$TIMESTAMP'
32968 RM='$RM'
32969 ofile='$ofile'
32970
32971
32972
32973
32974
32975
32976_ACEOF
32977
32978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32979
32980# Handling of arguments.
32981for ac_config_target in $ac_config_targets
32982do
32983 case $ac_config_target in
32984 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32985 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32986 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32987 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32988 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32989 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32990 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000032991 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000032992 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32993 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32994 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32995 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32996 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32997 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32998 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32999 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33000 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33001 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33002 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33003 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33004 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33005 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33006 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33007 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33008 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33009 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33010 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33011 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33012 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33013 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33014 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33015 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33016 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33017 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33018 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33019 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33020 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33021 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33022 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33023 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33024 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33025 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33026 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33027 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33028 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33029 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33030 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33031 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33032 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33033 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33034
cristy8b350f62009-11-15 23:12:43 +000033035 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033036 esac
33037done
33038
33039
33040# If the user did not use the arguments to specify the items to instantiate,
33041# then the envvar interface is used. Set only those that are not.
33042# We use the long form for the default assignment because of an extremely
33043# bizarre bug on SunOS 4.1.3.
33044if $ac_need_defaults; then
33045 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33046 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33047 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33048fi
33049
33050# Have a temporary directory for convenience. Make it in the build tree
33051# simply because there is no reason against having it here, and in addition,
33052# creating and moving files from /tmp can sometimes cause problems.
33053# Hook for its removal unless debugging.
33054# Note that there is a small window in which the directory will not be cleaned:
33055# after its creation but before its name has been assigned to `$tmp'.
33056$debug ||
33057{
33058 tmp=
33059 trap 'exit_status=$?
33060 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33061' 0
cristy8b350f62009-11-15 23:12:43 +000033062 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033063}
33064# Create a (secure) tmp directory for tmp files.
33065
33066{
33067 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33068 test -n "$tmp" && test -d "$tmp"
33069} ||
33070{
33071 tmp=./conf$$-$RANDOM
33072 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033073} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033074
33075# Set up the scripts for CONFIG_FILES section.
33076# No need to generate them if there are no CONFIG_FILES.
33077# This happens for instance with `./config.status config.h'.
33078if test -n "$CONFIG_FILES"; then
33079
33080
cristy8b350f62009-11-15 23:12:43 +000033081ac_cr=`echo X | tr X '\015'`
33082# On cygwin, bash can eat \r inside `` if the user requested igncr.
33083# But we know of no other shell where ac_cr would be empty at this
33084# point, so we can use a bashism as a fallback.
33085if test "x$ac_cr" = x; then
33086 eval ac_cr=\$\'\\r\'
33087fi
cristy3ed852e2009-09-05 21:47:34 +000033088ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33089if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033090 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033091else
33092 ac_cs_awk_cr=$ac_cr
33093fi
33094
33095echo 'BEGIN {' >"$tmp/subs1.awk" &&
33096_ACEOF
33097
33098
33099{
33100 echo "cat >conf$$subs.awk <<_ACEOF" &&
33101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33102 echo "_ACEOF"
33103} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033104 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033105ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33106ac_delim='%!_!# '
33107for ac_last_try in false false false false false :; do
33108 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033109 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033110
33111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33112 if test $ac_delim_n = $ac_delim_num; then
33113 break
33114 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033115 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033116 else
33117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33118 fi
33119done
33120rm -f conf$$subs.sh
33121
33122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33123cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33124_ACEOF
33125sed -n '
33126h
33127s/^/S["/; s/!.*/"]=/
33128p
33129g
33130s/^[^!]*!//
33131:repl
33132t repl
33133s/'"$ac_delim"'$//
33134t delim
33135:nl
33136h
cristycd4c5312009-11-22 01:19:08 +000033137s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033138t more1
33139s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33140p
33141n
33142b repl
33143:more1
33144s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33145p
33146g
33147s/.\{148\}//
33148t nl
33149:delim
33150h
cristycd4c5312009-11-22 01:19:08 +000033151s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033152t more2
33153s/["\\]/\\&/g; s/^/"/; s/$/"/
33154p
33155b
33156:more2
33157s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33158p
33159g
33160s/.\{148\}//
33161t delim
33162' <conf$$subs.awk | sed '
33163/^[^""]/{
33164 N
33165 s/\n//
33166}
33167' >>$CONFIG_STATUS || ac_write_fail=1
33168rm -f conf$$subs.awk
33169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33170_ACAWK
33171cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33172 for (key in S) S_is_set[key] = 1
33173 FS = ""
33174
33175}
33176{
33177 line = $ 0
33178 nfields = split(line, field, "@")
33179 substed = 0
33180 len = length(field[1])
33181 for (i = 2; i < nfields; i++) {
33182 key = field[i]
33183 keylen = length(key)
33184 if (S_is_set[key]) {
33185 value = S[key]
33186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33187 len += length(value) + length(field[++i])
33188 substed = 1
33189 } else
33190 len += 1 + keylen
33191 }
33192
33193 print line
33194}
33195
33196_ACAWK
33197_ACEOF
33198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33199if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33200 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33201else
33202 cat
33203fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000033204 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033205_ACEOF
33206
33207# VPATH may cause trouble with some makes, so we remove $(srcdir),
33208# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33209# trailing colons and then remove the whole line if VPATH becomes empty
33210# (actually we leave an empty line to preserve line numbers).
33211if test "x$srcdir" = x.; then
33212 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33213s/:*\$(srcdir):*/:/
33214s/:*\${srcdir}:*/:/
33215s/:*@srcdir@:*/:/
33216s/^\([^=]*=[ ]*\):*/\1/
33217s/:*$//
33218s/^[^=]*=[ ]*$//
33219}'
33220fi
33221
33222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33223fi # test -n "$CONFIG_FILES"
33224
33225# Set up the scripts for CONFIG_HEADERS section.
33226# No need to generate them if there are no CONFIG_HEADERS.
33227# This happens for instance with `./config.status Makefile'.
33228if test -n "$CONFIG_HEADERS"; then
33229cat >"$tmp/defines.awk" <<\_ACAWK ||
33230BEGIN {
33231_ACEOF
33232
33233# Transform confdefs.h into an awk script `defines.awk', embedded as
33234# here-document in config.status, that substitutes the proper values into
33235# config.h.in to produce config.h.
33236
33237# Create a delimiter string that does not exist in confdefs.h, to ease
33238# handling of long lines.
33239ac_delim='%!_!# '
33240for ac_last_try in false false :; do
33241 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33242 if test -z "$ac_t"; then
33243 break
33244 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033245 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033246 else
33247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33248 fi
33249done
33250
33251# For the awk script, D is an array of macro values keyed by name,
33252# likewise P contains macro parameters if any. Preserve backslash
33253# newline sequences.
33254
33255ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33256sed -n '
33257s/.\{148\}/&'"$ac_delim"'/g
33258t rset
33259:rset
33260s/^[ ]*#[ ]*define[ ][ ]*/ /
33261t def
33262d
33263:def
33264s/\\$//
33265t bsnl
33266s/["\\]/\\&/g
33267s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33268D["\1"]=" \3"/p
33269s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33270d
33271:bsnl
33272s/["\\]/\\&/g
33273s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33274D["\1"]=" \3\\\\\\n"\\/p
33275t cont
33276s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33277t cont
33278d
33279:cont
33280n
33281s/.\{148\}/&'"$ac_delim"'/g
33282t clear
33283:clear
33284s/\\$//
33285t bsnlc
33286s/["\\]/\\&/g; s/^/"/; s/$/"/p
33287d
33288:bsnlc
33289s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33290b cont
33291' <confdefs.h | sed '
33292s/'"$ac_delim"'/"\\\
33293"/g' >>$CONFIG_STATUS || ac_write_fail=1
33294
33295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33296 for (key in D) D_is_set[key] = 1
33297 FS = ""
33298}
33299/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33300 line = \$ 0
33301 split(line, arg, " ")
33302 if (arg[1] == "#") {
33303 defundef = arg[2]
33304 mac1 = arg[3]
33305 } else {
33306 defundef = substr(arg[1], 2)
33307 mac1 = arg[2]
33308 }
33309 split(mac1, mac2, "(") #)
33310 macro = mac2[1]
33311 prefix = substr(line, 1, index(line, defundef) - 1)
33312 if (D_is_set[macro]) {
33313 # Preserve the white space surrounding the "#".
33314 print prefix "define", macro P[macro] D[macro]
33315 next
33316 } else {
33317 # Replace #undef with comments. This is necessary, for example,
33318 # in the case of _POSIX_SOURCE, which is predefined and required
33319 # on some systems where configure will not decide to define it.
33320 if (defundef == "undef") {
33321 print "/*", prefix defundef, macro, "*/"
33322 next
33323 }
33324 }
33325}
33326{ print }
33327_ACAWK
33328_ACEOF
33329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000033330 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033331fi # test -n "$CONFIG_HEADERS"
33332
33333
33334eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33335shift
33336for ac_tag
33337do
33338 case $ac_tag in
33339 :[FHLC]) ac_mode=$ac_tag; continue;;
33340 esac
33341 case $ac_mode$ac_tag in
33342 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000033343 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033344 :[FH]-) ac_tag=-:-;;
33345 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33346 esac
33347 ac_save_IFS=$IFS
33348 IFS=:
33349 set x $ac_tag
33350 IFS=$ac_save_IFS
33351 shift
33352 ac_file=$1
33353 shift
33354
33355 case $ac_mode in
33356 :L) ac_source=$1;;
33357 :[FH])
33358 ac_file_inputs=
33359 for ac_f
33360 do
33361 case $ac_f in
33362 -) ac_f="$tmp/stdin";;
33363 *) # Look for the file first in the build tree, then in the source tree
33364 # (if the path is not absolute). The absolute path cannot be DOS-style,
33365 # because $ac_f cannot contain `:'.
33366 test -f "$ac_f" ||
33367 case $ac_f in
33368 [\\/$]*) false;;
33369 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33370 esac ||
cristy8b350f62009-11-15 23:12:43 +000033371 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033372 esac
33373 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000033374 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000033375 done
33376
33377 # Let's still pretend it is `configure' which instantiates (i.e., don't
33378 # use $as_me), people would be surprised to read:
33379 # /* config.h. Generated by config.status. */
33380 configure_input='Generated from '`
33381 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33382 `' by configure.'
33383 if test x"$ac_file" != x-; then
33384 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000033385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033386$as_echo "$as_me: creating $ac_file" >&6;}
33387 fi
33388 # Neutralize special characters interpreted by sed in replacement strings.
33389 case $configure_input in #(
33390 *\&* | *\|* | *\\* )
33391 ac_sed_conf_input=`$as_echo "$configure_input" |
33392 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33393 *) ac_sed_conf_input=$configure_input;;
33394 esac
33395
33396 case $ac_tag in
33397 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000033398 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000033399 esac
33400 ;;
33401 esac
33402
33403 ac_dir=`$as_dirname -- "$ac_file" ||
33404$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33405 X"$ac_file" : 'X\(//\)[^/]' \| \
33406 X"$ac_file" : 'X\(//\)$' \| \
33407 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33408$as_echo X"$ac_file" |
33409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33410 s//\1/
33411 q
33412 }
33413 /^X\(\/\/\)[^/].*/{
33414 s//\1/
33415 q
33416 }
33417 /^X\(\/\/\)$/{
33418 s//\1/
33419 q
33420 }
33421 /^X\(\/\).*/{
33422 s//\1/
33423 q
33424 }
33425 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033426 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033427 ac_builddir=.
33428
33429case "$ac_dir" in
33430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33431*)
33432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33433 # A ".." for each directory in $ac_dir_suffix.
33434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33435 case $ac_top_builddir_sub in
33436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33438 esac ;;
33439esac
33440ac_abs_top_builddir=$ac_pwd
33441ac_abs_builddir=$ac_pwd$ac_dir_suffix
33442# for backward compatibility:
33443ac_top_builddir=$ac_top_build_prefix
33444
33445case $srcdir in
33446 .) # We are building in place.
33447 ac_srcdir=.
33448 ac_top_srcdir=$ac_top_builddir_sub
33449 ac_abs_top_srcdir=$ac_pwd ;;
33450 [\\/]* | ?:[\\/]* ) # Absolute name.
33451 ac_srcdir=$srcdir$ac_dir_suffix;
33452 ac_top_srcdir=$srcdir
33453 ac_abs_top_srcdir=$srcdir ;;
33454 *) # Relative name.
33455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33456 ac_top_srcdir=$ac_top_build_prefix$srcdir
33457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33458esac
33459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33460
33461
33462 case $ac_mode in
33463 :F)
33464 #
33465 # CONFIG_FILE
33466 #
33467
33468 case $INSTALL in
33469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33470 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33471 esac
33472 ac_MKDIR_P=$MKDIR_P
33473 case $MKDIR_P in
33474 [\\/$]* | ?:[\\/]* ) ;;
33475 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33476 esac
33477_ACEOF
33478
33479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33480# If the template does not know about datarootdir, expand it.
33481# FIXME: This hack should be removed a few years after 2.60.
33482ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000033483ac_sed_dataroot='
33484/datarootdir/ {
33485 p
33486 q
33487}
33488/@datadir@/p
33489/@docdir@/p
33490/@infodir@/p
33491/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000033492/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000033493case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33494*datarootdir*) ac_datarootdir_seen=yes;;
33495*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000033496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000033497$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33498_ACEOF
33499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33500 ac_datarootdir_hack='
33501 s&@datadir@&$datadir&g
33502 s&@docdir@&$docdir&g
33503 s&@infodir@&$infodir&g
33504 s&@localedir@&$localedir&g
33505 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000033506 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000033507esac
33508_ACEOF
33509
33510# Neutralize VPATH when `$srcdir' = `.'.
33511# Shell code in configure.ac might set extrasub.
33512# FIXME: do we really want to maintain this feature?
33513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33514ac_sed_extra="$ac_vpsub
33515$extrasub
33516_ACEOF
33517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33518:t
33519/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33520s|@configure_input@|$ac_sed_conf_input|;t t
33521s&@top_builddir@&$ac_top_builddir_sub&;t t
33522s&@top_build_prefix@&$ac_top_build_prefix&;t t
33523s&@srcdir@&$ac_srcdir&;t t
33524s&@abs_srcdir@&$ac_abs_srcdir&;t t
33525s&@top_srcdir@&$ac_top_srcdir&;t t
33526s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33527s&@builddir@&$ac_builddir&;t t
33528s&@abs_builddir@&$ac_abs_builddir&;t t
33529s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33530s&@INSTALL@&$ac_INSTALL&;t t
33531s&@MKDIR_P@&$ac_MKDIR_P&;t t
33532$ac_datarootdir_hack
33533"
33534eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000033535 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033536
33537test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33538 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33539 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000033540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000033541which seems to be undefined. Please make sure it is defined." >&5
33542$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33543which seems to be undefined. Please make sure it is defined." >&2;}
33544
33545 rm -f "$tmp/stdin"
33546 case $ac_file in
33547 -) cat "$tmp/out" && rm -f "$tmp/out";;
33548 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33549 esac \
cristy8b350f62009-11-15 23:12:43 +000033550 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033551 ;;
33552 :H)
33553 #
33554 # CONFIG_HEADER
33555 #
33556 if test x"$ac_file" != x-; then
33557 {
33558 $as_echo "/* $configure_input */" \
33559 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33560 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000033561 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033562 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000033563 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033564$as_echo "$as_me: $ac_file is unchanged" >&6;}
33565 else
33566 rm -f "$ac_file"
33567 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000033568 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033569 fi
33570 else
33571 $as_echo "/* $configure_input */" \
33572 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000033573 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033574 fi
33575# Compute "$ac_file"'s index in $config_headers.
33576_am_arg="$ac_file"
33577_am_stamp_count=1
33578for _am_header in $config_headers :; do
33579 case $_am_header in
33580 $_am_arg | $_am_arg:* )
33581 break ;;
33582 * )
33583 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33584 esac
33585done
33586echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33587$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33588 X"$_am_arg" : 'X\(//\)[^/]' \| \
33589 X"$_am_arg" : 'X\(//\)$' \| \
33590 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33591$as_echo X"$_am_arg" |
33592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33593 s//\1/
33594 q
33595 }
33596 /^X\(\/\/\)[^/].*/{
33597 s//\1/
33598 q
33599 }
33600 /^X\(\/\/\)$/{
33601 s//\1/
33602 q
33603 }
33604 /^X\(\/\).*/{
33605 s//\1/
33606 q
33607 }
33608 s/.*/./; q'`/stamp-h$_am_stamp_count
33609 ;;
33610
cristy8b350f62009-11-15 23:12:43 +000033611 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000033612$as_echo "$as_me: executing $ac_file commands" >&6;}
33613 ;;
33614 esac
33615
33616
33617 case $ac_file$ac_mode in
33618 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
33619ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
33620ac_prefix_conf_PKG=`echo MagickCore`
33621ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
33622ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
33623ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
33624if test ".$ac_prefix_conf_INP" = "."; then
33625 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
33626 case "$ac_file" in
33627 *.h) ac_prefix_conf_INP=$ac_file ;;
33628 *)
33629 esac
33630 test ".$ac_prefix_conf_INP" != "." && break
33631 done
33632fi
33633if test ".$ac_prefix_conf_INP" = "."; then
33634 case "$ac_prefix_conf_OUT" in
33635 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
33636 ;;
33637 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
33638 ;;
33639 *) ac_prefix_conf_INP=config.h
33640 ;;
33641 esac
33642fi
33643if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000033644 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033645else
33646 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
33647 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
33648 fi fi
cristy8b350f62009-11-15 23:12:43 +000033649 { $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 +000033650$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
33651 if test -f $ac_prefix_conf_INP ; then
33652 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
33653 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
33654 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
33655 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
33656 echo "#endif/" >>conftest.prefix
33657 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
33658 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
33659 echo "#endif/" >> conftest.prefix
33660 # now executing _script on _DEF input to create _OUT output file
33661 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
33662 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
33663 echo ' ' >>$tmp/pconfig.h
33664 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
33665
33666 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
33667 echo ' ' >>$tmp/pconfig.h
33668 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
33669 echo "#endif" >>$tmp/pconfig.h
33670 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033671 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
33673 else
33674 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
33675$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33676 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
33677 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
33678 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
33679$as_echo X"$ac_prefix_conf_OUT" |
33680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33681 s//\1/
33682 q
33683 }
33684 /^X\(\/\/\)[^/].*/{
33685 s//\1/
33686 q
33687 }
33688 /^X\(\/\/\)$/{
33689 s//\1/
33690 q
33691 }
33692 /^X\(\/\).*/{
33693 s//\1/
33694 q
33695 }
33696 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033697 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033698 rm -f "$ac_prefix_conf_OUT"
33699 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
33700 fi
33701 cp conftest.prefix _configs.sed
33702 else
cristy8b350f62009-11-15 23:12:43 +000033703 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 +000033704 fi
33705 rm -f conftest.*
33706fi
33707 ;;
33708 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33709 # Autoconf 2.62 quotes --file arguments for eval, but not when files
33710 # are listed without --file. Let's play safe and only enable the eval
33711 # if we detect the quoting.
33712 case $CONFIG_FILES in
33713 *\'*) eval set x "$CONFIG_FILES" ;;
33714 *) set x $CONFIG_FILES ;;
33715 esac
33716 shift
33717 for mf
33718 do
33719 # Strip MF so we end up with the name of the file.
33720 mf=`echo "$mf" | sed -e 's/:.*$//'`
33721 # Check whether this is an Automake generated Makefile or not.
33722 # We used to match only the files named `Makefile.in', but
33723 # some people rename them; so instead we look at the file content.
33724 # Grep'ing the first line is not enough: some people post-process
33725 # each Makefile.in and add a new line on top of each file to say so.
33726 # Grep'ing the whole file is not good either: AIX grep has a line
33727 # limit of 2048, but all sed's we know have understand at least 4000.
33728 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33729 dirpart=`$as_dirname -- "$mf" ||
33730$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33731 X"$mf" : 'X\(//\)[^/]' \| \
33732 X"$mf" : 'X\(//\)$' \| \
33733 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33734$as_echo X"$mf" |
33735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33736 s//\1/
33737 q
33738 }
33739 /^X\(\/\/\)[^/].*/{
33740 s//\1/
33741 q
33742 }
33743 /^X\(\/\/\)$/{
33744 s//\1/
33745 q
33746 }
33747 /^X\(\/\).*/{
33748 s//\1/
33749 q
33750 }
33751 s/.*/./; q'`
33752 else
33753 continue
33754 fi
33755 # Extract the definition of DEPDIR, am__include, and am__quote
33756 # from the Makefile without running `make'.
33757 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33758 test -z "$DEPDIR" && continue
33759 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33760 test -z "am__include" && continue
33761 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33762 # When using ansi2knr, U may be empty or an underscore; expand it
33763 U=`sed -n 's/^U = //p' < "$mf"`
33764 # Find all dependency output files, they are included files with
33765 # $(DEPDIR) in their names. We invoke sed twice because it is the
33766 # simplest approach to changing $(DEPDIR) to its actual value in the
33767 # expansion.
33768 for file in `sed -n "
33769 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33770 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33771 # Make sure the directory exists.
33772 test -f "$dirpart/$file" && continue
33773 fdir=`$as_dirname -- "$file" ||
33774$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33775 X"$file" : 'X\(//\)[^/]' \| \
33776 X"$file" : 'X\(//\)$' \| \
33777 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33778$as_echo X"$file" |
33779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33780 s//\1/
33781 q
33782 }
33783 /^X\(\/\/\)[^/].*/{
33784 s//\1/
33785 q
33786 }
33787 /^X\(\/\/\)$/{
33788 s//\1/
33789 q
33790 }
33791 /^X\(\/\).*/{
33792 s//\1/
33793 q
33794 }
33795 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033796 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033797 # echo "creating $dirpart/$file"
33798 echo '# dummy' > "$dirpart/$file"
33799 done
33800 done
33801}
33802 ;;
33803 "libtool":C)
33804
33805 # See if we are running on zsh, and set the options which allow our
33806 # commands through without removal of \ escapes.
33807 if test -n "${ZSH_VERSION+set}" ; then
33808 setopt NO_GLOB_SUBST
33809 fi
33810
33811 cfgfile="${ofile}T"
33812 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33813 $RM "$cfgfile"
33814
33815 cat <<_LT_EOF >> "$cfgfile"
33816#! $SHELL
33817
33818# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33819# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33820# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33821# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33822#
33823# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033824# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033825# Written by Gordon Matzigkeit, 1996
33826#
33827# This file is part of GNU Libtool.
33828#
33829# GNU Libtool is free software; you can redistribute it and/or
33830# modify it under the terms of the GNU General Public License as
33831# published by the Free Software Foundation; either version 2 of
33832# the License, or (at your option) any later version.
33833#
33834# As a special exception to the GNU General Public License,
33835# if you distribute this file as part of a program or library that
33836# is built using GNU Libtool, you may include this file under the
33837# same distribution terms that you use for the rest of that program.
33838#
33839# GNU Libtool is distributed in the hope that it will be useful,
33840# but WITHOUT ANY WARRANTY; without even the implied warranty of
33841# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33842# GNU General Public License for more details.
33843#
33844# You should have received a copy of the GNU General Public License
33845# along with GNU Libtool; see the file COPYING. If not, a copy
33846# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33847# obtained by writing to the Free Software Foundation, Inc.,
33848# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33849
33850
33851# The names of the tagged configurations supported by this script.
33852available_tags="CXX "
33853
33854# ### BEGIN LIBTOOL CONFIG
33855
33856# A sed program that does not truncate output.
33857SED=$lt_SED
33858
33859# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33860Xsed="\$SED -e 1s/^X//"
33861
33862# A grep program that handles long lines.
33863GREP=$lt_GREP
33864
33865# An ERE matcher.
33866EGREP=$lt_EGREP
33867
33868# A literal string matcher.
33869FGREP=$lt_FGREP
33870
33871# Which release of libtool.m4 was used?
33872macro_version=$macro_version
33873macro_revision=$macro_revision
33874
33875# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033876AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033877
33878# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033879DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033880
33881# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033882OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033883
33884# Whether or not to build shared libraries.
33885build_libtool_libs=$enable_shared
33886
33887# Whether or not to build static libraries.
33888build_old_libs=$enable_static
33889
33890# What type of objects to build.
33891pic_mode=$pic_mode
33892
33893# Whether or not to optimize for fast installation.
33894fast_install=$enable_fast_install
33895
33896# The host system.
33897host_alias=$host_alias
33898host=$host
33899host_os=$host_os
33900
33901# The build system.
33902build_alias=$build_alias
33903build=$build
33904build_os=$build_os
33905
33906# A BSD- or MS-compatible name lister.
33907NM=$lt_NM
33908
33909# Whether we need soft or hard links.
33910LN_S=$lt_LN_S
33911
33912# What is the maximum length of a command?
33913max_cmd_len=$max_cmd_len
33914
33915# Object file suffix (normally "o").
33916objext=$ac_objext
33917
33918# Executable file suffix (normally "").
33919exeext=$exeext
33920
33921# whether the shell understands "unset".
33922lt_unset=$lt_unset
33923
33924# turn spaces into newlines.
33925SP2NL=$lt_lt_SP2NL
33926
33927# turn newlines into spaces.
33928NL2SP=$lt_lt_NL2SP
33929
cristy18304f92009-11-22 15:48:26 +000033930# How to create reloadable object files.
33931reload_flag=$lt_reload_flag
33932reload_cmds=$lt_reload_cmds
33933
cristy3ed852e2009-09-05 21:47:34 +000033934# Method to check whether dependent libraries are shared objects.
33935deplibs_check_method=$lt_deplibs_check_method
33936
33937# Command to use when deplibs_check_method == "file_magic".
33938file_magic_cmd=$lt_file_magic_cmd
33939
33940# The archiver.
33941AR=$lt_AR
33942AR_FLAGS=$lt_AR_FLAGS
33943
33944# A symbol stripping program.
33945STRIP=$lt_STRIP
33946
33947# Commands used to install an old-style archive.
33948RANLIB=$lt_RANLIB
33949old_postinstall_cmds=$lt_old_postinstall_cmds
33950old_postuninstall_cmds=$lt_old_postuninstall_cmds
33951
33952# A C compiler.
33953LTCC=$lt_CC
33954
33955# LTCC compiler flags.
33956LTCFLAGS=$lt_CFLAGS
33957
33958# Take the output of nm and produce a listing of raw symbols and C names.
33959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33960
33961# Transform the output of nm in a proper C declaration.
33962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33963
33964# Transform the output of nm in a C name address pair.
33965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33966
33967# Transform the output of nm in a C name address pair when lib prefix is needed.
33968global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33969
33970# The name of the directory that contains temporary libtool files.
33971objdir=$objdir
33972
cristy18304f92009-11-22 15:48:26 +000033973# Shell to use when invoking shell scripts.
33974SHELL=$lt_SHELL
33975
33976# An echo program that does not interpret backslashes.
33977ECHO=$lt_ECHO
33978
cristy3ed852e2009-09-05 21:47:34 +000033979# Used to examine libraries when file_magic_cmd begins with "file".
33980MAGIC_CMD=$MAGIC_CMD
33981
33982# Must we lock files when doing compilation?
33983need_locks=$lt_need_locks
33984
33985# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33986DSYMUTIL=$lt_DSYMUTIL
33987
33988# Tool to change global to local symbols on Mac OS X.
33989NMEDIT=$lt_NMEDIT
33990
33991# Tool to manipulate fat objects and archives on Mac OS X.
33992LIPO=$lt_LIPO
33993
33994# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33995OTOOL=$lt_OTOOL
33996
33997# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33998OTOOL64=$lt_OTOOL64
33999
34000# Old archive suffix (normally "a").
34001libext=$libext
34002
34003# Shared library suffix (normally ".so").
34004shrext_cmds=$lt_shrext_cmds
34005
34006# The commands to extract the exported symbol list from a shared archive.
34007extract_expsyms_cmds=$lt_extract_expsyms_cmds
34008
34009# Variables whose values should be saved in libtool wrapper scripts and
34010# restored at link time.
34011variables_saved_for_relink=$lt_variables_saved_for_relink
34012
34013# Do we need the "lib" prefix for modules?
34014need_lib_prefix=$need_lib_prefix
34015
34016# Do we need a version for libraries?
34017need_version=$need_version
34018
34019# Library versioning type.
34020version_type=$version_type
34021
34022# Shared library runtime path variable.
34023runpath_var=$runpath_var
34024
34025# Shared library path variable.
34026shlibpath_var=$shlibpath_var
34027
34028# Is shlibpath searched before the hard-coded library search path?
34029shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34030
34031# Format of library name prefix.
34032libname_spec=$lt_libname_spec
34033
34034# List of archive names. First name is the real one, the rest are links.
34035# The last name is the one that the linker finds with -lNAME
34036library_names_spec=$lt_library_names_spec
34037
34038# The coded name of the library, if different from the real name.
34039soname_spec=$lt_soname_spec
34040
34041# Command to use after installation of a shared archive.
34042postinstall_cmds=$lt_postinstall_cmds
34043
34044# Command to use after uninstallation of a shared archive.
34045postuninstall_cmds=$lt_postuninstall_cmds
34046
34047# Commands used to finish a libtool library installation in a directory.
34048finish_cmds=$lt_finish_cmds
34049
34050# As "finish_cmds", except a single script fragment to be evaled but
34051# not shown.
34052finish_eval=$lt_finish_eval
34053
34054# Whether we should hardcode library paths into libraries.
34055hardcode_into_libs=$hardcode_into_libs
34056
34057# Compile-time system search path for libraries.
34058sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34059
34060# Run-time system search path for libraries.
34061sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34062
34063# Whether dlopen is supported.
34064dlopen_support=$enable_dlopen
34065
34066# Whether dlopen of programs is supported.
34067dlopen_self=$enable_dlopen_self
34068
34069# Whether dlopen of statically linked programs is supported.
34070dlopen_self_static=$enable_dlopen_self_static
34071
34072# Commands to strip libraries.
34073old_striplib=$lt_old_striplib
34074striplib=$lt_striplib
34075
34076
34077# The linker used to build libraries.
34078LD=$lt_LD
34079
34080# Commands used to build an old-style archive.
34081old_archive_cmds=$lt_old_archive_cmds
34082
34083# A language specific compiler.
34084CC=$lt_compiler
34085
34086# Is the compiler the GNU compiler?
34087with_gcc=$GCC
34088
34089# Compiler flag to turn off builtin functions.
34090no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34091
34092# How to pass a linker flag through the compiler.
34093wl=$lt_lt_prog_compiler_wl
34094
34095# Additional compiler flags for building library objects.
34096pic_flag=$lt_lt_prog_compiler_pic
34097
34098# Compiler flag to prevent dynamic linking.
34099link_static_flag=$lt_lt_prog_compiler_static
34100
34101# Does compiler simultaneously support -c and -o options?
34102compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34103
34104# Whether or not to add -lc for building shared libraries.
34105build_libtool_need_lc=$archive_cmds_need_lc
34106
34107# Whether or not to disallow shared libs when runtime libs are static.
34108allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34109
34110# Compiler flag to allow reflexive dlopens.
34111export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34112
34113# Compiler flag to generate shared objects directly from archives.
34114whole_archive_flag_spec=$lt_whole_archive_flag_spec
34115
34116# Whether the compiler copes with passing no objects directly.
34117compiler_needs_object=$lt_compiler_needs_object
34118
34119# Create an old-style archive from a shared archive.
34120old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34121
34122# Create a temporary old-style archive to link instead of a shared archive.
34123old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34124
34125# Commands used to build a shared archive.
34126archive_cmds=$lt_archive_cmds
34127archive_expsym_cmds=$lt_archive_expsym_cmds
34128
34129# Commands used to build a loadable module if different from building
34130# a shared archive.
34131module_cmds=$lt_module_cmds
34132module_expsym_cmds=$lt_module_expsym_cmds
34133
34134# Whether we are building with GNU ld or not.
34135with_gnu_ld=$lt_with_gnu_ld
34136
34137# Flag that allows shared libraries with undefined symbols to be built.
34138allow_undefined_flag=$lt_allow_undefined_flag
34139
34140# Flag that enforces no undefined symbols.
34141no_undefined_flag=$lt_no_undefined_flag
34142
34143# Flag to hardcode \$libdir into a binary during linking.
34144# This must work even if \$libdir does not exist
34145hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34146
34147# If ld is used when linking, flag to hardcode \$libdir into a binary
34148# during linking. This must work even if \$libdir does not exist.
34149hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34150
34151# Whether we need a single "-rpath" flag with a separated argument.
34152hardcode_libdir_separator=$lt_hardcode_libdir_separator
34153
34154# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34155# DIR into the resulting binary.
34156hardcode_direct=$hardcode_direct
34157
34158# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34159# DIR into the resulting binary and the resulting library dependency is
34160# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34161# library is relocated.
34162hardcode_direct_absolute=$hardcode_direct_absolute
34163
34164# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34165# into the resulting binary.
34166hardcode_minus_L=$hardcode_minus_L
34167
34168# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34169# into the resulting binary.
34170hardcode_shlibpath_var=$hardcode_shlibpath_var
34171
34172# Set to "yes" if building a shared library automatically hardcodes DIR
34173# into the library and all subsequent libraries and executables linked
34174# against it.
34175hardcode_automatic=$hardcode_automatic
34176
34177# Set to yes if linker adds runtime paths of dependent libraries
34178# to runtime path list.
34179inherit_rpath=$inherit_rpath
34180
34181# Whether libtool must link a program against all its dependency libraries.
34182link_all_deplibs=$link_all_deplibs
34183
34184# Fix the shell variable \$srcfile for the compiler.
34185fix_srcfile_path=$lt_fix_srcfile_path
34186
34187# Set to "yes" if exported symbols are required.
34188always_export_symbols=$always_export_symbols
34189
34190# The commands to list exported symbols.
34191export_symbols_cmds=$lt_export_symbols_cmds
34192
34193# Symbols that should not be listed in the preloaded symbols.
34194exclude_expsyms=$lt_exclude_expsyms
34195
34196# Symbols that must always be exported.
34197include_expsyms=$lt_include_expsyms
34198
34199# Commands necessary for linking programs (against libraries) with templates.
34200prelink_cmds=$lt_prelink_cmds
34201
34202# Specify filename containing input files.
34203file_list_spec=$lt_file_list_spec
34204
34205# How to hardcode a shared library path into an executable.
34206hardcode_action=$hardcode_action
34207
34208# The directories searched by this compiler when creating a shared library.
34209compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34210
34211# Dependencies to place before and after the objects being linked to
34212# create a shared library.
34213predep_objects=$lt_predep_objects
34214postdep_objects=$lt_postdep_objects
34215predeps=$lt_predeps
34216postdeps=$lt_postdeps
34217
34218# The library search path used internally by the compiler when linking
34219# a shared library.
34220compiler_lib_search_path=$lt_compiler_lib_search_path
34221
34222# ### END LIBTOOL CONFIG
34223
34224_LT_EOF
34225
34226 case $host_os in
34227 aix3*)
34228 cat <<\_LT_EOF >> "$cfgfile"
34229# AIX sometimes has problems with the GCC collect2 program. For some
34230# reason, if we set the COLLECT_NAMES environment variable, the problems
34231# vanish in a puff of smoke.
34232if test "X${COLLECT_NAMES+set}" != Xset; then
34233 COLLECT_NAMES=
34234 export COLLECT_NAMES
34235fi
34236_LT_EOF
34237 ;;
34238 esac
34239
34240
34241ltmain="$ac_aux_dir/ltmain.sh"
34242
34243
34244 # We use sed instead of cat because bash on DJGPP gets confused if
34245 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34246 # text mode, it properly converts lines to CR/LF. This bash problem
34247 # is reportedly fixed, but why not run on old versions too?
34248 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34249 || (rm -f "$cfgfile"; exit 1)
34250
34251 case $xsi_shell in
34252 yes)
34253 cat << \_LT_EOF >> "$cfgfile"
34254
34255# func_dirname file append nondir_replacement
34256# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34257# otherwise set result to NONDIR_REPLACEMENT.
34258func_dirname ()
34259{
34260 case ${1} in
34261 */*) func_dirname_result="${1%/*}${2}" ;;
34262 * ) func_dirname_result="${3}" ;;
34263 esac
34264}
34265
34266# func_basename file
34267func_basename ()
34268{
34269 func_basename_result="${1##*/}"
34270}
34271
34272# func_dirname_and_basename file append nondir_replacement
34273# perform func_basename and func_dirname in a single function
34274# call:
34275# dirname: Compute the dirname of FILE. If nonempty,
34276# add APPEND to the result, otherwise set result
34277# to NONDIR_REPLACEMENT.
34278# value returned in "$func_dirname_result"
34279# basename: Compute filename of FILE.
34280# value retuned in "$func_basename_result"
34281# Implementation must be kept synchronized with func_dirname
34282# and func_basename. For efficiency, we do not delegate to
34283# those functions but instead duplicate the functionality here.
34284func_dirname_and_basename ()
34285{
34286 case ${1} in
34287 */*) func_dirname_result="${1%/*}${2}" ;;
34288 * ) func_dirname_result="${3}" ;;
34289 esac
34290 func_basename_result="${1##*/}"
34291}
34292
34293# func_stripname prefix suffix name
34294# strip PREFIX and SUFFIX off of NAME.
34295# PREFIX and SUFFIX must not contain globbing or regex special
34296# characters, hashes, percent signs, but SUFFIX may contain a leading
34297# dot (in which case that matches only a dot).
34298func_stripname ()
34299{
34300 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34301 # positional parameters, so assign one to ordinary parameter first.
34302 func_stripname_result=${3}
34303 func_stripname_result=${func_stripname_result#"${1}"}
34304 func_stripname_result=${func_stripname_result%"${2}"}
34305}
34306
34307# func_opt_split
34308func_opt_split ()
34309{
34310 func_opt_split_opt=${1%%=*}
34311 func_opt_split_arg=${1#*=}
34312}
34313
34314# func_lo2o object
34315func_lo2o ()
34316{
34317 case ${1} in
34318 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34319 *) func_lo2o_result=${1} ;;
34320 esac
34321}
34322
34323# func_xform libobj-or-source
34324func_xform ()
34325{
34326 func_xform_result=${1%.*}.lo
34327}
34328
34329# func_arith arithmetic-term...
34330func_arith ()
34331{
34332 func_arith_result=$(( $* ))
34333}
34334
34335# func_len string
34336# STRING may not start with a hyphen.
34337func_len ()
34338{
34339 func_len_result=${#1}
34340}
34341
34342_LT_EOF
34343 ;;
34344 *) # Bourne compatible functions.
34345 cat << \_LT_EOF >> "$cfgfile"
34346
34347# func_dirname file append nondir_replacement
34348# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34349# otherwise set result to NONDIR_REPLACEMENT.
34350func_dirname ()
34351{
34352 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000034353 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000034354 if test "X$func_dirname_result" = "X${1}"; then
34355 func_dirname_result="${3}"
34356 else
34357 func_dirname_result="$func_dirname_result${2}"
34358 fi
34359}
34360
34361# func_basename file
34362func_basename ()
34363{
cristy18304f92009-11-22 15:48:26 +000034364 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000034365}
34366
34367
34368# func_stripname prefix suffix name
34369# strip PREFIX and SUFFIX off of NAME.
34370# PREFIX and SUFFIX must not contain globbing or regex special
34371# characters, hashes, percent signs, but SUFFIX may contain a leading
34372# dot (in which case that matches only a dot).
34373# func_strip_suffix prefix name
34374func_stripname ()
34375{
34376 case ${2} in
cristy18304f92009-11-22 15:48:26 +000034377 .*) func_stripname_result=`$ECHO "X${3}" \
34378 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34379 *) func_stripname_result=`$ECHO "X${3}" \
34380 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000034381 esac
34382}
34383
34384# sed scripts:
34385my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34386my_sed_long_arg='1s/^-[^=]*=//'
34387
34388# func_opt_split
34389func_opt_split ()
34390{
cristy18304f92009-11-22 15:48:26 +000034391 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34392 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000034393}
34394
34395# func_lo2o object
34396func_lo2o ()
34397{
cristy18304f92009-11-22 15:48:26 +000034398 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000034399}
34400
34401# func_xform libobj-or-source
34402func_xform ()
34403{
cristy18304f92009-11-22 15:48:26 +000034404 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000034405}
34406
34407# func_arith arithmetic-term...
34408func_arith ()
34409{
34410 func_arith_result=`expr "$@"`
34411}
34412
34413# func_len string
34414# STRING may not start with a hyphen.
34415func_len ()
34416{
34417 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34418}
34419
34420_LT_EOF
34421esac
34422
34423case $lt_shell_append in
34424 yes)
34425 cat << \_LT_EOF >> "$cfgfile"
34426
34427# func_append var value
34428# Append VALUE to the end of shell variable VAR.
34429func_append ()
34430{
34431 eval "$1+=\$2"
34432}
34433_LT_EOF
34434 ;;
34435 *)
34436 cat << \_LT_EOF >> "$cfgfile"
34437
34438# func_append var value
34439# Append VALUE to the end of shell variable VAR.
34440func_append ()
34441{
34442 eval "$1=\$$1\$2"
34443}
34444
34445_LT_EOF
34446 ;;
34447 esac
34448
34449
34450 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34451 || (rm -f "$cfgfile"; exit 1)
34452
34453 mv -f "$cfgfile" "$ofile" ||
34454 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34455 chmod +x "$ofile"
34456
34457
34458 cat <<_LT_EOF >> "$ofile"
34459
34460# ### BEGIN LIBTOOL TAG CONFIG: CXX
34461
34462# The linker used to build libraries.
34463LD=$lt_LD_CXX
34464
34465# Commands used to build an old-style archive.
34466old_archive_cmds=$lt_old_archive_cmds_CXX
34467
34468# A language specific compiler.
34469CC=$lt_compiler_CXX
34470
34471# Is the compiler the GNU compiler?
34472with_gcc=$GCC_CXX
34473
34474# Compiler flag to turn off builtin functions.
34475no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34476
34477# How to pass a linker flag through the compiler.
34478wl=$lt_lt_prog_compiler_wl_CXX
34479
34480# Additional compiler flags for building library objects.
34481pic_flag=$lt_lt_prog_compiler_pic_CXX
34482
34483# Compiler flag to prevent dynamic linking.
34484link_static_flag=$lt_lt_prog_compiler_static_CXX
34485
34486# Does compiler simultaneously support -c and -o options?
34487compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34488
34489# Whether or not to add -lc for building shared libraries.
34490build_libtool_need_lc=$archive_cmds_need_lc_CXX
34491
34492# Whether or not to disallow shared libs when runtime libs are static.
34493allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34494
34495# Compiler flag to allow reflexive dlopens.
34496export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34497
34498# Compiler flag to generate shared objects directly from archives.
34499whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34500
34501# Whether the compiler copes with passing no objects directly.
34502compiler_needs_object=$lt_compiler_needs_object_CXX
34503
34504# Create an old-style archive from a shared archive.
34505old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34506
34507# Create a temporary old-style archive to link instead of a shared archive.
34508old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34509
34510# Commands used to build a shared archive.
34511archive_cmds=$lt_archive_cmds_CXX
34512archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34513
34514# Commands used to build a loadable module if different from building
34515# a shared archive.
34516module_cmds=$lt_module_cmds_CXX
34517module_expsym_cmds=$lt_module_expsym_cmds_CXX
34518
34519# Whether we are building with GNU ld or not.
34520with_gnu_ld=$lt_with_gnu_ld_CXX
34521
34522# Flag that allows shared libraries with undefined symbols to be built.
34523allow_undefined_flag=$lt_allow_undefined_flag_CXX
34524
34525# Flag that enforces no undefined symbols.
34526no_undefined_flag=$lt_no_undefined_flag_CXX
34527
34528# Flag to hardcode \$libdir into a binary during linking.
34529# This must work even if \$libdir does not exist
34530hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34531
34532# If ld is used when linking, flag to hardcode \$libdir into a binary
34533# during linking. This must work even if \$libdir does not exist.
34534hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34535
34536# Whether we need a single "-rpath" flag with a separated argument.
34537hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34538
34539# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34540# DIR into the resulting binary.
34541hardcode_direct=$hardcode_direct_CXX
34542
34543# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34544# DIR into the resulting binary and the resulting library dependency is
34545# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34546# library is relocated.
34547hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34548
34549# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34550# into the resulting binary.
34551hardcode_minus_L=$hardcode_minus_L_CXX
34552
34553# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34554# into the resulting binary.
34555hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34556
34557# Set to "yes" if building a shared library automatically hardcodes DIR
34558# into the library and all subsequent libraries and executables linked
34559# against it.
34560hardcode_automatic=$hardcode_automatic_CXX
34561
34562# Set to yes if linker adds runtime paths of dependent libraries
34563# to runtime path list.
34564inherit_rpath=$inherit_rpath_CXX
34565
34566# Whether libtool must link a program against all its dependency libraries.
34567link_all_deplibs=$link_all_deplibs_CXX
34568
34569# Fix the shell variable \$srcfile for the compiler.
34570fix_srcfile_path=$lt_fix_srcfile_path_CXX
34571
34572# Set to "yes" if exported symbols are required.
34573always_export_symbols=$always_export_symbols_CXX
34574
34575# The commands to list exported symbols.
34576export_symbols_cmds=$lt_export_symbols_cmds_CXX
34577
34578# Symbols that should not be listed in the preloaded symbols.
34579exclude_expsyms=$lt_exclude_expsyms_CXX
34580
34581# Symbols that must always be exported.
34582include_expsyms=$lt_include_expsyms_CXX
34583
34584# Commands necessary for linking programs (against libraries) with templates.
34585prelink_cmds=$lt_prelink_cmds_CXX
34586
34587# Specify filename containing input files.
34588file_list_spec=$lt_file_list_spec_CXX
34589
34590# How to hardcode a shared library path into an executable.
34591hardcode_action=$hardcode_action_CXX
34592
34593# The directories searched by this compiler when creating a shared library.
34594compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34595
34596# Dependencies to place before and after the objects being linked to
34597# create a shared library.
34598predep_objects=$lt_predep_objects_CXX
34599postdep_objects=$lt_postdep_objects_CXX
34600predeps=$lt_predeps_CXX
34601postdeps=$lt_postdeps_CXX
34602
34603# The library search path used internally by the compiler when linking
34604# a shared library.
34605compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34606
34607# ### END LIBTOOL TAG CONFIG: CXX
34608_LT_EOF
34609
34610 ;;
34611 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
34612 "Magick-config.in":C) chmod +x magick/Magick-config ;;
34613 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
34614 "Wand-config.in":C) chmod +x wand/Wand-config ;;
34615 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
34616 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
34617
34618 esac
34619done # for ac_tag
34620
34621
cristy8b350f62009-11-15 23:12:43 +000034622as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000034623_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000034624ac_clean_files=$ac_clean_files_save
34625
34626test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000034627 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034628
34629
34630# configure is writing to config.log, and then calls config.status.
34631# config.status does its own redirection, appending to config.log.
34632# Unfortunately, on DOS this fails, as config.log is still kept open
34633# by configure, so config.status won't be able to write to it; its
34634# output is simply discarded. So we exec the FD to /dev/null,
34635# effectively closing config.log, so it can be properly (re)opened and
34636# appended to by config.status. When coming back to configure, we
34637# need to make the FD available again.
34638if test "$no_create" != yes; then
34639 ac_cs_success=:
34640 ac_config_status_args=
34641 test "$silent" = yes &&
34642 ac_config_status_args="$ac_config_status_args --quiet"
34643 exec 5>/dev/null
34644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34645 exec 5>>config.log
34646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34647 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000034648 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000034649fi
34650if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000034651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000034652$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34653fi
34654
34655
34656rm -f magick-version
34657
cristy430a7312010-01-21 20:44:04 +000034658result_dejavu_font_dir='none'
34659if test "${dejavu_font_dir}x" != 'x'; then
34660 result_dejavu_font_dir=$dejavu_font_dir
34661fi
34662
cristy3ed852e2009-09-05 21:47:34 +000034663result_ghostscript_font_dir='none'
34664if test "${ghostscript_font_dir}x" != 'x'; then
34665 result_ghostscript_font_dir=$ghostscript_font_dir
34666fi
34667
34668result_windows_font_dir='none'
34669if test "${windows_font_dir}x" != 'x'; then
34670 result_windows_font_dir=${windows_font_dir}
34671fi
34672
cristy8b350f62009-11-15 23:12:43 +000034673{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000034674ImageMagick is configured as follows. Please verify that this configuration
34675matches your expectations.
34676
34677Host system type: $host
34678Build system type: $build
34679
34680 Option Value
34681-------------------------------------------------------------------------------
34682Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34683Static libraries --enable-static=$enable_static $libtool_build_static_libs
34684Module support --with-modules=$with_modules $with_modules
34685GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34686Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34687High Dynamic Range Imagery
34688 --enable-hdri=$enable_hdri $enable_hdri
34689
34690Delegate Configuration:
34691BZLIB --with-bzlib=$with_bzlib $have_bzlib
34692Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000034693Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000034694DJVU --with-djvu=$with_djvu $have_djvu
34695DPS --with-dps=$with_dps $have_dps
34696FFTW --with-fftw=$with_fftw $have_fftw
34697FlashPIX --with-fpx=$with_fpx $have_fpx
34698FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34699FreeType --with-freetype=$with_freetype $have_freetype
34700GhostPCL None $PCLDelegate ($PCLVersion)
34701GhostXPS None $XPSDelegate ($XPSVersion)
34702Ghostscript None $PSDelegate ($GSVersion)
34703Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34704Ghostscript lib --with-gslib=$with_gslib $have_gslib
34705Graphviz --with-gvc=$with_gvc $have_gvc
34706JBIG --with-jbig=$with_jbig $have_jbig
34707JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34708JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34709LCMS --with-lcms=$with_lcms $have_lcms
34710LQR --with-lqr=$with_lqr $have_lqr
34711Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34712OpenEXR --with-openexr=$with_openexr $have_openexr
34713PERL --with-perl=$with_perl $have_perl
34714PNG --with-png=$with_png $have_png
34715RSVG --with-rsvg=$with_rsvg $have_rsvg
34716TIFF --with-tiff=$with_tiff $have_tiff
34717Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34718WMF --with-wmf=$with_wmf $have_wmf
34719X11 --with-x=$with_x $have_x
34720XML --with-xml=$with_xml $have_xml
34721ZLIB --with-zlib=$with_zlib $have_zlib
34722
34723X11 Configuration:
34724 X_CFLAGS = $X_CFLAGS
34725 X_PRE_LIBS = $X_PRE_LIBS
34726 X_LIBS = $X_LIBS
34727 X_EXTRA_LIBS = $X_EXTRA_LIBS
34728
34729Options used to compile and link:
34730 PREFIX = $PREFIX_DIR
34731 EXEC-PREFIX = $EXEC_PREFIX_DIR
34732 VERSION = $PACKAGE_VERSION
34733 CC = $CC
34734 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034735 CPPFLAGS = $MAGICK_CPPFLAGS
34736 PCFLAGS = $MAGICK_PCFLAGS
34737 DEFS = $DEFS
34738 LDFLAGS = $LDFLAGS
34739 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34740 LIBS = $MAGICK_LIBS
34741 CXX = $CXX
34742 CXXFLAGS = $CXXFLAGS
34743" >&5
34744$as_echo "
34745ImageMagick is configured as follows. Please verify that this configuration
34746matches your expectations.
34747
34748Host system type: $host
34749Build system type: $build
34750
34751 Option Value
34752-------------------------------------------------------------------------------
34753Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34754Static libraries --enable-static=$enable_static $libtool_build_static_libs
34755Module support --with-modules=$with_modules $with_modules
34756GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34757Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34758High Dynamic Range Imagery
34759 --enable-hdri=$enable_hdri $enable_hdri
34760
34761Delegate Configuration:
34762BZLIB --with-bzlib=$with_bzlib $have_bzlib
34763Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000034764Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000034765DJVU --with-djvu=$with_djvu $have_djvu
34766DPS --with-dps=$with_dps $have_dps
34767FFTW --with-fftw=$with_fftw $have_fftw
34768FlashPIX --with-fpx=$with_fpx $have_fpx
34769FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34770FreeType --with-freetype=$with_freetype $have_freetype
34771GhostPCL None $PCLDelegate ($PCLVersion)
34772GhostXPS None $XPSDelegate ($XPSVersion)
34773Ghostscript None $PSDelegate ($GSVersion)
34774Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34775Ghostscript lib --with-gslib=$with_gslib $have_gslib
34776Graphviz --with-gvc=$with_gvc $have_gvc
34777JBIG --with-jbig=$with_jbig $have_jbig
34778JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34779JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34780LCMS --with-lcms=$with_lcms $have_lcms
34781LQR --with-lqr=$with_lqr $have_lqr
34782Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34783OpenEXR --with-openexr=$with_openexr $have_openexr
34784PERL --with-perl=$with_perl $have_perl
34785PNG --with-png=$with_png $have_png
34786RSVG --with-rsvg=$with_rsvg $have_rsvg
34787TIFF --with-tiff=$with_tiff $have_tiff
34788Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34789WMF --with-wmf=$with_wmf $have_wmf
34790X11 --with-x=$with_x $have_x
34791XML --with-xml=$with_xml $have_xml
34792ZLIB --with-zlib=$with_zlib $have_zlib
34793
34794X11 Configuration:
34795 X_CFLAGS = $X_CFLAGS
34796 X_PRE_LIBS = $X_PRE_LIBS
34797 X_LIBS = $X_LIBS
34798 X_EXTRA_LIBS = $X_EXTRA_LIBS
34799
34800Options used to compile and link:
34801 PREFIX = $PREFIX_DIR
34802 EXEC-PREFIX = $EXEC_PREFIX_DIR
34803 VERSION = $PACKAGE_VERSION
34804 CC = $CC
34805 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034806 CPPFLAGS = $MAGICK_CPPFLAGS
34807 PCFLAGS = $MAGICK_PCFLAGS
34808 DEFS = $DEFS
34809 LDFLAGS = $LDFLAGS
34810 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34811 LIBS = $MAGICK_LIBS
34812 CXX = $CXX
34813 CXXFLAGS = $CXXFLAGS
34814" >&6; }