blob: 8c7c671baaf805a160b5433a16944b6100fbbc9a [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
cristybab87c32010-02-09 20:54:22 +00001125MAGICK_LIBRARY_VERSION_INFO
1126MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001127MAGICK_LIBRARY_AGE
1128MAGICK_LIBRARY_REVISION
1129MAGICK_LIBRARY_CURRENT
1130target_os
1131target_vendor
1132target_cpu
1133target
1134host_os
1135host_vendor
1136host_cpu
1137host
1138build_os
1139build_vendor
1140build_cpu
1141build
1142CONFIGURE_ARGS
1143DISTCHECK_CONFIG_FLAGS
1144target_alias
1145host_alias
1146build_alias
1147LIBS
1148ECHO_T
1149ECHO_N
1150ECHO_C
1151DEFS
1152mandir
1153localedir
1154libdir
1155psdir
1156pdfdir
1157dvidir
1158htmldir
1159infodir
1160docdir
1161oldincludedir
1162includedir
1163localstatedir
1164sharedstatedir
1165sysconfdir
1166datadir
1167datarootdir
1168libexecdir
1169sbindir
1170bindir
1171program_transform_name
1172prefix
1173exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001174PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001175PACKAGE_BUGREPORT
1176PACKAGE_STRING
1177PACKAGE_VERSION
1178PACKAGE_TARNAME
1179PACKAGE_NAME
1180PATH_SEPARATOR
1181SHELL'
1182ac_subst_files=''
1183ac_user_opts='
1184enable_option_checking
1185enable_silent_rules
1186enable_dependency_tracking
1187with_gnu_ld
1188with_maximum_compile_warnings
1189with_dmalloc
1190enable_bounds_checking
1191enable_osx_universal_binary
1192with_threads
1193enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001194enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001195enable_largefile
1196enable_shared
1197enable_static
1198with_pic
1199enable_fast_install
1200enable_libtool_lock
1201with_included_ltdl
1202with_ltdl_include
1203with_ltdl_lib
1204enable_ltdl_install
1205with_modules
1206enable_delegate_build
1207enable_deprecated
1208enable_installed
1209enable_cipher
1210enable_embeddable
1211enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001212enable_assert
1213enable_maintainer_mode
1214enable_ccmalloc
1215enable_efence
1216enable_prof
1217enable_gprof
1218enable_gcov
1219with_method_prefix
1220with_quantum_depth
1221with_cache
1222with_frozenpaths
1223with_magick_plus_plus
1224with_perl
1225with_perl_options
1226with_umem
1227with_libstdc
1228with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001229with_x
cristy3ed852e2009-09-05 21:47:34 +00001230with_zlib
1231with_autotrace
1232with_dps
1233with_djvu
cristy430a7312010-01-21 20:44:04 +00001234with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001235with_fftw
1236with_fpx
1237with_fontconfig
1238with_freetype
1239with_gslib
1240with_fontpath
1241with_gs_font_dir
1242with_gvc
1243with_jbig
1244with_jpeg
1245with_jp2
1246with_lcms
1247with_lqr
1248with_openexr
1249with_png
1250with_rsvg
1251with_tiff
1252with_windows_font_dir
1253with_wmf
1254with_xml
1255'
1256 ac_precious_vars='build_alias
1257host_alias
1258target_alias
1259CC
1260CFLAGS
1261LDFLAGS
1262LIBS
1263CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001264CPP
cristy3ed852e2009-09-05 21:47:34 +00001265CXX
1266CXXFLAGS
1267CCC
1268PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001269CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001270XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001271AUTOTRACE_CFLAGS
1272AUTOTRACE_LIBS
1273FONTCONFIG_CFLAGS
1274FONTCONFIG_LIBS
1275GVC_CFLAGS
1276GVC_LIBS
1277LQR_CFLAGS
1278LQR_LIBS
1279OPENEXR_CFLAGS
1280OPENEXR_LIBS
1281RSVG_CFLAGS
1282RSVG_LIBS
1283CAIRO_SVG_CFLAGS
1284CAIRO_SVG_LIBS'
1285
1286
1287# Initialize some variables set by options.
1288ac_init_help=
1289ac_init_version=false
1290ac_unrecognized_opts=
1291ac_unrecognized_sep=
1292# The variables have the same names as the options, with
1293# dashes changed to underlines.
1294cache_file=/dev/null
1295exec_prefix=NONE
1296no_create=
1297no_recursion=
1298prefix=NONE
1299program_prefix=NONE
1300program_suffix=NONE
1301program_transform_name=s,x,x,
1302silent=
1303site=
1304srcdir=
1305verbose=
1306x_includes=NONE
1307x_libraries=NONE
1308
1309# Installation directory options.
1310# These are left unexpanded so users can "make install exec_prefix=/foo"
1311# and all the variables that are supposed to be based on exec_prefix
1312# by default will actually change.
1313# Use braces instead of parens because sh, perl, etc. also accept them.
1314# (The list follows the same order as the GNU Coding Standards.)
1315bindir='${exec_prefix}/bin'
1316sbindir='${exec_prefix}/sbin'
1317libexecdir='${exec_prefix}/libexec'
1318datarootdir='${prefix}/share'
1319datadir='${datarootdir}'
1320sysconfdir='${prefix}/etc'
1321sharedstatedir='${prefix}/com'
1322localstatedir='${prefix}/var'
1323includedir='${prefix}/include'
1324oldincludedir='/usr/include'
1325docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1326infodir='${datarootdir}/info'
1327htmldir='${docdir}'
1328dvidir='${docdir}'
1329pdfdir='${docdir}'
1330psdir='${docdir}'
1331libdir='${exec_prefix}/lib'
1332localedir='${datarootdir}/locale'
1333mandir='${datarootdir}/man'
1334
1335ac_prev=
1336ac_dashdash=
1337for ac_option
1338do
1339 # If the previous option needs an argument, assign it.
1340 if test -n "$ac_prev"; then
1341 eval $ac_prev=\$ac_option
1342 ac_prev=
1343 continue
1344 fi
1345
1346 case $ac_option in
1347 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1348 *) ac_optarg=yes ;;
1349 esac
1350
1351 # Accept the important Cygnus configure options, so we can diagnose typos.
1352
1353 case $ac_dashdash$ac_option in
1354 --)
1355 ac_dashdash=yes ;;
1356
1357 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1358 ac_prev=bindir ;;
1359 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1360 bindir=$ac_optarg ;;
1361
1362 -build | --build | --buil | --bui | --bu)
1363 ac_prev=build_alias ;;
1364 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1365 build_alias=$ac_optarg ;;
1366
1367 -cache-file | --cache-file | --cache-fil | --cache-fi \
1368 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1369 ac_prev=cache_file ;;
1370 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1371 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1372 cache_file=$ac_optarg ;;
1373
1374 --config-cache | -C)
1375 cache_file=config.cache ;;
1376
1377 -datadir | --datadir | --datadi | --datad)
1378 ac_prev=datadir ;;
1379 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1380 datadir=$ac_optarg ;;
1381
1382 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1383 | --dataroo | --dataro | --datar)
1384 ac_prev=datarootdir ;;
1385 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1386 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1387 datarootdir=$ac_optarg ;;
1388
1389 -disable-* | --disable-*)
1390 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001393 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001394 ac_useropt_orig=$ac_useropt
1395 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1397 *"
1398"enable_$ac_useropt"
1399"*) ;;
1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1401 ac_unrecognized_sep=', ';;
1402 esac
1403 eval enable_$ac_useropt=no ;;
1404
1405 -docdir | --docdir | --docdi | --doc | --do)
1406 ac_prev=docdir ;;
1407 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1408 docdir=$ac_optarg ;;
1409
1410 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1411 ac_prev=dvidir ;;
1412 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1413 dvidir=$ac_optarg ;;
1414
1415 -enable-* | --enable-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001419 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1423 *"
1424"enable_$ac_useropt"
1425"*) ;;
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1428 esac
1429 eval enable_$ac_useropt=\$ac_optarg ;;
1430
1431 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1432 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1433 | --exec | --exe | --ex)
1434 ac_prev=exec_prefix ;;
1435 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1436 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1437 | --exec=* | --exe=* | --ex=*)
1438 exec_prefix=$ac_optarg ;;
1439
1440 -gas | --gas | --ga | --g)
1441 # Obsolete; use --with-gas.
1442 with_gas=yes ;;
1443
1444 -help | --help | --hel | --he | -h)
1445 ac_init_help=long ;;
1446 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1447 ac_init_help=recursive ;;
1448 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1449 ac_init_help=short ;;
1450
1451 -host | --host | --hos | --ho)
1452 ac_prev=host_alias ;;
1453 -host=* | --host=* | --hos=* | --ho=*)
1454 host_alias=$ac_optarg ;;
1455
1456 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1457 ac_prev=htmldir ;;
1458 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1459 | --ht=*)
1460 htmldir=$ac_optarg ;;
1461
1462 -includedir | --includedir | --includedi | --included | --include \
1463 | --includ | --inclu | --incl | --inc)
1464 ac_prev=includedir ;;
1465 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1466 | --includ=* | --inclu=* | --incl=* | --inc=*)
1467 includedir=$ac_optarg ;;
1468
1469 -infodir | --infodir | --infodi | --infod | --info | --inf)
1470 ac_prev=infodir ;;
1471 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1472 infodir=$ac_optarg ;;
1473
1474 -libdir | --libdir | --libdi | --libd)
1475 ac_prev=libdir ;;
1476 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1477 libdir=$ac_optarg ;;
1478
1479 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1480 | --libexe | --libex | --libe)
1481 ac_prev=libexecdir ;;
1482 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1483 | --libexe=* | --libex=* | --libe=*)
1484 libexecdir=$ac_optarg ;;
1485
1486 -localedir | --localedir | --localedi | --localed | --locale)
1487 ac_prev=localedir ;;
1488 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1489 localedir=$ac_optarg ;;
1490
1491 -localstatedir | --localstatedir | --localstatedi | --localstated \
1492 | --localstate | --localstat | --localsta | --localst | --locals)
1493 ac_prev=localstatedir ;;
1494 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1495 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1496 localstatedir=$ac_optarg ;;
1497
1498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1499 ac_prev=mandir ;;
1500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1501 mandir=$ac_optarg ;;
1502
1503 -nfp | --nfp | --nf)
1504 # Obsolete; use --without-fp.
1505 with_fp=no ;;
1506
1507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1508 | --no-cr | --no-c | -n)
1509 no_create=yes ;;
1510
1511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1513 no_recursion=yes ;;
1514
1515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1517 | --oldin | --oldi | --old | --ol | --o)
1518 ac_prev=oldincludedir ;;
1519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1522 oldincludedir=$ac_optarg ;;
1523
1524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1525 ac_prev=prefix ;;
1526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1527 prefix=$ac_optarg ;;
1528
1529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1530 | --program-pre | --program-pr | --program-p)
1531 ac_prev=program_prefix ;;
1532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1534 program_prefix=$ac_optarg ;;
1535
1536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1537 | --program-suf | --program-su | --program-s)
1538 ac_prev=program_suffix ;;
1539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1541 program_suffix=$ac_optarg ;;
1542
1543 -program-transform-name | --program-transform-name \
1544 | --program-transform-nam | --program-transform-na \
1545 | --program-transform-n | --program-transform- \
1546 | --program-transform | --program-transfor \
1547 | --program-transfo | --program-transf \
1548 | --program-trans | --program-tran \
1549 | --progr-tra | --program-tr | --program-t)
1550 ac_prev=program_transform_name ;;
1551 -program-transform-name=* | --program-transform-name=* \
1552 | --program-transform-nam=* | --program-transform-na=* \
1553 | --program-transform-n=* | --program-transform-=* \
1554 | --program-transform=* | --program-transfor=* \
1555 | --program-transfo=* | --program-transf=* \
1556 | --program-trans=* | --program-tran=* \
1557 | --progr-tra=* | --program-tr=* | --program-t=*)
1558 program_transform_name=$ac_optarg ;;
1559
1560 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1561 ac_prev=pdfdir ;;
1562 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1563 pdfdir=$ac_optarg ;;
1564
1565 -psdir | --psdir | --psdi | --psd | --ps)
1566 ac_prev=psdir ;;
1567 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1568 psdir=$ac_optarg ;;
1569
1570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1571 | -silent | --silent | --silen | --sile | --sil)
1572 silent=yes ;;
1573
1574 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1575 ac_prev=sbindir ;;
1576 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1577 | --sbi=* | --sb=*)
1578 sbindir=$ac_optarg ;;
1579
1580 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1581 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1582 | --sharedst | --shareds | --shared | --share | --shar \
1583 | --sha | --sh)
1584 ac_prev=sharedstatedir ;;
1585 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1586 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1587 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1588 | --sha=* | --sh=*)
1589 sharedstatedir=$ac_optarg ;;
1590
1591 -site | --site | --sit)
1592 ac_prev=site ;;
1593 -site=* | --site=* | --sit=*)
1594 site=$ac_optarg ;;
1595
1596 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1597 ac_prev=srcdir ;;
1598 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1599 srcdir=$ac_optarg ;;
1600
1601 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1602 | --syscon | --sysco | --sysc | --sys | --sy)
1603 ac_prev=sysconfdir ;;
1604 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1605 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1606 sysconfdir=$ac_optarg ;;
1607
1608 -target | --target | --targe | --targ | --tar | --ta | --t)
1609 ac_prev=target_alias ;;
1610 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1611 target_alias=$ac_optarg ;;
1612
1613 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1614 verbose=yes ;;
1615
1616 -version | --version | --versio | --versi | --vers | -V)
1617 ac_init_version=: ;;
1618
1619 -with-* | --with-*)
1620 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1621 # Reject names that are not valid shell variable names.
1622 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001623 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001624 ac_useropt_orig=$ac_useropt
1625 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1626 case $ac_user_opts in
1627 *"
1628"with_$ac_useropt"
1629"*) ;;
1630 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1631 ac_unrecognized_sep=', ';;
1632 esac
1633 eval with_$ac_useropt=\$ac_optarg ;;
1634
1635 -without-* | --without-*)
1636 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1637 # Reject names that are not valid shell variable names.
1638 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001639 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001640 ac_useropt_orig=$ac_useropt
1641 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1643 *"
1644"with_$ac_useropt"
1645"*) ;;
1646 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1647 ac_unrecognized_sep=', ';;
1648 esac
1649 eval with_$ac_useropt=no ;;
1650
1651 --x)
1652 # Obsolete; use --with-x.
1653 with_x=yes ;;
1654
1655 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1656 | --x-incl | --x-inc | --x-in | --x-i)
1657 ac_prev=x_includes ;;
1658 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1659 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1660 x_includes=$ac_optarg ;;
1661
1662 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1663 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1664 ac_prev=x_libraries ;;
1665 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1666 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1667 x_libraries=$ac_optarg ;;
1668
cristy8b350f62009-11-15 23:12:43 +00001669 -*) as_fn_error "unrecognized option: \`$ac_option'
1670Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001671 ;;
1672
1673 *=*)
1674 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1675 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001676 case $ac_envvar in #(
1677 '' | [0-9]* | *[!_$as_cr_alnum]* )
1678 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1679 esac
cristy3ed852e2009-09-05 21:47:34 +00001680 eval $ac_envvar=\$ac_optarg
1681 export $ac_envvar ;;
1682
1683 *)
1684 # FIXME: should be removed in autoconf 3.0.
1685 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1686 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1687 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1688 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1689 ;;
1690
1691 esac
1692done
1693
1694if test -n "$ac_prev"; then
1695 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001696 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001697fi
1698
1699if test -n "$ac_unrecognized_opts"; then
1700 case $enable_option_checking in
1701 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001702 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001703 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1704 esac
1705fi
1706
1707# Check all directory arguments for consistency.
1708for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1709 datadir sysconfdir sharedstatedir localstatedir includedir \
1710 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1711 libdir localedir mandir
1712do
1713 eval ac_val=\$$ac_var
1714 # Remove trailing slashes.
1715 case $ac_val in
1716 */ )
1717 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1718 eval $ac_var=\$ac_val;;
1719 esac
1720 # Be sure to have absolute directory names.
1721 case $ac_val in
1722 [\\/$]* | ?:[\\/]* ) continue;;
1723 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1724 esac
cristy8b350f62009-11-15 23:12:43 +00001725 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001726done
1727
1728# There might be people who depend on the old broken behavior: `$host'
1729# used to hold the argument of --host etc.
1730# FIXME: To remove some day.
1731build=$build_alias
1732host=$host_alias
1733target=$target_alias
1734
1735# FIXME: To remove some day.
1736if test "x$host_alias" != x; then
1737 if test "x$build_alias" = x; then
1738 cross_compiling=maybe
1739 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1740 If a cross compiler is detected then cross compile mode will be used." >&2
1741 elif test "x$build_alias" != "x$host_alias"; then
1742 cross_compiling=yes
1743 fi
1744fi
1745
1746ac_tool_prefix=
1747test -n "$host_alias" && ac_tool_prefix=$host_alias-
1748
1749test "$silent" = yes && exec 6>/dev/null
1750
1751
1752ac_pwd=`pwd` && test -n "$ac_pwd" &&
1753ac_ls_di=`ls -di .` &&
1754ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001755 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001756test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001757 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001758
1759
1760# Find the source files, if location was not specified.
1761if test -z "$srcdir"; then
1762 ac_srcdir_defaulted=yes
1763 # Try the directory containing this script, then the parent directory.
1764 ac_confdir=`$as_dirname -- "$as_myself" ||
1765$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1766 X"$as_myself" : 'X\(//\)[^/]' \| \
1767 X"$as_myself" : 'X\(//\)$' \| \
1768 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1769$as_echo X"$as_myself" |
1770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1771 s//\1/
1772 q
1773 }
1774 /^X\(\/\/\)[^/].*/{
1775 s//\1/
1776 q
1777 }
1778 /^X\(\/\/\)$/{
1779 s//\1/
1780 q
1781 }
1782 /^X\(\/\).*/{
1783 s//\1/
1784 q
1785 }
1786 s/.*/./; q'`
1787 srcdir=$ac_confdir
1788 if test ! -r "$srcdir/$ac_unique_file"; then
1789 srcdir=..
1790 fi
1791else
1792 ac_srcdir_defaulted=no
1793fi
1794if test ! -r "$srcdir/$ac_unique_file"; then
1795 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001796 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001797fi
1798ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1799ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001800 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001801 pwd)`
1802# When building in place, set srcdir=.
1803if test "$ac_abs_confdir" = "$ac_pwd"; then
1804 srcdir=.
1805fi
1806# Remove unnecessary trailing slashes from srcdir.
1807# Double slashes in file names in object file debugging info
1808# mess up M-x gdb in Emacs.
1809case $srcdir in
1810*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1811esac
1812for ac_var in $ac_precious_vars; do
1813 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1814 eval ac_env_${ac_var}_value=\$${ac_var}
1815 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1816 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1817done
1818
1819#
1820# Report the --help message.
1821#
1822if test "$ac_init_help" = "long"; then
1823 # Omit some internal or obsolete options to make the list less imposing.
1824 # This message is too long to be a string in the A/UX 3.1 sh.
1825 cat <<_ACEOF
cristydc0f0892009-12-29 02:21:55 +00001826\`configure' configures ImageMagick 6.5.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001827
1828Usage: $0 [OPTION]... [VAR=VALUE]...
1829
1830To assign environment variables (e.g., CC, CFLAGS...), specify them as
1831VAR=VALUE. See below for descriptions of some of the useful variables.
1832
1833Defaults for the options are specified in brackets.
1834
1835Configuration:
1836 -h, --help display this help and exit
1837 --help=short display options specific to this package
1838 --help=recursive display the short help of all the included packages
1839 -V, --version display version information and exit
1840 -q, --quiet, --silent do not print \`checking...' messages
1841 --cache-file=FILE cache test results in FILE [disabled]
1842 -C, --config-cache alias for \`--cache-file=config.cache'
1843 -n, --no-create do not create output files
1844 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1845
1846Installation directories:
1847 --prefix=PREFIX install architecture-independent files in PREFIX
1848 [$ac_default_prefix]
1849 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1850 [PREFIX]
1851
1852By default, \`make install' will install all the files in
1853\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1854an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1855for instance \`--prefix=\$HOME'.
1856
1857For better control, use the options below.
1858
1859Fine tuning of the installation directories:
1860 --bindir=DIR user executables [EPREFIX/bin]
1861 --sbindir=DIR system admin executables [EPREFIX/sbin]
1862 --libexecdir=DIR program executables [EPREFIX/libexec]
1863 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1864 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1865 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1866 --libdir=DIR object code libraries [EPREFIX/lib]
1867 --includedir=DIR C header files [PREFIX/include]
1868 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1869 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1870 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1871 --infodir=DIR info documentation [DATAROOTDIR/info]
1872 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1873 --mandir=DIR man documentation [DATAROOTDIR/man]
1874 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1875 --htmldir=DIR html documentation [DOCDIR]
1876 --dvidir=DIR dvi documentation [DOCDIR]
1877 --pdfdir=DIR pdf documentation [DOCDIR]
1878 --psdir=DIR ps documentation [DOCDIR]
1879_ACEOF
1880
1881 cat <<\_ACEOF
1882
1883Program names:
1884 --program-prefix=PREFIX prepend PREFIX to installed program names
1885 --program-suffix=SUFFIX append SUFFIX to installed program names
1886 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1887
1888X features:
1889 --x-includes=DIR X include files are in DIR
1890 --x-libraries=DIR X library files are in DIR
1891
1892System types:
1893 --build=BUILD configure for building on BUILD [guessed]
1894 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1895 --target=TARGET configure for building compilers for TARGET [HOST]
1896_ACEOF
1897fi
1898
1899if test -n "$ac_init_help"; then
1900 case $ac_init_help in
cristydc0f0892009-12-29 02:21:55 +00001901 short | recursive ) echo "Configuration of ImageMagick 6.5.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001902 esac
1903 cat <<\_ACEOF
1904
1905Optional Features:
1906 --disable-option-checking ignore unrecognized --enable/--with options
1907 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1908 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1909 --enable-silent-rules less verbose build output (undo: `make V=1')
1910 --disable-silent-rules verbose build output (undo: `make V=0')
1911 --disable-dependency-tracking speeds up one-time build
1912 --enable-dependency-tracking do not reject slow dependency extractors
1913 --bounds-checking enable run-time bounds-checking
1914 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001915 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001916 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001917 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001918 --disable-largefile omit support for large files
1919 --enable-shared[=PKGS] build shared libraries [default=yes]
1920 --enable-static[=PKGS] build static libraries [default=yes]
1921 --enable-fast-install[=PKGS]
1922 optimize for fast installation [default=yes]
1923 --disable-libtool-lock avoid locking (might break parallel builds)
1924 --enable-ltdl-install install libltdl
1925 --enable-delegate-build look for delegate libraries in build directory
1926 --disable-deprecated exclude deprecated methods in MagickCore and
1927 MagickWand API's
1928 --disable-installed Formally install ImageMagick under PREFIX
1929 --disable-cipher disable enciphering and deciphering image pixels
1930 --enable-embeddable enable self-contained, embeddable,
1931 zero-configuration ImageMagick
1932 --enable-hdri accurately represent the wide range of intensity
1933 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001934 --disable-assert disable assert() statements in build
1935 --enable-maintainer-mode enable make rules and dependencies not useful
1936 (and sometimes confusing) to the casual installer
1937 --enable-ccmalloc enable 'ccmalloc' memory debug support
1938 --enable-efence enable 'efence' memory debug support
1939 --enable-prof enable 'prof' profiling support
1940 --enable-gprof enable 'gprof' profiling support
1941 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001942 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001943
1944Optional Packages:
1945 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1946 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1947 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1948 --without-maximum-compile-warnings
1949 Disable maximum warning verbosity
1950 --with-dmalloc use dmalloc, as in
1951 http://www.dmalloc.com/dmalloc.tar.gz
1952 --without-threads disable threads support
1953 --with-pic try to use only PIC/non-PIC objects [default=use
1954 both]
1955 --with-included-ltdl use the GNU ltdl sources included here
1956 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1957 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1958 --with-modules enable building dynamically loadable modules
1959 --with-method-prefix=PREFIX
1960 prefix MagickCore API methods
1961 --with-quantum-depth=DEPTH
1962 number of bits in a pixel quantum (default 16)
1963 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1964 memory)
1965 --with-frozenpaths freeze delegate paths
1966 --without-magick-plus-plus
1967 disable build/install of Magick++
1968 --with-perl enable build/install of PerlMagick
1969 --with-perl-options=OPTIONS
1970 options to pass on command-line when generating
1971 PerlMagick's build file
1972 --with-umem enable umem memory allocation library support
1973 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1974 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001975 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001976 --without-zlib disable ZLIB support
1977 --with-autotrace enable autotrace support
1978 --without-dps disable Display Postscript support
1979 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001980 --with-dejavu-font-dir=DIR
1981 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001982 --without-fftw disable FFTW support
1983 --without-fpx disable FlashPIX support
1984 --without-fontconfig disable fontconfig support
1985 --without-freetype disable Freetype support
1986 --without-gslib enable Ghostscript library support
1987 --with-fontpath=DIR prepend to default font search path
1988 --with-gs-font-dir=DIR Ghostscript font directory
1989 --without-gvc disable GVC support
1990 --without-jbig disable JBIG support
1991 --without-jpeg disable JPEG support
1992 --without-jp2 disable JPEG-2000 support
1993 --without-lcms disable LCMS support
1994 --without-lqr disable Liquid Rescale support (experimental)
1995 --without-openexr disable OpenEXR support
1996 --without-png disable PNG support
1997 --without-rsvg disable RSVG support
1998 --without-tiff disable TIFF support
1999 --with-windows-font-dir=DIR
2000 directory containing MS-Windows fonts
2001 --without-wmf disable WMF support
2002 --without-xml disable XML support
2003
2004Some influential environment variables:
2005 CC C compiler command
2006 CFLAGS C compiler flags
2007 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2008 nonstandard directory <lib dir>
2009 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002010 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002011 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002012 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002013 CXX C++ compiler command
2014 CXXFLAGS C++ compiler flags
2015 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002016 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002017 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002018 AUTOTRACE_CFLAGS
2019 C compiler flags for AUTOTRACE, overriding pkg-config
2020 AUTOTRACE_LIBS
2021 linker flags for AUTOTRACE, overriding pkg-config
2022 FONTCONFIG_CFLAGS
2023 C compiler flags for FONTCONFIG, overriding pkg-config
2024 FONTCONFIG_LIBS
2025 linker flags for FONTCONFIG, overriding pkg-config
2026 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2027 GVC_LIBS linker flags for GVC, overriding pkg-config
2028 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2029 LQR_LIBS linker flags for LQR, overriding pkg-config
2030 OPENEXR_CFLAGS
2031 C compiler flags for OPENEXR, overriding pkg-config
2032 OPENEXR_LIBS
2033 linker flags for OPENEXR, overriding pkg-config
2034 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2035 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2036 CAIRO_SVG_CFLAGS
2037 C compiler flags for CAIRO_SVG, overriding pkg-config
2038 CAIRO_SVG_LIBS
2039 linker flags for CAIRO_SVG, overriding pkg-config
2040
2041Use these variables to override the choices made by `configure' or to help
2042it to find libraries and programs with nonstandard names/locations.
2043
2044Report bugs to <http://www.imagemagick.org>.
2045_ACEOF
2046ac_status=$?
2047fi
2048
2049if test "$ac_init_help" = "recursive"; then
2050 # If there are subdirs, report their specific --help.
2051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2052 test -d "$ac_dir" ||
2053 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2054 continue
2055 ac_builddir=.
2056
2057case "$ac_dir" in
2058.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2059*)
2060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2061 # A ".." for each directory in $ac_dir_suffix.
2062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2063 case $ac_top_builddir_sub in
2064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2066 esac ;;
2067esac
2068ac_abs_top_builddir=$ac_pwd
2069ac_abs_builddir=$ac_pwd$ac_dir_suffix
2070# for backward compatibility:
2071ac_top_builddir=$ac_top_build_prefix
2072
2073case $srcdir in
2074 .) # We are building in place.
2075 ac_srcdir=.
2076 ac_top_srcdir=$ac_top_builddir_sub
2077 ac_abs_top_srcdir=$ac_pwd ;;
2078 [\\/]* | ?:[\\/]* ) # Absolute name.
2079 ac_srcdir=$srcdir$ac_dir_suffix;
2080 ac_top_srcdir=$srcdir
2081 ac_abs_top_srcdir=$srcdir ;;
2082 *) # Relative name.
2083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2084 ac_top_srcdir=$ac_top_build_prefix$srcdir
2085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2086esac
2087ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2088
2089 cd "$ac_dir" || { ac_status=$?; continue; }
2090 # Check for guested configure.
2091 if test -f "$ac_srcdir/configure.gnu"; then
2092 echo &&
2093 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2094 elif test -f "$ac_srcdir/configure"; then
2095 echo &&
2096 $SHELL "$ac_srcdir/configure" --help=recursive
2097 else
2098 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2099 fi || ac_status=$?
2100 cd "$ac_pwd" || { ac_status=$?; break; }
2101 done
2102fi
2103
2104test -n "$ac_init_help" && exit $ac_status
2105if $ac_init_version; then
2106 cat <<\_ACEOF
cristydc0f0892009-12-29 02:21:55 +00002107ImageMagick configure 6.5.9
cristycd4c5312009-11-22 01:19:08 +00002108generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002109
cristy8b350f62009-11-15 23:12:43 +00002110Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002111This configure script is free software; the Free Software Foundation
2112gives unlimited permission to copy, distribute and modify it.
2113_ACEOF
2114 exit
2115fi
cristy8b350f62009-11-15 23:12:43 +00002116
2117## ------------------------ ##
2118## Autoconf initialization. ##
2119## ------------------------ ##
2120
2121# ac_fn_c_try_compile LINENO
2122# --------------------------
2123# Try to compile conftest.$ac_ext, and return whether this succeeded.
2124ac_fn_c_try_compile ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 rm -f conftest.$ac_objext
2128 if { { ac_try="$ac_compile"
2129case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132esac
2133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134$as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_compile") 2>conftest.err
2136 ac_status=$?
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2141 fi
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } && {
2144 test -z "$ac_c_werror_flag" ||
2145 test ! -s conftest.err
2146 } && test -s conftest.$ac_objext; then :
2147 ac_retval=0
2148else
2149 $as_echo "$as_me: failed program was:" >&5
2150sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 ac_retval=1
2153fi
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002155 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002156
2157} # ac_fn_c_try_compile
2158
cristy95646052009-11-28 23:05:30 +00002159# ac_fn_c_try_cpp LINENO
2160# ----------------------
2161# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2162ac_fn_c_try_cpp ()
2163{
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 if { { ac_try="$ac_cpp conftest.$ac_ext"
2166case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169esac
2170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171$as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2173 ac_status=$?
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2178 fi
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } >/dev/null && {
2181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2182 test ! -s conftest.err
2183 }; then :
2184 ac_retval=0
2185else
2186 $as_echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 ac_retval=1
2190fi
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192 as_fn_set_status $ac_retval
2193
2194} # ac_fn_c_try_cpp
2195
cristy8b350f62009-11-15 23:12:43 +00002196# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2197# -------------------------------------------------------
2198# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2199# the include files in INCLUDES and setting the cache variable VAR
2200# accordingly.
2201ac_fn_c_check_header_mongrel ()
2202{
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206$as_echo_n "checking for $2... " >&6; }
2207if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 $as_echo_n "(cached) " >&6
2209fi
2210eval ac_res=\$$3
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212$as_echo "$ac_res" >&6; }
2213else
2214 # Is the header compilable?
2215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2216$as_echo_n "checking $2 usability... " >&6; }
2217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h. */
2219$4
2220#include <$2>
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_header_compiler=yes
2224else
2225 ac_header_compiler=no
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2229$as_echo "$ac_header_compiler" >&6; }
2230
2231# Is the header present?
2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2233$as_echo_n "checking $2 presence... " >&6; }
2234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h. */
2236#include <$2>
2237_ACEOF
2238if ac_fn_c_try_cpp "$LINENO"; then :
2239 ac_header_preproc=yes
2240else
2241 ac_header_preproc=no
2242fi
2243rm -f conftest.err conftest.$ac_ext
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2245$as_echo "$ac_header_preproc" >&6; }
2246
2247# So? What about this header?
2248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2249 yes:no: )
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2251$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2253$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2254 ;;
2255 no:yes:* )
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2257$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2259$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2261$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2263$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2266( cat <<\_ASBOX
2267## ----------------------------------------- ##
2268## Report this to http://www.imagemagick.org ##
2269## ----------------------------------------- ##
2270_ASBOX
2271 ) | sed "s/^/$as_me: WARNING: /" >&2
2272 ;;
2273esac
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275$as_echo_n "checking for $2... " >&6; }
2276if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2278else
2279 eval "$3=\$ac_header_compiler"
2280fi
2281eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283$as_echo "$ac_res" >&6; }
2284fi
2285 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2286
2287} # ac_fn_c_check_header_mongrel
2288
2289# ac_fn_c_try_run LINENO
2290# ----------------------
2291# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2292# that executables *can* be run.
2293ac_fn_c_try_run ()
2294{
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 if { { ac_try="$ac_link"
2297case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300esac
2301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302$as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_link") 2>&5
2304 ac_status=$?
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2307 { { case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310esac
2311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312$as_echo "$ac_try_echo"; } >&5
2313 (eval "$ac_try") 2>&5
2314 ac_status=$?
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316 test $ac_status = 0; }; }; then :
2317 ac_retval=0
2318else
2319 $as_echo "$as_me: program exited with status $ac_status" >&5
2320 $as_echo "$as_me: failed program was:" >&5
2321sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 ac_retval=$ac_status
2324fi
2325 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2326 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002327 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002328
2329} # ac_fn_c_try_run
2330
2331# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2332# -------------------------------------------------------
2333# Tests whether HEADER exists and can be compiled using the include files in
2334# INCLUDES, setting the cache variable VAR accordingly.
2335ac_fn_c_check_header_compile ()
2336{
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339$as_echo_n "checking for $2... " >&6; }
2340if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2341 $as_echo_n "(cached) " >&6
2342else
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344/* end confdefs.h. */
2345$4
2346#include <$2>
2347_ACEOF
2348if ac_fn_c_try_compile "$LINENO"; then :
2349 eval "$3=yes"
2350else
2351 eval "$3=no"
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354fi
2355eval ac_res=\$$3
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357$as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359
2360} # ac_fn_c_check_header_compile
2361
cristya0b81c32010-01-22 02:54:33 +00002362# ac_fn_cxx_try_compile LINENO
2363# ----------------------------
2364# Try to compile conftest.$ac_ext, and return whether this succeeded.
2365ac_fn_cxx_try_compile ()
2366{
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 rm -f conftest.$ac_objext
2369 if { { ac_try="$ac_compile"
2370case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373esac
2374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2375$as_echo "$ac_try_echo"; } >&5
2376 (eval "$ac_compile") 2>conftest.err
2377 ac_status=$?
2378 if test -s conftest.err; then
2379 grep -v '^ *+' conftest.err >conftest.er1
2380 cat conftest.er1 >&5
2381 mv -f conftest.er1 conftest.err
2382 fi
2383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2384 test $ac_status = 0; } && {
2385 test -z "$ac_cxx_werror_flag" ||
2386 test ! -s conftest.err
2387 } && test -s conftest.$ac_objext; then :
2388 ac_retval=0
2389else
2390 $as_echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 ac_retval=1
2394fi
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396 as_fn_set_status $ac_retval
2397
2398} # ac_fn_cxx_try_compile
2399
cristy8b350f62009-11-15 23:12:43 +00002400# ac_fn_c_try_link LINENO
2401# -----------------------
2402# Try to link conftest.$ac_ext, and return whether this succeeded.
2403ac_fn_c_try_link ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413$as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest$ac_exeext
2428 }; then :
2429 ac_retval=0
2430else
2431 $as_echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 ac_retval=1
2435fi
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002442 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002443
2444} # ac_fn_c_try_link
2445
2446# ac_fn_c_check_func LINENO FUNC VAR
2447# ----------------------------------
2448# Tests whether FUNC exists, setting the cache variable VAR accordingly
2449ac_fn_c_check_func ()
2450{
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453$as_echo_n "checking for $2... " >&6; }
2454if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458/* end confdefs.h. */
2459/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2461#define $2 innocuous_$2
2462
2463/* System header to define __stub macros and hopefully few prototypes,
2464 which can conflict with char $2 (); below.
2465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2466 <limits.h> exists even on freestanding compilers. */
2467
2468#ifdef __STDC__
2469# include <limits.h>
2470#else
2471# include <assert.h>
2472#endif
2473
2474#undef $2
2475
2476/* Override any GCC internal prototype to avoid an error.
2477 Use char because int might match the return type of a GCC
2478 builtin and then its argument prototype would still apply. */
2479#ifdef __cplusplus
2480extern "C"
2481#endif
2482char $2 ();
2483/* The GNU C library defines this for functions which it implements
2484 to always fail with ENOSYS. Some functions are actually named
2485 something starting with __ and the normal name is an alias. */
2486#if defined __stub_$2 || defined __stub___$2
2487choke me
2488#endif
2489
2490int
2491main ()
2492{
2493return $2 ();
2494 ;
2495 return 0;
2496}
2497_ACEOF
2498if ac_fn_c_try_link "$LINENO"; then :
2499 eval "$3=yes"
2500else
2501 eval "$3=no"
2502fi
2503rm -f core conftest.err conftest.$ac_objext \
2504 conftest$ac_exeext conftest.$ac_ext
2505fi
2506eval ac_res=\$$3
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508$as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510
2511} # ac_fn_c_check_func
2512
2513# ac_fn_cxx_try_cpp LINENO
2514# ------------------------
2515# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2516ac_fn_cxx_try_cpp ()
2517{
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 if { { ac_try="$ac_cpp conftest.$ac_ext"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2525$as_echo "$ac_try_echo"; } >&5
2526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2527 ac_status=$?
2528 if test -s conftest.err; then
2529 grep -v '^ *+' conftest.err >conftest.er1
2530 cat conftest.er1 >&5
2531 mv -f conftest.er1 conftest.err
2532 fi
2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2534 test $ac_status = 0; } >/dev/null && {
2535 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2536 test ! -s conftest.err
2537 }; then :
2538 ac_retval=0
2539else
2540 $as_echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 ac_retval=1
2544fi
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002546 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002547
2548} # ac_fn_cxx_try_cpp
2549
2550# ac_fn_cxx_try_link LINENO
2551# -------------------------
2552# Try to link conftest.$ac_ext, and return whether this succeeded.
2553ac_fn_cxx_try_link ()
2554{
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 rm -f conftest.$ac_objext conftest$ac_exeext
2557 if { { ac_try="$ac_link"
2558case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561esac
2562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563$as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_link") 2>conftest.err
2565 ac_status=$?
2566 if test -s conftest.err; then
2567 grep -v '^ *+' conftest.err >conftest.er1
2568 cat conftest.er1 >&5
2569 mv -f conftest.er1 conftest.err
2570 fi
2571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2572 test $ac_status = 0; } && {
2573 test -z "$ac_cxx_werror_flag" ||
2574 test ! -s conftest.err
2575 } && test -s conftest$ac_exeext && {
2576 test "$cross_compiling" = yes ||
2577 $as_test_x conftest$ac_exeext
2578 }; then :
2579 ac_retval=0
2580else
2581 $as_echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 ac_retval=1
2585fi
2586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2588 # interfere with the next link command; also delete a directory that is
2589 # left behind by Apple's compiler. We do this before executing the actions.
2590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002592 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002593
2594} # ac_fn_cxx_try_link
2595
2596# ac_fn_c_check_decl LINENO SYMBOL VAR
2597# ------------------------------------
2598# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2599ac_fn_c_check_decl ()
2600{
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2603$as_echo_n "checking whether $2 is declared... " >&6; }
2604if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2605 $as_echo_n "(cached) " >&6
2606else
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608/* end confdefs.h. */
2609$4
2610int
2611main ()
2612{
2613#ifndef $2
2614 (void) $2;
2615#endif
2616
2617 ;
2618 return 0;
2619}
2620_ACEOF
2621if ac_fn_c_try_compile "$LINENO"; then :
2622 eval "$3=yes"
2623else
2624 eval "$3=no"
2625fi
2626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627fi
2628eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630$as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2632
2633} # ac_fn_c_check_decl
2634
2635# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2636# -------------------------------------------
2637# Tests whether TYPE exists after having included INCLUDES, setting cache
2638# variable VAR accordingly.
2639ac_fn_c_check_type ()
2640{
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2643$as_echo_n "checking for $2... " >&6; }
2644if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2645 $as_echo_n "(cached) " >&6
2646else
2647 eval "$3=no"
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649/* end confdefs.h. */
2650$4
2651int
2652main ()
2653{
2654if (sizeof ($2))
2655 return 0;
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_compile "$LINENO"; then :
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h. */
2663$4
2664int
2665main ()
2666{
2667if (sizeof (($2)))
2668 return 0;
2669 ;
2670 return 0;
2671}
2672_ACEOF
2673if ac_fn_c_try_compile "$LINENO"; then :
2674
2675else
2676 eval "$3=yes"
2677fi
2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679fi
2680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681fi
2682eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684$as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686
2687} # ac_fn_c_check_type
2688
2689# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2690# --------------------------------------------
2691# Tries to find the compile-time value of EXPR in a program that includes
2692# INCLUDES, setting VAR accordingly. Returns whether the value could be
2693# computed
2694ac_fn_c_compute_int ()
2695{
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 if test "$cross_compiling" = yes; then
2698 # Depending upon the size, compute the lo and hi bounds.
2699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700/* end confdefs.h. */
2701$4
2702int
2703main ()
2704{
2705static int test_array [1 - 2 * !(($2) >= 0)];
2706test_array [0] = 0
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713 ac_lo=0 ac_mid=0
2714 while :; do
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716/* end confdefs.h. */
2717$4
2718int
2719main ()
2720{
2721static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2722test_array [0] = 0
2723
2724 ;
2725 return 0;
2726}
2727_ACEOF
2728if ac_fn_c_try_compile "$LINENO"; then :
2729 ac_hi=$ac_mid; break
2730else
2731 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2732 if test $ac_lo -le $ac_mid; then
2733 ac_lo= ac_hi=
2734 break
2735 fi
2736 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 done
2740else
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742/* end confdefs.h. */
2743$4
2744int
2745main ()
2746{
2747static int test_array [1 - 2 * !(($2) < 0)];
2748test_array [0] = 0
2749
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754if ac_fn_c_try_compile "$LINENO"; then :
2755 ac_hi=-1 ac_mid=-1
2756 while :; do
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758/* end confdefs.h. */
2759$4
2760int
2761main ()
2762{
2763static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2764test_array [0] = 0
2765
2766 ;
2767 return 0;
2768}
2769_ACEOF
2770if ac_fn_c_try_compile "$LINENO"; then :
2771 ac_lo=$ac_mid; break
2772else
2773 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2774 if test $ac_mid -le $ac_hi; then
2775 ac_lo= ac_hi=
2776 break
2777 fi
2778 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2779fi
2780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 done
2782else
2783 ac_lo= ac_hi=
2784fi
2785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786fi
2787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788# Binary search between lo and hi bounds.
2789while test "x$ac_lo" != "x$ac_hi"; do
2790 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792/* end confdefs.h. */
2793$4
2794int
2795main ()
2796{
2797static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2798test_array [0] = 0
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_compile "$LINENO"; then :
2805 ac_hi=$ac_mid
2806else
2807 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2808fi
2809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810done
2811case $ac_lo in #((
2812?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2813'') ac_retval=1 ;;
2814esac
2815 else
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819static long int longval () { return $2; }
2820static unsigned long int ulongval () { return $2; }
2821#include <stdio.h>
2822#include <stdlib.h>
2823int
2824main ()
2825{
2826
2827 FILE *f = fopen ("conftest.val", "w");
2828 if (! f)
2829 return 1;
2830 if (($2) < 0)
2831 {
2832 long int i = longval ();
2833 if (i != ($2))
2834 return 1;
2835 fprintf (f, "%ld", i);
2836 }
2837 else
2838 {
2839 unsigned long int i = ulongval ();
2840 if (i != ($2))
2841 return 1;
2842 fprintf (f, "%lu", i);
2843 }
2844 /* Do not output a trailing newline, as this causes \r\n confusion
2845 on some platforms. */
2846 return ferror (f) || fclose (f) != 0;
2847
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852if ac_fn_c_try_run "$LINENO"; then :
2853 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2854else
2855 ac_retval=1
2856fi
2857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2858 conftest.$ac_objext conftest.beam conftest.$ac_ext
2859rm -f conftest.val
2860
2861 fi
2862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002863 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002864
2865} # ac_fn_c_compute_int
2866
2867# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2868# ---------------------------------------------------------
2869# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2870# the include files in INCLUDES and setting the cache variable VAR
2871# accordingly.
2872ac_fn_cxx_check_header_mongrel ()
2873{
2874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2877$as_echo_n "checking for $2... " >&6; }
2878if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2879 $as_echo_n "(cached) " >&6
2880fi
2881eval ac_res=\$$3
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2883$as_echo "$ac_res" >&6; }
2884else
2885 # Is the header compilable?
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2887$as_echo_n "checking $2 usability... " >&6; }
2888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890$4
2891#include <$2>
2892_ACEOF
2893if ac_fn_cxx_try_compile "$LINENO"; then :
2894 ac_header_compiler=yes
2895else
2896 ac_header_compiler=no
2897fi
2898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2900$as_echo "$ac_header_compiler" >&6; }
2901
2902# Is the header present?
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2904$as_echo_n "checking $2 presence... " >&6; }
2905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
2907#include <$2>
2908_ACEOF
2909if ac_fn_cxx_try_cpp "$LINENO"; then :
2910 ac_header_preproc=yes
2911else
2912 ac_header_preproc=no
2913fi
2914rm -f conftest.err conftest.$ac_ext
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2916$as_echo "$ac_header_preproc" >&6; }
2917
2918# So? What about this header?
2919case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2920 yes:no: )
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2922$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2925 ;;
2926 no:yes:* )
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2928$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2930$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2932$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2934$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2937( cat <<\_ASBOX
2938## ----------------------------------------- ##
2939## Report this to http://www.imagemagick.org ##
2940## ----------------------------------------- ##
2941_ASBOX
2942 ) | sed "s/^/$as_me: WARNING: /" >&2
2943 ;;
2944esac
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2946$as_echo_n "checking for $2... " >&6; }
2947if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2948 $as_echo_n "(cached) " >&6
2949else
2950 eval "$3=\$ac_header_compiler"
2951fi
2952eval ac_res=\$$3
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2954$as_echo "$ac_res" >&6; }
2955fi
2956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2957
2958} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002959cat >config.log <<_ACEOF
2960This file contains any messages produced by compilers while
2961running configure, to aid debugging if configure makes a mistake.
2962
cristydc0f0892009-12-29 02:21:55 +00002963It was created by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +00002964generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002965
2966 $ $0 $@
2967
2968_ACEOF
2969exec 5>>config.log
2970{
2971cat <<_ASUNAME
2972## --------- ##
2973## Platform. ##
2974## --------- ##
2975
2976hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2977uname -m = `(uname -m) 2>/dev/null || echo unknown`
2978uname -r = `(uname -r) 2>/dev/null || echo unknown`
2979uname -s = `(uname -s) 2>/dev/null || echo unknown`
2980uname -v = `(uname -v) 2>/dev/null || echo unknown`
2981
2982/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2983/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2984
2985/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2986/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2987/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2988/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2989/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2990/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2991/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2992
2993_ASUNAME
2994
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003000 $as_echo "PATH: $as_dir"
3001 done
cristy3ed852e2009-09-05 21:47:34 +00003002IFS=$as_save_IFS
3003
3004} >&5
3005
3006cat >&5 <<_ACEOF
3007
3008
3009## ----------- ##
3010## Core tests. ##
3011## ----------- ##
3012
3013_ACEOF
3014
3015
3016# Keep a trace of the command line.
3017# Strip out --no-create and --no-recursion so they do not pile up.
3018# Strip out --silent because we don't want to record it for future runs.
3019# Also quote any args containing shell meta-characters.
3020# Make two passes to allow for proper duplicate-argument suppression.
3021ac_configure_args=
3022ac_configure_args0=
3023ac_configure_args1=
3024ac_must_keep_next=false
3025for ac_pass in 1 2
3026do
3027 for ac_arg
3028 do
3029 case $ac_arg in
3030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3032 | -silent | --silent | --silen | --sile | --sil)
3033 continue ;;
3034 *\'*)
3035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3036 esac
3037 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003039 2)
cristy8b350f62009-11-15 23:12:43 +00003040 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003041 if test $ac_must_keep_next = true; then
3042 ac_must_keep_next=false # Got value, back to normal.
3043 else
3044 case $ac_arg in
3045 *=* | --config-cache | -C | -disable-* | --disable-* \
3046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3048 | -with-* | --with-* | -without-* | --without-* | --x)
3049 case "$ac_configure_args0 " in
3050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3051 esac
3052 ;;
3053 -* ) ac_must_keep_next=true ;;
3054 esac
3055 fi
cristy8b350f62009-11-15 23:12:43 +00003056 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003057 ;;
3058 esac
3059 done
3060done
cristy8b350f62009-11-15 23:12:43 +00003061{ ac_configure_args0=; unset ac_configure_args0;}
3062{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003063
3064# When interrupted or exit'd, cleanup temporary files, and complete
3065# config.log. We remove comments because anyway the quotes in there
3066# would cause problems or look ugly.
3067# WARNING: Use '\'' to represent an apostrophe within the trap.
3068# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3069trap 'exit_status=$?
3070 # Save into config.log some information that might help in debugging.
3071 {
3072 echo
3073
3074 cat <<\_ASBOX
3075## ---------------- ##
3076## Cache variables. ##
3077## ---------------- ##
3078_ASBOX
3079 echo
3080 # The following way of writing the cache mishandles newlines in values,
3081(
3082 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3083 eval ac_val=\$$ac_var
3084 case $ac_val in #(
3085 *${as_nl}*)
3086 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3089 esac
3090 case $ac_var in #(
3091 _ | IFS | as_nl) ;; #(
3092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003093 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003094 esac ;;
3095 esac
3096 done
3097 (set) 2>&1 |
3098 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3099 *${as_nl}ac_space=\ *)
3100 sed -n \
3101 "s/'\''/'\''\\\\'\'''\''/g;
3102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3103 ;; #(
3104 *)
3105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3106 ;;
3107 esac |
3108 sort
3109)
3110 echo
3111
3112 cat <<\_ASBOX
3113## ----------------- ##
3114## Output variables. ##
3115## ----------------- ##
3116_ASBOX
3117 echo
3118 for ac_var in $ac_subst_vars
3119 do
3120 eval ac_val=\$$ac_var
3121 case $ac_val in
3122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3123 esac
3124 $as_echo "$ac_var='\''$ac_val'\''"
3125 done | sort
3126 echo
3127
3128 if test -n "$ac_subst_files"; then
3129 cat <<\_ASBOX
3130## ------------------- ##
3131## File substitutions. ##
3132## ------------------- ##
3133_ASBOX
3134 echo
3135 for ac_var in $ac_subst_files
3136 do
3137 eval ac_val=\$$ac_var
3138 case $ac_val in
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3140 esac
3141 $as_echo "$ac_var='\''$ac_val'\''"
3142 done | sort
3143 echo
3144 fi
3145
3146 if test -s confdefs.h; then
3147 cat <<\_ASBOX
3148## ----------- ##
3149## confdefs.h. ##
3150## ----------- ##
3151_ASBOX
3152 echo
3153 cat confdefs.h
3154 echo
3155 fi
3156 test "$ac_signal" != 0 &&
3157 $as_echo "$as_me: caught signal $ac_signal"
3158 $as_echo "$as_me: exit $exit_status"
3159 } >&5
3160 rm -f core *.core core.conftest.* &&
3161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3162 exit $exit_status
3163' 0
3164for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003166done
3167ac_signal=0
3168
3169# confdefs.h avoids OS command line length limits that DEFS can exceed.
3170rm -f -r conftest* confdefs.h
3171
cristy8b350f62009-11-15 23:12:43 +00003172$as_echo "/* confdefs.h */" > confdefs.h
3173
cristy3ed852e2009-09-05 21:47:34 +00003174# Predefined preprocessor variables.
3175
3176cat >>confdefs.h <<_ACEOF
3177#define PACKAGE_NAME "$PACKAGE_NAME"
3178_ACEOF
3179
cristy3ed852e2009-09-05 21:47:34 +00003180cat >>confdefs.h <<_ACEOF
3181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3182_ACEOF
3183
cristy3ed852e2009-09-05 21:47:34 +00003184cat >>confdefs.h <<_ACEOF
3185#define PACKAGE_VERSION "$PACKAGE_VERSION"
3186_ACEOF
3187
cristy3ed852e2009-09-05 21:47:34 +00003188cat >>confdefs.h <<_ACEOF
3189#define PACKAGE_STRING "$PACKAGE_STRING"
3190_ACEOF
3191
cristy3ed852e2009-09-05 21:47:34 +00003192cat >>confdefs.h <<_ACEOF
3193#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3194_ACEOF
3195
cristy8b350f62009-11-15 23:12:43 +00003196cat >>confdefs.h <<_ACEOF
3197#define PACKAGE_URL "$PACKAGE_URL"
3198_ACEOF
3199
cristy3ed852e2009-09-05 21:47:34 +00003200
3201# Let the site file select an alternate cache file if it wants to.
3202# Prefer an explicitly selected file to automatically selected ones.
3203ac_site_file1=NONE
3204ac_site_file2=NONE
3205if test -n "$CONFIG_SITE"; then
3206 ac_site_file1=$CONFIG_SITE
3207elif test "x$prefix" != xNONE; then
3208 ac_site_file1=$prefix/share/config.site
3209 ac_site_file2=$prefix/etc/config.site
3210else
3211 ac_site_file1=$ac_default_prefix/share/config.site
3212 ac_site_file2=$ac_default_prefix/etc/config.site
3213fi
3214for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3215do
3216 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003219$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3220 sed 's/^/| /' "$ac_site_file" >&5
3221 . "$ac_site_file"
3222 fi
3223done
3224
3225if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003226 # Some versions of bash will fail to source /dev/null (special files
3227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003230$as_echo "$as_me: loading cache $cache_file" >&6;}
3231 case $cache_file in
3232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3233 *) . "./$cache_file";;
3234 esac
3235 fi
3236else
cristy8b350f62009-11-15 23:12:43 +00003237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003238$as_echo "$as_me: creating cache $cache_file" >&6;}
3239 >$cache_file
3240fi
3241
cristycd4c5312009-11-22 01:19:08 +00003242as_fn_append ac_header_list " stdlib.h"
3243as_fn_append ac_header_list " unistd.h"
3244as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003245# Check that the precious variables saved in the cache have kept the same
3246# value.
3247ac_cache_corrupted=false
3248for ac_var in $ac_precious_vars; do
3249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3250 eval ac_new_set=\$ac_env_${ac_var}_set
3251 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3252 eval ac_new_val=\$ac_env_${ac_var}_value
3253 case $ac_old_set,$ac_new_set in
3254 set,)
cristy8b350f62009-11-15 23:12:43 +00003255 { $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 +00003256$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3257 ac_cache_corrupted=: ;;
3258 ,set)
cristy8b350f62009-11-15 23:12:43 +00003259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003260$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3261 ac_cache_corrupted=: ;;
3262 ,);;
3263 *)
3264 if test "x$ac_old_val" != "x$ac_new_val"; then
3265 # differences in whitespace do not lead to failure.
3266 ac_old_val_w=`echo x $ac_old_val`
3267 ac_new_val_w=`echo x $ac_new_val`
3268 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003270$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3271 ac_cache_corrupted=:
3272 else
cristy8b350f62009-11-15 23:12:43 +00003273 { $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 +00003274$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3275 eval $ac_var=\$ac_old_val
3276 fi
cristy8b350f62009-11-15 23:12:43 +00003277 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003278$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003279 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003280$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3281 fi;;
3282 esac
3283 # Pass precious variables to config.status.
3284 if test "$ac_new_set" = set; then
3285 case $ac_new_val in
3286 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3287 *) ac_arg=$ac_var=$ac_new_val ;;
3288 esac
3289 case " $ac_configure_args " in
3290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003291 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003292 esac
3293 fi
3294done
3295if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003299$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003300 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003301fi
cristy8b350f62009-11-15 23:12:43 +00003302## -------------------- ##
3303## Main body of script. ##
3304## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003305
3306ac_ext=c
3307ac_cpp='$CPP $CPPFLAGS'
3308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312
3313
3314ac_aux_dir=
3315for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003316 for ac_t in install-sh install.sh shtool; do
3317 if test -f "$ac_dir/$ac_t"; then
3318 ac_aux_dir=$ac_dir
3319 ac_install_sh="$ac_aux_dir/$ac_t -c"
3320 break 2
3321 fi
3322 done
cristy3ed852e2009-09-05 21:47:34 +00003323done
3324if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003325 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003326fi
3327
3328# These three variables are undocumented and unsupported,
3329# and are intended to be withdrawn in a future Autoconf release.
3330# They can cause serious problems if a builder's source tree is in a directory
3331# whose full name contains unusual characters.
3332ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3333ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3334ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3335
3336
3337
3338
3339ac_config_headers="$ac_config_headers config/config.h"
3340
3341ac_config_commands="$ac_config_commands magick/magick-config.h"
3342
cristy430a7312010-01-21 20:44:04 +00003343ac_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 +00003344
3345
3346#
3347# Save initial user-tunable values
3348#
3349USER_LIBS=$LIBS
3350for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3351 eval isset=\${$var+set}
3352 if test "$isset" = 'set'; then
3353 eval val=$`echo $var`
3354 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3355 fi
3356done
3357
3358
3359CONFIGURE_ARGS="$0 ${ac_configure_args}"
3360
3361
3362# Source file containing package/library versioning information.
3363. ${srcdir}/version.sh
3364
cristy15a88782010-01-31 23:24:49 +00003365echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003366# Make sure we can run config.sub.
3367$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003368 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003369
cristy8b350f62009-11-15 23:12:43 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003372if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003373 $as_echo_n "(cached) " >&6
3374else
3375 ac_build_alias=$build_alias
3376test "x$ac_build_alias" = x &&
3377 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3378test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003379 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003380ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003381 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003382
3383fi
cristy8b350f62009-11-15 23:12:43 +00003384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$ac_cv_build" >&6; }
3386case $ac_cv_build in
3387*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003388*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003389esac
3390build=$ac_cv_build
3391ac_save_IFS=$IFS; IFS='-'
3392set x $ac_cv_build
3393shift
3394build_cpu=$1
3395build_vendor=$2
3396shift; shift
3397# Remember, the first character of IFS is used to create $*,
3398# except with old shells:
3399build_os=$*
3400IFS=$ac_save_IFS
3401case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3402
3403
cristy8b350f62009-11-15 23:12:43 +00003404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003405$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003406if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003407 $as_echo_n "(cached) " >&6
3408else
3409 if test "x$host_alias" = x; then
3410 ac_cv_host=$ac_cv_build
3411else
3412 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003413 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003414fi
3415
3416fi
cristy8b350f62009-11-15 23:12:43 +00003417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003418$as_echo "$ac_cv_host" >&6; }
3419case $ac_cv_host in
3420*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003421*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003422esac
3423host=$ac_cv_host
3424ac_save_IFS=$IFS; IFS='-'
3425set x $ac_cv_host
3426shift
3427host_cpu=$1
3428host_vendor=$2
3429shift; shift
3430# Remember, the first character of IFS is used to create $*,
3431# except with old shells:
3432host_os=$*
3433IFS=$ac_save_IFS
3434case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3435
3436
cristy8b350f62009-11-15 23:12:43 +00003437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003438$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003439if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003440 $as_echo_n "(cached) " >&6
3441else
3442 if test "x$target_alias" = x; then
3443 ac_cv_target=$ac_cv_host
3444else
3445 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003446 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003447fi
3448
3449fi
cristy8b350f62009-11-15 23:12:43 +00003450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$ac_cv_target" >&6; }
3452case $ac_cv_target in
3453*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003454*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003455esac
3456target=$ac_cv_target
3457ac_save_IFS=$IFS; IFS='-'
3458set x $ac_cv_target
3459shift
3460target_cpu=$1
3461target_vendor=$2
3462shift; shift
3463# Remember, the first character of IFS is used to create $*,
3464# except with old shells:
3465target_os=$*
3466IFS=$ac_save_IFS
3467case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3468
3469
3470# The aliases save the names the user supplied, while $host etc.
3471# will get canonicalized.
3472test -n "$target_alias" &&
3473 test "$program_prefix$program_suffix$program_transform_name" = \
3474 NONENONEs,x,x, &&
3475 program_prefix=${target_alias}-
3476
3477# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003478MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3479
3480MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3481
cristy3ed852e2009-09-05 21:47:34 +00003482
3483
3484# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003486$as_echo_n "checking whether build environment is sane... " >&6; }
3487# Just in case
3488sleep 1
3489echo timestamp > conftest.file
3490# Reject unsafe characters in $srcdir or the absolute working directory
3491# name. Accept space and tab only in the latter.
3492am_lf='
3493'
3494case `pwd` in
3495 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003496 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003497esac
3498case $srcdir in
3499 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003500 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003501esac
3502
3503# Do `set' in a subshell so we don't clobber the current shell's
3504# arguments. Must try -L first in case configure is actually a
3505# symlink; some systems play weird games with the mod time of symlinks
3506# (eg FreeBSD returns the mod time of the symlink's containing
3507# directory).
3508if (
3509 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3510 if test "$*" = "X"; then
3511 # -L didn't work.
3512 set X `ls -t "$srcdir/configure" conftest.file`
3513 fi
3514 rm -f conftest.file
3515 if test "$*" != "X $srcdir/configure conftest.file" \
3516 && test "$*" != "X conftest.file $srcdir/configure"; then
3517
3518 # If neither matched, then we have a broken ls. This can happen
3519 # if, for instance, CONFIG_SHELL is bash and it inherits a
3520 # broken ls alias from the environment. This has actually
3521 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003522 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3523alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003524 fi
3525
3526 test "$2" = conftest.file
3527 )
3528then
3529 # Ok.
3530 :
3531else
cristy8b350f62009-11-15 23:12:43 +00003532 as_fn_error "newly created file is older than distributed files!
3533Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003534fi
cristy8b350f62009-11-15 23:12:43 +00003535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003536$as_echo "yes" >&6; }
3537
3538am__api_version='1.11'
3539
3540# Find a good install program. We prefer a C program (faster),
3541# so one script is as good as another. But avoid the broken or
3542# incompatible versions:
3543# SysV /etc/install, /usr/sbin/install
3544# SunOS /usr/etc/install
3545# IRIX /sbin/install
3546# AIX /bin/install
3547# AmigaOS /C/install, which installs bootblocks on floppy discs
3548# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3549# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3551# OS/2's system install, which has a completely different semantic
3552# ./install, which can be erroneously created by make from ./install.sh.
3553# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003555$as_echo_n "checking for a BSD-compatible install... " >&6; }
3556if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003557if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003558 $as_echo_n "(cached) " >&6
3559else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003565 # Account for people who put trailing slashes in PATH elements.
3566case $as_dir/ in #((
3567 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003569 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003570 /usr/ucb/* ) ;;
3571 *)
3572 # OSF1 and SCO ODT 3.0 have their own names for install.
3573 # Don't use installbsd from OSF since it installs stuff as root
3574 # by default.
3575 for ac_prog in ginstall scoinst install; do
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3578 if test $ac_prog = install &&
3579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3580 # AIX install. It has an incompatible calling convention.
3581 :
3582 elif test $ac_prog = install &&
3583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3584 # program-specific install script used by HP pwplus--don't use.
3585 :
3586 else
3587 rm -rf conftest.one conftest.two conftest.dir
3588 echo one > conftest.one
3589 echo two > conftest.two
3590 mkdir conftest.dir
3591 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3592 test -s conftest.one && test -s conftest.two &&
3593 test -s conftest.dir/conftest.one &&
3594 test -s conftest.dir/conftest.two
3595 then
3596 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3597 break 3
3598 fi
3599 fi
3600 fi
3601 done
3602 done
3603 ;;
3604esac
3605
cristy8b350f62009-11-15 23:12:43 +00003606 done
cristy3ed852e2009-09-05 21:47:34 +00003607IFS=$as_save_IFS
3608
3609rm -rf conftest.one conftest.two conftest.dir
3610
3611fi
3612 if test "${ac_cv_path_install+set}" = set; then
3613 INSTALL=$ac_cv_path_install
3614 else
3615 # As a last resort, use the slow shell script. Don't cache a
3616 # value for INSTALL within a source directory, because that will
3617 # break other packages using the cache if that directory is
3618 # removed, or if the value is a relative name.
3619 INSTALL=$ac_install_sh
3620 fi
3621fi
cristy8b350f62009-11-15 23:12:43 +00003622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003623$as_echo "$INSTALL" >&6; }
3624
3625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3626# It thinks the first close brace ends the variable substitution.
3627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3628
3629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3630
3631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3632
3633test "$program_prefix" != NONE &&
3634 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3635# Use a double $ so make ignores it.
3636test "$program_suffix" != NONE &&
3637 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3638# Double any \ or $.
3639# By default was `s,x,x', remove it if useless.
3640ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3641program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3642
3643# expand $ac_aux_dir to an absolute path
3644am_aux_dir=`cd $ac_aux_dir && pwd`
3645
3646if test x"${MISSING+set}" != xset; then
3647 case $am_aux_dir in
3648 *\ * | *\ *)
3649 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3650 *)
3651 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3652 esac
3653fi
3654# Use eval to expand $SHELL
3655if eval "$MISSING --run true"; then
3656 am_missing_run="$MISSING --run "
3657else
3658 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003660$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3661fi
3662
3663if test x"${install_sh}" != xset; then
3664 case $am_aux_dir in
3665 *\ * | *\ *)
3666 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3667 *)
3668 install_sh="\${SHELL} $am_aux_dir/install-sh"
3669 esac
3670fi
3671
3672# Installed binaries are usually stripped using `strip' when the user
3673# run `make install-strip'. However `strip' might not be the right
3674# tool to use in cross-compilation environments, therefore Automake
3675# will honor the `STRIP' environment variable to overrule this program.
3676if test "$cross_compiling" != no; then
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3679set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003681$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003682if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003683 $as_echo_n "(cached) " >&6
3684else
3685 if test -n "$STRIP"; then
3686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3687else
3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697 break 2
3698 fi
3699done
cristy8b350f62009-11-15 23:12:43 +00003700 done
cristy3ed852e2009-09-05 21:47:34 +00003701IFS=$as_save_IFS
3702
3703fi
3704fi
3705STRIP=$ac_cv_prog_STRIP
3706if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003708$as_echo "$STRIP" >&6; }
3709else
cristy8b350f62009-11-15 23:12:43 +00003710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003711$as_echo "no" >&6; }
3712fi
3713
3714
3715fi
3716if test -z "$ac_cv_prog_STRIP"; then
3717 ac_ct_STRIP=$STRIP
3718 # Extract the first word of "strip", so it can be a program name with args.
3719set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003721$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003722if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003723 $as_echo_n "(cached) " >&6
3724else
3725 if test -n "$ac_ct_STRIP"; then
3726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3727else
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003737 break 2
3738 fi
3739done
cristy8b350f62009-11-15 23:12:43 +00003740 done
cristy3ed852e2009-09-05 21:47:34 +00003741IFS=$as_save_IFS
3742
3743fi
3744fi
3745ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3746if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003748$as_echo "$ac_ct_STRIP" >&6; }
3749else
cristy8b350f62009-11-15 23:12:43 +00003750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003751$as_echo "no" >&6; }
3752fi
3753
3754 if test "x$ac_ct_STRIP" = x; then
3755 STRIP=":"
3756 else
3757 case $cross_compiling:$ac_tool_warned in
3758yes:)
cristy8b350f62009-11-15 23:12:43 +00003759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761ac_tool_warned=yes ;;
3762esac
3763 STRIP=$ac_ct_STRIP
3764 fi
3765else
3766 STRIP="$ac_cv_prog_STRIP"
3767fi
3768
3769fi
3770INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3771
cristy8b350f62009-11-15 23:12:43 +00003772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003773$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3774if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003775 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003776 $as_echo_n "(cached) " >&6
3777else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003783 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3786 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3787 'mkdir (GNU coreutils) '* | \
3788 'mkdir (coreutils) '* | \
3789 'mkdir (fileutils) '4.1*)
3790 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3791 break 3;;
3792 esac
3793 done
3794 done
cristy8b350f62009-11-15 23:12:43 +00003795 done
cristy3ed852e2009-09-05 21:47:34 +00003796IFS=$as_save_IFS
3797
3798fi
3799
cristycd4c5312009-11-22 01:19:08 +00003800 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003801 if test "${ac_cv_path_mkdir+set}" = set; then
3802 MKDIR_P="$ac_cv_path_mkdir -p"
3803 else
3804 # As a last resort, use the slow shell script. Don't cache a
3805 # value for MKDIR_P within a source directory, because that will
3806 # break other packages using the cache if that directory is
3807 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003808 MKDIR_P="$ac_install_sh -d"
3809 fi
3810fi
cristy8b350f62009-11-15 23:12:43 +00003811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003812$as_echo "$MKDIR_P" >&6; }
3813
3814mkdir_p="$MKDIR_P"
3815case $mkdir_p in
3816 [\\/$]* | ?:[\\/]*) ;;
3817 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3818esac
3819
3820for ac_prog in gawk mawk nawk awk
3821do
3822 # Extract the first word of "$ac_prog", so it can be a program name with args.
3823set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003825$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003826if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003827 $as_echo_n "(cached) " >&6
3828else
3829 if test -n "$AWK"; then
3830 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003841 break 2
3842 fi
3843done
cristy8b350f62009-11-15 23:12:43 +00003844 done
cristy3ed852e2009-09-05 21:47:34 +00003845IFS=$as_save_IFS
3846
3847fi
3848fi
3849AWK=$ac_cv_prog_AWK
3850if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003852$as_echo "$AWK" >&6; }
3853else
cristy8b350f62009-11-15 23:12:43 +00003854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003855$as_echo "no" >&6; }
3856fi
3857
3858
3859 test -n "$AWK" && break
3860done
3861
cristy8b350f62009-11-15 23:12:43 +00003862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003863$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3864set x ${MAKE-make}
3865ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003866if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003867 $as_echo_n "(cached) " >&6
3868else
3869 cat >conftest.make <<\_ACEOF
3870SHELL = /bin/sh
3871all:
3872 @echo '@@@%%%=$(MAKE)=@@@%%%'
3873_ACEOF
3874# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3875case `${MAKE-make} -f conftest.make 2>/dev/null` in
3876 *@@@%%%=?*=@@@%%%*)
3877 eval ac_cv_prog_make_${ac_make}_set=yes;;
3878 *)
3879 eval ac_cv_prog_make_${ac_make}_set=no;;
3880esac
3881rm -f conftest.make
3882fi
3883if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003885$as_echo "yes" >&6; }
3886 SET_MAKE=
3887else
cristy8b350f62009-11-15 23:12:43 +00003888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003889$as_echo "no" >&6; }
3890 SET_MAKE="MAKE=${MAKE-make}"
3891fi
3892
3893rm -rf .tst 2>/dev/null
3894mkdir .tst 2>/dev/null
3895if test -d .tst; then
3896 am__leading_dot=.
3897else
3898 am__leading_dot=_
3899fi
3900rmdir .tst 2>/dev/null
3901
3902if test "`cd $srcdir && pwd`" != "`pwd`"; then
3903 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3904 # is not polluted with repeated "-I."
3905 am__isrc=' -I$(srcdir)'
3906 # test to see if srcdir already configured
3907 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003908 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003909 fi
3910fi
3911
3912# test whether we have cygpath
3913if test -z "$CYGPATH_W"; then
3914 if (cygpath --version) >/dev/null 2>/dev/null; then
3915 CYGPATH_W='cygpath -w'
3916 else
3917 CYGPATH_W=echo
3918 fi
3919fi
3920
3921
3922# Define the identity of the package.
3923 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003924 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003925
3926
3927# Some tools Automake needs.
3928
3929ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3930
3931
3932AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3933
3934
3935AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3936
3937
3938AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3939
3940
3941MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3942
3943# We need awk for the "check" target. The system "awk" is bad on
3944# some platforms.
3945# Always define AMTAR for backward compatibility.
3946
3947AMTAR=${AMTAR-"${am_missing_run}tar"}
3948
3949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3950
3951
3952
3953
3954
3955
3956# Enable support for silent build rules
3957# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003958if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003959 enableval=$enable_silent_rules;
3960fi
3961
3962case $enable_silent_rules in
3963yes) AM_DEFAULT_VERBOSITY=0;;
3964no) AM_DEFAULT_VERBOSITY=1;;
3965*) AM_DEFAULT_VERBOSITY=0;;
3966esac
3967AM_BACKSLASH='\'
3968
3969
3970MAGICK_LIB_VERSION="0x"
3971if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3972 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3973fi
3974MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3975if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3976 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3977fi
3978MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3979if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3980 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3981fi
3982MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3983
3984
3985# Definition used to define MagickLibVersionText in version.h
3986MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3987
3988
3989# Definition used to define MagickLibVersionNumber in version.h
3990MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3991
3992
3993# Regenerate config.status if ChangeLog or version.sh is updated.
3994CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3995
3996
3997PERLMAINCC=$CC
3998
3999MAGICK_CFLAGS=''
4000MAGICK_CPPFLAGS=$CPPFLAGS_USER
4001MAGICK_PCFLAGS=$CPPFLAGS_USER
4002MAGICK_LDFLAGS=''
4003MAGICK_LIBS=''
4004
4005#
4006# Evaluate shell variable equivalents to Makefile directory variables
4007#
4008if test "x$prefix" = xNONE; then
4009 prefix=$ac_default_prefix
4010fi
4011# Let make expand exec_prefix.
4012if test "x$exec_prefix" = xNONE; then
4013 exec_prefix='${prefix}'
4014fi
4015
4016#
4017eval "eval PREFIX_DIR=${prefix}"
4018
4019eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4020
4021eval "eval BIN_DIR=$bindir"
4022
4023eval "eval SBIN_DIR=$sbindir"
4024
4025eval "eval LIBEXEC_DIR=$libexecdir"
4026
4027eval "eval DATA_DIR=$datadir"
4028
4029eval "eval SYSCONF_DIR=$sysconfdir"
4030
4031eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4032
4033eval "eval LOCALSTATE_DIR=$localstatedir"
4034
4035eval "eval LIB_DIR=$libdir"
4036
4037eval "eval INCLUDE_DIR=$includedir"
4038
4039eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4040
4041eval "eval INFO_DIR=$infodir"
4042
4043eval "eval MAN_DIR=$mandir"
4044
4045
4046# Get full paths to source and build directories
4047srcdirfull="`cd $srcdir && pwd`"
4048builddir="`pwd`"
4049
4050#
4051# Compute variables useful for running uninstalled software.
4052#
4053MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4054MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4055MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4056MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4057DIRSEP=':'
4058case "${build_os}" in
4059 mingw* )
4060 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4061 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4062 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4063 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4064 DIRSEP=';'
4065 ;;
4066esac
4067case "${host_os}" in
4068 mingw* )
4069 DIRSEP=';'
4070 ;;
4071esac
4072
4073
4074
4075
4076
4077
cristya0b81c32010-01-22 02:54:33 +00004078
4079#
4080# Enable OS features.
4081#
4082DEPDIR="${am__leading_dot}deps"
4083
4084ac_config_commands="$ac_config_commands depfiles"
4085
4086
4087am_make=${MAKE-make}
4088cat > confinc << 'END'
4089am__doit:
4090 @echo this is the am__doit target
4091.PHONY: am__doit
4092END
4093# If we don't find an include directive, just comment out the code.
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4095$as_echo_n "checking for style of include used by $am_make... " >&6; }
4096am__include="#"
4097am__quote=
4098_am_result=none
4099# First try GNU make style include.
4100echo "include confinc" > confmf
4101# Ignore all kinds of additional output from `make'.
4102case `$am_make -s -f confmf 2> /dev/null` in #(
4103*the\ am__doit\ target*)
4104 am__include=include
4105 am__quote=
4106 _am_result=GNU
4107 ;;
4108esac
4109# Now try BSD make style include.
4110if test "$am__include" = "#"; then
4111 echo '.include "confinc"' > confmf
4112 case `$am_make -s -f confmf 2> /dev/null` in #(
4113 *the\ am__doit\ target*)
4114 am__include=.include
4115 am__quote="\""
4116 _am_result=BSD
4117 ;;
4118 esac
4119fi
4120
4121
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4123$as_echo "$_am_result" >&6; }
4124rm -f confinc confmf
4125
4126# Check whether --enable-dependency-tracking was given.
4127if test "${enable_dependency_tracking+set}" = set; then :
4128 enableval=$enable_dependency_tracking;
4129fi
4130
4131if test "x$enable_dependency_tracking" != xno; then
4132 am_depcomp="$ac_aux_dir/depcomp"
4133 AMDEPBACKSLASH='\'
4134fi
4135 if test "x$enable_dependency_tracking" != xno; then
4136 AMDEP_TRUE=
4137 AMDEP_FALSE='#'
4138else
4139 AMDEP_TRUE='#'
4140 AMDEP_FALSE=
4141fi
4142
4143
cristy3ed852e2009-09-05 21:47:34 +00004144ac_ext=c
4145ac_cpp='$CPP $CPPFLAGS'
4146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4151set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004153$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004154if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004155 $as_echo_n "(cached) " >&6
4156else
4157 if test -n "$CC"; then
4158 ac_cv_prog_CC="$CC" # Let the user override the test.
4159else
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004169 break 2
4170 fi
4171done
cristy8b350f62009-11-15 23:12:43 +00004172 done
cristy3ed852e2009-09-05 21:47:34 +00004173IFS=$as_save_IFS
4174
4175fi
4176fi
4177CC=$ac_cv_prog_CC
4178if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004180$as_echo "$CC" >&6; }
4181else
cristy8b350f62009-11-15 23:12:43 +00004182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004183$as_echo "no" >&6; }
4184fi
4185
4186
4187fi
4188if test -z "$ac_cv_prog_CC"; then
4189 ac_ct_CC=$CC
4190 # Extract the first word of "gcc", so it can be a program name with args.
4191set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004194if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004195 $as_echo_n "(cached) " >&6
4196else
4197 if test -n "$ac_ct_CC"; then
4198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004209 break 2
4210 fi
4211done
cristy8b350f62009-11-15 23:12:43 +00004212 done
cristy3ed852e2009-09-05 21:47:34 +00004213IFS=$as_save_IFS
4214
4215fi
4216fi
4217ac_ct_CC=$ac_cv_prog_ac_ct_CC
4218if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004220$as_echo "$ac_ct_CC" >&6; }
4221else
cristy8b350f62009-11-15 23:12:43 +00004222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004223$as_echo "no" >&6; }
4224fi
4225
4226 if test "x$ac_ct_CC" = x; then
4227 CC=""
4228 else
4229 case $cross_compiling:$ac_tool_warned in
4230yes:)
cristy8b350f62009-11-15 23:12:43 +00004231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233ac_tool_warned=yes ;;
4234esac
4235 CC=$ac_ct_CC
4236 fi
4237else
4238 CC="$ac_cv_prog_CC"
4239fi
4240
4241if test -z "$CC"; then
4242 if test -n "$ac_tool_prefix"; then
4243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4244set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004246$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004247if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004248 $as_echo_n "(cached) " >&6
4249else
4250 if test -n "$CC"; then
4251 ac_cv_prog_CC="$CC" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004262 break 2
4263 fi
4264done
cristy8b350f62009-11-15 23:12:43 +00004265 done
cristy3ed852e2009-09-05 21:47:34 +00004266IFS=$as_save_IFS
4267
4268fi
4269fi
4270CC=$ac_cv_prog_CC
4271if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004273$as_echo "$CC" >&6; }
4274else
cristy8b350f62009-11-15 23:12:43 +00004275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004276$as_echo "no" >&6; }
4277fi
4278
4279
4280 fi
4281fi
4282if test -z "$CC"; then
4283 # Extract the first word of "cc", so it can be a program name with args.
4284set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004286$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004287if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004288 $as_echo_n "(cached) " >&6
4289else
4290 if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4292else
4293 ac_prog_rejected=no
4294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH
4296do
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4302 ac_prog_rejected=yes
4303 continue
4304 fi
4305 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004307 break 2
4308 fi
4309done
cristy8b350f62009-11-15 23:12:43 +00004310 done
cristy3ed852e2009-09-05 21:47:34 +00004311IFS=$as_save_IFS
4312
4313if test $ac_prog_rejected = yes; then
4314 # We found a bogon in the path, so make sure we never use it.
4315 set dummy $ac_cv_prog_CC
4316 shift
4317 if test $# != 0; then
4318 # We chose a different compiler from the bogus one.
4319 # However, it has the same basename, so the bogon will be chosen
4320 # first if we set CC to just the basename; use the full file name.
4321 shift
4322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4323 fi
4324fi
4325fi
4326fi
4327CC=$ac_cv_prog_CC
4328if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004330$as_echo "$CC" >&6; }
4331else
cristy8b350f62009-11-15 23:12:43 +00004332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004333$as_echo "no" >&6; }
4334fi
4335
4336
4337fi
4338if test -z "$CC"; then
4339 if test -n "$ac_tool_prefix"; then
4340 for ac_prog in cl.exe
4341 do
4342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004345$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004346if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004347 $as_echo_n "(cached) " >&6
4348else
4349 if test -n "$CC"; then
4350 ac_cv_prog_CC="$CC" # Let the user override the test.
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004361 break 2
4362 fi
4363done
cristy8b350f62009-11-15 23:12:43 +00004364 done
cristy3ed852e2009-09-05 21:47:34 +00004365IFS=$as_save_IFS
4366
4367fi
4368fi
4369CC=$ac_cv_prog_CC
4370if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004372$as_echo "$CC" >&6; }
4373else
cristy8b350f62009-11-15 23:12:43 +00004374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004375$as_echo "no" >&6; }
4376fi
4377
4378
4379 test -n "$CC" && break
4380 done
4381fi
4382if test -z "$CC"; then
4383 ac_ct_CC=$CC
4384 for ac_prog in cl.exe
4385do
4386 # Extract the first word of "$ac_prog", so it can be a program name with args.
4387set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004389$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004390if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004391 $as_echo_n "(cached) " >&6
4392else
4393 if test -n "$ac_ct_CC"; then
4394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4395else
4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405 break 2
4406 fi
4407done
cristy8b350f62009-11-15 23:12:43 +00004408 done
cristy3ed852e2009-09-05 21:47:34 +00004409IFS=$as_save_IFS
4410
4411fi
4412fi
4413ac_ct_CC=$ac_cv_prog_ac_ct_CC
4414if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416$as_echo "$ac_ct_CC" >&6; }
4417else
cristy8b350f62009-11-15 23:12:43 +00004418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419$as_echo "no" >&6; }
4420fi
4421
4422
4423 test -n "$ac_ct_CC" && break
4424done
4425
4426 if test "x$ac_ct_CC" = x; then
4427 CC=""
4428 else
4429 case $cross_compiling:$ac_tool_warned in
4430yes:)
cristy8b350f62009-11-15 23:12:43 +00004431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4433ac_tool_warned=yes ;;
4434esac
4435 CC=$ac_ct_CC
4436 fi
4437fi
4438
4439fi
4440
4441
cristy8b350f62009-11-15 23:12:43 +00004442test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004444as_fn_error "no acceptable C compiler found in \$PATH
4445See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004446
4447# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004448$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004449set X $ac_compile
4450ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004451for ac_option in --version -v -V -qversion; do
4452 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
cristy8b350f62009-11-15 23:12:43 +00004457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458$as_echo "$ac_try_echo"; } >&5
4459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004460 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004461 if test -s conftest.err; then
4462 sed '10a\
4463... rest of stderr output deleted ...
4464 10q' conftest.err >conftest.er1
4465 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004466 fi
cristycd4c5312009-11-22 01:19:08 +00004467 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4469 test $ac_status = 0; }
4470done
cristy3ed852e2009-09-05 21:47:34 +00004471
cristy8b350f62009-11-15 23:12:43 +00004472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004473/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004474
cristy3ed852e2009-09-05 21:47:34 +00004475int
4476main ()
4477{
4478
4479 ;
4480 return 0;
4481}
4482_ACEOF
4483ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004484ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004485# Try to create an executable without -o first, disregard a.out.
4486# It will help us diagnose broken compilers, and finding out an intuition
4487# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4489$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004490ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4491
4492# The possible output files:
4493ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4494
4495ac_rmfiles=
4496for ac_file in $ac_files
4497do
4498 case $ac_file in
4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4500 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4501 esac
4502done
4503rm -f $ac_rmfiles
4504
cristy8b350f62009-11-15 23:12:43 +00004505if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004506case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509esac
cristy8b350f62009-11-15 23:12:43 +00004510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004512 (eval "$ac_link_default") 2>&5
4513 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004516 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4517# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4518# in a Makefile. We should not override ac_cv_exeext if it was cached,
4519# so that the user can short-circuit this test for compilers unknown to
4520# Autoconf.
4521for ac_file in $ac_files ''
4522do
4523 test -f "$ac_file" || continue
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4526 ;;
4527 [ab].out )
4528 # We found the default executable, but exeext='' is most
4529 # certainly right.
4530 break;;
4531 *.* )
cristy8b350f62009-11-15 23:12:43 +00004532 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004533 then :; else
4534 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4535 fi
4536 # We set ac_cv_exeext here because the later test for it is not
4537 # safe: cross compilers may not add the suffix if given an `-o'
4538 # argument, so we may need to know it at that point already.
4539 # Even if this section looks crufty: it has the advantage of
4540 # actually working.
4541 break;;
4542 * )
4543 break;;
4544 esac
4545done
4546test "$ac_cv_exeext" = no && ac_cv_exeext=
4547
4548else
4549 ac_file=''
4550fi
cristy8b350f62009-11-15 23:12:43 +00004551if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553$as_echo "no" >&6; }
4554$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004555sed 's/^/| /' conftest.$ac_ext >&5
4556
cristy8b350f62009-11-15 23:12:43 +00004557{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004559{ as_fn_set_status 77
4560as_fn_error "C compiler cannot create executables
4561See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004562else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004565fi
cristycd4c5312009-11-22 01:19:08 +00004566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4567$as_echo_n "checking for C compiler default output file name... " >&6; }
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4569$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004570ac_exeext=$ac_cv_exeext
4571
cristycd4c5312009-11-22 01:19:08 +00004572rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004573ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004576if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
cristy8b350f62009-11-15 23:12:43 +00004581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004583 (eval "$ac_link") 2>&5
4584 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4588# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4589# work properly (i.e., refer to `conftest.exe'), while it won't with
4590# `rm'.
4591for ac_file in conftest.exe conftest conftest.*; do
4592 test -f "$ac_file" || continue
4593 case $ac_file in
4594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4596 break;;
4597 * ) break;;
4598 esac
4599done
4600else
cristy8b350f62009-11-15 23:12:43 +00004601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004603as_fn_error "cannot compute suffix of executables: cannot compile and link
4604See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004605fi
cristycd4c5312009-11-22 01:19:08 +00004606rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004608$as_echo "$ac_cv_exeext" >&6; }
4609
4610rm -f conftest.$ac_ext
4611EXEEXT=$ac_cv_exeext
4612ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h. */
4615#include <stdio.h>
4616int
4617main ()
4618{
4619FILE *f = fopen ("conftest.out", "w");
4620 return ferror (f) || fclose (f) != 0;
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626ac_clean_files="$ac_clean_files conftest.out"
4627# Check that the compiler produces executables we can run. If not, either
4628# the compiler is broken, or we cross compile.
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4630$as_echo_n "checking whether we are cross compiling... " >&6; }
4631if test "$cross_compiling" != yes; then
4632 { { ac_try="$ac_link"
4633case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636esac
4637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638$as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_link") 2>&5
4640 ac_status=$?
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }
4643 if { ac_try='./conftest$ac_cv_exeext'
4644 { { case "(($ac_try" in
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4647esac
4648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4649$as_echo "$ac_try_echo"; } >&5
4650 (eval "$ac_try") 2>&5
4651 ac_status=$?
4652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4653 test $ac_status = 0; }; }; then
4654 cross_compiling=no
4655 else
4656 if test "$cross_compiling" = maybe; then
4657 cross_compiling=yes
4658 else
4659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4661as_fn_error "cannot run C compiled programs.
4662If you meant to cross compile, use \`--host'.
4663See \`config.log' for more details." "$LINENO" 5; }
4664 fi
4665 fi
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4668$as_echo "$cross_compiling" >&6; }
4669
4670rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4671ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004674if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004675 $as_echo_n "(cached) " >&6
4676else
cristy8b350f62009-11-15 23:12:43 +00004677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004678/* end confdefs.h. */
4679
4680int
4681main ()
4682{
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004689if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004690case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693esac
cristy8b350f62009-11-15 23:12:43 +00004694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004696 (eval "$ac_compile") 2>&5
4697 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004700 for ac_file in conftest.o conftest.obj conftest.*; do
4701 test -f "$ac_file" || continue;
4702 case $ac_file in
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4705 break;;
4706 esac
4707done
4708else
4709 $as_echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
cristy8b350f62009-11-15 23:12:43 +00004712{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004714as_fn_error "cannot compute suffix of object files: cannot compile
4715See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004716fi
cristy3ed852e2009-09-05 21:47:34 +00004717rm -f conftest.$ac_cv_objext conftest.$ac_ext
4718fi
cristy8b350f62009-11-15 23:12:43 +00004719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004720$as_echo "$ac_cv_objext" >&6; }
4721OBJEXT=$ac_cv_objext
4722ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004724$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004725if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004726 $as_echo_n "(cached) " >&6
4727else
cristy8b350f62009-11-15 23:12:43 +00004728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004729/* end confdefs.h. */
4730
4731int
4732main ()
4733{
4734#ifndef __GNUC__
4735 choke me
4736#endif
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004742if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 ac_compiler_gnu=yes
4744else
cristy8b350f62009-11-15 23:12:43 +00004745 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004746fi
cristy3ed852e2009-09-05 21:47:34 +00004747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748ac_cv_c_compiler_gnu=$ac_compiler_gnu
4749
4750fi
cristy8b350f62009-11-15 23:12:43 +00004751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004752$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4753if test $ac_compiler_gnu = yes; then
4754 GCC=yes
4755else
4756 GCC=
4757fi
4758ac_test_CFLAGS=${CFLAGS+set}
4759ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004761$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004762if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004763 $as_echo_n "(cached) " >&6
4764else
4765 ac_save_c_werror_flag=$ac_c_werror_flag
4766 ac_c_werror_flag=yes
4767 ac_cv_prog_cc_g=no
4768 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004770/* end confdefs.h. */
4771
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004780if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004781 ac_cv_prog_cc_g=yes
4782else
cristy8b350f62009-11-15 23:12:43 +00004783 CFLAGS=""
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004785/* end confdefs.h. */
4786
4787int
4788main ()
4789{
4790
4791 ;
4792 return 0;
4793}
4794_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004795if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004796
cristy8b350f62009-11-15 23:12:43 +00004797else
4798 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004799 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806
4807 ;
4808 return 0;
4809}
4810_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004811if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004812 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004813fi
cristy3ed852e2009-09-05 21:47:34 +00004814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
cristy3ed852e2009-09-05 21:47:34 +00004816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
cristy3ed852e2009-09-05 21:47:34 +00004818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_c_werror_flag=$ac_save_c_werror_flag
4820fi
cristy8b350f62009-11-15 23:12:43 +00004821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004822$as_echo "$ac_cv_prog_cc_g" >&6; }
4823if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4830 fi
4831else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4836 fi
4837fi
cristy8b350f62009-11-15 23:12:43 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004840if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004841 $as_echo_n "(cached) " >&6
4842else
4843 ac_cv_prog_cc_c89=no
4844ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004846/* end confdefs.h. */
4847#include <stdarg.h>
4848#include <stdio.h>
4849#include <sys/types.h>
4850#include <sys/stat.h>
4851/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4852struct buf { int x; };
4853FILE * (*rcsopen) (struct buf *, struct stat *, int);
4854static char *e (p, i)
4855 char **p;
4856 int i;
4857{
4858 return p[i];
4859}
4860static char *f (char * (*g) (char **, int), char **p, ...)
4861{
4862 char *s;
4863 va_list v;
4864 va_start (v,p);
4865 s = g (p, va_arg (v,int));
4866 va_end (v);
4867 return s;
4868}
4869
4870/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4871 function prototypes and stuff, but not '\xHH' hex character constants.
4872 These don't provoke an error unfortunately, instead are silently treated
4873 as 'x'. The following induces an error, until -std is added to get
4874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4875 array size at least. It's necessary to write '\x00'==0 to get something
4876 that's true only with -std. */
4877int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4878
4879/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4880 inside strings and character constants. */
4881#define FOO(x) 'x'
4882int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4883
4884int test (int i, double x);
4885struct s1 {int (*f) (int a);};
4886struct s2 {int (*f) (double a);};
4887int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4888int argc;
4889char **argv;
4890int
4891main ()
4892{
4893return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4894 ;
4895 return 0;
4896}
4897_ACEOF
4898for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4900do
4901 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004902 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004903 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004904fi
cristy3ed852e2009-09-05 21:47:34 +00004905rm -f core conftest.err conftest.$ac_objext
4906 test "x$ac_cv_prog_cc_c89" != "xno" && break
4907done
4908rm -f conftest.$ac_ext
4909CC=$ac_save_CC
4910
4911fi
4912# AC_CACHE_VAL
4913case "x$ac_cv_prog_cc_c89" in
4914 x)
cristy8b350f62009-11-15 23:12:43 +00004915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004916$as_echo "none needed" >&6; } ;;
4917 xno)
cristy8b350f62009-11-15 23:12:43 +00004918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004919$as_echo "unsupported" >&6; } ;;
4920 *)
4921 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004923$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4924esac
cristy8b350f62009-11-15 23:12:43 +00004925if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004926
cristy8b350f62009-11-15 23:12:43 +00004927fi
cristy3ed852e2009-09-05 21:47:34 +00004928
4929ac_ext=c
4930ac_cpp='$CPP $CPPFLAGS'
4931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004934
cristya0b81c32010-01-22 02:54:33 +00004935depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004936
cristya0b81c32010-01-22 02:54:33 +00004937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4938$as_echo_n "checking dependency style of $depcc... " >&6; }
4939if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004941else
cristya0b81c32010-01-22 02:54:33 +00004942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4943 # We make a subdir and do the tests there. Otherwise we can end up
4944 # making bogus files that we don't know about and never remove. For
4945 # instance it was reported that on HP-UX the gcc test will end up
4946 # making a dummy file named `D' -- because `-MD' means `put the output
4947 # in D'.
4948 mkdir conftest.dir
4949 # Copy depcomp to subdir because otherwise we won't find it if we're
4950 # using a relative directory.
4951 cp "$am_depcomp" conftest.dir
4952 cd conftest.dir
4953 # We will build objects and dependencies in a subdirectory because
4954 # it helps to detect inapplicable dependency modes. For instance
4955 # both Tru64's cc and ICC support -MD to output dependencies as a
4956 # side effect of compilation, but ICC will put the dependencies in
4957 # the current directory while Tru64 will put them in the object
4958 # directory.
4959 mkdir sub
4960
4961 am_cv_CC_dependencies_compiler_type=none
4962 if test "$am_compiler_list" = ""; then
4963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4964 fi
4965 am__universal=false
4966 case " $depcc " in #(
4967 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4968 esac
4969
4970 for depmode in $am_compiler_list; do
4971 # Setup a source with many dependencies, because some compilers
4972 # like to wrap large dependency lists on column 80 (with \), and
4973 # we should not choose a depcomp mode which is confused by this.
4974 #
4975 # We need to recreate these files for each test, as the compiler may
4976 # overwrite some of them when testing with obscure command lines.
4977 # This happens at least with the AIX C compiler.
4978 : > sub/conftest.c
4979 for i in 1 2 3 4 5 6; do
4980 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4981 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4982 # Solaris 8's {/usr,}/bin/sh.
4983 touch sub/conftst$i.h
4984 done
4985 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4986
4987 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4988 # mode. It turns out that the SunPro C++ compiler does not properly
4989 # handle `-M -o', and we need to detect this. Also, some Intel
4990 # versions had trouble with output in subdirs
4991 am__obj=sub/conftest.${OBJEXT-o}
4992 am__minus_obj="-o $am__obj"
4993 case $depmode in
4994 gcc)
4995 # This depmode causes a compiler race in universal mode.
4996 test "$am__universal" = false || continue
4997 ;;
4998 nosideeffect)
4999 # after this tag, mechanisms are not by side-effect, so they'll
5000 # only be used when explicitly requested
5001 if test "x$enable_dependency_tracking" = xyes; then
5002 continue
5003 else
5004 break
5005 fi
5006 ;;
5007 msvisualcpp | msvcmsys)
5008 # This compiler won't grok `-c -o', but also, the minuso test has
5009 # not run yet. These depmodes are late enough in the game, and
5010 # so weak that their functioning should not be impacted.
5011 am__obj=conftest.${OBJEXT-o}
5012 am__minus_obj=
5013 ;;
5014 none) break ;;
5015 esac
5016 if depmode=$depmode \
5017 source=sub/conftest.c object=$am__obj \
5018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5019 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5020 >/dev/null 2>conftest.err &&
5021 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5023 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5025 # icc doesn't choke on unknown options, it will just issue warnings
5026 # or remarks (even with -Werror). So we grep stderr for any message
5027 # that says an option was ignored or not supported.
5028 # When given -MP, icc 7.0 and 7.1 complain thusly:
5029 # icc: Command line warning: ignoring option '-M'; no argument required
5030 # The diagnosis changed in icc 8.0:
5031 # icc: Command line remark: option '-MP' not supported
5032 if (grep 'ignoring option' conftest.err ||
5033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5034 am_cv_CC_dependencies_compiler_type=$depmode
5035 break
5036 fi
5037 fi
5038 done
5039
5040 cd ..
5041 rm -rf conftest.dir
5042else
5043 am_cv_CC_dependencies_compiler_type=none
5044fi
5045
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5048$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5050
5051 if
5052 test "x$enable_dependency_tracking" != xno \
5053 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5054 am__fastdepCC_TRUE=
5055 am__fastdepCC_FALSE='#'
5056else
5057 am__fastdepCC_TRUE='#'
5058 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005059fi
5060
5061
5062
cristya0b81c32010-01-22 02:54:33 +00005063ac_ext=c
5064ac_cpp='$CPP $CPPFLAGS'
5065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5069$as_echo_n "checking how to run the C preprocessor... " >&6; }
5070# On Suns, sometimes $CPP names a directory.
5071if test -n "$CPP" && test -d "$CPP"; then
5072 CPP=
5073fi
5074if test -z "$CPP"; then
5075 if test "${ac_cv_prog_CPP+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077else
5078 # Double quotes because CPP needs to be expanded
5079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5080 do
5081 ac_preproc_ok=false
5082for ac_c_preproc_warn_flag in '' yes
5083do
5084 # Use a header file that comes with gcc, so configuring glibc
5085 # with a fresh cross-compiler works.
5086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5087 # <limits.h> exists even on freestanding compilers.
5088 # On the NeXT, cc -E runs the code through the compiler's parser,
5089 # not just through cpp. "Syntax error" is here to catch this case.
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h. */
5092#ifdef __STDC__
5093# include <limits.h>
5094#else
5095# include <assert.h>
5096#endif
5097 Syntax error
5098_ACEOF
5099if ac_fn_c_try_cpp "$LINENO"; then :
5100
5101else
5102 # Broken: fails on valid input.
5103continue
5104fi
5105rm -f conftest.err conftest.$ac_ext
5106
5107 # OK, works on sane cases. Now check whether nonexistent headers
5108 # can be detected and how.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h. */
5111#include <ac_nonexistent.h>
5112_ACEOF
5113if ac_fn_c_try_cpp "$LINENO"; then :
5114 # Broken: success on invalid input.
5115continue
5116else
5117 # Passes both tests.
5118ac_preproc_ok=:
5119break
5120fi
5121rm -f conftest.err conftest.$ac_ext
5122
5123done
5124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125rm -f conftest.err conftest.$ac_ext
5126if $ac_preproc_ok; then :
5127 break
5128fi
5129
5130 done
5131 ac_cv_prog_CPP=$CPP
5132
5133fi
5134 CPP=$ac_cv_prog_CPP
5135else
5136 ac_cv_prog_CPP=$CPP
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5139$as_echo "$CPP" >&6; }
5140ac_preproc_ok=false
5141for ac_c_preproc_warn_flag in '' yes
5142do
5143 # Use a header file that comes with gcc, so configuring glibc
5144 # with a fresh cross-compiler works.
5145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5146 # <limits.h> exists even on freestanding compilers.
5147 # On the NeXT, cc -E runs the code through the compiler's parser,
5148 # not just through cpp. "Syntax error" is here to catch this case.
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h. */
5151#ifdef __STDC__
5152# include <limits.h>
5153#else
5154# include <assert.h>
5155#endif
5156 Syntax error
5157_ACEOF
5158if ac_fn_c_try_cpp "$LINENO"; then :
5159
5160else
5161 # Broken: fails on valid input.
5162continue
5163fi
5164rm -f conftest.err conftest.$ac_ext
5165
5166 # OK, works on sane cases. Now check whether nonexistent headers
5167 # can be detected and how.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h. */
5170#include <ac_nonexistent.h>
5171_ACEOF
5172if ac_fn_c_try_cpp "$LINENO"; then :
5173 # Broken: success on invalid input.
5174continue
5175else
5176 # Passes both tests.
5177ac_preproc_ok=:
5178break
5179fi
5180rm -f conftest.err conftest.$ac_ext
5181
5182done
5183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5184rm -f conftest.err conftest.$ac_ext
5185if $ac_preproc_ok; then :
5186
5187else
5188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5190as_fn_error "C preprocessor \"$CPP\" fails sanity check
5191See \`config.log' for more details." "$LINENO" 5; }
5192fi
5193
5194ac_ext=c
5195ac_cpp='$CPP $CPPFLAGS'
5196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199
5200
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5202$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5203if test "${ac_cv_path_GREP+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205else
5206 if test -z "$GREP"; then
5207 ac_path_GREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in grep ggrep; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5217 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5218# Check for GNU ac_path_GREP and select it if it is found.
5219 # Check for GNU $ac_path_GREP
5220case `"$ac_path_GREP" --version 2>&1` in
5221*GNU*)
5222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5223*)
5224 ac_count=0
5225 $as_echo_n 0123456789 >"conftest.in"
5226 while :
5227 do
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo 'GREP' >> "conftest.nl"
5232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_GREP="$ac_path_GREP"
5238 ac_path_GREP_max=$ac_count
5239 fi
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5242 done
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244esac
5245
5246 $ac_path_GREP_found && break 3
5247 done
5248 done
5249 done
5250IFS=$as_save_IFS
5251 if test -z "$ac_cv_path_GREP"; then
5252 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5253 fi
5254else
5255 ac_cv_path_GREP=$GREP
5256fi
5257
5258fi
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5260$as_echo "$ac_cv_path_GREP" >&6; }
5261 GREP="$ac_cv_path_GREP"
5262
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5265$as_echo_n "checking for egrep... " >&6; }
5266if test "${ac_cv_path_EGREP+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268else
5269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5270 then ac_cv_path_EGREP="$GREP -E"
5271 else
5272 if test -z "$EGREP"; then
5273 ac_path_EGREP_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in egrep; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5283 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5284# Check for GNU ac_path_EGREP and select it if it is found.
5285 # Check for GNU $ac_path_EGREP
5286case `"$ac_path_EGREP" --version 2>&1` in
5287*GNU*)
5288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5289*)
5290 ac_count=0
5291 $as_echo_n 0123456789 >"conftest.in"
5292 while :
5293 do
5294 cat "conftest.in" "conftest.in" >"conftest.tmp"
5295 mv "conftest.tmp" "conftest.in"
5296 cp "conftest.in" "conftest.nl"
5297 $as_echo 'EGREP' >> "conftest.nl"
5298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_EGREP="$ac_path_EGREP"
5304 ac_path_EGREP_max=$ac_count
5305 fi
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5308 done
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310esac
5311
5312 $ac_path_EGREP_found && break 3
5313 done
5314 done
5315 done
5316IFS=$as_save_IFS
5317 if test -z "$ac_cv_path_EGREP"; then
5318 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5319 fi
5320else
5321 ac_cv_path_EGREP=$EGREP
5322fi
5323
5324 fi
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5327$as_echo "$ac_cv_path_EGREP" >&6; }
5328 EGREP="$ac_cv_path_EGREP"
5329
5330
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5332$as_echo_n "checking for ANSI C header files... " >&6; }
5333if test "${ac_cv_header_stdc+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335else
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h. */
5338#include <stdlib.h>
5339#include <stdarg.h>
5340#include <string.h>
5341#include <float.h>
5342
5343int
5344main ()
5345{
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351if ac_fn_c_try_compile "$LINENO"; then :
5352 ac_cv_header_stdc=yes
5353else
5354 ac_cv_header_stdc=no
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357
5358if test $ac_cv_header_stdc = yes; then
5359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362#include <string.h>
5363
5364_ACEOF
5365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "memchr" >/dev/null 2>&1; then :
5367
5368else
5369 ac_cv_header_stdc=no
5370fi
5371rm -f conftest*
5372
5373fi
5374
5375if test $ac_cv_header_stdc = yes; then
5376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h. */
5379#include <stdlib.h>
5380
5381_ACEOF
5382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "free" >/dev/null 2>&1; then :
5384
5385else
5386 ac_cv_header_stdc=no
5387fi
5388rm -f conftest*
5389
5390fi
5391
5392if test $ac_cv_header_stdc = yes; then
5393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394 if test "$cross_compiling" = yes; then :
5395 :
5396else
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h. */
5399#include <ctype.h>
5400#include <stdlib.h>
5401#if ((' ' & 0x0FF) == 0x020)
5402# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5403# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5404#else
5405# define ISLOWER(c) \
5406 (('a' <= (c) && (c) <= 'i') \
5407 || ('j' <= (c) && (c) <= 'r') \
5408 || ('s' <= (c) && (c) <= 'z'))
5409# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5410#endif
5411
5412#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5413int
5414main ()
5415{
5416 int i;
5417 for (i = 0; i < 256; i++)
5418 if (XOR (islower (i), ISLOWER (i))
5419 || toupper (i) != TOUPPER (i))
5420 return 2;
5421 return 0;
5422}
5423_ACEOF
5424if ac_fn_c_try_run "$LINENO"; then :
5425
5426else
5427 ac_cv_header_stdc=no
5428fi
5429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5430 conftest.$ac_objext conftest.beam conftest.$ac_ext
5431fi
5432
5433fi
5434fi
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5436$as_echo "$ac_cv_header_stdc" >&6; }
5437if test $ac_cv_header_stdc = yes; then
5438
5439$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5440
5441fi
5442
5443# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5444for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5445 inttypes.h stdint.h unistd.h
5446do :
5447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5448ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5449"
5450eval as_val=\$$as_ac_Header
5451 if test "x$as_val" = x""yes; then :
5452 cat >>confdefs.h <<_ACEOF
5453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5454_ACEOF
5455
5456fi
5457
5458done
5459
5460
5461
5462 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5463if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5464 MINIX=yes
5465else
5466 MINIX=
5467fi
5468
5469
5470 if test "$MINIX" = yes; then
5471
5472$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5473
5474
5475$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5476
5477
5478$as_echo "#define _MINIX 1" >>confdefs.h
5479
5480 fi
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5484$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5485if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h. */
5490
5491# define __EXTENSIONS__ 1
5492 $ac_includes_default
5493int
5494main ()
5495{
5496
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501if ac_fn_c_try_compile "$LINENO"; then :
5502 ac_cv_safe_to_define___extensions__=yes
5503else
5504 ac_cv_safe_to_define___extensions__=no
5505fi
5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5509$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5510 test $ac_cv_safe_to_define___extensions__ = yes &&
5511 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5512
5513 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5514
5515 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5516
5517 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5518
5519 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5520
5521
5522
5523# Check for programs
5524ac_ext=c
5525ac_cpp='$CPP $CPPFLAGS'
5526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529if test -n "$ac_tool_prefix"; then
5530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5531set dummy ${ac_tool_prefix}gcc; ac_word=$2
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533$as_echo_n "checking for $ac_word... " >&6; }
5534if test "${ac_cv_prog_CC+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5536else
5537 if test -n "$CC"; then
5538 ac_cv_prog_CC="$CC" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551done
5552 done
5553IFS=$as_save_IFS
5554
5555fi
5556fi
5557CC=$ac_cv_prog_CC
5558if test -n "$CC"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5560$as_echo "$CC" >&6; }
5561else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563$as_echo "no" >&6; }
5564fi
5565
5566
5567fi
5568if test -z "$ac_cv_prog_CC"; then
5569 ac_ct_CC=$CC
5570 # Extract the first word of "gcc", so it can be a program name with args.
5571set dummy gcc; ac_word=$2
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573$as_echo_n "checking for $ac_word... " >&6; }
5574if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5576else
5577 if test -n "$ac_ct_CC"; then
5578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_ac_ct_CC="gcc"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591done
5592 done
5593IFS=$as_save_IFS
5594
5595fi
5596fi
5597ac_ct_CC=$ac_cv_prog_ac_ct_CC
5598if test -n "$ac_ct_CC"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5600$as_echo "$ac_ct_CC" >&6; }
5601else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }
5604fi
5605
5606 if test "x$ac_ct_CC" = x; then
5607 CC=""
5608 else
5609 case $cross_compiling:$ac_tool_warned in
5610yes:)
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613ac_tool_warned=yes ;;
5614esac
5615 CC=$ac_ct_CC
5616 fi
5617else
5618 CC="$ac_cv_prog_CC"
5619fi
5620
5621if test -z "$CC"; then
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5624set dummy ${ac_tool_prefix}cc; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if test "${ac_cv_prog_CC+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629else
5630 if test -n "$CC"; then
5631 ac_cv_prog_CC="$CC" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_CC="${ac_tool_prefix}cc"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644done
5645 done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650CC=$ac_cv_prog_CC
5651if test -n "$CC"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5653$as_echo "$CC" >&6; }
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659
5660 fi
5661fi
5662if test -z "$CC"; then
5663 # Extract the first word of "cc", so it can be a program name with args.
5664set dummy cc; ac_word=$2
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666$as_echo_n "checking for $ac_word... " >&6; }
5667if test "${ac_cv_prog_CC+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669else
5670 if test -n "$CC"; then
5671 ac_cv_prog_CC="$CC" # Let the user override the test.
5672else
5673 ac_prog_rejected=no
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5682 ac_prog_rejected=yes
5683 continue
5684 fi
5685 ac_cv_prog_CC="cc"
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5688 fi
5689done
5690 done
5691IFS=$as_save_IFS
5692
5693if test $ac_prog_rejected = yes; then
5694 # We found a bogon in the path, so make sure we never use it.
5695 set dummy $ac_cv_prog_CC
5696 shift
5697 if test $# != 0; then
5698 # We chose a different compiler from the bogus one.
5699 # However, it has the same basename, so the bogon will be chosen
5700 # first if we set CC to just the basename; use the full file name.
5701 shift
5702 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5703 fi
5704fi
5705fi
5706fi
5707CC=$ac_cv_prog_CC
5708if test -n "$CC"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5710$as_echo "$CC" >&6; }
5711else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714fi
5715
5716
5717fi
5718if test -z "$CC"; then
5719 if test -n "$ac_tool_prefix"; then
5720 for ac_prog in cl.exe
5721 do
5722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5723set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725$as_echo_n "checking for $ac_word... " >&6; }
5726if test "${ac_cv_prog_CC+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728else
5729 if test -n "$CC"; then
5730 ac_cv_prog_CC="$CC" # Let the user override the test.
5731else
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743done
5744 done
5745IFS=$as_save_IFS
5746
5747fi
5748fi
5749CC=$ac_cv_prog_CC
5750if test -n "$CC"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5752$as_echo "$CC" >&6; }
5753else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755$as_echo "no" >&6; }
5756fi
5757
5758
5759 test -n "$CC" && break
5760 done
5761fi
5762if test -z "$CC"; then
5763 ac_ct_CC=$CC
5764 for ac_prog in cl.exe
5765do
5766 # Extract the first word of "$ac_prog", so it can be a program name with args.
5767set dummy $ac_prog; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772else
5773 if test -n "$ac_ct_CC"; then
5774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_ac_ct_CC="$ac_prog"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787done
5788 done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793ac_ct_CC=$ac_cv_prog_ac_ct_CC
5794if test -n "$ac_ct_CC"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5796$as_echo "$ac_ct_CC" >&6; }
5797else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802
5803 test -n "$ac_ct_CC" && break
5804done
5805
5806 if test "x$ac_ct_CC" = x; then
5807 CC=""
5808 else
5809 case $cross_compiling:$ac_tool_warned in
5810yes:)
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813ac_tool_warned=yes ;;
5814esac
5815 CC=$ac_ct_CC
5816 fi
5817fi
5818
5819fi
5820
5821
5822test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5824as_fn_error "no acceptable C compiler found in \$PATH
5825See \`config.log' for more details." "$LINENO" 5; }
5826
5827# Provide some information about the compiler.
5828$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5829set X $ac_compile
5830ac_compiler=$2
5831for ac_option in --version -v -V -qversion; do
5832 { { ac_try="$ac_compiler $ac_option >&5"
5833case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836esac
5837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5838$as_echo "$ac_try_echo"; } >&5
5839 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5840 ac_status=$?
5841 if test -s conftest.err; then
5842 sed '10a\
5843... rest of stderr output deleted ...
5844 10q' conftest.err >conftest.er1
5845 cat conftest.er1 >&5
5846 fi
5847 rm -f conftest.er1 conftest.err
5848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5849 test $ac_status = 0; }
5850done
5851
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5853$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5854if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856else
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858/* end confdefs.h. */
5859
5860int
5861main ()
5862{
5863#ifndef __GNUC__
5864 choke me
5865#endif
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871if ac_fn_c_try_compile "$LINENO"; then :
5872 ac_compiler_gnu=yes
5873else
5874 ac_compiler_gnu=no
5875fi
5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877ac_cv_c_compiler_gnu=$ac_compiler_gnu
5878
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5881$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5882if test $ac_compiler_gnu = yes; then
5883 GCC=yes
5884else
5885 GCC=
5886fi
5887ac_test_CFLAGS=${CFLAGS+set}
5888ac_save_CFLAGS=$CFLAGS
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5890$as_echo_n "checking whether $CC accepts -g... " >&6; }
5891if test "${ac_cv_prog_cc_g+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5893else
5894 ac_save_c_werror_flag=$ac_c_werror_flag
5895 ac_c_werror_flag=yes
5896 ac_cv_prog_cc_g=no
5897 CFLAGS="-g"
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899/* end confdefs.h. */
5900
5901int
5902main ()
5903{
5904
5905 ;
5906 return 0;
5907}
5908_ACEOF
5909if ac_fn_c_try_compile "$LINENO"; then :
5910 ac_cv_prog_cc_g=yes
5911else
5912 CFLAGS=""
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h. */
5915
5916int
5917main ()
5918{
5919
5920 ;
5921 return 0;
5922}
5923_ACEOF
5924if ac_fn_c_try_compile "$LINENO"; then :
5925
5926else
5927 ac_c_werror_flag=$ac_save_c_werror_flag
5928 CFLAGS="-g"
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931
5932int
5933main ()
5934{
5935
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940if ac_fn_c_try_compile "$LINENO"; then :
5941 ac_cv_prog_cc_g=yes
5942fi
5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944fi
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946fi
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 ac_c_werror_flag=$ac_save_c_werror_flag
5949fi
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5951$as_echo "$ac_cv_prog_cc_g" >&6; }
5952if test "$ac_test_CFLAGS" = set; then
5953 CFLAGS=$ac_save_CFLAGS
5954elif test $ac_cv_prog_cc_g = yes; then
5955 if test "$GCC" = yes; then
5956 CFLAGS="-g -O2"
5957 else
5958 CFLAGS="-g"
5959 fi
5960else
5961 if test "$GCC" = yes; then
5962 CFLAGS="-O2"
5963 else
5964 CFLAGS=
5965 fi
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5968$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5969if test "${ac_cv_prog_cc_c89+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5971else
5972 ac_cv_prog_cc_c89=no
5973ac_save_CC=$CC
5974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975/* end confdefs.h. */
5976#include <stdarg.h>
5977#include <stdio.h>
5978#include <sys/types.h>
5979#include <sys/stat.h>
5980/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5981struct buf { int x; };
5982FILE * (*rcsopen) (struct buf *, struct stat *, int);
5983static char *e (p, i)
5984 char **p;
5985 int i;
5986{
5987 return p[i];
5988}
5989static char *f (char * (*g) (char **, int), char **p, ...)
5990{
5991 char *s;
5992 va_list v;
5993 va_start (v,p);
5994 s = g (p, va_arg (v,int));
5995 va_end (v);
5996 return s;
5997}
5998
5999/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6000 function prototypes and stuff, but not '\xHH' hex character constants.
6001 These don't provoke an error unfortunately, instead are silently treated
6002 as 'x'. The following induces an error, until -std is added to get
6003 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6004 array size at least. It's necessary to write '\x00'==0 to get something
6005 that's true only with -std. */
6006int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6007
6008/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6009 inside strings and character constants. */
6010#define FOO(x) 'x'
6011int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6012
6013int test (int i, double x);
6014struct s1 {int (*f) (int a);};
6015struct s2 {int (*f) (double a);};
6016int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6017int argc;
6018char **argv;
6019int
6020main ()
6021{
6022return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6028 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6029do
6030 CC="$ac_save_CC $ac_arg"
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 ac_cv_prog_cc_c89=$ac_arg
6033fi
6034rm -f core conftest.err conftest.$ac_objext
6035 test "x$ac_cv_prog_cc_c89" != "xno" && break
6036done
6037rm -f conftest.$ac_ext
6038CC=$ac_save_CC
6039
6040fi
6041# AC_CACHE_VAL
6042case "x$ac_cv_prog_cc_c89" in
6043 x)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6045$as_echo "none needed" >&6; } ;;
6046 xno)
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6048$as_echo "unsupported" >&6; } ;;
6049 *)
6050 CC="$CC $ac_cv_prog_cc_c89"
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6052$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6053esac
6054if test "x$ac_cv_prog_cc_c89" != xno; then :
6055
6056fi
6057
6058ac_ext=c
6059ac_cpp='$CPP $CPPFLAGS'
6060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063
cristy3ed852e2009-09-05 21:47:34 +00006064depcc="$CC" am_compiler_list=
6065
cristy8b350f62009-11-15 23:12:43 +00006066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006067$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006068if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006069 $as_echo_n "(cached) " >&6
6070else
6071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6072 # We make a subdir and do the tests there. Otherwise we can end up
6073 # making bogus files that we don't know about and never remove. For
6074 # instance it was reported that on HP-UX the gcc test will end up
6075 # making a dummy file named `D' -- because `-MD' means `put the output
6076 # in D'.
6077 mkdir conftest.dir
6078 # Copy depcomp to subdir because otherwise we won't find it if we're
6079 # using a relative directory.
6080 cp "$am_depcomp" conftest.dir
6081 cd conftest.dir
6082 # We will build objects and dependencies in a subdirectory because
6083 # it helps to detect inapplicable dependency modes. For instance
6084 # both Tru64's cc and ICC support -MD to output dependencies as a
6085 # side effect of compilation, but ICC will put the dependencies in
6086 # the current directory while Tru64 will put them in the object
6087 # directory.
6088 mkdir sub
6089
6090 am_cv_CC_dependencies_compiler_type=none
6091 if test "$am_compiler_list" = ""; then
6092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6093 fi
6094 am__universal=false
6095 case " $depcc " in #(
6096 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6097 esac
6098
6099 for depmode in $am_compiler_list; do
6100 # Setup a source with many dependencies, because some compilers
6101 # like to wrap large dependency lists on column 80 (with \), and
6102 # we should not choose a depcomp mode which is confused by this.
6103 #
6104 # We need to recreate these files for each test, as the compiler may
6105 # overwrite some of them when testing with obscure command lines.
6106 # This happens at least with the AIX C compiler.
6107 : > sub/conftest.c
6108 for i in 1 2 3 4 5 6; do
6109 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6110 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6111 # Solaris 8's {/usr,}/bin/sh.
6112 touch sub/conftst$i.h
6113 done
6114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6115
6116 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6117 # mode. It turns out that the SunPro C++ compiler does not properly
6118 # handle `-M -o', and we need to detect this. Also, some Intel
6119 # versions had trouble with output in subdirs
6120 am__obj=sub/conftest.${OBJEXT-o}
6121 am__minus_obj="-o $am__obj"
6122 case $depmode in
6123 gcc)
6124 # This depmode causes a compiler race in universal mode.
6125 test "$am__universal" = false || continue
6126 ;;
6127 nosideeffect)
6128 # after this tag, mechanisms are not by side-effect, so they'll
6129 # only be used when explicitly requested
6130 if test "x$enable_dependency_tracking" = xyes; then
6131 continue
6132 else
6133 break
6134 fi
6135 ;;
6136 msvisualcpp | msvcmsys)
6137 # This compiler won't grok `-c -o', but also, the minuso test has
6138 # not run yet. These depmodes are late enough in the game, and
6139 # so weak that their functioning should not be impacted.
6140 am__obj=conftest.${OBJEXT-o}
6141 am__minus_obj=
6142 ;;
6143 none) break ;;
6144 esac
6145 if depmode=$depmode \
6146 source=sub/conftest.c object=$am__obj \
6147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6149 >/dev/null 2>conftest.err &&
6150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6154 # icc doesn't choke on unknown options, it will just issue warnings
6155 # or remarks (even with -Werror). So we grep stderr for any message
6156 # that says an option was ignored or not supported.
6157 # When given -MP, icc 7.0 and 7.1 complain thusly:
6158 # icc: Command line warning: ignoring option '-M'; no argument required
6159 # The diagnosis changed in icc 8.0:
6160 # icc: Command line remark: option '-MP' not supported
6161 if (grep 'ignoring option' conftest.err ||
6162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6163 am_cv_CC_dependencies_compiler_type=$depmode
6164 break
6165 fi
6166 fi
6167 done
6168
6169 cd ..
6170 rm -rf conftest.dir
6171else
6172 am_cv_CC_dependencies_compiler_type=none
6173fi
6174
6175fi
cristy8b350f62009-11-15 23:12:43 +00006176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006177$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6179
6180 if
6181 test "x$enable_dependency_tracking" != xno \
6182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6183 am__fastdepCC_TRUE=
6184 am__fastdepCC_FALSE='#'
6185else
6186 am__fastdepCC_TRUE='#'
6187 am__fastdepCC_FALSE=
6188fi
6189
6190
cristy95646052009-11-28 23:05:30 +00006191ac_ext=cpp
6192ac_cpp='$CXXCPP $CPPFLAGS'
6193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6196if test -z "$CXX"; then
6197 if test -n "$CCC"; then
6198 CXX=$CCC
6199 else
6200 if test -n "$ac_tool_prefix"; then
6201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6202 do
6203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206$as_echo_n "checking for $ac_word... " >&6; }
6207if test "${ac_cv_prog_CXX+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6209else
6210 if test -n "$CXX"; then
6211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224done
6225 done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230CXX=$ac_cv_prog_CXX
6231if test -n "$CXX"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6233$as_echo "$CXX" >&6; }
6234else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
6237fi
6238
6239
6240 test -n "$CXX" && break
6241 done
6242fi
6243if test -z "$CXX"; then
6244 ac_ct_CXX=$CXX
6245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6246do
6247 # Extract the first word of "$ac_prog", so it can be a program name with args.
6248set dummy $ac_prog; ac_word=$2
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250$as_echo_n "checking for $ac_word... " >&6; }
6251if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6253else
6254 if test -n "$ac_ct_CXX"; then
6255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_ac_ct_CXX="$ac_prog"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269 done
6270IFS=$as_save_IFS
6271
6272fi
6273fi
6274ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6275if test -n "$ac_ct_CXX"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6277$as_echo "$ac_ct_CXX" >&6; }
6278else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6281fi
6282
6283
6284 test -n "$ac_ct_CXX" && break
6285done
6286
6287 if test "x$ac_ct_CXX" = x; then
6288 CXX="g++"
6289 else
6290 case $cross_compiling:$ac_tool_warned in
6291yes:)
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6294ac_tool_warned=yes ;;
6295esac
6296 CXX=$ac_ct_CXX
6297 fi
6298fi
6299
6300 fi
6301fi
6302# Provide some information about the compiler.
6303$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6304set X $ac_compile
6305ac_compiler=$2
6306for ac_option in --version -v -V -qversion; do
6307 { { ac_try="$ac_compiler $ac_option >&5"
6308case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6313$as_echo "$ac_try_echo"; } >&5
6314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6315 ac_status=$?
6316 if test -s conftest.err; then
6317 sed '10a\
6318... rest of stderr output deleted ...
6319 10q' conftest.err >conftest.er1
6320 cat conftest.er1 >&5
6321 fi
6322 rm -f conftest.er1 conftest.err
6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324 test $ac_status = 0; }
6325done
6326
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6328$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6329if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6331else
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h. */
6334
6335int
6336main ()
6337{
6338#ifndef __GNUC__
6339 choke me
6340#endif
6341
6342 ;
6343 return 0;
6344}
6345_ACEOF
6346if ac_fn_cxx_try_compile "$LINENO"; then :
6347 ac_compiler_gnu=yes
6348else
6349 ac_compiler_gnu=no
6350fi
6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6353
6354fi
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6356$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6357if test $ac_compiler_gnu = yes; then
6358 GXX=yes
6359else
6360 GXX=
6361fi
6362ac_test_CXXFLAGS=${CXXFLAGS+set}
6363ac_save_CXXFLAGS=$CXXFLAGS
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6365$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6366if test "${ac_cv_prog_cxx_g+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368else
6369 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6370 ac_cxx_werror_flag=yes
6371 ac_cv_prog_cxx_g=no
6372 CXXFLAGS="-g"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h. */
6375
6376int
6377main ()
6378{
6379
6380 ;
6381 return 0;
6382}
6383_ACEOF
6384if ac_fn_cxx_try_compile "$LINENO"; then :
6385 ac_cv_prog_cxx_g=yes
6386else
6387 CXXFLAGS=""
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h. */
6390
6391int
6392main ()
6393{
6394
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399if ac_fn_cxx_try_compile "$LINENO"; then :
6400
6401else
6402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6403 CXXFLAGS="-g"
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405/* end confdefs.h. */
6406
6407int
6408main ()
6409{
6410
6411 ;
6412 return 0;
6413}
6414_ACEOF
6415if ac_fn_cxx_try_compile "$LINENO"; then :
6416 ac_cv_prog_cxx_g=yes
6417fi
6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421fi
6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6426$as_echo "$ac_cv_prog_cxx_g" >&6; }
6427if test "$ac_test_CXXFLAGS" = set; then
6428 CXXFLAGS=$ac_save_CXXFLAGS
6429elif test $ac_cv_prog_cxx_g = yes; then
6430 if test "$GXX" = yes; then
6431 CXXFLAGS="-g -O2"
6432 else
6433 CXXFLAGS="-g"
6434 fi
6435else
6436 if test "$GXX" = yes; then
6437 CXXFLAGS="-O2"
6438 else
6439 CXXFLAGS=
6440 fi
6441fi
6442ac_ext=c
6443ac_cpp='$CPP $CPPFLAGS'
6444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6446ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447
6448depcc="$CXX" am_compiler_list=
6449
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6451$as_echo_n "checking dependency style of $depcc... " >&6; }
6452if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454else
6455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6456 # We make a subdir and do the tests there. Otherwise we can end up
6457 # making bogus files that we don't know about and never remove. For
6458 # instance it was reported that on HP-UX the gcc test will end up
6459 # making a dummy file named `D' -- because `-MD' means `put the output
6460 # in D'.
6461 mkdir conftest.dir
6462 # Copy depcomp to subdir because otherwise we won't find it if we're
6463 # using a relative directory.
6464 cp "$am_depcomp" conftest.dir
6465 cd conftest.dir
6466 # We will build objects and dependencies in a subdirectory because
6467 # it helps to detect inapplicable dependency modes. For instance
6468 # both Tru64's cc and ICC support -MD to output dependencies as a
6469 # side effect of compilation, but ICC will put the dependencies in
6470 # the current directory while Tru64 will put them in the object
6471 # directory.
6472 mkdir sub
6473
6474 am_cv_CXX_dependencies_compiler_type=none
6475 if test "$am_compiler_list" = ""; then
6476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6477 fi
6478 am__universal=false
6479 case " $depcc " in #(
6480 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6481 esac
6482
6483 for depmode in $am_compiler_list; do
6484 # Setup a source with many dependencies, because some compilers
6485 # like to wrap large dependency lists on column 80 (with \), and
6486 # we should not choose a depcomp mode which is confused by this.
6487 #
6488 # We need to recreate these files for each test, as the compiler may
6489 # overwrite some of them when testing with obscure command lines.
6490 # This happens at least with the AIX C compiler.
6491 : > sub/conftest.c
6492 for i in 1 2 3 4 5 6; do
6493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6494 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6495 # Solaris 8's {/usr,}/bin/sh.
6496 touch sub/conftst$i.h
6497 done
6498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6499
6500 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6501 # mode. It turns out that the SunPro C++ compiler does not properly
6502 # handle `-M -o', and we need to detect this. Also, some Intel
6503 # versions had trouble with output in subdirs
6504 am__obj=sub/conftest.${OBJEXT-o}
6505 am__minus_obj="-o $am__obj"
6506 case $depmode in
6507 gcc)
6508 # This depmode causes a compiler race in universal mode.
6509 test "$am__universal" = false || continue
6510 ;;
6511 nosideeffect)
6512 # after this tag, mechanisms are not by side-effect, so they'll
6513 # only be used when explicitly requested
6514 if test "x$enable_dependency_tracking" = xyes; then
6515 continue
6516 else
6517 break
6518 fi
6519 ;;
6520 msvisualcpp | msvcmsys)
6521 # This compiler won't grok `-c -o', but also, the minuso test has
6522 # not run yet. These depmodes are late enough in the game, and
6523 # so weak that their functioning should not be impacted.
6524 am__obj=conftest.${OBJEXT-o}
6525 am__minus_obj=
6526 ;;
6527 none) break ;;
6528 esac
6529 if depmode=$depmode \
6530 source=sub/conftest.c object=$am__obj \
6531 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6532 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6533 >/dev/null 2>conftest.err &&
6534 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6535 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6536 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6537 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6538 # icc doesn't choke on unknown options, it will just issue warnings
6539 # or remarks (even with -Werror). So we grep stderr for any message
6540 # that says an option was ignored or not supported.
6541 # When given -MP, icc 7.0 and 7.1 complain thusly:
6542 # icc: Command line warning: ignoring option '-M'; no argument required
6543 # The diagnosis changed in icc 8.0:
6544 # icc: Command line remark: option '-MP' not supported
6545 if (grep 'ignoring option' conftest.err ||
6546 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6547 am_cv_CXX_dependencies_compiler_type=$depmode
6548 break
6549 fi
6550 fi
6551 done
6552
6553 cd ..
6554 rm -rf conftest.dir
6555else
6556 am_cv_CXX_dependencies_compiler_type=none
6557fi
6558
6559fi
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6561$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6562CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6563
6564 if
6565 test "x$enable_dependency_tracking" != xno \
6566 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6567 am__fastdepCXX_TRUE=
6568 am__fastdepCXX_FALSE='#'
6569else
6570 am__fastdepCXX_TRUE='#'
6571 am__fastdepCXX_FALSE=
6572fi
6573
6574
cristy8b350f62009-11-15 23:12:43 +00006575 case $ac_cv_prog_cc_stdc in #(
6576 no) :
6577 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6578 *) :
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006580$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006581if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006582 $as_echo_n "(cached) " >&6
6583else
6584 ac_cv_prog_cc_c99=no
6585ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006587/* end confdefs.h. */
6588#include <stdarg.h>
6589#include <stdbool.h>
6590#include <stdlib.h>
6591#include <wchar.h>
6592#include <stdio.h>
6593
6594// Check varargs macros. These examples are taken from C99 6.10.3.5.
6595#define debug(...) fprintf (stderr, __VA_ARGS__)
6596#define showlist(...) puts (#__VA_ARGS__)
6597#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6598static void
6599test_varargs_macros (void)
6600{
6601 int x = 1234;
6602 int y = 5678;
6603 debug ("Flag");
6604 debug ("X = %d\n", x);
6605 showlist (The first, second, and third items.);
6606 report (x>y, "x is %d but y is %d", x, y);
6607}
6608
6609// Check long long types.
6610#define BIG64 18446744073709551615ull
6611#define BIG32 4294967295ul
6612#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6613#if !BIG_OK
6614 your preprocessor is broken;
6615#endif
6616#if BIG_OK
6617#else
6618 your preprocessor is broken;
6619#endif
6620static long long int bignum = -9223372036854775807LL;
6621static unsigned long long int ubignum = BIG64;
6622
6623struct incomplete_array
6624{
6625 int datasize;
6626 double data[];
6627};
6628
6629struct named_init {
6630 int number;
6631 const wchar_t *name;
6632 double average;
6633};
6634
6635typedef const char *ccp;
6636
6637static inline int
6638test_restrict (ccp restrict text)
6639{
6640 // See if C++-style comments work.
6641 // Iterate through items via the restricted pointer.
6642 // Also check for declarations in for loops.
6643 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6644 continue;
6645 return 0;
6646}
6647
6648// Check varargs and va_copy.
6649static void
6650test_varargs (const char *format, ...)
6651{
6652 va_list args;
6653 va_start (args, format);
6654 va_list args_copy;
6655 va_copy (args_copy, args);
6656
6657 const char *str;
6658 int number;
6659 float fnumber;
6660
6661 while (*format)
6662 {
6663 switch (*format++)
6664 {
6665 case 's': // string
6666 str = va_arg (args_copy, const char *);
6667 break;
6668 case 'd': // int
6669 number = va_arg (args_copy, int);
6670 break;
6671 case 'f': // float
6672 fnumber = va_arg (args_copy, double);
6673 break;
6674 default:
6675 break;
6676 }
6677 }
6678 va_end (args_copy);
6679 va_end (args);
6680}
6681
6682int
6683main ()
6684{
6685
6686 // Check bool.
6687 _Bool success = false;
6688
6689 // Check restrict.
6690 if (test_restrict ("String literal") == 0)
6691 success = true;
6692 char *restrict newvar = "Another string";
6693
6694 // Check varargs.
6695 test_varargs ("s, d' f .", "string", 65, 34.234);
6696 test_varargs_macros ();
6697
6698 // Check flexible array members.
6699 struct incomplete_array *ia =
6700 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6701 ia->datasize = 10;
6702 for (int i = 0; i < ia->datasize; ++i)
6703 ia->data[i] = i * 1.234;
6704
6705 // Check named initializers.
6706 struct named_init ni = {
6707 .number = 34,
6708 .name = L"Test wide string",
6709 .average = 543.34343,
6710 };
6711
6712 ni.number = 58;
6713
6714 int dynamic_array[ni.number];
6715 dynamic_array[ni.number - 1] = 543;
6716
6717 // work around unused variable warnings
6718 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6719 || dynamic_array[ni.number - 1] != 543);
6720
6721 ;
6722 return 0;
6723}
6724_ACEOF
6725for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6726do
6727 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006728 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006729 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006730fi
cristy3ed852e2009-09-05 21:47:34 +00006731rm -f core conftest.err conftest.$ac_objext
6732 test "x$ac_cv_prog_cc_c99" != "xno" && break
6733done
6734rm -f conftest.$ac_ext
6735CC=$ac_save_CC
6736
6737fi
6738# AC_CACHE_VAL
6739case "x$ac_cv_prog_cc_c99" in
6740 x)
cristy8b350f62009-11-15 23:12:43 +00006741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006742$as_echo "none needed" >&6; } ;;
6743 xno)
cristy8b350f62009-11-15 23:12:43 +00006744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006745$as_echo "unsupported" >&6; } ;;
6746 *)
6747 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006749$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6750esac
cristy8b350f62009-11-15 23:12:43 +00006751if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006752 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6753else
cristy8b350f62009-11-15 23:12:43 +00006754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006755$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006756if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006757 $as_echo_n "(cached) " >&6
6758else
6759 ac_cv_prog_cc_c89=no
6760ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006762/* end confdefs.h. */
6763#include <stdarg.h>
6764#include <stdio.h>
6765#include <sys/types.h>
6766#include <sys/stat.h>
6767/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6768struct buf { int x; };
6769FILE * (*rcsopen) (struct buf *, struct stat *, int);
6770static char *e (p, i)
6771 char **p;
6772 int i;
6773{
6774 return p[i];
6775}
6776static char *f (char * (*g) (char **, int), char **p, ...)
6777{
6778 char *s;
6779 va_list v;
6780 va_start (v,p);
6781 s = g (p, va_arg (v,int));
6782 va_end (v);
6783 return s;
6784}
6785
6786/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6787 function prototypes and stuff, but not '\xHH' hex character constants.
6788 These don't provoke an error unfortunately, instead are silently treated
6789 as 'x'. The following induces an error, until -std is added to get
6790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6791 array size at least. It's necessary to write '\x00'==0 to get something
6792 that's true only with -std. */
6793int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6794
6795/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6796 inside strings and character constants. */
6797#define FOO(x) 'x'
6798int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6799
6800int test (int i, double x);
6801struct s1 {int (*f) (int a);};
6802struct s2 {int (*f) (double a);};
6803int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6804int argc;
6805char **argv;
6806int
6807main ()
6808{
6809return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6810 ;
6811 return 0;
6812}
6813_ACEOF
6814for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6815 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6816do
6817 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006818 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006819 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006820fi
cristy3ed852e2009-09-05 21:47:34 +00006821rm -f core conftest.err conftest.$ac_objext
6822 test "x$ac_cv_prog_cc_c89" != "xno" && break
6823done
6824rm -f conftest.$ac_ext
6825CC=$ac_save_CC
6826
6827fi
6828# AC_CACHE_VAL
6829case "x$ac_cv_prog_cc_c89" in
6830 x)
cristy8b350f62009-11-15 23:12:43 +00006831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006832$as_echo "none needed" >&6; } ;;
6833 xno)
cristy8b350f62009-11-15 23:12:43 +00006834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006835$as_echo "unsupported" >&6; } ;;
6836 *)
6837 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006839$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6840esac
cristy8b350f62009-11-15 23:12:43 +00006841if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006842 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6843else
6844 ac_cv_prog_cc_stdc=no
6845fi
6846
cristy3ed852e2009-09-05 21:47:34 +00006847fi
cristy3ed852e2009-09-05 21:47:34 +00006848 ;;
6849esac
cristy8b350f62009-11-15 23:12:43 +00006850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006851$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006852 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006853 $as_echo_n "(cached) " >&6
6854fi
6855
cristy8b350f62009-11-15 23:12:43 +00006856 case $ac_cv_prog_cc_stdc in #(
6857 no) :
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6859$as_echo "unsupported" >&6; } ;; #(
6860 '') :
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6862$as_echo "none needed" >&6; } ;; #(
6863 *) :
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006865$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6866esac
6867
cristy3ed852e2009-09-05 21:47:34 +00006868ac_ext=c
6869ac_cpp='$CPP $CPPFLAGS'
6870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6872ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006874$as_echo_n "checking how to run the C preprocessor... " >&6; }
6875# On Suns, sometimes $CPP names a directory.
6876if test -n "$CPP" && test -d "$CPP"; then
6877 CPP=
6878fi
6879if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006880 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006881 $as_echo_n "(cached) " >&6
6882else
6883 # Double quotes because CPP needs to be expanded
6884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6885 do
6886 ac_preproc_ok=false
6887for ac_c_preproc_warn_flag in '' yes
6888do
6889 # Use a header file that comes with gcc, so configuring glibc
6890 # with a fresh cross-compiler works.
6891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892 # <limits.h> exists even on freestanding compilers.
6893 # On the NeXT, cc -E runs the code through the compiler's parser,
6894 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006896/* end confdefs.h. */
6897#ifdef __STDC__
6898# include <limits.h>
6899#else
6900# include <assert.h>
6901#endif
6902 Syntax error
6903_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006904if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006905
cristy8b350f62009-11-15 23:12:43 +00006906else
cristy3ed852e2009-09-05 21:47:34 +00006907 # Broken: fails on valid input.
6908continue
6909fi
cristy3ed852e2009-09-05 21:47:34 +00006910rm -f conftest.err conftest.$ac_ext
6911
6912 # OK, works on sane cases. Now check whether nonexistent headers
6913 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006915/* end confdefs.h. */
6916#include <ac_nonexistent.h>
6917_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006918if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006919 # Broken: success on invalid input.
6920continue
6921else
cristy3ed852e2009-09-05 21:47:34 +00006922 # Passes both tests.
6923ac_preproc_ok=:
6924break
6925fi
cristy3ed852e2009-09-05 21:47:34 +00006926rm -f conftest.err conftest.$ac_ext
6927
6928done
6929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6930rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006931if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006932 break
6933fi
6934
6935 done
6936 ac_cv_prog_CPP=$CPP
6937
6938fi
6939 CPP=$ac_cv_prog_CPP
6940else
6941 ac_cv_prog_CPP=$CPP
6942fi
cristy8b350f62009-11-15 23:12:43 +00006943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006944$as_echo "$CPP" >&6; }
6945ac_preproc_ok=false
6946for ac_c_preproc_warn_flag in '' yes
6947do
6948 # Use a header file that comes with gcc, so configuring glibc
6949 # with a fresh cross-compiler works.
6950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 # <limits.h> exists even on freestanding compilers.
6952 # On the NeXT, cc -E runs the code through the compiler's parser,
6953 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006955/* end confdefs.h. */
6956#ifdef __STDC__
6957# include <limits.h>
6958#else
6959# include <assert.h>
6960#endif
6961 Syntax error
6962_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006963if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006964
cristy8b350f62009-11-15 23:12:43 +00006965else
cristy3ed852e2009-09-05 21:47:34 +00006966 # Broken: fails on valid input.
6967continue
6968fi
cristy3ed852e2009-09-05 21:47:34 +00006969rm -f conftest.err conftest.$ac_ext
6970
6971 # OK, works on sane cases. Now check whether nonexistent headers
6972 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006974/* end confdefs.h. */
6975#include <ac_nonexistent.h>
6976_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006977if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006978 # Broken: success on invalid input.
6979continue
6980else
cristy3ed852e2009-09-05 21:47:34 +00006981 # Passes both tests.
6982ac_preproc_ok=:
6983break
6984fi
cristy3ed852e2009-09-05 21:47:34 +00006985rm -f conftest.err conftest.$ac_ext
6986
6987done
6988# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6989rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006990if $ac_preproc_ok; then :
6991
cristy3ed852e2009-09-05 21:47:34 +00006992else
cristy8b350f62009-11-15 23:12:43 +00006993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00006995as_fn_error "C preprocessor \"$CPP\" fails sanity check
6996See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006997fi
6998
6999ac_ext=c
7000ac_cpp='$CPP $CPPFLAGS'
7001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003ac_compiler_gnu=$ac_cv_c_compiler_gnu
7004
cristy8b350f62009-11-15 23:12:43 +00007005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007006$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007007if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007008 $as_echo_n "(cached) " >&6
7009else
7010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7011 for ac_i in 1 2 3 4 5 6 7; do
7012 ac_script="$ac_script$as_nl$ac_script"
7013 done
7014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007015 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007016 if test -z "$SED"; then
7017 ac_path_SED_found=false
7018 # Loop through the user's path and test for each of PROGNAME-LIST
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007024 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7027 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7028# Check for GNU ac_path_SED and select it if it is found.
7029 # Check for GNU $ac_path_SED
7030case `"$ac_path_SED" --version 2>&1` in
7031*GNU*)
7032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7033*)
7034 ac_count=0
7035 $as_echo_n 0123456789 >"conftest.in"
7036 while :
7037 do
7038 cat "conftest.in" "conftest.in" >"conftest.tmp"
7039 mv "conftest.tmp" "conftest.in"
7040 cp "conftest.in" "conftest.nl"
7041 $as_echo '' >> "conftest.nl"
7042 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007044 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007045 if test $ac_count -gt ${ac_path_SED_max-0}; then
7046 # Best one so far, save it but keep looking for a better one
7047 ac_cv_path_SED="$ac_path_SED"
7048 ac_path_SED_max=$ac_count
7049 fi
7050 # 10*(2^10) chars as input seems more than enough
7051 test $ac_count -gt 10 && break
7052 done
7053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7054esac
7055
7056 $ac_path_SED_found && break 3
7057 done
7058 done
cristy8b350f62009-11-15 23:12:43 +00007059 done
cristy3ed852e2009-09-05 21:47:34 +00007060IFS=$as_save_IFS
7061 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007062 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007063 fi
7064else
7065 ac_cv_path_SED=$SED
7066fi
7067
7068fi
cristy8b350f62009-11-15 23:12:43 +00007069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007070$as_echo "$ac_cv_path_SED" >&6; }
7071 SED="$ac_cv_path_SED"
7072 rm -f conftest.sed
7073
7074test -z "$SED" && SED=sed
7075Xsed="$SED -e 1s/^X//"
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
cristy8b350f62009-11-15 23:12:43 +00007087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007088$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007089if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007090 $as_echo_n "(cached) " >&6
7091else
7092 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7093 then ac_cv_path_FGREP="$GREP -F"
7094 else
7095 if test -z "$FGREP"; then
7096 ac_path_FGREP_found=false
7097 # Loop through the user's path and test for each of PROGNAME-LIST
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007103 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7106 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7107# Check for GNU ac_path_FGREP and select it if it is found.
7108 # Check for GNU $ac_path_FGREP
7109case `"$ac_path_FGREP" --version 2>&1` in
7110*GNU*)
7111 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7112*)
7113 ac_count=0
7114 $as_echo_n 0123456789 >"conftest.in"
7115 while :
7116 do
7117 cat "conftest.in" "conftest.in" >"conftest.tmp"
7118 mv "conftest.tmp" "conftest.in"
7119 cp "conftest.in" "conftest.nl"
7120 $as_echo 'FGREP' >> "conftest.nl"
7121 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007123 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007124 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7125 # Best one so far, save it but keep looking for a better one
7126 ac_cv_path_FGREP="$ac_path_FGREP"
7127 ac_path_FGREP_max=$ac_count
7128 fi
7129 # 10*(2^10) chars as input seems more than enough
7130 test $ac_count -gt 10 && break
7131 done
7132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7133esac
7134
7135 $ac_path_FGREP_found && break 3
7136 done
7137 done
cristy8b350f62009-11-15 23:12:43 +00007138 done
cristy3ed852e2009-09-05 21:47:34 +00007139IFS=$as_save_IFS
7140 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007141 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007142 fi
7143else
7144 ac_cv_path_FGREP=$FGREP
7145fi
7146
7147 fi
7148fi
cristy8b350f62009-11-15 23:12:43 +00007149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007150$as_echo "$ac_cv_path_FGREP" >&6; }
7151 FGREP="$ac_cv_path_FGREP"
7152
7153
7154test -z "$GREP" && GREP=grep
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007175if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7177else
7178 with_gnu_ld=no
7179fi
7180
7181ac_prog=ld
7182if test "$GCC" = yes; then
7183 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007185$as_echo_n "checking for ld used by $CC... " >&6; }
7186 case $host in
7187 *-*-mingw*)
7188 # gcc leaves a trailing carriage return which upsets mingw
7189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7190 *)
7191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7192 esac
7193 case $ac_prog in
7194 # Accept absolute paths.
7195 [\\/]* | ?:[\\/]*)
7196 re_direlt='/[^/][^/]*/\.\./'
7197 # Canonicalize the pathname of ld
7198 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7199 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7200 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7201 done
7202 test -z "$LD" && LD="$ac_prog"
7203 ;;
7204 "")
7205 # If it fails, then pretend we aren't using GCC.
7206 ac_prog=ld
7207 ;;
7208 *)
7209 # If it is relative, then search for the first ld in PATH.
7210 with_gnu_ld=unknown
7211 ;;
7212 esac
7213elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007215$as_echo_n "checking for GNU ld... " >&6; }
7216else
cristy8b350f62009-11-15 23:12:43 +00007217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007218$as_echo_n "checking for non-GNU ld... " >&6; }
7219fi
cristy8b350f62009-11-15 23:12:43 +00007220if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007221 $as_echo_n "(cached) " >&6
7222else
7223 if test -z "$LD"; then
7224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7225 for ac_dir in $PATH; do
7226 IFS="$lt_save_ifs"
7227 test -z "$ac_dir" && ac_dir=.
7228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7229 lt_cv_path_LD="$ac_dir/$ac_prog"
7230 # Check to see if the program is GNU ld. I'd rather use --version,
7231 # but apparently some variants of GNU ld only accept -v.
7232 # Break only if it was the GNU/non-GNU ld that we prefer.
7233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7234 *GNU* | *'with BFD'*)
7235 test "$with_gnu_ld" != no && break
7236 ;;
7237 *)
7238 test "$with_gnu_ld" != yes && break
7239 ;;
7240 esac
7241 fi
7242 done
7243 IFS="$lt_save_ifs"
7244else
7245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7246fi
7247fi
7248
7249LD="$lt_cv_path_LD"
7250if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007252$as_echo "$LD" >&6; }
7253else
cristy8b350f62009-11-15 23:12:43 +00007254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007255$as_echo "no" >&6; }
7256fi
cristy8b350f62009-11-15 23:12:43 +00007257test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007259$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007260if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007261 $as_echo_n "(cached) " >&6
7262else
7263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7264case `$LD -v 2>&1 </dev/null` in
7265*GNU* | *'with BFD'*)
7266 lt_cv_prog_gnu_ld=yes
7267 ;;
7268*)
7269 lt_cv_prog_gnu_ld=no
7270 ;;
7271esac
7272fi
cristy8b350f62009-11-15 23:12:43 +00007273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007274$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7275with_gnu_ld=$lt_cv_prog_gnu_ld
7276
7277
7278
7279
7280
7281
7282
7283
7284
cristy3ed852e2009-09-05 21:47:34 +00007285
7286if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007288$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7289else
cristy8b350f62009-11-15 23:12:43 +00007290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007291$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7292fi
7293set dummy $CC; ac_cc=`$as_echo "$2" |
7294 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007295if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007296 $as_echo_n "(cached) " >&6
7297else
cristy8b350f62009-11-15 23:12:43 +00007298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007299/* end confdefs.h. */
7300
7301int
7302main ()
7303{
7304
7305 ;
7306 return 0;
7307}
7308_ACEOF
7309# Make sure it works both with $CC and with simple cc.
7310# We do the test twice because some compilers refuse to overwrite an
7311# existing .o file with -o, though they will create one.
7312ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7313rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007314if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317esac
cristy8b350f62009-11-15 23:12:43 +00007318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7319$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007320 (eval "$ac_try") 2>&5
7321 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7323 test $ac_status = 0; } &&
7324 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327esac
cristy8b350f62009-11-15 23:12:43 +00007328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7329$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007330 (eval "$ac_try") 2>&5
7331 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007334then
7335 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7336 if test "x$CC" != xcc; then
7337 # Test first that cc exists at all.
7338 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007339 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342esac
cristy8b350f62009-11-15 23:12:43 +00007343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7344$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007345 (eval "$ac_try") 2>&5
7346 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007349 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7350 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007351 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354esac
cristy8b350f62009-11-15 23:12:43 +00007355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7356$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007357 (eval "$ac_try") 2>&5
7358 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360 test $ac_status = 0; } &&
7361 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7364esac
cristy8b350f62009-11-15 23:12:43 +00007365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7366$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007367 (eval "$ac_try") 2>&5
7368 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7370 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007371 then
7372 # cc works too.
7373 :
7374 else
7375 # cc exists but doesn't like -o.
7376 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7377 fi
7378 fi
7379 fi
7380else
7381 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7382fi
7383rm -f core conftest*
7384
7385fi
7386if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007388$as_echo "yes" >&6; }
7389else
cristy8b350f62009-11-15 23:12:43 +00007390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007391$as_echo "no" >&6; }
7392
cristy8b350f62009-11-15 23:12:43 +00007393$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007394
7395fi
7396
7397# FIXME: we rely on the cache variable name because
7398# there is no other way.
7399set dummy $CC
7400am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7401eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7402if test "$am_t" != yes; then
7403 # Losing compiler, so override with the script.
7404 # FIXME: It is wrong to rewrite CC.
7405 # But if we don't then we get into trouble of one sort or another.
7406 # A longer-term fix would be to have automake use am__CC in this case,
7407 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7408 CC="$am_aux_dir/compile $CC"
7409fi
7410
7411
cristy3ed852e2009-09-05 21:47:34 +00007412
cristy8b350f62009-11-15 23:12:43 +00007413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007414$as_echo_n "checking maximum warning verbosity option... " >&6; }
7415
7416
7417
7418
7419# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00007420if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007421 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7422else
7423 ac_compile_warnings_on=""
7424fi
7425
7426
7427 if test x"$ac_compile_warnings_on" = xno
7428 then
7429 ac_compile_warnings_msg=no
7430 else
7431 if test -n "$CXX"
7432 then
7433 if test "$GXX" = "yes"
7434 then
cristybcbeec82010-01-22 03:20:31 +00007435 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007436 fi
7437 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7438 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7439 fi
7440
7441 if test -n "$CC"
7442 then
7443 if test "$GCC" = "yes"
7444 then
cristybcbeec82010-01-22 03:20:31 +00007445 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007446 fi
7447 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7448 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7449 fi
7450 fi
cristy8b350f62009-11-15 23:12:43 +00007451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00007452$as_echo "$ac_compile_warnings_msg" >&6; }
7453 unset ac_compile_warnings_msg
7454 unset ac_compile_warnings_opt
7455
cristya0b81c32010-01-22 02:54:33 +00007456$ac_includes_default
7457
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7459$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7460set x ${MAKE-make}
7461ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7462if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7463 $as_echo_n "(cached) " >&6
7464else
7465 cat >conftest.make <<\_ACEOF
7466SHELL = /bin/sh
7467all:
7468 @echo '@@@%%%=$(MAKE)=@@@%%%'
7469_ACEOF
7470# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7471case `${MAKE-make} -f conftest.make 2>/dev/null` in
7472 *@@@%%%=?*=@@@%%%*)
7473 eval ac_cv_prog_make_${ac_make}_set=yes;;
7474 *)
7475 eval ac_cv_prog_make_${ac_make}_set=no;;
7476esac
7477rm -f conftest.make
7478fi
7479if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7481$as_echo "yes" >&6; }
7482 SET_MAKE=
7483else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485$as_echo "no" >&6; }
7486 SET_MAKE="MAKE=${MAKE-make}"
7487fi
7488
cristy8b350f62009-11-15 23:12:43 +00007489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007490$as_echo_n "checking whether ln -s works... " >&6; }
7491LN_S=$as_ln_s
7492if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007494$as_echo "yes" >&6; }
7495else
cristy8b350f62009-11-15 23:12:43 +00007496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007497$as_echo "no, using $LN_S" >&6; }
7498fi
7499
cristy8b350f62009-11-15 23:12:43 +00007500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007501$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7502
7503# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007504if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007505 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007507$as_echo "yes" >&6; }
7508
cristy8b350f62009-11-15 23:12:43 +00007509$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007510
7511 LIBS="$LIBS -ldmalloc"
7512 LDFLAGS="$LDFLAGS -g"
7513else
cristy8b350f62009-11-15 23:12:43 +00007514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007515$as_echo "no" >&6; }
7516fi
7517else
cristy8b350f62009-11-15 23:12:43 +00007518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007519$as_echo "no" >&6; }
7520fi
7521
7522
7523
7524
7525if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7528set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007530$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007531if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007532 $as_echo_n "(cached) " >&6
7533else
7534 case $PKG_CONFIG in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7537 ;;
7538 *)
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007548 break 2
7549 fi
7550done
cristy8b350f62009-11-15 23:12:43 +00007551 done
cristy3ed852e2009-09-05 21:47:34 +00007552IFS=$as_save_IFS
7553
7554 ;;
7555esac
7556fi
7557PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7558if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007560$as_echo "$PKG_CONFIG" >&6; }
7561else
cristy8b350f62009-11-15 23:12:43 +00007562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007563$as_echo "no" >&6; }
7564fi
7565
7566
7567fi
7568if test -z "$ac_cv_path_PKG_CONFIG"; then
7569 ac_pt_PKG_CONFIG=$PKG_CONFIG
7570 # Extract the first word of "pkg-config", so it can be a program name with args.
7571set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007573$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007574if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007575 $as_echo_n "(cached) " >&6
7576else
7577 case $ac_pt_PKG_CONFIG in
7578 [\\/]* | ?:[\\/]*)
7579 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7580 ;;
7581 *)
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583for as_dir in $PATH
7584do
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7589 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007591 break 2
7592 fi
7593done
cristy8b350f62009-11-15 23:12:43 +00007594 done
cristy3ed852e2009-09-05 21:47:34 +00007595IFS=$as_save_IFS
7596
7597 ;;
7598esac
7599fi
7600ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7601if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007603$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7604else
cristy8b350f62009-11-15 23:12:43 +00007605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007606$as_echo "no" >&6; }
7607fi
7608
7609 if test "x$ac_pt_PKG_CONFIG" = x; then
7610 PKG_CONFIG=""
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613yes:)
cristy8b350f62009-11-15 23:12:43 +00007614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616ac_tool_warned=yes ;;
7617esac
7618 PKG_CONFIG=$ac_pt_PKG_CONFIG
7619 fi
7620else
7621 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7622fi
7623
7624fi
7625if test -n "$PKG_CONFIG"; then
7626 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007628$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7629 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007631$as_echo "yes" >&6; }
7632 else
cristy8b350f62009-11-15 23:12:43 +00007633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007634$as_echo "no" >&6; }
7635 PKG_CONFIG=""
7636 fi
7637
7638fi
7639
7640#
cristy3ed852e2009-09-05 21:47:34 +00007641# Enable run-time checking.
7642#
7643# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007644if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007645 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7646else
7647 enable_bounds_checking='no'
7648fi
7649
7650
7651if test "$enable_bounds_checking" = yes; then
7652
cristy8b350f62009-11-15 23:12:43 +00007653$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007654
7655fi
7656
7657#
7658# Tests for Windows
7659#
7660
7661
7662
7663GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007664native_win32_build='no'
7665cygwin_build='no'
7666case "${host_os}" in
7667 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007668 cygwin_build='yes'
7669 GDI32_LIBS='-lgdi32'
7670 ;;
7671 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007672 native_win32_build='yes'
7673 GDI32_LIBS='-lgdi32'
7674 ;;
7675esac
7676if test "${GDI32_LIBS}x" != 'x'; then
7677
cristy8b350f62009-11-15 23:12:43 +00007678$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007679
7680fi
7681
7682 if test "${GDI32_LIBS}x" != 'x' ; then
7683 WINGDI32_DELEGATE_TRUE=
7684 WINGDI32_DELEGATE_FALSE='#'
7685else
7686 WINGDI32_DELEGATE_TRUE='#'
7687 WINGDI32_DELEGATE_FALSE=
7688fi
7689
7690 if test "${native_win32_build}" = 'yes' ; then
7691 WIN32_NATIVE_BUILD_TRUE=
7692 WIN32_NATIVE_BUILD_FALSE='#'
7693else
7694 WIN32_NATIVE_BUILD_TRUE='#'
7695 WIN32_NATIVE_BUILD_FALSE=
7696fi
7697
7698 if test "${cygwin_build}" = 'yes' ; then
7699 CYGWIN_BUILD_TRUE=
7700 CYGWIN_BUILD_FALSE='#'
7701else
7702 CYGWIN_BUILD_TRUE='#'
7703 CYGWIN_BUILD_FALSE=
7704fi
7705
7706 if test "x${CC}" = 'xcl.exe' ; then
7707 USING_CL_TRUE=
7708 USING_CL_FALSE='#'
7709else
7710 USING_CL_TRUE='#'
7711 USING_CL_FALSE=
7712fi
7713
7714
7715WinPathScript="${srcdirfull}/winpath.sh"
7716
7717
7718#
7719# Compiler flags tweaks
7720#
7721if test "${GCC}" != "yes"; then
7722 case "${host}" in
7723 *-*-hpux* )
7724 # aCC: HP ANSI C++ B3910B A.03.34
7725 CFLAGS="${CFLAGS} -Wp,-H30000"
7726 if test -n "${CXXFLAGS}"; then
7727 CXXFLAGS='-AA'
7728 else
7729 CXXFLAGS="${CXXFLAGS} -AA"
7730 fi
7731 ;;
7732 *-dec-osf5.* )
7733 # Compaq alphaev68-dec-osf5.1 compiler
7734 if test -n "${CXXFLAGS}"; then
7735 CXXFLAGS='-std strict_ansi -noimplicit_include'
7736 else
7737 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7738 fi
7739 esac
7740fi
7741
7742# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007744$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007745if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007746 $as_echo_n "(cached) " >&6
7747else
7748
7749im_cv_ld_lazyload='none'
7750case "${host}" in
7751 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7752 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7753 im_cv_ld_lazyload='-Wl,-zlazyload'
7754 fi
7755 ;;
7756esac
7757
7758fi
cristy8b350f62009-11-15 23:12:43 +00007759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007760$as_echo "$im_cv_ld_lazyload" >&6; }
7761if test "${im_cv_ld_lazyload}" != 'none' ; then
7762 if test -z "${LDFLAGS}" ; then
7763 LDFLAGS="${im_cv_ld_lazyload}"
7764 else
7765 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7766 fi
7767fi
7768
7769case "$host" in
7770*darwin* | *-macos10*)
7771 if test -d /opt/local ; then
7772 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7773 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7774 elif test -d /sw ; then
7775 CPPFLAGS="$CPPFLAGS -I/sw/include"
7776 LDFLAGS="$LDFLAGS -L/sw/lib"
7777 fi
7778 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007779if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007780 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7781else
7782 build_osxuniversal=no
7783fi
7784
7785
7786 if test "${build_osxuniversal}" != no ; then
7787 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007788 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007789Please re-run configure with these options:
7790 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007791 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007792 fi
7793 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7794 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7795 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7796 fi
7797 ;;
7798esac
7799
7800# Enable support for threads
7801
7802# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007803if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007804 withval=$with_threads; with_threads=$withval
7805else
7806 with_threads='yes'
7807fi
7808
7809
7810have_threads=no
7811if test "$with_threads" != 'no'; then
7812
7813
7814
7815ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821acx_pthread_ok=no
7822
7823# We used to check for pthread.h first, but this fails if pthread.h
7824# requires special compiler flags (e.g. on True64 or Sequent).
7825# It gets checked for in the link test anyway.
7826
7827# First of all, check if the user has set any of the PTHREAD_LIBS,
7828# etcetera environment variables, and if threads linking works using
7829# them:
7830if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7831 save_CFLAGS="$CFLAGS"
7832 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7833 save_LIBS="$LIBS"
7834 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007835 { $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 +00007836$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007838/* end confdefs.h. */
7839
7840/* Override any GCC internal prototype to avoid an error.
7841 Use char because int might match the return type of a GCC
7842 builtin and then its argument prototype would still apply. */
7843#ifdef __cplusplus
7844extern "C"
7845#endif
7846char pthread_join ();
7847int
7848main ()
7849{
7850return pthread_join ();
7851 ;
7852 return 0;
7853}
7854_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007856 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007857fi
cristy8b350f62009-11-15 23:12:43 +00007858rm -f core conftest.err conftest.$ac_objext \
7859 conftest$ac_exeext conftest.$ac_ext
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007861$as_echo "$acx_pthread_ok" >&6; }
7862 if test x"$acx_pthread_ok" = xno; then
7863 PTHREAD_LIBS=""
7864 PTHREAD_CFLAGS=""
7865 fi
7866 LIBS="$save_LIBS"
7867 CFLAGS="$save_CFLAGS"
7868fi
7869
7870# We must check for the threads library under a number of different
7871# names; the ordering is very important because some systems
7872# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7873# libraries is broken (non-POSIX).
7874
7875# Create a list of thread flags to try. Items starting with a "-" are
7876# C compiler flags, and other items are library names, except for "none"
7877# which indicates that we try without any flags at all, and "pthread-config"
7878# which is a program returning the flags for the Pth emulation library.
7879
7880acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7881
7882# The ordering *is* (sometimes) important. Some notes on the
7883# individual items follow:
7884
7885# pthreads: AIX (must check this before -lpthread)
7886# none: in case threads are in libc; should be tried before -Kthread and
7887# other compiler flags to prevent continual compiler warnings
7888# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7889# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7890# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7891# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7892# -pthreads: Solaris/gcc
7893# -mthreads: Mingw32/gcc, Lynx/gcc
7894# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7895# doesn't hurt to check since this sometimes defines pthreads too;
7896# also defines -D_REENTRANT)
7897# ... -mt is also the pthreads flag for HP/aCC
7898# pthread: Linux, etcetera
7899# --thread-safe: KAI C++
7900# pthread-config: use pthread-config program (for GNU Pth library)
7901
7902case "${host_cpu}-${host_os}" in
7903 *solaris*)
7904
7905 # On Solaris (at least, for some versions), libc contains stubbed
7906 # (non-functional) versions of the pthreads routines, so link-based
7907 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7908 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7909 # a function called by this macro, so we could check for that, but
7910 # who knows whether they'll stub that too in a future libc.) So,
7911 # we'll just look for -pthreads and -lpthread first:
7912
7913 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7914 ;;
cristy3ed852e2009-09-05 21:47:34 +00007915esac
7916
7917if test x"$acx_pthread_ok" = xno; then
7918for flag in $acx_pthread_flags; do
7919
7920 case $flag in
7921 none)
cristy8b350f62009-11-15 23:12:43 +00007922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007923$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7924 ;;
7925
7926 -*)
cristy8b350f62009-11-15 23:12:43 +00007927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007928$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7929 PTHREAD_CFLAGS="$flag"
7930 ;;
7931
7932 pthread-config)
7933 # Extract the first word of "pthread-config", so it can be a program name with args.
7934set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007936$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007937if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007938 $as_echo_n "(cached) " >&6
7939else
7940 if test -n "$acx_pthread_config"; then
7941 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007952 break 2
7953 fi
7954done
cristy8b350f62009-11-15 23:12:43 +00007955 done
cristy3ed852e2009-09-05 21:47:34 +00007956IFS=$as_save_IFS
7957
7958 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7959fi
7960fi
7961acx_pthread_config=$ac_cv_prog_acx_pthread_config
7962if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007964$as_echo "$acx_pthread_config" >&6; }
7965else
cristy8b350f62009-11-15 23:12:43 +00007966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007967$as_echo "no" >&6; }
7968fi
7969
7970
7971 if test x"$acx_pthread_config" = xno; then continue; fi
7972 PTHREAD_CFLAGS="`pthread-config --cflags`"
7973 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7974 ;;
7975
7976 *)
cristy8b350f62009-11-15 23:12:43 +00007977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007978$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7979 PTHREAD_LIBS="-l$flag"
7980 ;;
7981 esac
7982
7983 save_LIBS="$LIBS"
7984 save_CFLAGS="$CFLAGS"
7985 LIBS="$PTHREAD_LIBS $LIBS"
7986 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7987
7988 # Check for various functions. We must include pthread.h,
7989 # since some functions may be macros. (On the Sequent, we
7990 # need a special flag -Kthread to make this header compile.)
7991 # We check for pthread_join because it is in -lpthread on IRIX
7992 # while pthread_create is in libc. We check for pthread_attr_init
7993 # due to DEC craziness with -lpthreads. We check for
7994 # pthread_cleanup_push because it is one of the few pthread
7995 # functions on Solaris that doesn't have a non-functional libc stub.
7996 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007998/* end confdefs.h. */
7999#include <pthread.h>
8000int
8001main ()
8002{
8003pthread_t th; pthread_join(th, 0);
8004 pthread_attr_init(0); pthread_cleanup_push(0, 0);
8005 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8006 ;
8007 return 0;
8008}
8009_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008011 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008012fi
cristy8b350f62009-11-15 23:12:43 +00008013rm -f core conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008015
8016 LIBS="$save_LIBS"
8017 CFLAGS="$save_CFLAGS"
8018
cristy8b350f62009-11-15 23:12:43 +00008019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008020$as_echo "$acx_pthread_ok" >&6; }
8021 if test "x$acx_pthread_ok" = xyes; then
8022 break;
8023 fi
8024
8025 PTHREAD_LIBS=""
8026 PTHREAD_CFLAGS=""
8027done
8028fi
8029
8030# Various other checks:
8031if test "x$acx_pthread_ok" = xyes; then
8032 save_LIBS="$LIBS"
8033 LIBS="$PTHREAD_LIBS $LIBS"
8034 save_CFLAGS="$CFLAGS"
8035 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8036
8037 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008039$as_echo_n "checking for joinable pthread attribute... " >&6; }
8040 attr_name=unknown
8041 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008043/* end confdefs.h. */
8044#include <pthread.h>
8045int
8046main ()
8047{
8048int attr=$attr; return attr;
8049 ;
8050 return 0;
8051}
8052_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008054 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008055fi
cristy8b350f62009-11-15 23:12:43 +00008056rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008058 done
cristy8b350f62009-11-15 23:12:43 +00008059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008060$as_echo "$attr_name" >&6; }
8061 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8062
8063cat >>confdefs.h <<_ACEOF
8064#define PTHREAD_CREATE_JOINABLE $attr_name
8065_ACEOF
8066
8067 fi
8068
cristy8b350f62009-11-15 23:12:43 +00008069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008070$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8071 flag=no
8072 case "${host_cpu}-${host_os}" in
8073 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8074 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8075 esac
cristy8b350f62009-11-15 23:12:43 +00008076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008077$as_echo "${flag}" >&6; }
8078 if test "x$flag" != xno; then
8079 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8080 fi
8081
8082 LIBS="$save_LIBS"
8083 CFLAGS="$save_CFLAGS"
8084
8085 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008086 if test x"$GCC" != xyes; then
8087 for ac_prog in xlc_r cc_r
8088do
8089 # Extract the first word of "$ac_prog", so it can be a program name with args.
8090set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008092$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008093if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008094 $as_echo_n "(cached) " >&6
8095else
8096 if test -n "$PTHREAD_CC"; then
8097 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8098else
8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100for as_dir in $PATH
8101do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008105 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 +00008106 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008108 break 2
8109 fi
8110done
cristy8b350f62009-11-15 23:12:43 +00008111 done
cristy3ed852e2009-09-05 21:47:34 +00008112IFS=$as_save_IFS
8113
cristy3ed852e2009-09-05 21:47:34 +00008114fi
8115fi
8116PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8117if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008119$as_echo "$PTHREAD_CC" >&6; }
8120else
cristy8b350f62009-11-15 23:12:43 +00008121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008122$as_echo "no" >&6; }
8123fi
8124
cristy736173a2009-09-20 21:18:22 +00008125
8126 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008127done
cristy736173a2009-09-20 21:18:22 +00008128test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008129
cristy736173a2009-09-20 21:18:22 +00008130 else
8131 PTHREAD_CC=$CC
8132 fi
cristy3ed852e2009-09-05 21:47:34 +00008133else
cristy736173a2009-09-20 21:18:22 +00008134 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008135fi
8136
cristy3ed852e2009-09-05 21:47:34 +00008137
8138
8139
8140
8141# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8142if test x"$acx_pthread_ok" = xyes; then
8143
cristy8b350f62009-11-15 23:12:43 +00008144$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008145
8146 :
8147else
8148 acx_pthread_ok=no
8149
8150fi
8151ac_ext=c
8152ac_cpp='$CPP $CPPFLAGS'
8153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
8157
8158 if test "$acx_pthread_ok" = yes; then
8159 have_threads=yes
8160 DEF_THREAD="$PTHREAD_CFLAGS"
8161 CFLAGS="$CFLAGS $DEF_THREAD"
8162 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8163 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008164 { $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 +00008165$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8166 CC="$PTHREAD_CC"
8167 fi
8168 fi
8169fi
8170
8171# Enable support for OpenMP
8172if test "$have_threads" != 'yes'; then
8173 ac_cv_prog_c_openmp=unsupported
8174fi
8175
8176 OPENMP_CFLAGS=
8177 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008178if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008179 enableval=$enable_openmp;
8180fi
8181
8182 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008184$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008185if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008186 $as_echo_n "(cached) " >&6
8187else
cristy8b350f62009-11-15 23:12:43 +00008188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008190
8191#ifndef _OPENMP
8192 choke me
8193#endif
8194#include <omp.h>
8195int main () { return omp_get_num_threads (); }
8196
8197_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008199 ac_cv_prog_c_openmp='none needed'
8200else
cristy8b350f62009-11-15 23:12:43 +00008201 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008202 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8203 ac_save_CFLAGS=$CFLAGS
8204 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008207
8208#ifndef _OPENMP
8209 choke me
8210#endif
8211#include <omp.h>
8212int main () { return omp_get_num_threads (); }
8213
8214_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008216 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008217fi
cristy8b350f62009-11-15 23:12:43 +00008218rm -f core conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008220 CFLAGS=$ac_save_CFLAGS
8221 if test "$ac_cv_prog_c_openmp" != unsupported; then
8222 break
8223 fi
8224 done
8225fi
cristy8b350f62009-11-15 23:12:43 +00008226rm -f core conftest.err conftest.$ac_objext \
8227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008228fi
cristy8b350f62009-11-15 23:12:43 +00008229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008230$as_echo "$ac_cv_prog_c_openmp" >&6; }
8231 case $ac_cv_prog_c_openmp in #(
8232 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008233 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008234 *)
cristy8b350f62009-11-15 23:12:43 +00008235 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008236 esac
8237 fi
8238
8239
8240CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8241MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8242
8243
cristy736173a2009-09-20 21:18:22 +00008244# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008245
cristy43596fe2010-01-21 16:46:08 +00008246# Check whether --enable-opencl was given.
8247if test "${enable_opencl+set}" = set; then :
8248 enableval=$enable_opencl; disable_opencl=$enableval
8249else
8250 disable_opencl='yes'
8251fi
8252
8253
8254if test "$disable_opencl" = 'yes'; then
8255 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008256ac_cpp='$CPP $CPPFLAGS'
8257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
cristy43596fe2010-01-21 16:46:08 +00008261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008262$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008263if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008264 $as_echo_n "(cached) " >&6
8265else
cristy8b350f62009-11-15 23:12:43 +00008266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008267/* end confdefs.h. */
8268
8269int
8270main ()
8271{
8272#ifndef _MSC_VER
8273 choke me
8274#endif
8275
8276 ;
8277 return 0;
8278}
8279_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008280if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008281 ax_compiler_ms=yes
8282else
cristy8b350f62009-11-15 23:12:43 +00008283 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008284fi
cristy736173a2009-09-20 21:18:22 +00008285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286ax_cv_c_compiler_ms=$ax_compiler_ms
8287
8288fi
cristy8b350f62009-11-15 23:12:43 +00008289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008290$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008291 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008292 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8293fi
8294
cristy43596fe2010-01-21 16:46:08 +00008295 ax_save_CPPFLAGS=$CPPFLAGS
8296 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8297 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008298do :
8299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8300ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8301eval as_val=\$$as_ac_Header
8302 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008303 cat >>confdefs.h <<_ACEOF
8304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8305_ACEOF
8306
8307fi
8308
8309done
8310
cristy43596fe2010-01-21 16:46:08 +00008311 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008312
cristy43596fe2010-01-21 16:46:08 +00008313 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008314do :
8315 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8316if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008317 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008318#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008319_ACEOF
8320
8321fi
8322
8323done
8324
8325
8326
8327
cristy43596fe2010-01-21 16:46:08 +00008328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008329$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008330if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008331 $as_echo_n "(cached) " >&6
8332else
8333 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008334 case $host_cpu in
8335 x86_64) ax_check_cl_libdir=lib64 ;;
8336 *) ax_check_cl_libdir=lib ;;
8337 esac
8338 ax_save_CPPFLAGS=$CPPFLAGS
8339 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8340 ax_save_LIBS=$LIBS
8341 LIBS=""
8342 ax_check_libs="-lOpenCL -lCL -lclparser"
8343 for ax_lib in $ax_check_libs; do
8344 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008345 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8346else
8347 ax_try_lib=$ax_lib
8348fi
cristy43596fe2010-01-21 16:46:08 +00008349 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008351/* end confdefs.h. */
8352
cristy43596fe2010-01-21 16:46:08 +00008353 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8354 # include <windows.h>
8355 # endif
8356 # ifdef HAVE_CL_CL_H
8357 # include <CL/cl.h>
8358 # elif defined(HAVE_OPENCL_CL_H)
8359 # include <OpenCL/cl.h>
8360 # else
8361 # error no CL.h
8362 # endif
cristy736173a2009-09-20 21:18:22 +00008363int
8364main ()
8365{
cristyc7083c12009-10-14 03:16:55 +00008366clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008367 ;
8368 return 0;
8369}
8370_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008371if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008372 ax_cv_check_cl_libcl=$ax_try_lib; break
8373else
cristy8b350f62009-11-15 23:12:43 +00008374 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 +00008375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008376/* end confdefs.h. */
8377
cristy43596fe2010-01-21 16:46:08 +00008378 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8379 # include <windows.h>
8380 # endif
8381 # ifdef HAVE_CL_CL_H
8382 # include <CL/cl.h>
8383 # elif defined(HAVE_OPENCL_CL_H)
8384 # include <OpenCL/cl.h>
8385 # else
8386 # error no CL.h
8387 # endif
cristy736173a2009-09-20 21:18:22 +00008388int
8389main ()
8390{
cristyc7083c12009-10-14 03:16:55 +00008391clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008392 ;
8393 return 0;
8394}
8395_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008396if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008397 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8398else
cristy4dc44432009-12-30 23:30:06 +00008399 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 +00008400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008401/* end confdefs.h. */
8402
cristy43596fe2010-01-21 16:46:08 +00008403 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8404 # include <windows.h>
8405 # endif
8406 # ifdef HAVE_CL_CL_H
8407 # include <CL/cl.h>
8408 # elif defined(HAVE_OPENCL_CL_H)
8409 # include <OpenCL/cl.h>
8410 # else
8411 # error no CL.h
8412 # endif
cristy736173a2009-09-20 21:18:22 +00008413int
8414main ()
8415{
cristyc7083c12009-10-14 03:16:55 +00008416clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008417 ;
8418 return 0;
8419}
8420_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008421if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008422 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
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
cristy736173a2009-09-20 21:18:22 +00008426fi
cristy8b350f62009-11-15 23:12:43 +00008427rm -f core conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008429fi
cristy8b350f62009-11-15 23:12:43 +00008430rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008432 done
cristy736173a2009-09-20 21:18:22 +00008433
cristy43596fe2010-01-21 16:46:08 +00008434 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008435 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00008436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008437/* end confdefs.h. */
8438
cristy43596fe2010-01-21 16:46:08 +00008439 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8440 # include <windows.h>
8441 # endif
8442 # ifdef HAVE_CL_CL_H
8443 # include <CL/cl.h>
8444 # elif defined(HAVE_OPENCL_CL_H)
8445 # include <OpenCL/cl.h>
8446 # else
8447 # error no CL.h
8448 # endif
cristy736173a2009-09-20 21:18:22 +00008449int
8450main ()
8451{
cristyc7083c12009-10-14 03:16:55 +00008452clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008453 ;
8454 return 0;
8455}
8456_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008457if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008458 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00008459fi
cristy8b350f62009-11-15 23:12:43 +00008460rm -f core conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008462fi
8463
cristy43596fe2010-01-21 16:46:08 +00008464 LIBS=$ax_save_LIBS
8465 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008466fi
cristy8b350f62009-11-15 23:12:43 +00008467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00008468$as_echo "$ax_cv_check_cl_libcl" >&6; }
8469
cristy43596fe2010-01-21 16:46:08 +00008470 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008471 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8472else
cristy99cc3002010-01-21 14:50:11 +00008473 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8474$as_echo "#define _OPENCL 1" >>confdefs.h
8475
cristy736173a2009-09-20 21:18:22 +00008476fi
cristy43596fe2010-01-21 16:46:08 +00008477 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008478ac_cpp='$CPP $CPPFLAGS'
8479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482
cristy43596fe2010-01-21 16:46:08 +00008483fi
cristy736173a2009-09-20 21:18:22 +00008484
8485
8486
8487
cristyc7083c12009-10-14 03:16:55 +00008488CFLAGS="$CL_CFLAGS $CFLAGS"
8489LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008490
cristy2e8b51d2009-10-17 18:26:15 +00008491
cristy3ed852e2009-09-05 21:47:34 +00008492########
8493#
8494# Check for large file support
8495#
8496########
8497# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00008498if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008499 enableval=$enable_largefile;
8500fi
8501
8502if test "$enable_largefile" != no; then
8503
cristy8b350f62009-11-15 23:12:43 +00008504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008505$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008506if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008507 $as_echo_n "(cached) " >&6
8508else
8509 ac_cv_sys_largefile_CC=no
8510 if test "$GCC" != yes; then
8511 ac_save_CC=$CC
8512 while :; do
8513 # IRIX 6.2 and later do not support large files by default,
8514 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00008515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008516/* end confdefs.h. */
8517#include <sys/types.h>
8518 /* Check that off_t can represent 2**63 - 1 correctly.
8519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8520 since some C++ compilers masquerading as C compilers
8521 incorrectly reject 9223372036854775807. */
8522#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8524 && LARGE_OFF_T % 2147483647 == 1)
8525 ? 1 : -1];
8526int
8527main ()
8528{
8529
8530 ;
8531 return 0;
8532}
8533_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008534 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008535 break
cristy3ed852e2009-09-05 21:47:34 +00008536fi
cristy3ed852e2009-09-05 21:47:34 +00008537rm -f core conftest.err conftest.$ac_objext
8538 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00008539 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008540 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00008541fi
cristy3ed852e2009-09-05 21:47:34 +00008542rm -f core conftest.err conftest.$ac_objext
8543 break
8544 done
8545 CC=$ac_save_CC
8546 rm -f conftest.$ac_ext
8547 fi
8548fi
cristy8b350f62009-11-15 23:12:43 +00008549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008550$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8551 if test "$ac_cv_sys_largefile_CC" != no; then
8552 CC=$CC$ac_cv_sys_largefile_CC
8553 fi
8554
cristy8b350f62009-11-15 23:12:43 +00008555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008556$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008557if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008558 $as_echo_n "(cached) " >&6
8559else
8560 while :; do
cristy8b350f62009-11-15 23:12:43 +00008561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008562/* end confdefs.h. */
8563#include <sys/types.h>
8564 /* Check that off_t can represent 2**63 - 1 correctly.
8565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8566 since some C++ compilers masquerading as C compilers
8567 incorrectly reject 9223372036854775807. */
8568#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8570 && LARGE_OFF_T % 2147483647 == 1)
8571 ? 1 : -1];
8572int
8573main ()
8574{
8575
8576 ;
8577 return 0;
8578}
8579_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008580if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008581 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00008582fi
cristy3ed852e2009-09-05 21:47:34 +00008583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008585/* end confdefs.h. */
8586#define _FILE_OFFSET_BITS 64
8587#include <sys/types.h>
8588 /* Check that off_t can represent 2**63 - 1 correctly.
8589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8590 since some C++ compilers masquerading as C compilers
8591 incorrectly reject 9223372036854775807. */
8592#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8594 && LARGE_OFF_T % 2147483647 == 1)
8595 ? 1 : -1];
8596int
8597main ()
8598{
8599
8600 ;
8601 return 0;
8602}
8603_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008604if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008605 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00008606fi
cristy3ed852e2009-09-05 21:47:34 +00008607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 ac_cv_sys_file_offset_bits=unknown
8609 break
8610done
8611fi
cristy8b350f62009-11-15 23:12:43 +00008612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00008613$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8614case $ac_cv_sys_file_offset_bits in #(
8615 no | unknown) ;;
8616 *)
8617cat >>confdefs.h <<_ACEOF
8618#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8619_ACEOF
8620;;
8621esac
8622rm -rf conftest*
8623 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00008624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008625$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008626if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008627 $as_echo_n "(cached) " >&6
8628else
8629 while :; do
cristy8b350f62009-11-15 23:12:43 +00008630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008631/* end confdefs.h. */
8632#include <sys/types.h>
8633 /* Check that off_t can represent 2**63 - 1 correctly.
8634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8635 since some C++ compilers masquerading as C compilers
8636 incorrectly reject 9223372036854775807. */
8637#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8639 && LARGE_OFF_T % 2147483647 == 1)
8640 ? 1 : -1];
8641int
8642main ()
8643{
8644
8645 ;
8646 return 0;
8647}
8648_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008649if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008650 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00008651fi
cristy3ed852e2009-09-05 21:47:34 +00008652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008654/* end confdefs.h. */
8655#define _LARGE_FILES 1
8656#include <sys/types.h>
8657 /* Check that off_t can represent 2**63 - 1 correctly.
8658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8659 since some C++ compilers masquerading as C compilers
8660 incorrectly reject 9223372036854775807. */
8661#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8663 && LARGE_OFF_T % 2147483647 == 1)
8664 ? 1 : -1];
8665int
8666main ()
8667{
8668
8669 ;
8670 return 0;
8671}
8672_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008673if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008674 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00008675fi
cristy3ed852e2009-09-05 21:47:34 +00008676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 ac_cv_sys_large_files=unknown
8678 break
8679done
8680fi
cristy8b350f62009-11-15 23:12:43 +00008681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008682$as_echo "$ac_cv_sys_large_files" >&6; }
8683case $ac_cv_sys_large_files in #(
8684 no | unknown) ;;
8685 *)
8686cat >>confdefs.h <<_ACEOF
8687#define _LARGE_FILES $ac_cv_sys_large_files
8688_ACEOF
8689;;
8690esac
8691rm -rf conftest*
8692 fi
8693fi
8694
cristy8b350f62009-11-15 23:12:43 +00008695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008696$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008697if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008698 $as_echo_n "(cached) " >&6
8699else
8700 while :; do
cristy8b350f62009-11-15 23:12:43 +00008701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008702/* end confdefs.h. */
8703#include <sys/types.h> /* for off_t */
8704 #include <stdio.h>
8705int
8706main ()
8707{
8708int (*fp) (FILE *, off_t, int) = fseeko;
8709 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8710 ;
8711 return 0;
8712}
8713_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008715 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00008716fi
cristy8b350f62009-11-15 23:12:43 +00008717rm -f core conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008720/* end confdefs.h. */
8721#define _LARGEFILE_SOURCE 1
8722#include <sys/types.h> /* for off_t */
8723 #include <stdio.h>
8724int
8725main ()
8726{
8727int (*fp) (FILE *, off_t, int) = fseeko;
8728 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8729 ;
8730 return 0;
8731}
8732_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008733if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008734 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00008735fi
cristy8b350f62009-11-15 23:12:43 +00008736rm -f core conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008738 ac_cv_sys_largefile_source=unknown
8739 break
8740done
8741fi
cristy8b350f62009-11-15 23:12:43 +00008742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008743$as_echo "$ac_cv_sys_largefile_source" >&6; }
8744case $ac_cv_sys_largefile_source in #(
8745 no | unknown) ;;
8746 *)
8747cat >>confdefs.h <<_ACEOF
8748#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8749_ACEOF
8750;;
8751esac
8752rm -rf conftest*
8753
8754# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8755# in glibc 2.1.3, but that breaks too many other things.
8756# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8757if test $ac_cv_sys_largefile_source != unknown; then
8758
cristy8b350f62009-11-15 23:12:43 +00008759$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008760
8761fi
8762
8763LFS_CPPFLAGS=''
8764if test "$enable_largefile" != no; then
8765 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8766 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8767 else
cristy8b350f62009-11-15 23:12:43 +00008768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008769$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008770 if test "$cross_compiling" = yes; then :
8771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008773as_fn_error "cannot run test program while cross compiling
8774See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008775else
cristy8b350f62009-11-15 23:12:43 +00008776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008778#include <unistd.h>
8779 main () {
8780 exit(!(sizeof(off_t) == 8));
8781 }
8782_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008783if ac_fn_c_try_run "$LINENO"; then :
8784 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008785
cristy8b350f62009-11-15 23:12:43 +00008786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008787$as_echo "yes" >&6; }
8788else
cristy8b350f62009-11-15 23:12:43 +00008789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008790$as_echo "no" >&6; }
8791fi
cristy8b350f62009-11-15 23:12:43 +00008792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8793 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008794fi
8795
cristy3ed852e2009-09-05 21:47:34 +00008796 fi
8797 if test "$ac_cv_sys_large_files" != 'no'; then
8798 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8799 fi
8800 if test "$ac_cv_sys_largefile_source" != 'no'; then
8801 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8802 fi
8803fi
8804
8805
8806#
8807# Configure libtool & libltdl
8808#
8809# Configure libtool
8810enable_dlopen=yes
8811
8812
8813
8814case `pwd` in
8815 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008817$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8818esac
8819
8820
8821
cristy18304f92009-11-22 15:48:26 +00008822macro_version='2.2.6b'
8823macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837ltmain="$ac_aux_dir/ltmain.sh"
8838
cristy8b350f62009-11-15 23:12:43 +00008839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008840$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008841if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008842 $as_echo_n "(cached) " >&6
8843else
8844 if test -n "$NM"; then
8845 # Let the user override the test.
8846 lt_cv_path_NM="$NM"
8847else
8848 lt_nm_to_check="${ac_tool_prefix}nm"
8849 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8850 lt_nm_to_check="$lt_nm_to_check nm"
8851 fi
8852 for lt_tmp_nm in $lt_nm_to_check; do
8853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8854 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8855 IFS="$lt_save_ifs"
8856 test -z "$ac_dir" && ac_dir=.
8857 tmp_nm="$ac_dir/$lt_tmp_nm"
8858 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8859 # Check to see if the nm accepts a BSD-compat flag.
8860 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8861 # nm: unknown option "B" ignored
8862 # Tru64's nm complains that /dev/null is an invalid object file
8863 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8864 */dev/null* | *'Invalid file or object type'*)
8865 lt_cv_path_NM="$tmp_nm -B"
8866 break
8867 ;;
8868 *)
8869 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8870 */dev/null*)
8871 lt_cv_path_NM="$tmp_nm -p"
8872 break
8873 ;;
8874 *)
8875 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8876 continue # so that we can try to find one that supports BSD flags
8877 ;;
8878 esac
8879 ;;
8880 esac
8881 fi
8882 done
8883 IFS="$lt_save_ifs"
8884 done
8885 : ${lt_cv_path_NM=no}
8886fi
8887fi
cristy8b350f62009-11-15 23:12:43 +00008888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008889$as_echo "$lt_cv_path_NM" >&6; }
8890if test "$lt_cv_path_NM" != "no"; then
8891 NM="$lt_cv_path_NM"
8892else
8893 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008894 if test -n "$ac_tool_prefix"; then
8895 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008896 do
8897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008900$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008901if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008902 $as_echo_n "(cached) " >&6
8903else
8904 if test -n "$DUMPBIN"; then
8905 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8906else
8907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908for as_dir in $PATH
8909do
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8914 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008916 break 2
8917 fi
8918done
cristy8b350f62009-11-15 23:12:43 +00008919 done
cristy3ed852e2009-09-05 21:47:34 +00008920IFS=$as_save_IFS
8921
8922fi
8923fi
8924DUMPBIN=$ac_cv_prog_DUMPBIN
8925if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008927$as_echo "$DUMPBIN" >&6; }
8928else
cristy8b350f62009-11-15 23:12:43 +00008929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008930$as_echo "no" >&6; }
8931fi
8932
8933
8934 test -n "$DUMPBIN" && break
8935 done
8936fi
8937if test -z "$DUMPBIN"; then
8938 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008939 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008940do
8941 # Extract the first word of "$ac_prog", so it can be a program name with args.
8942set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008944$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008945if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008946 $as_echo_n "(cached) " >&6
8947else
8948 if test -n "$ac_ct_DUMPBIN"; then
8949 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8950else
8951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952for as_dir in $PATH
8953do
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8958 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008960 break 2
8961 fi
8962done
cristy8b350f62009-11-15 23:12:43 +00008963 done
cristy3ed852e2009-09-05 21:47:34 +00008964IFS=$as_save_IFS
8965
8966fi
8967fi
8968ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8969if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008971$as_echo "$ac_ct_DUMPBIN" >&6; }
8972else
cristy8b350f62009-11-15 23:12:43 +00008973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008974$as_echo "no" >&6; }
8975fi
8976
8977
8978 test -n "$ac_ct_DUMPBIN" && break
8979done
8980
8981 if test "x$ac_ct_DUMPBIN" = x; then
8982 DUMPBIN=":"
8983 else
8984 case $cross_compiling:$ac_tool_warned in
8985yes:)
cristy8b350f62009-11-15 23:12:43 +00008986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8988ac_tool_warned=yes ;;
8989esac
8990 DUMPBIN=$ac_ct_DUMPBIN
8991 fi
8992fi
8993
8994
8995 if test "$DUMPBIN" != ":"; then
8996 NM="$DUMPBIN"
8997 fi
8998fi
8999test -z "$NM" && NM=nm
9000
9001
9002
9003
9004
9005
cristy8b350f62009-11-15 23:12:43 +00009006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009007$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009008if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009009 $as_echo_n "(cached) " >&6
9010else
9011 lt_cv_nm_interface="BSD nm"
9012 echo "int some_variable = 0;" > conftest.$ac_ext
cristybab87c32010-02-09 20:54:22 +00009013 (eval echo "\"\$as_me:9013: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009014 (eval "$ac_compile" 2>conftest.err)
9015 cat conftest.err >&5
cristybab87c32010-02-09 20:54:22 +00009016 (eval echo "\"\$as_me:9016: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009017 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9018 cat conftest.err >&5
cristybab87c32010-02-09 20:54:22 +00009019 (eval echo "\"\$as_me:9019: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009020 cat conftest.out >&5
9021 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9022 lt_cv_nm_interface="MS dumpbin"
9023 fi
9024 rm -f conftest*
9025fi
cristy8b350f62009-11-15 23:12:43 +00009026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009027$as_echo "$lt_cv_nm_interface" >&6; }
9028
9029# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009031$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009032if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009033 $as_echo_n "(cached) " >&6
9034else
9035 i=0
9036 teststring="ABCD"
9037
9038 case $build_os in
9039 msdosdjgpp*)
9040 # On DJGPP, this test can blow up pretty badly due to problems in libc
9041 # (any single argument exceeding 2000 bytes causes a buffer overrun
9042 # during glob expansion). Even if it were fixed, the result of this
9043 # check would be larger than it should be.
9044 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9045 ;;
9046
9047 gnu*)
9048 # Under GNU Hurd, this test is not required because there is
9049 # no limit to the length of command line arguments.
9050 # Libtool will interpret -1 as no limit whatsoever
9051 lt_cv_sys_max_cmd_len=-1;
9052 ;;
9053
9054 cygwin* | mingw* | cegcc*)
9055 # On Win9x/ME, this test blows up -- it succeeds, but takes
9056 # about 5 minutes as the teststring grows exponentially.
9057 # Worse, since 9x/ME are not pre-emptively multitasking,
9058 # you end up with a "frozen" computer, even though with patience
9059 # the test eventually succeeds (with a max line length of 256k).
9060 # Instead, let's just punt: use the minimum linelength reported by
9061 # all of the supported platforms: 8192 (on NT/2K/XP).
9062 lt_cv_sys_max_cmd_len=8192;
9063 ;;
9064
9065 amigaos*)
9066 # On AmigaOS with pdksh, this test takes hours, literally.
9067 # So we just punt and use a minimum line length of 8192.
9068 lt_cv_sys_max_cmd_len=8192;
9069 ;;
9070
9071 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9072 # This has been around since 386BSD, at least. Likely further.
9073 if test -x /sbin/sysctl; then
9074 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9075 elif test -x /usr/sbin/sysctl; then
9076 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9077 else
9078 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9079 fi
9080 # And add a safety zone
9081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9083 ;;
9084
9085 interix*)
9086 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9087 lt_cv_sys_max_cmd_len=196608
9088 ;;
9089
9090 osf*)
9091 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9092 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9093 # nice to cause kernel panics so lets avoid the loop below.
9094 # First set a reasonable default.
9095 lt_cv_sys_max_cmd_len=16384
9096 #
9097 if test -x /sbin/sysconfig; then
9098 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9099 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9100 esac
9101 fi
9102 ;;
9103 sco3.2v5*)
9104 lt_cv_sys_max_cmd_len=102400
9105 ;;
9106 sysv5* | sco5v6* | sysv4.2uw2*)
9107 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9108 if test -n "$kargmax"; then
9109 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9110 else
9111 lt_cv_sys_max_cmd_len=32768
9112 fi
9113 ;;
9114 *)
9115 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9116 if test -n "$lt_cv_sys_max_cmd_len"; then
9117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9119 else
9120 # Make teststring a little bigger before we do anything with it.
9121 # a 1K string should be a reasonable start.
9122 for i in 1 2 3 4 5 6 7 8 ; do
9123 teststring=$teststring$teststring
9124 done
9125 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9126 # If test is not a shell built-in, we'll probably end up computing a
9127 # maximum length that is only half of the actual maximum length, but
9128 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009129 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9130 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009131 test $i != 17 # 1/2 MB should be enough
9132 do
9133 i=`expr $i + 1`
9134 teststring=$teststring$teststring
9135 done
9136 # Only check the string length outside the loop.
9137 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9138 teststring=
9139 # Add a significant safety factor because C++ compilers can tack on
9140 # massive amounts of additional arguments before passing them to the
9141 # linker. It appears as though 1/2 is a usable value.
9142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9143 fi
9144 ;;
9145 esac
9146
9147fi
9148
9149if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009151$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9152else
cristy8b350f62009-11-15 23:12:43 +00009153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009154$as_echo "none" >&6; }
9155fi
9156max_cmd_len=$lt_cv_sys_max_cmd_len
9157
9158
9159
9160
9161
9162
9163: ${CP="cp -f"}
9164: ${MV="mv -f"}
9165: ${RM="rm -f"}
9166
cristy8b350f62009-11-15 23:12:43 +00009167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009168$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9169# Try some XSI features
9170xsi_shell=no
9171( _lt_dummy="a/b/c"
9172 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9173 = c,a/b,, \
9174 && eval 'test $(( 1 + 1 )) -eq 2 \
9175 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9176 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009178$as_echo "$xsi_shell" >&6; }
9179
9180
cristy8b350f62009-11-15 23:12:43 +00009181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009182$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9183lt_shell_append=no
9184( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9185 >/dev/null 2>&1 \
9186 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009188$as_echo "$lt_shell_append" >&6; }
9189
9190
9191if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9192 lt_unset=unset
9193else
9194 lt_unset=false
9195fi
9196
9197
9198
9199
9200
9201# test EBCDIC or ASCII
9202case `echo X|tr X '\101'` in
9203 A) # ASCII based system
9204 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9205 lt_SP2NL='tr \040 \012'
9206 lt_NL2SP='tr \015\012 \040\040'
9207 ;;
9208 *) # EBCDIC based system
9209 lt_SP2NL='tr \100 \n'
9210 lt_NL2SP='tr \r\n \100\100'
9211 ;;
9212esac
9213
9214
9215
9216
9217
9218
9219
9220
9221
cristy8b350f62009-11-15 23:12:43 +00009222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009223$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009224if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009225 $as_echo_n "(cached) " >&6
9226else
9227 lt_cv_ld_reload_flag='-r'
9228fi
cristy8b350f62009-11-15 23:12:43 +00009229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009230$as_echo "$lt_cv_ld_reload_flag" >&6; }
9231reload_flag=$lt_cv_ld_reload_flag
9232case $reload_flag in
9233"" | " "*) ;;
9234*) reload_flag=" $reload_flag" ;;
9235esac
9236reload_cmds='$LD$reload_flag -o $output$reload_objs'
9237case $host_os in
9238 darwin*)
9239 if test "$GCC" = yes; then
9240 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9241 else
9242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9243 fi
9244 ;;
9245esac
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255if test -n "$ac_tool_prefix"; then
9256 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9257set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009259$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009260if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009261 $as_echo_n "(cached) " >&6
9262else
9263 if test -n "$OBJDUMP"; then
9264 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9265else
9266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267for as_dir in $PATH
9268do
9269 IFS=$as_save_IFS
9270 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9273 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009275 break 2
9276 fi
9277done
cristy8b350f62009-11-15 23:12:43 +00009278 done
cristy3ed852e2009-09-05 21:47:34 +00009279IFS=$as_save_IFS
9280
9281fi
9282fi
9283OBJDUMP=$ac_cv_prog_OBJDUMP
9284if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009286$as_echo "$OBJDUMP" >&6; }
9287else
cristy8b350f62009-11-15 23:12:43 +00009288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009289$as_echo "no" >&6; }
9290fi
9291
9292
9293fi
9294if test -z "$ac_cv_prog_OBJDUMP"; then
9295 ac_ct_OBJDUMP=$OBJDUMP
9296 # Extract the first word of "objdump", so it can be a program name with args.
9297set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009299$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009300if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009301 $as_echo_n "(cached) " >&6
9302else
9303 if test -n "$ac_ct_OBJDUMP"; then
9304 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9305else
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009315 break 2
9316 fi
9317done
cristy8b350f62009-11-15 23:12:43 +00009318 done
cristy3ed852e2009-09-05 21:47:34 +00009319IFS=$as_save_IFS
9320
9321fi
9322fi
9323ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9324if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009326$as_echo "$ac_ct_OBJDUMP" >&6; }
9327else
cristy8b350f62009-11-15 23:12:43 +00009328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009329$as_echo "no" >&6; }
9330fi
9331
9332 if test "x$ac_ct_OBJDUMP" = x; then
9333 OBJDUMP="false"
9334 else
9335 case $cross_compiling:$ac_tool_warned in
9336yes:)
cristy8b350f62009-11-15 23:12:43 +00009337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9339ac_tool_warned=yes ;;
9340esac
9341 OBJDUMP=$ac_ct_OBJDUMP
9342 fi
9343else
9344 OBJDUMP="$ac_cv_prog_OBJDUMP"
9345fi
9346
9347test -z "$OBJDUMP" && OBJDUMP=objdump
9348
9349
9350
9351
9352
9353
cristy8b350f62009-11-15 23:12:43 +00009354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009355$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009356if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009357 $as_echo_n "(cached) " >&6
9358else
9359 lt_cv_file_magic_cmd='$MAGIC_CMD'
9360lt_cv_file_magic_test_file=
9361lt_cv_deplibs_check_method='unknown'
9362# Need to set the preceding variable on all platforms that support
9363# interlibrary dependencies.
9364# 'none' -- dependencies not supported.
9365# `unknown' -- same as none, but documents that we really don't know.
9366# 'pass_all' -- all dependencies passed with no checks.
9367# 'test_compile' -- check by making test program.
9368# 'file_magic [[regex]]' -- check by looking for files in library path
9369# which responds to the $file_magic_cmd with a given extended regex.
9370# If you have `file' or equivalent on your system and you're not sure
9371# whether `pass_all' will *always* work, you probably want this one.
9372
9373case $host_os in
9374aix[4-9]*)
9375 lt_cv_deplibs_check_method=pass_all
9376 ;;
9377
9378beos*)
9379 lt_cv_deplibs_check_method=pass_all
9380 ;;
9381
9382bsdi[45]*)
9383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9384 lt_cv_file_magic_cmd='/usr/bin/file -L'
9385 lt_cv_file_magic_test_file=/shlib/libc.so
9386 ;;
9387
9388cygwin*)
9389 # func_win32_libid is a shell function defined in ltmain.sh
9390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9391 lt_cv_file_magic_cmd='func_win32_libid'
9392 ;;
9393
9394mingw* | pw32*)
9395 # Base MSYS/MinGW do not provide the 'file' command needed by
9396 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9397 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00009398 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00009399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9400 lt_cv_file_magic_cmd='func_win32_libid'
9401 else
9402 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9403 lt_cv_file_magic_cmd='$OBJDUMP -f'
9404 fi
9405 ;;
9406
cristy18304f92009-11-22 15:48:26 +00009407cegcc)
cristy3ed852e2009-09-05 21:47:34 +00009408 # use the weaker test based on 'objdump'. See mingw*.
9409 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9410 lt_cv_file_magic_cmd='$OBJDUMP -f'
9411 ;;
9412
9413darwin* | rhapsody*)
9414 lt_cv_deplibs_check_method=pass_all
9415 ;;
9416
9417freebsd* | dragonfly*)
9418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9419 case $host_cpu in
9420 i*86 )
9421 # Not sure whether the presence of OpenBSD here was a mistake.
9422 # Let's accept both of them until this is cleared up.
9423 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9424 lt_cv_file_magic_cmd=/usr/bin/file
9425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9426 ;;
9427 esac
9428 else
9429 lt_cv_deplibs_check_method=pass_all
9430 fi
9431 ;;
9432
9433gnu*)
9434 lt_cv_deplibs_check_method=pass_all
9435 ;;
9436
9437hpux10.20* | hpux11*)
9438 lt_cv_file_magic_cmd=/usr/bin/file
9439 case $host_cpu in
9440 ia64*)
9441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9442 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9443 ;;
9444 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00009445 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 +00009446 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9447 ;;
9448 *)
cristy18304f92009-11-22 15:48:26 +00009449 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 +00009450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9451 ;;
9452 esac
9453 ;;
9454
9455interix[3-9]*)
9456 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9458 ;;
9459
9460irix5* | irix6* | nonstopux*)
9461 case $LD in
9462 *-32|*"-32 ") libmagic=32-bit;;
9463 *-n32|*"-n32 ") libmagic=N32;;
9464 *-64|*"-64 ") libmagic=64-bit;;
9465 *) libmagic=never-match;;
9466 esac
9467 lt_cv_deplibs_check_method=pass_all
9468 ;;
9469
9470# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00009471linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00009472 lt_cv_deplibs_check_method=pass_all
9473 ;;
9474
9475netbsd*)
9476 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9478 else
9479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9480 fi
9481 ;;
9482
9483newos6*)
9484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9485 lt_cv_file_magic_cmd=/usr/bin/file
9486 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9487 ;;
9488
9489*nto* | *qnx*)
9490 lt_cv_deplibs_check_method=pass_all
9491 ;;
9492
9493openbsd*)
9494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9496 else
9497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9498 fi
9499 ;;
9500
9501osf3* | osf4* | osf5*)
9502 lt_cv_deplibs_check_method=pass_all
9503 ;;
9504
9505rdos*)
9506 lt_cv_deplibs_check_method=pass_all
9507 ;;
9508
9509solaris*)
9510 lt_cv_deplibs_check_method=pass_all
9511 ;;
9512
9513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9514 lt_cv_deplibs_check_method=pass_all
9515 ;;
9516
9517sysv4 | sysv4.3*)
9518 case $host_vendor in
9519 motorola)
9520 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]'
9521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9522 ;;
9523 ncr)
9524 lt_cv_deplibs_check_method=pass_all
9525 ;;
9526 sequent)
9527 lt_cv_file_magic_cmd='/bin/file'
9528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9529 ;;
9530 sni)
9531 lt_cv_file_magic_cmd='/bin/file'
9532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9533 lt_cv_file_magic_test_file=/lib/libc.so
9534 ;;
9535 siemens)
9536 lt_cv_deplibs_check_method=pass_all
9537 ;;
9538 pc)
9539 lt_cv_deplibs_check_method=pass_all
9540 ;;
9541 esac
9542 ;;
9543
9544tpf*)
9545 lt_cv_deplibs_check_method=pass_all
9546 ;;
9547esac
9548
9549fi
cristy8b350f62009-11-15 23:12:43 +00009550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00009551$as_echo "$lt_cv_deplibs_check_method" >&6; }
9552file_magic_cmd=$lt_cv_file_magic_cmd
9553deplibs_check_method=$lt_cv_deplibs_check_method
9554test -z "$deplibs_check_method" && deplibs_check_method=unknown
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567if test -n "$ac_tool_prefix"; then
9568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9569set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009571$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009572if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009573 $as_echo_n "(cached) " >&6
9574else
9575 if test -n "$AR"; then
9576 ac_cv_prog_AR="$AR" # Let the user override the test.
9577else
9578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579for as_dir in $PATH
9580do
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9585 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00009586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587 break 2
9588 fi
9589done
cristy8b350f62009-11-15 23:12:43 +00009590 done
cristy3ed852e2009-09-05 21:47:34 +00009591IFS=$as_save_IFS
9592
9593fi
9594fi
9595AR=$ac_cv_prog_AR
9596if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00009597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009598$as_echo "$AR" >&6; }
9599else
cristy8b350f62009-11-15 23:12:43 +00009600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009601$as_echo "no" >&6; }
9602fi
9603
9604
9605fi
9606if test -z "$ac_cv_prog_AR"; then
9607 ac_ct_AR=$AR
9608 # Extract the first word of "ar", so it can be a program name with args.
9609set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009611$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009612if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009613 $as_echo_n "(cached) " >&6
9614else
9615 if test -n "$ac_ct_AR"; then
9616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9617else
9618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $PATH
9620do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00009626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009627 break 2
9628 fi
9629done
cristy8b350f62009-11-15 23:12:43 +00009630 done
cristy3ed852e2009-09-05 21:47:34 +00009631IFS=$as_save_IFS
9632
9633fi
9634fi
9635ac_ct_AR=$ac_cv_prog_ac_ct_AR
9636if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00009637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009638$as_echo "$ac_ct_AR" >&6; }
9639else
cristy8b350f62009-11-15 23:12:43 +00009640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009641$as_echo "no" >&6; }
9642fi
9643
9644 if test "x$ac_ct_AR" = x; then
9645 AR="false"
9646 else
9647 case $cross_compiling:$ac_tool_warned in
9648yes:)
cristy8b350f62009-11-15 23:12:43 +00009649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9651ac_tool_warned=yes ;;
9652esac
9653 AR=$ac_ct_AR
9654 fi
9655else
9656 AR="$ac_cv_prog_AR"
9657fi
9658
9659test -z "$AR" && AR=ar
9660test -z "$AR_FLAGS" && AR_FLAGS=cru
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672if test -n "$ac_tool_prefix"; then
9673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9674set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009676$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009677if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009678 $as_echo_n "(cached) " >&6
9679else
9680 if test -n "$STRIP"; then
9681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9682else
9683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684for as_dir in $PATH
9685do
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00009691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009692 break 2
9693 fi
9694done
cristy8b350f62009-11-15 23:12:43 +00009695 done
cristy3ed852e2009-09-05 21:47:34 +00009696IFS=$as_save_IFS
9697
9698fi
9699fi
9700STRIP=$ac_cv_prog_STRIP
9701if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009703$as_echo "$STRIP" >&6; }
9704else
cristy8b350f62009-11-15 23:12:43 +00009705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009706$as_echo "no" >&6; }
9707fi
9708
9709
9710fi
9711if test -z "$ac_cv_prog_STRIP"; then
9712 ac_ct_STRIP=$STRIP
9713 # Extract the first word of "strip", so it can be a program name with args.
9714set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009716$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009717if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009718 $as_echo_n "(cached) " >&6
9719else
9720 if test -n "$ac_ct_STRIP"; then
9721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9722else
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009728 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00009731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009732 break 2
9733 fi
9734done
cristy8b350f62009-11-15 23:12:43 +00009735 done
cristy3ed852e2009-09-05 21:47:34 +00009736IFS=$as_save_IFS
9737
9738fi
9739fi
9740ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9741if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009743$as_echo "$ac_ct_STRIP" >&6; }
9744else
cristy8b350f62009-11-15 23:12:43 +00009745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009746$as_echo "no" >&6; }
9747fi
9748
9749 if test "x$ac_ct_STRIP" = x; then
9750 STRIP=":"
9751 else
9752 case $cross_compiling:$ac_tool_warned in
9753yes:)
cristy8b350f62009-11-15 23:12:43 +00009754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9756ac_tool_warned=yes ;;
9757esac
9758 STRIP=$ac_ct_STRIP
9759 fi
9760else
9761 STRIP="$ac_cv_prog_STRIP"
9762fi
9763
9764test -z "$STRIP" && STRIP=:
9765
9766
9767
9768
9769
9770
9771if test -n "$ac_tool_prefix"; then
9772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9773set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009775$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009776if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009777 $as_echo_n "(cached) " >&6
9778else
9779 if test -n "$RANLIB"; then
9780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9781else
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785 IFS=$as_save_IFS
9786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009791 break 2
9792 fi
9793done
cristy8b350f62009-11-15 23:12:43 +00009794 done
cristy3ed852e2009-09-05 21:47:34 +00009795IFS=$as_save_IFS
9796
9797fi
9798fi
9799RANLIB=$ac_cv_prog_RANLIB
9800if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009802$as_echo "$RANLIB" >&6; }
9803else
cristy8b350f62009-11-15 23:12:43 +00009804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009805$as_echo "no" >&6; }
9806fi
9807
9808
9809fi
9810if test -z "$ac_cv_prog_RANLIB"; then
9811 ac_ct_RANLIB=$RANLIB
9812 # Extract the first word of "ranlib", so it can be a program name with args.
9813set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009815$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009816if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009817 $as_echo_n "(cached) " >&6
9818else
9819 if test -n "$ac_ct_RANLIB"; then
9820 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9821else
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009831 break 2
9832 fi
9833done
cristy8b350f62009-11-15 23:12:43 +00009834 done
cristy3ed852e2009-09-05 21:47:34 +00009835IFS=$as_save_IFS
9836
9837fi
9838fi
9839ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9840if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009842$as_echo "$ac_ct_RANLIB" >&6; }
9843else
cristy8b350f62009-11-15 23:12:43 +00009844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009845$as_echo "no" >&6; }
9846fi
9847
9848 if test "x$ac_ct_RANLIB" = x; then
9849 RANLIB=":"
9850 else
9851 case $cross_compiling:$ac_tool_warned in
9852yes:)
cristy8b350f62009-11-15 23:12:43 +00009853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9855ac_tool_warned=yes ;;
9856esac
9857 RANLIB=$ac_ct_RANLIB
9858 fi
9859else
9860 RANLIB="$ac_cv_prog_RANLIB"
9861fi
9862
9863test -z "$RANLIB" && RANLIB=:
9864
9865
9866
9867
9868
9869
9870# Determine commands to create old-style static archives.
9871old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9872old_postinstall_cmds='chmod 644 $oldlib'
9873old_postuninstall_cmds=
9874
9875if test -n "$RANLIB"; then
9876 case $host_os in
9877 openbsd*)
9878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9879 ;;
9880 *)
9881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9882 ;;
9883 esac
9884 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9885fi
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
9915
9916
9917
9918
9919
9920# If no C compiler was specified, use CC.
9921LTCC=${LTCC-"$CC"}
9922
9923# If no C compiler flags were specified, use CFLAGS.
9924LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9925
9926# Allow CC to be a program name with arguments.
9927compiler=$CC
9928
9929
9930# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009932$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009933if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009934 $as_echo_n "(cached) " >&6
9935else
9936
9937# These are sane defaults that work on at least a few old systems.
9938# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9939
9940# Character class describing NM global symbol codes.
9941symcode='[BCDEGRST]'
9942
9943# Regexp to match symbols that can be accessed directly from C.
9944sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9945
9946# Define system-specific variables.
9947case $host_os in
9948aix*)
9949 symcode='[BCDT]'
9950 ;;
9951cygwin* | mingw* | pw32* | cegcc*)
9952 symcode='[ABCDGISTW]'
9953 ;;
9954hpux*)
9955 if test "$host_cpu" = ia64; then
9956 symcode='[ABCDEGRST]'
9957 fi
9958 ;;
9959irix* | nonstopux*)
9960 symcode='[BCDEGRST]'
9961 ;;
9962osf*)
9963 symcode='[BCDEGQRST]'
9964 ;;
9965solaris*)
9966 symcode='[BDRT]'
9967 ;;
9968sco3.2v5*)
9969 symcode='[DT]'
9970 ;;
9971sysv4.2uw2*)
9972 symcode='[DT]'
9973 ;;
9974sysv5* | sco5v6* | unixware* | OpenUNIX*)
9975 symcode='[ABDT]'
9976 ;;
9977sysv4)
9978 symcode='[DFNSTU]'
9979 ;;
9980esac
9981
9982# If we're using GNU nm, then use its standard symbol codes.
9983case `$NM -V 2>&1` in
9984*GNU* | *'with BFD'*)
9985 symcode='[ABCDGIRSTW]' ;;
9986esac
9987
9988# Transform an extracted symbol line into a proper C declaration.
9989# Some systems (esp. on ia64) link data and code symbols differently,
9990# so use this general approach.
9991lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9992
9993# Transform an extracted symbol line into symbol name and symbol address
9994lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9995lt_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'"
9996
9997# Handle CRLF in mingw tool chain
9998opt_cr=
9999case $build_os in
10000mingw*)
10001 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10002 ;;
10003esac
10004
10005# Try without a prefix underscore, then with it.
10006for ac_symprfx in "" "_"; do
10007
10008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10009 symxfrm="\\1 $ac_symprfx\\2 \\2"
10010
10011 # Write the raw and C identifiers.
10012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10013 # Fake it for dumpbin and say T for any non-static function
10014 # and D for any global variable.
10015 # Also find C++ and __fastcall symbols from MSVC++,
10016 # which start with @ or ?.
10017 lt_cv_sys_global_symbol_pipe="$AWK '"\
10018" {last_section=section; section=\$ 3};"\
10019" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10020" \$ 0!~/External *\|/{next};"\
10021" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10022" {if(hide[section]) next};"\
10023" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10024" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10025" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10026" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10027" ' prfx=^$ac_symprfx"
10028 else
10029 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10030 fi
10031
10032 # Check to see that the pipe works correctly.
10033 pipe_works=no
10034
10035 rm -f conftest*
10036 cat > conftest.$ac_ext <<_LT_EOF
10037#ifdef __cplusplus
10038extern "C" {
10039#endif
10040char nm_test_var;
10041void nm_test_func(void);
10042void nm_test_func(void){}
10043#ifdef __cplusplus
10044}
10045#endif
10046int main(){nm_test_var='a';nm_test_func();return(0);}
10047_LT_EOF
10048
cristy8b350f62009-11-15 23:12:43 +000010049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010050 (eval $ac_compile) 2>&5
10051 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10053 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010054 # Now try to grab the symbols.
10055 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10057 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010058 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10060 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010061 # Try sorting and uniquifying the output.
10062 if sort "$nlist" | uniq > "$nlist"T; then
10063 mv -f "$nlist"T "$nlist"
10064 else
10065 rm -f "$nlist"T
10066 fi
10067
10068 # Make sure that we snagged all the symbols we need.
10069 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10070 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10071 cat <<_LT_EOF > conftest.$ac_ext
10072#ifdef __cplusplus
10073extern "C" {
10074#endif
10075
10076_LT_EOF
10077 # Now generate the symbol file.
10078 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10079
10080 cat <<_LT_EOF >> conftest.$ac_ext
10081
10082/* The mapping between symbol names and symbols. */
10083const struct {
10084 const char *name;
10085 void *address;
10086}
10087lt__PROGRAM__LTX_preloaded_symbols[] =
10088{
10089 { "@PROGRAM@", (void *) 0 },
10090_LT_EOF
10091 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10092 cat <<\_LT_EOF >> conftest.$ac_ext
10093 {0, (void *) 0}
10094};
10095
10096/* This works around a problem in FreeBSD linker */
10097#ifdef FREEBSD_WORKAROUND
10098static const void *lt_preloaded_setup() {
10099 return lt__PROGRAM__LTX_preloaded_symbols;
10100}
10101#endif
10102
10103#ifdef __cplusplus
10104}
10105#endif
10106_LT_EOF
10107 # Now try linking the two files.
10108 mv conftest.$ac_objext conftstm.$ac_objext
10109 lt_save_LIBS="$LIBS"
10110 lt_save_CFLAGS="$CFLAGS"
10111 LIBS="conftstm.$ac_objext"
10112 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010114 (eval $ac_link) 2>&5
10115 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10117 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010118 pipe_works=yes
10119 fi
10120 LIBS="$lt_save_LIBS"
10121 CFLAGS="$lt_save_CFLAGS"
10122 else
10123 echo "cannot find nm_test_func in $nlist" >&5
10124 fi
10125 else
10126 echo "cannot find nm_test_var in $nlist" >&5
10127 fi
10128 else
10129 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10130 fi
10131 else
10132 echo "$progname: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10134 fi
10135 rm -rf conftest* conftst*
10136
10137 # Do not use the global_symbol_pipe unless it works.
10138 if test "$pipe_works" = yes; then
10139 break
10140 else
10141 lt_cv_sys_global_symbol_pipe=
10142 fi
10143done
10144
10145fi
10146
10147if test -z "$lt_cv_sys_global_symbol_pipe"; then
10148 lt_cv_sys_global_symbol_to_cdecl=
10149fi
10150if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010152$as_echo "failed" >&6; }
10153else
cristy8b350f62009-11-15 23:12:43 +000010154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010155$as_echo "ok" >&6; }
10156fi
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010180if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010181 enableval=$enable_libtool_lock;
10182fi
10183
10184test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10185
10186# Some flags need to be propagated to the compiler or linker for good
10187# libtool support.
10188case $host in
10189ia64-*-hpux*)
10190 # Find out which ABI we are using.
10191 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010193 (eval $ac_compile) 2>&5
10194 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10196 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010197 case `/usr/bin/file conftest.$ac_objext` in
10198 *ELF-32*)
10199 HPUX_IA64_MODE="32"
10200 ;;
10201 *ELF-64*)
10202 HPUX_IA64_MODE="64"
10203 ;;
10204 esac
10205 fi
10206 rm -rf conftest*
10207 ;;
10208*-*-irix6*)
10209 # Find out which ABI we are using.
cristybab87c32010-02-09 20:54:22 +000010210 echo '#line 10210 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010212 (eval $ac_compile) 2>&5
10213 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010216 if test "$lt_cv_prog_gnu_ld" = yes; then
10217 case `/usr/bin/file conftest.$ac_objext` in
10218 *32-bit*)
10219 LD="${LD-ld} -melf32bsmip"
10220 ;;
10221 *N32*)
10222 LD="${LD-ld} -melf32bmipn32"
10223 ;;
10224 *64-bit*)
10225 LD="${LD-ld} -melf64bmip"
10226 ;;
10227 esac
10228 else
10229 case `/usr/bin/file conftest.$ac_objext` in
10230 *32-bit*)
10231 LD="${LD-ld} -32"
10232 ;;
10233 *N32*)
10234 LD="${LD-ld} -n32"
10235 ;;
10236 *64-bit*)
10237 LD="${LD-ld} -64"
10238 ;;
10239 esac
10240 fi
10241 fi
10242 rm -rf conftest*
10243 ;;
10244
10245x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10246s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10247 # Find out which ABI we are using.
10248 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010250 (eval $ac_compile) 2>&5
10251 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010254 case `/usr/bin/file conftest.o` in
10255 *32-bit*)
10256 case $host in
10257 x86_64-*kfreebsd*-gnu)
10258 LD="${LD-ld} -m elf_i386_fbsd"
10259 ;;
10260 x86_64-*linux*)
10261 LD="${LD-ld} -m elf_i386"
10262 ;;
10263 ppc64-*linux*|powerpc64-*linux*)
10264 LD="${LD-ld} -m elf32ppclinux"
10265 ;;
10266 s390x-*linux*)
10267 LD="${LD-ld} -m elf_s390"
10268 ;;
10269 sparc64-*linux*)
10270 LD="${LD-ld} -m elf32_sparc"
10271 ;;
10272 esac
10273 ;;
10274 *64-bit*)
10275 case $host in
10276 x86_64-*kfreebsd*-gnu)
10277 LD="${LD-ld} -m elf_x86_64_fbsd"
10278 ;;
10279 x86_64-*linux*)
10280 LD="${LD-ld} -m elf_x86_64"
10281 ;;
10282 ppc*-*linux*|powerpc*-*linux*)
10283 LD="${LD-ld} -m elf64ppc"
10284 ;;
10285 s390*-*linux*|s390*-*tpf*)
10286 LD="${LD-ld} -m elf64_s390"
10287 ;;
10288 sparc*-*linux*)
10289 LD="${LD-ld} -m elf64_sparc"
10290 ;;
10291 esac
10292 ;;
10293 esac
10294 fi
10295 rm -rf conftest*
10296 ;;
10297
10298*-*-sco3.2v5*)
10299 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10300 SAVE_CFLAGS="$CFLAGS"
10301 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010303$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010304if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010305 $as_echo_n "(cached) " >&6
10306else
10307 ac_ext=c
10308ac_cpp='$CPP $CPPFLAGS'
10309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10311ac_compiler_gnu=$ac_cv_c_compiler_gnu
10312
cristy8b350f62009-11-15 23:12:43 +000010313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010314/* end confdefs.h. */
10315
10316int
10317main ()
10318{
10319
10320 ;
10321 return 0;
10322}
10323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010324if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010325 lt_cv_cc_needs_belf=yes
10326else
cristy8b350f62009-11-15 23:12:43 +000010327 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010328fi
cristy8b350f62009-11-15 23:12:43 +000010329rm -f core conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010331 ac_ext=c
10332ac_cpp='$CPP $CPPFLAGS'
10333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10335ac_compiler_gnu=$ac_cv_c_compiler_gnu
10336
10337fi
cristy8b350f62009-11-15 23:12:43 +000010338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010339$as_echo "$lt_cv_cc_needs_belf" >&6; }
10340 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10341 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10342 CFLAGS="$SAVE_CFLAGS"
10343 fi
10344 ;;
10345sparc*-*solaris*)
10346 # Find out which ABI we are using.
10347 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010349 (eval $ac_compile) 2>&5
10350 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010353 case `/usr/bin/file conftest.o` in
10354 *64-bit*)
10355 case $lt_cv_prog_gnu_ld in
10356 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10357 *)
10358 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10359 LD="${LD-ld} -64"
10360 fi
10361 ;;
10362 esac
10363 ;;
10364 esac
10365 fi
10366 rm -rf conftest*
10367 ;;
10368esac
10369
10370need_locks="$enable_libtool_lock"
10371
10372
10373 case $host_os in
10374 rhapsody* | darwin*)
10375 if test -n "$ac_tool_prefix"; then
10376 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10377set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010379$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010380if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010381 $as_echo_n "(cached) " >&6
10382else
10383 if test -n "$DSYMUTIL"; then
10384 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10385else
10386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387for as_dir in $PATH
10388do
10389 IFS=$as_save_IFS
10390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10393 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010395 break 2
10396 fi
10397done
cristy8b350f62009-11-15 23:12:43 +000010398 done
cristy3ed852e2009-09-05 21:47:34 +000010399IFS=$as_save_IFS
10400
10401fi
10402fi
10403DSYMUTIL=$ac_cv_prog_DSYMUTIL
10404if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010406$as_echo "$DSYMUTIL" >&6; }
10407else
cristy8b350f62009-11-15 23:12:43 +000010408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010409$as_echo "no" >&6; }
10410fi
10411
10412
10413fi
10414if test -z "$ac_cv_prog_DSYMUTIL"; then
10415 ac_ct_DSYMUTIL=$DSYMUTIL
10416 # Extract the first word of "dsymutil", so it can be a program name with args.
10417set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010419$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010420if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010421 $as_echo_n "(cached) " >&6
10422else
10423 if test -n "$ac_ct_DSYMUTIL"; then
10424 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10425else
10426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427for as_dir in $PATH
10428do
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10433 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010435 break 2
10436 fi
10437done
cristy8b350f62009-11-15 23:12:43 +000010438 done
cristy3ed852e2009-09-05 21:47:34 +000010439IFS=$as_save_IFS
10440
10441fi
10442fi
10443ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10444if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010446$as_echo "$ac_ct_DSYMUTIL" >&6; }
10447else
cristy8b350f62009-11-15 23:12:43 +000010448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010449$as_echo "no" >&6; }
10450fi
10451
10452 if test "x$ac_ct_DSYMUTIL" = x; then
10453 DSYMUTIL=":"
10454 else
10455 case $cross_compiling:$ac_tool_warned in
10456yes:)
cristy8b350f62009-11-15 23:12:43 +000010457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10459ac_tool_warned=yes ;;
10460esac
10461 DSYMUTIL=$ac_ct_DSYMUTIL
10462 fi
10463else
10464 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10465fi
10466
10467 if test -n "$ac_tool_prefix"; then
10468 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10469set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010471$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010472if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010473 $as_echo_n "(cached) " >&6
10474else
10475 if test -n "$NMEDIT"; then
10476 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10477else
10478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479for as_dir in $PATH
10480do
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000010486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010487 break 2
10488 fi
10489done
cristy8b350f62009-11-15 23:12:43 +000010490 done
cristy3ed852e2009-09-05 21:47:34 +000010491IFS=$as_save_IFS
10492
10493fi
10494fi
10495NMEDIT=$ac_cv_prog_NMEDIT
10496if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010498$as_echo "$NMEDIT" >&6; }
10499else
cristy8b350f62009-11-15 23:12:43 +000010500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010501$as_echo "no" >&6; }
10502fi
10503
10504
10505fi
10506if test -z "$ac_cv_prog_NMEDIT"; then
10507 ac_ct_NMEDIT=$NMEDIT
10508 # Extract the first word of "nmedit", so it can be a program name with args.
10509set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010511$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010512if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010513 $as_echo_n "(cached) " >&6
10514else
10515 if test -n "$ac_ct_NMEDIT"; then
10516 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10517else
10518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519for as_dir in $PATH
10520do
10521 IFS=$as_save_IFS
10522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10525 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000010526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010527 break 2
10528 fi
10529done
cristy8b350f62009-11-15 23:12:43 +000010530 done
cristy3ed852e2009-09-05 21:47:34 +000010531IFS=$as_save_IFS
10532
10533fi
10534fi
10535ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10536if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010538$as_echo "$ac_ct_NMEDIT" >&6; }
10539else
cristy8b350f62009-11-15 23:12:43 +000010540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010541$as_echo "no" >&6; }
10542fi
10543
10544 if test "x$ac_ct_NMEDIT" = x; then
10545 NMEDIT=":"
10546 else
10547 case $cross_compiling:$ac_tool_warned in
10548yes:)
cristy8b350f62009-11-15 23:12:43 +000010549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10551ac_tool_warned=yes ;;
10552esac
10553 NMEDIT=$ac_ct_NMEDIT
10554 fi
10555else
10556 NMEDIT="$ac_cv_prog_NMEDIT"
10557fi
10558
10559 if test -n "$ac_tool_prefix"; then
10560 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10561set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010563$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010564if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010565 $as_echo_n "(cached) " >&6
10566else
10567 if test -n "$LIPO"; then
10568 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10569else
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000010578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010579 break 2
10580 fi
10581done
cristy8b350f62009-11-15 23:12:43 +000010582 done
cristy3ed852e2009-09-05 21:47:34 +000010583IFS=$as_save_IFS
10584
10585fi
10586fi
10587LIPO=$ac_cv_prog_LIPO
10588if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010590$as_echo "$LIPO" >&6; }
10591else
cristy8b350f62009-11-15 23:12:43 +000010592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010593$as_echo "no" >&6; }
10594fi
10595
10596
10597fi
10598if test -z "$ac_cv_prog_LIPO"; then
10599 ac_ct_LIPO=$LIPO
10600 # Extract the first word of "lipo", so it can be a program name with args.
10601set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010603$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010604if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010605 $as_echo_n "(cached) " >&6
10606else
10607 if test -n "$ac_ct_LIPO"; then
10608 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10609else
10610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611for as_dir in $PATH
10612do
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10617 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000010618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010619 break 2
10620 fi
10621done
cristy8b350f62009-11-15 23:12:43 +000010622 done
cristy3ed852e2009-09-05 21:47:34 +000010623IFS=$as_save_IFS
10624
10625fi
10626fi
10627ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10628if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010630$as_echo "$ac_ct_LIPO" >&6; }
10631else
cristy8b350f62009-11-15 23:12:43 +000010632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010633$as_echo "no" >&6; }
10634fi
10635
10636 if test "x$ac_ct_LIPO" = x; then
10637 LIPO=":"
10638 else
10639 case $cross_compiling:$ac_tool_warned in
10640yes:)
cristy8b350f62009-11-15 23:12:43 +000010641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10643ac_tool_warned=yes ;;
10644esac
10645 LIPO=$ac_ct_LIPO
10646 fi
10647else
10648 LIPO="$ac_cv_prog_LIPO"
10649fi
10650
10651 if test -n "$ac_tool_prefix"; then
10652 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10653set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010655$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010656if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010657 $as_echo_n "(cached) " >&6
10658else
10659 if test -n "$OTOOL"; then
10660 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10661else
10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $PATH
10664do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000010670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010671 break 2
10672 fi
10673done
cristy8b350f62009-11-15 23:12:43 +000010674 done
cristy3ed852e2009-09-05 21:47:34 +000010675IFS=$as_save_IFS
10676
10677fi
10678fi
10679OTOOL=$ac_cv_prog_OTOOL
10680if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010682$as_echo "$OTOOL" >&6; }
10683else
cristy8b350f62009-11-15 23:12:43 +000010684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010685$as_echo "no" >&6; }
10686fi
10687
10688
10689fi
10690if test -z "$ac_cv_prog_OTOOL"; then
10691 ac_ct_OTOOL=$OTOOL
10692 # Extract the first word of "otool", so it can be a program name with args.
10693set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010695$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010696if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010697 $as_echo_n "(cached) " >&6
10698else
10699 if test -n "$ac_ct_OTOOL"; then
10700 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10701else
10702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703for as_dir in $PATH
10704do
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010707 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000010710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010711 break 2
10712 fi
10713done
cristy8b350f62009-11-15 23:12:43 +000010714 done
cristy3ed852e2009-09-05 21:47:34 +000010715IFS=$as_save_IFS
10716
10717fi
10718fi
10719ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10720if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010722$as_echo "$ac_ct_OTOOL" >&6; }
10723else
cristy8b350f62009-11-15 23:12:43 +000010724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010725$as_echo "no" >&6; }
10726fi
10727
10728 if test "x$ac_ct_OTOOL" = x; then
10729 OTOOL=":"
10730 else
10731 case $cross_compiling:$ac_tool_warned in
10732yes:)
cristy8b350f62009-11-15 23:12:43 +000010733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10735ac_tool_warned=yes ;;
10736esac
10737 OTOOL=$ac_ct_OTOOL
10738 fi
10739else
10740 OTOOL="$ac_cv_prog_OTOOL"
10741fi
10742
10743 if test -n "$ac_tool_prefix"; then
10744 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10745set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010747$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010748if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010749 $as_echo_n "(cached) " >&6
10750else
10751 if test -n "$OTOOL64"; then
10752 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10753else
10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010763 break 2
10764 fi
10765done
cristy8b350f62009-11-15 23:12:43 +000010766 done
cristy3ed852e2009-09-05 21:47:34 +000010767IFS=$as_save_IFS
10768
10769fi
10770fi
10771OTOOL64=$ac_cv_prog_OTOOL64
10772if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010774$as_echo "$OTOOL64" >&6; }
10775else
cristy8b350f62009-11-15 23:12:43 +000010776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010777$as_echo "no" >&6; }
10778fi
10779
10780
10781fi
10782if test -z "$ac_cv_prog_OTOOL64"; then
10783 ac_ct_OTOOL64=$OTOOL64
10784 # Extract the first word of "otool64", so it can be a program name with args.
10785set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010787$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010788if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010789 $as_echo_n "(cached) " >&6
10790else
10791 if test -n "$ac_ct_OTOOL64"; then
10792 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10793else
10794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795for as_dir in $PATH
10796do
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10801 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010803 break 2
10804 fi
10805done
cristy8b350f62009-11-15 23:12:43 +000010806 done
cristy3ed852e2009-09-05 21:47:34 +000010807IFS=$as_save_IFS
10808
10809fi
10810fi
10811ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10812if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010814$as_echo "$ac_ct_OTOOL64" >&6; }
10815else
cristy8b350f62009-11-15 23:12:43 +000010816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010817$as_echo "no" >&6; }
10818fi
10819
10820 if test "x$ac_ct_OTOOL64" = x; then
10821 OTOOL64=":"
10822 else
10823 case $cross_compiling:$ac_tool_warned in
10824yes:)
cristy8b350f62009-11-15 23:12:43 +000010825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10827ac_tool_warned=yes ;;
10828esac
10829 OTOOL64=$ac_ct_OTOOL64
10830 fi
10831else
10832 OTOOL64="$ac_cv_prog_OTOOL64"
10833fi
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
cristy8b350f62009-11-15 23:12:43 +000010861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010862$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010863if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010864 $as_echo_n "(cached) " >&6
10865else
10866 lt_cv_apple_cc_single_mod=no
10867 if test -z "${LT_MULTI_MODULE}"; then
10868 # By default we will add the -single_module flag. You can override
10869 # by either setting the environment variable LT_MULTI_MODULE
10870 # non-empty at configure time, or by adding -multi_module to the
10871 # link flags.
10872 rm -rf libconftest.dylib*
10873 echo "int foo(void){return 1;}" > conftest.c
10874 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10875-dynamiclib -Wl,-single_module conftest.c" >&5
10876 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10877 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10878 _lt_result=$?
10879 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10880 lt_cv_apple_cc_single_mod=yes
10881 else
10882 cat conftest.err >&5
10883 fi
10884 rm -rf libconftest.dylib*
10885 rm -f conftest.*
10886 fi
10887fi
cristy8b350f62009-11-15 23:12:43 +000010888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010889$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010891$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010892if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010893 $as_echo_n "(cached) " >&6
10894else
10895 lt_cv_ld_exported_symbols_list=no
10896 save_LDFLAGS=$LDFLAGS
10897 echo "_main" > conftest.sym
10898 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010900/* end confdefs.h. */
10901
10902int
10903main ()
10904{
10905
10906 ;
10907 return 0;
10908}
10909_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010910if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010911 lt_cv_ld_exported_symbols_list=yes
10912else
cristy8b350f62009-11-15 23:12:43 +000010913 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010914fi
cristy8b350f62009-11-15 23:12:43 +000010915rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010917 LDFLAGS="$save_LDFLAGS"
10918
10919fi
cristy8b350f62009-11-15 23:12:43 +000010920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010921$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10922 case $host_os in
10923 rhapsody* | darwin1.[012])
10924 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10925 darwin1.*)
10926 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10927 darwin*) # darwin 5.x on
10928 # if running on 10.5 or later, the deployment target defaults
10929 # to the OS version, if on x86, and 10.4, the deployment
10930 # target defaults to 10.4. Don't you love it?
10931 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10932 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10933 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10934 10.[012]*)
10935 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10936 10.*)
10937 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10938 esac
10939 ;;
10940 esac
10941 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10942 _lt_dar_single_mod='$single_module'
10943 fi
10944 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10945 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10946 else
10947 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10948 fi
cristy18304f92009-11-22 15:48:26 +000010949 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010950 _lt_dsymutil='~$DSYMUTIL $lib || :'
10951 else
10952 _lt_dsymutil=
10953 fi
10954 ;;
10955 esac
10956
cristy3ed852e2009-09-05 21:47:34 +000010957for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010958do :
10959 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10960"
10961if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010962 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010963#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010964_ACEOF
10965
10966fi
10967
10968done
10969
10970
10971
cristy18304f92009-11-22 15:48:26 +000010972ac_ext=cpp
10973ac_cpp='$CXXCPP $CPPFLAGS'
10974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10977if test -z "$CXX"; then
10978 if test -n "$CCC"; then
10979 CXX=$CCC
10980 else
10981 if test -n "$ac_tool_prefix"; then
10982 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10983 do
10984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987$as_echo_n "checking for $ac_word... " >&6; }
10988if test "${ac_cv_prog_CXX+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10990else
10991 if test -n "$CXX"; then
10992 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10993else
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11001 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11004 fi
11005done
11006 done
11007IFS=$as_save_IFS
11008
11009fi
11010fi
11011CXX=$ac_cv_prog_CXX
11012if test -n "$CXX"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11014$as_echo "$CXX" >&6; }
11015else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017$as_echo "no" >&6; }
11018fi
11019
11020
11021 test -n "$CXX" && break
11022 done
11023fi
11024if test -z "$CXX"; then
11025 ac_ct_CXX=$CXX
11026 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11027do
11028 # Extract the first word of "$ac_prog", so it can be a program name with args.
11029set dummy $ac_prog; ac_word=$2
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031$as_echo_n "checking for $ac_word... " >&6; }
11032if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
11034else
11035 if test -n "$ac_ct_CXX"; then
11036 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11037else
11038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039for as_dir in $PATH
11040do
11041 IFS=$as_save_IFS
11042 test -z "$as_dir" && as_dir=.
11043 for ac_exec_ext in '' $ac_executable_extensions; do
11044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11045 ac_cv_prog_ac_ct_CXX="$ac_prog"
11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 break 2
11048 fi
11049done
11050 done
11051IFS=$as_save_IFS
11052
11053fi
11054fi
11055ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11056if test -n "$ac_ct_CXX"; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11058$as_echo "$ac_ct_CXX" >&6; }
11059else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061$as_echo "no" >&6; }
11062fi
11063
11064
11065 test -n "$ac_ct_CXX" && break
11066done
11067
11068 if test "x$ac_ct_CXX" = x; then
11069 CXX="g++"
11070 else
11071 case $cross_compiling:$ac_tool_warned in
11072yes:)
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11075ac_tool_warned=yes ;;
11076esac
11077 CXX=$ac_ct_CXX
11078 fi
11079fi
11080
11081 fi
11082fi
11083# Provide some information about the compiler.
11084$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11085set X $ac_compile
11086ac_compiler=$2
11087for ac_option in --version -v -V -qversion; do
11088 { { ac_try="$ac_compiler $ac_option >&5"
11089case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092esac
11093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11094$as_echo "$ac_try_echo"; } >&5
11095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11096 ac_status=$?
11097 if test -s conftest.err; then
11098 sed '10a\
11099... rest of stderr output deleted ...
11100 10q' conftest.err >conftest.er1
11101 cat conftest.er1 >&5
11102 fi
11103 rm -f conftest.er1 conftest.err
11104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11105 test $ac_status = 0; }
11106done
11107
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11109$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11110if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112else
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114/* end confdefs.h. */
11115
11116int
11117main ()
11118{
11119#ifndef __GNUC__
11120 choke me
11121#endif
11122
11123 ;
11124 return 0;
11125}
11126_ACEOF
11127if ac_fn_cxx_try_compile "$LINENO"; then :
11128 ac_compiler_gnu=yes
11129else
11130 ac_compiler_gnu=no
11131fi
11132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11133ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11134
11135fi
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11137$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11138if test $ac_compiler_gnu = yes; then
11139 GXX=yes
11140else
11141 GXX=
11142fi
11143ac_test_CXXFLAGS=${CXXFLAGS+set}
11144ac_save_CXXFLAGS=$CXXFLAGS
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11146$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11147if test "${ac_cv_prog_cxx_g+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
11149else
11150 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11151 ac_cxx_werror_flag=yes
11152 ac_cv_prog_cxx_g=no
11153 CXXFLAGS="-g"
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h. */
11156
11157int
11158main ()
11159{
11160
11161 ;
11162 return 0;
11163}
11164_ACEOF
11165if ac_fn_cxx_try_compile "$LINENO"; then :
11166 ac_cv_prog_cxx_g=yes
11167else
11168 CXXFLAGS=""
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h. */
11171
11172int
11173main ()
11174{
11175
11176 ;
11177 return 0;
11178}
11179_ACEOF
11180if ac_fn_cxx_try_compile "$LINENO"; then :
11181
11182else
11183 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11184 CXXFLAGS="-g"
11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186/* end confdefs.h. */
11187
11188int
11189main ()
11190{
11191
11192 ;
11193 return 0;
11194}
11195_ACEOF
11196if ac_fn_cxx_try_compile "$LINENO"; then :
11197 ac_cv_prog_cxx_g=yes
11198fi
11199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200fi
11201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202fi
11203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11205fi
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11207$as_echo "$ac_cv_prog_cxx_g" >&6; }
11208if test "$ac_test_CXXFLAGS" = set; then
11209 CXXFLAGS=$ac_save_CXXFLAGS
11210elif test $ac_cv_prog_cxx_g = yes; then
11211 if test "$GXX" = yes; then
11212 CXXFLAGS="-g -O2"
11213 else
11214 CXXFLAGS="-g"
11215 fi
11216else
11217 if test "$GXX" = yes; then
11218 CXXFLAGS="-O2"
11219 else
11220 CXXFLAGS=
11221 fi
11222fi
11223ac_ext=c
11224ac_cpp='$CPP $CPPFLAGS'
11225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11227ac_compiler_gnu=$ac_cv_c_compiler_gnu
11228
11229depcc="$CXX" am_compiler_list=
11230
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11232$as_echo_n "checking dependency style of $depcc... " >&6; }
11233if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11235else
11236 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11237 # We make a subdir and do the tests there. Otherwise we can end up
11238 # making bogus files that we don't know about and never remove. For
11239 # instance it was reported that on HP-UX the gcc test will end up
11240 # making a dummy file named `D' -- because `-MD' means `put the output
11241 # in D'.
11242 mkdir conftest.dir
11243 # Copy depcomp to subdir because otherwise we won't find it if we're
11244 # using a relative directory.
11245 cp "$am_depcomp" conftest.dir
11246 cd conftest.dir
11247 # We will build objects and dependencies in a subdirectory because
11248 # it helps to detect inapplicable dependency modes. For instance
11249 # both Tru64's cc and ICC support -MD to output dependencies as a
11250 # side effect of compilation, but ICC will put the dependencies in
11251 # the current directory while Tru64 will put them in the object
11252 # directory.
11253 mkdir sub
11254
11255 am_cv_CXX_dependencies_compiler_type=none
11256 if test "$am_compiler_list" = ""; then
11257 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11258 fi
11259 am__universal=false
11260 case " $depcc " in #(
11261 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11262 esac
11263
11264 for depmode in $am_compiler_list; do
11265 # Setup a source with many dependencies, because some compilers
11266 # like to wrap large dependency lists on column 80 (with \), and
11267 # we should not choose a depcomp mode which is confused by this.
11268 #
11269 # We need to recreate these files for each test, as the compiler may
11270 # overwrite some of them when testing with obscure command lines.
11271 # This happens at least with the AIX C compiler.
11272 : > sub/conftest.c
11273 for i in 1 2 3 4 5 6; do
11274 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11275 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11276 # Solaris 8's {/usr,}/bin/sh.
11277 touch sub/conftst$i.h
11278 done
11279 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11280
11281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11282 # mode. It turns out that the SunPro C++ compiler does not properly
11283 # handle `-M -o', and we need to detect this. Also, some Intel
11284 # versions had trouble with output in subdirs
11285 am__obj=sub/conftest.${OBJEXT-o}
11286 am__minus_obj="-o $am__obj"
11287 case $depmode in
11288 gcc)
11289 # This depmode causes a compiler race in universal mode.
11290 test "$am__universal" = false || continue
11291 ;;
11292 nosideeffect)
11293 # after this tag, mechanisms are not by side-effect, so they'll
11294 # only be used when explicitly requested
11295 if test "x$enable_dependency_tracking" = xyes; then
11296 continue
11297 else
11298 break
11299 fi
11300 ;;
11301 msvisualcpp | msvcmsys)
11302 # This compiler won't grok `-c -o', but also, the minuso test has
11303 # not run yet. These depmodes are late enough in the game, and
11304 # so weak that their functioning should not be impacted.
11305 am__obj=conftest.${OBJEXT-o}
11306 am__minus_obj=
11307 ;;
11308 none) break ;;
11309 esac
11310 if depmode=$depmode \
11311 source=sub/conftest.c object=$am__obj \
11312 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11313 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11314 >/dev/null 2>conftest.err &&
11315 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11317 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11319 # icc doesn't choke on unknown options, it will just issue warnings
11320 # or remarks (even with -Werror). So we grep stderr for any message
11321 # that says an option was ignored or not supported.
11322 # When given -MP, icc 7.0 and 7.1 complain thusly:
11323 # icc: Command line warning: ignoring option '-M'; no argument required
11324 # The diagnosis changed in icc 8.0:
11325 # icc: Command line remark: option '-MP' not supported
11326 if (grep 'ignoring option' conftest.err ||
11327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11328 am_cv_CXX_dependencies_compiler_type=$depmode
11329 break
11330 fi
11331 fi
11332 done
11333
11334 cd ..
11335 rm -rf conftest.dir
11336else
11337 am_cv_CXX_dependencies_compiler_type=none
11338fi
11339
11340fi
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11342$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11343CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11344
11345 if
11346 test "x$enable_dependency_tracking" != xno \
11347 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11348 am__fastdepCXX_TRUE=
11349 am__fastdepCXX_FALSE='#'
11350else
11351 am__fastdepCXX_TRUE='#'
11352 am__fastdepCXX_FALSE=
11353fi
11354
11355
11356if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11357 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11358 (test "X$CXX" != "Xg++"))) ; then
11359 ac_ext=cpp
11360ac_cpp='$CXXCPP $CPPFLAGS'
11361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11365$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11366if test -z "$CXXCPP"; then
11367 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11369else
11370 # Double quotes because CXXCPP needs to be expanded
11371 for CXXCPP in "$CXX -E" "/lib/cpp"
11372 do
11373 ac_preproc_ok=false
11374for ac_cxx_preproc_warn_flag in '' yes
11375do
11376 # Use a header file that comes with gcc, so configuring glibc
11377 # with a fresh cross-compiler works.
11378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11379 # <limits.h> exists even on freestanding compilers.
11380 # On the NeXT, cc -E runs the code through the compiler's parser,
11381 # not just through cpp. "Syntax error" is here to catch this case.
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383/* end confdefs.h. */
11384#ifdef __STDC__
11385# include <limits.h>
11386#else
11387# include <assert.h>
11388#endif
11389 Syntax error
11390_ACEOF
11391if ac_fn_cxx_try_cpp "$LINENO"; then :
11392
11393else
11394 # Broken: fails on valid input.
11395continue
11396fi
11397rm -f conftest.err conftest.$ac_ext
11398
11399 # OK, works on sane cases. Now check whether nonexistent headers
11400 # can be detected and how.
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402/* end confdefs.h. */
11403#include <ac_nonexistent.h>
11404_ACEOF
11405if ac_fn_cxx_try_cpp "$LINENO"; then :
11406 # Broken: success on invalid input.
11407continue
11408else
11409 # Passes both tests.
11410ac_preproc_ok=:
11411break
11412fi
11413rm -f conftest.err conftest.$ac_ext
11414
11415done
11416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11417rm -f conftest.err conftest.$ac_ext
11418if $ac_preproc_ok; then :
11419 break
11420fi
11421
11422 done
11423 ac_cv_prog_CXXCPP=$CXXCPP
11424
11425fi
11426 CXXCPP=$ac_cv_prog_CXXCPP
11427else
11428 ac_cv_prog_CXXCPP=$CXXCPP
11429fi
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11431$as_echo "$CXXCPP" >&6; }
11432ac_preproc_ok=false
11433for ac_cxx_preproc_warn_flag in '' yes
11434do
11435 # Use a header file that comes with gcc, so configuring glibc
11436 # with a fresh cross-compiler works.
11437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438 # <limits.h> exists even on freestanding compilers.
11439 # On the NeXT, cc -E runs the code through the compiler's parser,
11440 # not just through cpp. "Syntax error" is here to catch this case.
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442/* end confdefs.h. */
11443#ifdef __STDC__
11444# include <limits.h>
11445#else
11446# include <assert.h>
11447#endif
11448 Syntax error
11449_ACEOF
11450if ac_fn_cxx_try_cpp "$LINENO"; then :
11451
11452else
11453 # Broken: fails on valid input.
11454continue
11455fi
11456rm -f conftest.err conftest.$ac_ext
11457
11458 # OK, works on sane cases. Now check whether nonexistent headers
11459 # can be detected and how.
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h. */
11462#include <ac_nonexistent.h>
11463_ACEOF
11464if ac_fn_cxx_try_cpp "$LINENO"; then :
11465 # Broken: success on invalid input.
11466continue
11467else
11468 # Passes both tests.
11469ac_preproc_ok=:
11470break
11471fi
11472rm -f conftest.err conftest.$ac_ext
11473
11474done
11475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11476rm -f conftest.err conftest.$ac_ext
11477if $ac_preproc_ok; then :
11478
11479else
11480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11482_lt_caught_CXX_error=yes; }
11483fi
11484
11485ac_ext=c
11486ac_cpp='$CPP $CPPFLAGS'
11487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11489ac_compiler_gnu=$ac_cv_c_compiler_gnu
11490
11491else
11492 _lt_caught_CXX_error=yes
11493fi
11494
11495
cristy3ed852e2009-09-05 21:47:34 +000011496
11497
11498
11499# Set options
11500enable_win32_dll=yes
11501
11502case $host in
cristy18304f92009-11-22 15:48:26 +000011503*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011504 if test -n "$ac_tool_prefix"; then
11505 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11506set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011508$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011509if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011510 $as_echo_n "(cached) " >&6
11511else
11512 if test -n "$AS"; then
11513 ac_cv_prog_AS="$AS" # Let the user override the test.
11514else
11515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011524 break 2
11525 fi
11526done
cristy8b350f62009-11-15 23:12:43 +000011527 done
cristy3ed852e2009-09-05 21:47:34 +000011528IFS=$as_save_IFS
11529
11530fi
11531fi
11532AS=$ac_cv_prog_AS
11533if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011535$as_echo "$AS" >&6; }
11536else
cristy8b350f62009-11-15 23:12:43 +000011537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011538$as_echo "no" >&6; }
11539fi
11540
11541
11542fi
11543if test -z "$ac_cv_prog_AS"; then
11544 ac_ct_AS=$AS
11545 # Extract the first word of "as", so it can be a program name with args.
11546set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011548$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011549if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011550 $as_echo_n "(cached) " >&6
11551else
11552 if test -n "$ac_ct_AS"; then
11553 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11554else
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011564 break 2
11565 fi
11566done
cristy8b350f62009-11-15 23:12:43 +000011567 done
cristy3ed852e2009-09-05 21:47:34 +000011568IFS=$as_save_IFS
11569
11570fi
11571fi
11572ac_ct_AS=$ac_cv_prog_ac_ct_AS
11573if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011575$as_echo "$ac_ct_AS" >&6; }
11576else
cristy8b350f62009-11-15 23:12:43 +000011577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011578$as_echo "no" >&6; }
11579fi
11580
11581 if test "x$ac_ct_AS" = x; then
11582 AS="false"
11583 else
11584 case $cross_compiling:$ac_tool_warned in
11585yes:)
cristy8b350f62009-11-15 23:12:43 +000011586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11588ac_tool_warned=yes ;;
11589esac
11590 AS=$ac_ct_AS
11591 fi
11592else
11593 AS="$ac_cv_prog_AS"
11594fi
11595
11596 if test -n "$ac_tool_prefix"; then
11597 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11598set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011600$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011601if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011602 $as_echo_n "(cached) " >&6
11603else
11604 if test -n "$DLLTOOL"; then
11605 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11606else
11607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608for as_dir in $PATH
11609do
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11614 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011616 break 2
11617 fi
11618done
cristy8b350f62009-11-15 23:12:43 +000011619 done
cristy3ed852e2009-09-05 21:47:34 +000011620IFS=$as_save_IFS
11621
11622fi
11623fi
11624DLLTOOL=$ac_cv_prog_DLLTOOL
11625if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011627$as_echo "$DLLTOOL" >&6; }
11628else
cristy8b350f62009-11-15 23:12:43 +000011629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011630$as_echo "no" >&6; }
11631fi
11632
11633
11634fi
11635if test -z "$ac_cv_prog_DLLTOOL"; then
11636 ac_ct_DLLTOOL=$DLLTOOL
11637 # Extract the first word of "dlltool", so it can be a program name with args.
11638set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011640$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011641if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011642 $as_echo_n "(cached) " >&6
11643else
11644 if test -n "$ac_ct_DLLTOOL"; then
11645 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11646else
11647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648for as_dir in $PATH
11649do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11654 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011656 break 2
11657 fi
11658done
cristy8b350f62009-11-15 23:12:43 +000011659 done
cristy3ed852e2009-09-05 21:47:34 +000011660IFS=$as_save_IFS
11661
11662fi
11663fi
11664ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11665if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011667$as_echo "$ac_ct_DLLTOOL" >&6; }
11668else
cristy8b350f62009-11-15 23:12:43 +000011669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011670$as_echo "no" >&6; }
11671fi
11672
11673 if test "x$ac_ct_DLLTOOL" = x; then
11674 DLLTOOL="false"
11675 else
11676 case $cross_compiling:$ac_tool_warned in
11677yes:)
cristy8b350f62009-11-15 23:12:43 +000011678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11680ac_tool_warned=yes ;;
11681esac
11682 DLLTOOL=$ac_ct_DLLTOOL
11683 fi
11684else
11685 DLLTOOL="$ac_cv_prog_DLLTOOL"
11686fi
11687
11688 if test -n "$ac_tool_prefix"; then
11689 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11690set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011692$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011693if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011694 $as_echo_n "(cached) " >&6
11695else
11696 if test -n "$OBJDUMP"; then
11697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11698else
11699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700for as_dir in $PATH
11701do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11706 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011708 break 2
11709 fi
11710done
cristy8b350f62009-11-15 23:12:43 +000011711 done
cristy3ed852e2009-09-05 21:47:34 +000011712IFS=$as_save_IFS
11713
11714fi
11715fi
11716OBJDUMP=$ac_cv_prog_OBJDUMP
11717if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011719$as_echo "$OBJDUMP" >&6; }
11720else
cristy8b350f62009-11-15 23:12:43 +000011721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011722$as_echo "no" >&6; }
11723fi
11724
11725
11726fi
11727if test -z "$ac_cv_prog_OBJDUMP"; then
11728 ac_ct_OBJDUMP=$OBJDUMP
11729 # Extract the first word of "objdump", so it can be a program name with args.
11730set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011732$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011733if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011734 $as_echo_n "(cached) " >&6
11735else
11736 if test -n "$ac_ct_OBJDUMP"; then
11737 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11738else
11739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740for as_dir in $PATH
11741do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11746 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011748 break 2
11749 fi
11750done
cristy8b350f62009-11-15 23:12:43 +000011751 done
cristy3ed852e2009-09-05 21:47:34 +000011752IFS=$as_save_IFS
11753
11754fi
11755fi
11756ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11757if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011759$as_echo "$ac_ct_OBJDUMP" >&6; }
11760else
cristy8b350f62009-11-15 23:12:43 +000011761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011762$as_echo "no" >&6; }
11763fi
11764
11765 if test "x$ac_ct_OBJDUMP" = x; then
11766 OBJDUMP="false"
11767 else
11768 case $cross_compiling:$ac_tool_warned in
11769yes:)
cristy8b350f62009-11-15 23:12:43 +000011770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11772ac_tool_warned=yes ;;
11773esac
11774 OBJDUMP=$ac_ct_OBJDUMP
11775 fi
11776else
11777 OBJDUMP="$ac_cv_prog_OBJDUMP"
11778fi
11779
11780 ;;
11781esac
11782
11783test -z "$AS" && AS=as
11784
11785
11786
11787
11788
11789test -z "$DLLTOOL" && DLLTOOL=dlltool
11790
11791
11792
11793
11794
11795test -z "$OBJDUMP" && OBJDUMP=objdump
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011806if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011807 enableval=$enable_shared; p=${PACKAGE-default}
11808 case $enableval in
11809 yes) enable_shared=yes ;;
11810 no) enable_shared=no ;;
11811 *)
11812 enable_shared=no
11813 # Look at the argument we got. We use all the common list separators.
11814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11815 for pkg in $enableval; do
11816 IFS="$lt_save_ifs"
11817 if test "X$pkg" = "X$p"; then
11818 enable_shared=yes
11819 fi
11820 done
11821 IFS="$lt_save_ifs"
11822 ;;
11823 esac
11824else
11825 enable_shared=yes
11826fi
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011837if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011838 enableval=$enable_static; p=${PACKAGE-default}
11839 case $enableval in
11840 yes) enable_static=yes ;;
11841 no) enable_static=no ;;
11842 *)
11843 enable_static=no
11844 # Look at the argument we got. We use all the common list separators.
11845 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11846 for pkg in $enableval; do
11847 IFS="$lt_save_ifs"
11848 if test "X$pkg" = "X$p"; then
11849 enable_static=yes
11850 fi
11851 done
11852 IFS="$lt_save_ifs"
11853 ;;
11854 esac
11855else
11856 enable_static=yes
11857fi
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011869if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011870 withval=$with_pic; pic_mode="$withval"
11871else
11872 pic_mode=default
11873fi
11874
11875
11876test -z "$pic_mode" && pic_mode=default
11877
11878
11879
11880
11881
11882
11883
11884 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011885if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011886 enableval=$enable_fast_install; p=${PACKAGE-default}
11887 case $enableval in
11888 yes) enable_fast_install=yes ;;
11889 no) enable_fast_install=no ;;
11890 *)
11891 enable_fast_install=no
11892 # Look at the argument we got. We use all the common list separators.
11893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11894 for pkg in $enableval; do
11895 IFS="$lt_save_ifs"
11896 if test "X$pkg" = "X$p"; then
11897 enable_fast_install=yes
11898 fi
11899 done
11900 IFS="$lt_save_ifs"
11901 ;;
11902 esac
11903else
11904 enable_fast_install=yes
11905fi
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917# This can be used to rebuild libtool when needed
11918LIBTOOL_DEPS="$ltmain"
11919
11920# Always use our own libtool.
11921LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947test -z "$LN_S" && LN_S="ln -s"
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962if test -n "${ZSH_VERSION+set}" ; then
11963 setopt NO_GLOB_SUBST
11964fi
11965
cristy8b350f62009-11-15 23:12:43 +000011966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011967$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011968if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011969 $as_echo_n "(cached) " >&6
11970else
11971 rm -f .libs 2>/dev/null
11972mkdir .libs 2>/dev/null
11973if test -d .libs; then
11974 lt_cv_objdir=.libs
11975else
11976 # MS-DOS does not allow filenames that begin with a dot.
11977 lt_cv_objdir=_libs
11978fi
11979rmdir .libs 2>/dev/null
11980fi
cristy8b350f62009-11-15 23:12:43 +000011981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011982$as_echo "$lt_cv_objdir" >&6; }
11983objdir=$lt_cv_objdir
11984
11985
11986
11987
11988
11989cat >>confdefs.h <<_ACEOF
11990#define LT_OBJDIR "$lt_cv_objdir/"
11991_ACEOF
11992
11993
11994
11995
cristy18304f92009-11-22 15:48:26 +000011996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
cristy3ed852e2009-09-05 21:47:34 +000012009case $host_os in
12010aix3*)
12011 # AIX sometimes has problems with the GCC collect2 program. For some
12012 # reason, if we set the COLLECT_NAMES environment variable, the problems
12013 # vanish in a puff of smoke.
12014 if test "X${COLLECT_NAMES+set}" != Xset; then
12015 COLLECT_NAMES=
12016 export COLLECT_NAMES
12017 fi
12018 ;;
12019esac
12020
cristy18304f92009-11-22 15:48:26 +000012021# Sed substitution that helps us do robust quoting. It backslashifies
12022# metacharacters that are still active within double-quoted strings.
12023sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12024
12025# Same as above, but do not quote variable references.
12026double_quote_subst='s/\(["`\\]\)/\\\1/g'
12027
12028# Sed substitution to delay expansion of an escaped shell variable in a
12029# double_quote_subst'ed string.
12030delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12031
12032# Sed substitution to delay expansion of an escaped single quote.
12033delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12034
12035# Sed substitution to avoid accidental globbing in evaled expressions
12036no_glob_subst='s/\*/\\\*/g'
12037
cristy3ed852e2009-09-05 21:47:34 +000012038# Global variables:
12039ofile=libtool
12040can_build_shared=yes
12041
12042# All known linkers require a `.a' archive for static linking (except MSVC,
12043# which needs '.lib').
12044libext=a
12045
12046with_gnu_ld="$lt_cv_prog_gnu_ld"
12047
12048old_CC="$CC"
12049old_CFLAGS="$CFLAGS"
12050
12051# Set sane defaults for various variables
12052test -z "$CC" && CC=cc
12053test -z "$LTCC" && LTCC=$CC
12054test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12055test -z "$LD" && LD=ld
12056test -z "$ac_objext" && ac_objext=o
12057
12058for cc_temp in $compiler""; do
12059 case $cc_temp in
12060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12062 \-*) ;;
12063 *) break;;
12064 esac
12065done
cristy18304f92009-11-22 15:48:26 +000012066cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012067
12068
12069# Only perform the check for file, if the check method requires it
12070test -z "$MAGIC_CMD" && MAGIC_CMD=file
12071case $deplibs_check_method in
12072file_magic*)
12073 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012075$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012076if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012077 $as_echo_n "(cached) " >&6
12078else
12079 case $MAGIC_CMD in
12080[\\/*] | ?:[\\/]*)
12081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12082 ;;
12083*)
12084 lt_save_MAGIC_CMD="$MAGIC_CMD"
12085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12087 for ac_dir in $ac_dummy; do
12088 IFS="$lt_save_ifs"
12089 test -z "$ac_dir" && ac_dir=.
12090 if test -f $ac_dir/${ac_tool_prefix}file; then
12091 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12092 if test -n "$file_magic_test_file"; then
12093 case $deplibs_check_method in
12094 "file_magic "*)
12095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12098 $EGREP "$file_magic_regex" > /dev/null; then
12099 :
12100 else
12101 cat <<_LT_EOF 1>&2
12102
12103*** Warning: the command libtool uses to detect shared libraries,
12104*** $file_magic_cmd, produces output that libtool cannot recognize.
12105*** The result is that libtool may fail to recognize shared libraries
12106*** as such. This will affect the creation of libtool libraries that
12107*** depend on shared libraries, but programs linked with such libtool
12108*** libraries will work regardless of this problem. Nevertheless, you
12109*** may want to report the problem to your system manager and/or to
12110*** bug-libtool@gnu.org
12111
12112_LT_EOF
12113 fi ;;
12114 esac
12115 fi
12116 break
12117 fi
12118 done
12119 IFS="$lt_save_ifs"
12120 MAGIC_CMD="$lt_save_MAGIC_CMD"
12121 ;;
12122esac
12123fi
12124
12125MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12126if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012128$as_echo "$MAGIC_CMD" >&6; }
12129else
cristy8b350f62009-11-15 23:12:43 +000012130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012131$as_echo "no" >&6; }
12132fi
12133
12134
12135
12136
12137
12138if test -z "$lt_cv_path_MAGIC_CMD"; then
12139 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012141$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012143 $as_echo_n "(cached) " >&6
12144else
12145 case $MAGIC_CMD in
12146[\\/*] | ?:[\\/]*)
12147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12148 ;;
12149*)
12150 lt_save_MAGIC_CMD="$MAGIC_CMD"
12151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12153 for ac_dir in $ac_dummy; do
12154 IFS="$lt_save_ifs"
12155 test -z "$ac_dir" && ac_dir=.
12156 if test -f $ac_dir/file; then
12157 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12158 if test -n "$file_magic_test_file"; then
12159 case $deplibs_check_method in
12160 "file_magic "*)
12161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12164 $EGREP "$file_magic_regex" > /dev/null; then
12165 :
12166 else
12167 cat <<_LT_EOF 1>&2
12168
12169*** Warning: the command libtool uses to detect shared libraries,
12170*** $file_magic_cmd, produces output that libtool cannot recognize.
12171*** The result is that libtool may fail to recognize shared libraries
12172*** as such. This will affect the creation of libtool libraries that
12173*** depend on shared libraries, but programs linked with such libtool
12174*** libraries will work regardless of this problem. Nevertheless, you
12175*** may want to report the problem to your system manager and/or to
12176*** bug-libtool@gnu.org
12177
12178_LT_EOF
12179 fi ;;
12180 esac
12181 fi
12182 break
12183 fi
12184 done
12185 IFS="$lt_save_ifs"
12186 MAGIC_CMD="$lt_save_MAGIC_CMD"
12187 ;;
12188esac
12189fi
12190
12191MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12192if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012194$as_echo "$MAGIC_CMD" >&6; }
12195else
cristy8b350f62009-11-15 23:12:43 +000012196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012197$as_echo "no" >&6; }
12198fi
12199
12200
12201 else
12202 MAGIC_CMD=:
12203 fi
12204fi
12205
12206 fi
12207 ;;
12208esac
12209
12210# Use C for the default configuration in the libtool script
12211
12212lt_save_CC="$CC"
12213ac_ext=c
12214ac_cpp='$CPP $CPPFLAGS'
12215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12217ac_compiler_gnu=$ac_cv_c_compiler_gnu
12218
12219
12220# Source file extension for C test sources.
12221ac_ext=c
12222
12223# Object file extension for compiled C test sources.
12224objext=o
12225objext=$objext
12226
12227# Code to be used in simple compile tests
12228lt_simple_compile_test_code="int some_variable = 0;"
12229
12230# Code to be used in simple link tests
12231lt_simple_link_test_code='int main(){return(0);}'
12232
12233
12234
12235
12236
12237
12238
12239# If no C compiler was specified, use CC.
12240LTCC=${LTCC-"$CC"}
12241
12242# If no C compiler flags were specified, use CFLAGS.
12243LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12244
12245# Allow CC to be a program name with arguments.
12246compiler=$CC
12247
12248# Save the default compiler, since it gets overwritten when the other
12249# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12250compiler_DEFAULT=$CC
12251
12252# save warnings/boilerplate of simple test code
12253ac_outfile=conftest.$ac_objext
12254echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12255eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12256_lt_compiler_boilerplate=`cat conftest.err`
12257$RM conftest*
12258
12259ac_outfile=conftest.$ac_objext
12260echo "$lt_simple_link_test_code" >conftest.$ac_ext
12261eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12262_lt_linker_boilerplate=`cat conftest.err`
12263$RM -r conftest*
12264
12265
12266## CAVEAT EMPTOR:
12267## There is no encapsulation within the following macros, do not change
12268## the running order or otherwise move them around unless you know exactly
12269## what you are doing...
12270if test -n "$compiler"; then
12271
12272lt_prog_compiler_no_builtin_flag=
12273
12274if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012275 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012276
cristy8b350f62009-11-15 23:12:43 +000012277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012278$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012279if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012280 $as_echo_n "(cached) " >&6
12281else
12282 lt_cv_prog_compiler_rtti_exceptions=no
12283 ac_outfile=conftest.$ac_objext
12284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12285 lt_compiler_flag="-fno-rtti -fno-exceptions"
12286 # Insert the option either (1) after the last *FLAGS variable, or
12287 # (2) before a word containing "conftest.", or (3) at the end.
12288 # Note that $ac_compile itself does not contain backslashes and begins
12289 # with a dollar sign (not a hyphen), so the echo should work correctly.
12290 # The option is referenced via a variable to avoid confusing sed.
12291 lt_compile=`echo "$ac_compile" | $SED \
12292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12294 -e 's:$: $lt_compiler_flag:'`
cristybab87c32010-02-09 20:54:22 +000012295 (eval echo "\"\$as_me:12295: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012296 (eval "$lt_compile" 2>conftest.err)
12297 ac_status=$?
12298 cat conftest.err >&5
cristybab87c32010-02-09 20:54:22 +000012299 echo "$as_me:12299: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012300 if (exit $ac_status) && test -s "$ac_outfile"; then
12301 # The compiler can only warn and ignore the option if not recognized
12302 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012303 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12306 lt_cv_prog_compiler_rtti_exceptions=yes
12307 fi
12308 fi
12309 $RM conftest*
12310
12311fi
cristy8b350f62009-11-15 23:12:43 +000012312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012313$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12314
12315if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12316 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12317else
12318 :
12319fi
12320
12321fi
12322
12323
12324
12325
12326
12327
12328 lt_prog_compiler_wl=
12329lt_prog_compiler_pic=
12330lt_prog_compiler_static=
12331
cristy8b350f62009-11-15 23:12:43 +000012332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012333$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12334
12335 if test "$GCC" = yes; then
12336 lt_prog_compiler_wl='-Wl,'
12337 lt_prog_compiler_static='-static'
12338
12339 case $host_os in
12340 aix*)
12341 # All AIX code is PIC.
12342 if test "$host_cpu" = ia64; then
12343 # AIX 5 now supports IA64 processor
12344 lt_prog_compiler_static='-Bstatic'
12345 fi
12346 ;;
12347
12348 amigaos*)
12349 case $host_cpu in
12350 powerpc)
12351 # see comment about AmigaOS4 .so support
12352 lt_prog_compiler_pic='-fPIC'
12353 ;;
12354 m68k)
12355 # FIXME: we need at least 68020 code to build shared libraries, but
12356 # adding the `-m68020' flag to GCC prevents building anything better,
12357 # like `-m68040'.
12358 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12359 ;;
12360 esac
12361 ;;
12362
12363 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12364 # PIC is the default for these OSes.
12365 ;;
12366
12367 mingw* | cygwin* | pw32* | os2* | cegcc*)
12368 # This hack is so that the source file can tell whether it is being
12369 # built for inclusion in a dll (and should export symbols for example).
12370 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12371 # (--disable-auto-import) libraries
12372 lt_prog_compiler_pic='-DDLL_EXPORT'
12373 ;;
12374
12375 darwin* | rhapsody*)
12376 # PIC is the default on this platform
12377 # Common symbols not allowed in MH_DYLIB files
12378 lt_prog_compiler_pic='-fno-common'
12379 ;;
12380
12381 hpux*)
12382 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12383 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12384 # sets the default TLS model and affects inlining.
12385 case $host_cpu in
12386 hppa*64*)
12387 # +Z the default
12388 ;;
12389 *)
12390 lt_prog_compiler_pic='-fPIC'
12391 ;;
12392 esac
12393 ;;
12394
12395 interix[3-9]*)
12396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12397 # Instead, we relocate shared libraries at runtime.
12398 ;;
12399
12400 msdosdjgpp*)
12401 # Just because we use GCC doesn't mean we suddenly get shared libraries
12402 # on systems that don't support them.
12403 lt_prog_compiler_can_build_shared=no
12404 enable_shared=no
12405 ;;
12406
12407 *nto* | *qnx*)
12408 # QNX uses GNU C++, but need to define -shared option too, otherwise
12409 # it will coredump.
12410 lt_prog_compiler_pic='-fPIC -shared'
12411 ;;
12412
12413 sysv4*MP*)
12414 if test -d /usr/nec; then
12415 lt_prog_compiler_pic=-Kconform_pic
12416 fi
12417 ;;
12418
12419 *)
12420 lt_prog_compiler_pic='-fPIC'
12421 ;;
12422 esac
12423 else
12424 # PORTME Check for flag to pass linker flags through the system compiler.
12425 case $host_os in
12426 aix*)
12427 lt_prog_compiler_wl='-Wl,'
12428 if test "$host_cpu" = ia64; then
12429 # AIX 5 now supports IA64 processor
12430 lt_prog_compiler_static='-Bstatic'
12431 else
12432 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12433 fi
12434 ;;
12435
12436 mingw* | cygwin* | pw32* | os2* | cegcc*)
12437 # This hack is so that the source file can tell whether it is being
12438 # built for inclusion in a dll (and should export symbols for example).
12439 lt_prog_compiler_pic='-DDLL_EXPORT'
12440 ;;
12441
12442 hpux9* | hpux10* | hpux11*)
12443 lt_prog_compiler_wl='-Wl,'
12444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12445 # not for PA HP-UX.
12446 case $host_cpu in
12447 hppa*64*|ia64*)
12448 # +Z the default
12449 ;;
12450 *)
12451 lt_prog_compiler_pic='+Z'
12452 ;;
12453 esac
12454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12455 lt_prog_compiler_static='${wl}-a ${wl}archive'
12456 ;;
12457
12458 irix5* | irix6* | nonstopux*)
12459 lt_prog_compiler_wl='-Wl,'
12460 # PIC (with -KPIC) is the default.
12461 lt_prog_compiler_static='-non_shared'
12462 ;;
12463
cristy18304f92009-11-22 15:48:26 +000012464 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012465 case $cc_basename in
12466 # old Intel for x86_64 which still supported -KPIC.
12467 ecc*)
12468 lt_prog_compiler_wl='-Wl,'
12469 lt_prog_compiler_pic='-KPIC'
12470 lt_prog_compiler_static='-static'
12471 ;;
12472 # icc used to be incompatible with GCC.
12473 # ICC 10 doesn't accept -KPIC any more.
12474 icc* | ifort*)
12475 lt_prog_compiler_wl='-Wl,'
12476 lt_prog_compiler_pic='-fPIC'
12477 lt_prog_compiler_static='-static'
12478 ;;
12479 # Lahey Fortran 8.1.
12480 lf95*)
12481 lt_prog_compiler_wl='-Wl,'
12482 lt_prog_compiler_pic='--shared'
12483 lt_prog_compiler_static='--static'
12484 ;;
cristy18304f92009-11-22 15:48:26 +000012485 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000012486 # Portland Group compilers (*not* the Pentium gcc compiler,
12487 # which looks to be a dead project)
12488 lt_prog_compiler_wl='-Wl,'
12489 lt_prog_compiler_pic='-fpic'
12490 lt_prog_compiler_static='-Bstatic'
12491 ;;
12492 ccc*)
12493 lt_prog_compiler_wl='-Wl,'
12494 # All Alpha code is PIC.
12495 lt_prog_compiler_static='-non_shared'
12496 ;;
cristy18304f92009-11-22 15:48:26 +000012497 xl*)
12498 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000012499 lt_prog_compiler_wl='-Wl,'
12500 lt_prog_compiler_pic='-qpic'
12501 lt_prog_compiler_static='-qstaticlink'
12502 ;;
12503 *)
12504 case `$CC -V 2>&1 | sed 5q` in
12505 *Sun\ C*)
12506 # Sun C 5.9
12507 lt_prog_compiler_pic='-KPIC'
12508 lt_prog_compiler_static='-Bstatic'
12509 lt_prog_compiler_wl='-Wl,'
12510 ;;
cristy18304f92009-11-22 15:48:26 +000012511 *Sun\ F*)
12512 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12513 lt_prog_compiler_pic='-KPIC'
12514 lt_prog_compiler_static='-Bstatic'
12515 lt_prog_compiler_wl=''
12516 ;;
cristy3ed852e2009-09-05 21:47:34 +000012517 esac
12518 ;;
12519 esac
12520 ;;
12521
12522 newsos6)
12523 lt_prog_compiler_pic='-KPIC'
12524 lt_prog_compiler_static='-Bstatic'
12525 ;;
12526
12527 *nto* | *qnx*)
12528 # QNX uses GNU C++, but need to define -shared option too, otherwise
12529 # it will coredump.
12530 lt_prog_compiler_pic='-fPIC -shared'
12531 ;;
12532
12533 osf3* | osf4* | osf5*)
12534 lt_prog_compiler_wl='-Wl,'
12535 # All OSF/1 code is PIC.
12536 lt_prog_compiler_static='-non_shared'
12537 ;;
12538
12539 rdos*)
12540 lt_prog_compiler_static='-non_shared'
12541 ;;
12542
12543 solaris*)
12544 lt_prog_compiler_pic='-KPIC'
12545 lt_prog_compiler_static='-Bstatic'
12546 case $cc_basename in
12547 f77* | f90* | f95*)
12548 lt_prog_compiler_wl='-Qoption ld ';;
12549 *)
12550 lt_prog_compiler_wl='-Wl,';;
12551 esac
12552 ;;
12553
12554 sunos4*)
12555 lt_prog_compiler_wl='-Qoption ld '
12556 lt_prog_compiler_pic='-PIC'
12557 lt_prog_compiler_static='-Bstatic'
12558 ;;
12559
12560 sysv4 | sysv4.2uw2* | sysv4.3*)
12561 lt_prog_compiler_wl='-Wl,'
12562 lt_prog_compiler_pic='-KPIC'
12563 lt_prog_compiler_static='-Bstatic'
12564 ;;
12565
12566 sysv4*MP*)
12567 if test -d /usr/nec ;then
12568 lt_prog_compiler_pic='-Kconform_pic'
12569 lt_prog_compiler_static='-Bstatic'
12570 fi
12571 ;;
12572
12573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12574 lt_prog_compiler_wl='-Wl,'
12575 lt_prog_compiler_pic='-KPIC'
12576 lt_prog_compiler_static='-Bstatic'
12577 ;;
12578
12579 unicos*)
12580 lt_prog_compiler_wl='-Wl,'
12581 lt_prog_compiler_can_build_shared=no
12582 ;;
12583
12584 uts4*)
12585 lt_prog_compiler_pic='-pic'
12586 lt_prog_compiler_static='-Bstatic'
12587 ;;
12588
12589 *)
12590 lt_prog_compiler_can_build_shared=no
12591 ;;
12592 esac
12593 fi
12594
12595case $host_os in
12596 # For platforms which do not support PIC, -DPIC is meaningless:
12597 *djgpp*)
12598 lt_prog_compiler_pic=
12599 ;;
12600 *)
12601 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12602 ;;
12603esac
cristy8b350f62009-11-15 23:12:43 +000012604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012605$as_echo "$lt_prog_compiler_pic" >&6; }
12606
12607
12608
12609
12610
12611
12612#
12613# Check to make sure the PIC flag actually works.
12614#
12615if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012617$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012618if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012619 $as_echo_n "(cached) " >&6
12620else
12621 lt_cv_prog_compiler_pic_works=no
12622 ac_outfile=conftest.$ac_objext
12623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12624 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12625 # Insert the option either (1) after the last *FLAGS variable, or
12626 # (2) before a word containing "conftest.", or (3) at the end.
12627 # Note that $ac_compile itself does not contain backslashes and begins
12628 # with a dollar sign (not a hyphen), so the echo should work correctly.
12629 # The option is referenced via a variable to avoid confusing sed.
12630 lt_compile=`echo "$ac_compile" | $SED \
12631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633 -e 's:$: $lt_compiler_flag:'`
cristybab87c32010-02-09 20:54:22 +000012634 (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012635 (eval "$lt_compile" 2>conftest.err)
12636 ac_status=$?
12637 cat conftest.err >&5
cristybab87c32010-02-09 20:54:22 +000012638 echo "$as_me:12638: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012639 if (exit $ac_status) && test -s "$ac_outfile"; then
12640 # The compiler can only warn and ignore the option if not recognized
12641 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012642 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12645 lt_cv_prog_compiler_pic_works=yes
12646 fi
12647 fi
12648 $RM conftest*
12649
12650fi
cristy8b350f62009-11-15 23:12:43 +000012651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012652$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12653
12654if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12655 case $lt_prog_compiler_pic in
12656 "" | " "*) ;;
12657 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12658 esac
12659else
12660 lt_prog_compiler_pic=
12661 lt_prog_compiler_can_build_shared=no
12662fi
12663
12664fi
12665
12666
12667
12668
12669
12670
12671#
12672# Check to make sure the static flag actually works.
12673#
12674wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012676$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012677if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012678 $as_echo_n "(cached) " >&6
12679else
12680 lt_cv_prog_compiler_static_works=no
12681 save_LDFLAGS="$LDFLAGS"
12682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12683 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12685 # The linker can only warn and ignore the option if not recognized
12686 # So say no if there are warnings
12687 if test -s conftest.err; then
12688 # Append any errors to the config.log.
12689 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000012690 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12692 if diff conftest.exp conftest.er2 >/dev/null; then
12693 lt_cv_prog_compiler_static_works=yes
12694 fi
12695 else
12696 lt_cv_prog_compiler_static_works=yes
12697 fi
12698 fi
12699 $RM -r conftest*
12700 LDFLAGS="$save_LDFLAGS"
12701
12702fi
cristy8b350f62009-11-15 23:12:43 +000012703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012704$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12705
12706if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12707 :
12708else
12709 lt_prog_compiler_static=
12710fi
12711
12712
12713
12714
12715
12716
12717
cristy8b350f62009-11-15 23:12:43 +000012718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012719$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012720if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012721 $as_echo_n "(cached) " >&6
12722else
12723 lt_cv_prog_compiler_c_o=no
12724 $RM -r conftest 2>/dev/null
12725 mkdir conftest
12726 cd conftest
12727 mkdir out
12728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12729
12730 lt_compiler_flag="-o out/conftest2.$ac_objext"
12731 # Insert the option either (1) after the last *FLAGS variable, or
12732 # (2) before a word containing "conftest.", or (3) at the end.
12733 # Note that $ac_compile itself does not contain backslashes and begins
12734 # with a dollar sign (not a hyphen), so the echo should work correctly.
12735 lt_compile=`echo "$ac_compile" | $SED \
12736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12738 -e 's:$: $lt_compiler_flag:'`
cristybab87c32010-02-09 20:54:22 +000012739 (eval echo "\"\$as_me:12739: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012740 (eval "$lt_compile" 2>out/conftest.err)
12741 ac_status=$?
12742 cat out/conftest.err >&5
cristybab87c32010-02-09 20:54:22 +000012743 echo "$as_me:12743: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12745 then
12746 # The compiler can only warn and ignore the option if not recognized
12747 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012748 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12751 lt_cv_prog_compiler_c_o=yes
12752 fi
12753 fi
12754 chmod u+w . 2>&5
12755 $RM conftest*
12756 # SGI C++ compiler will create directory out/ii_files/ for
12757 # template instantiation
12758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12759 $RM out/* && rmdir out
12760 cd ..
12761 $RM -r conftest
12762 $RM conftest*
12763
12764fi
cristy8b350f62009-11-15 23:12:43 +000012765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012766$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12767
12768
12769
12770
12771
12772
cristy8b350f62009-11-15 23:12:43 +000012773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012774$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012775if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012776 $as_echo_n "(cached) " >&6
12777else
12778 lt_cv_prog_compiler_c_o=no
12779 $RM -r conftest 2>/dev/null
12780 mkdir conftest
12781 cd conftest
12782 mkdir out
12783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12784
12785 lt_compiler_flag="-o out/conftest2.$ac_objext"
12786 # Insert the option either (1) after the last *FLAGS variable, or
12787 # (2) before a word containing "conftest.", or (3) at the end.
12788 # Note that $ac_compile itself does not contain backslashes and begins
12789 # with a dollar sign (not a hyphen), so the echo should work correctly.
12790 lt_compile=`echo "$ac_compile" | $SED \
12791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12793 -e 's:$: $lt_compiler_flag:'`
cristybab87c32010-02-09 20:54:22 +000012794 (eval echo "\"\$as_me:12794: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012795 (eval "$lt_compile" 2>out/conftest.err)
12796 ac_status=$?
12797 cat out/conftest.err >&5
cristybab87c32010-02-09 20:54:22 +000012798 echo "$as_me:12798: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12800 then
12801 # The compiler can only warn and ignore the option if not recognized
12802 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012803 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12806 lt_cv_prog_compiler_c_o=yes
12807 fi
12808 fi
12809 chmod u+w . 2>&5
12810 $RM conftest*
12811 # SGI C++ compiler will create directory out/ii_files/ for
12812 # template instantiation
12813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12814 $RM out/* && rmdir out
12815 cd ..
12816 $RM -r conftest
12817 $RM conftest*
12818
12819fi
cristy8b350f62009-11-15 23:12:43 +000012820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012821$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12822
12823
12824
12825
12826hard_links="nottested"
12827if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12828 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012830$as_echo_n "checking if we can lock with hard links... " >&6; }
12831 hard_links=yes
12832 $RM conftest*
12833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12834 touch conftest.a
12835 ln conftest.a conftest.b 2>&5 || hard_links=no
12836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012838$as_echo "$hard_links" >&6; }
12839 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012840 { $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 +000012841$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12842 need_locks=warn
12843 fi
12844else
12845 need_locks=no
12846fi
12847
12848
12849
12850
12851
12852
cristy8b350f62009-11-15 23:12:43 +000012853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012854$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12855
12856 runpath_var=
12857 allow_undefined_flag=
12858 always_export_symbols=no
12859 archive_cmds=
12860 archive_expsym_cmds=
12861 compiler_needs_object=no
12862 enable_shared_with_static_runtimes=no
12863 export_dynamic_flag_spec=
12864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12865 hardcode_automatic=no
12866 hardcode_direct=no
12867 hardcode_direct_absolute=no
12868 hardcode_libdir_flag_spec=
12869 hardcode_libdir_flag_spec_ld=
12870 hardcode_libdir_separator=
12871 hardcode_minus_L=no
12872 hardcode_shlibpath_var=unsupported
12873 inherit_rpath=no
12874 link_all_deplibs=unknown
12875 module_cmds=
12876 module_expsym_cmds=
12877 old_archive_from_new_cmds=
12878 old_archive_from_expsyms_cmds=
12879 thread_safe_flag_spec=
12880 whole_archive_flag_spec=
12881 # include_expsyms should be a list of space-separated symbols to be *always*
12882 # included in the symbol list
12883 include_expsyms=
12884 # exclude_expsyms can be an extended regexp of symbols to exclude
12885 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12886 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12887 # as well as any symbol that contains `d'.
12888 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12889 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12890 # platforms (ab)use it in PIC code, but their linkers get confused if
12891 # the symbol is explicitly referenced. Since portable code cannot
12892 # rely on this symbol name, it's probably fine to never include it in
12893 # preloaded symbol tables.
12894 # Exclude shared library initialization/finalization symbols.
12895 extract_expsyms_cmds=
12896
12897 case $host_os in
12898 cygwin* | mingw* | pw32* | cegcc*)
12899 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12900 # When not using gcc, we currently assume that we are using
12901 # Microsoft Visual C++.
12902 if test "$GCC" != yes; then
12903 with_gnu_ld=no
12904 fi
12905 ;;
12906 interix*)
12907 # we just hope/assume this is gcc and not c89 (= MSVC++)
12908 with_gnu_ld=yes
12909 ;;
12910 openbsd*)
12911 with_gnu_ld=no
12912 ;;
12913 esac
12914
12915 ld_shlibs=yes
12916 if test "$with_gnu_ld" = yes; then
12917 # If archive_cmds runs LD, not CC, wlarc should be empty
12918 wlarc='${wl}'
12919
12920 # Set some defaults for GNU ld with shared library support. These
12921 # are reset later if shared libraries are not supported. Putting them
12922 # here allows them to be overridden if necessary.
12923 runpath_var=LD_RUN_PATH
12924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12925 export_dynamic_flag_spec='${wl}--export-dynamic'
12926 # ancient GNU ld didn't support --whole-archive et. al.
12927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12928 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12929 else
12930 whole_archive_flag_spec=
12931 fi
12932 supports_anon_versioning=no
12933 case `$LD -v 2>&1` in
12934 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12935 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12936 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12937 *\ 2.11.*) ;; # other 2.11 versions
12938 *) supports_anon_versioning=yes ;;
12939 esac
12940
12941 # See if GNU ld supports shared libraries.
12942 case $host_os in
12943 aix[3-9]*)
12944 # On AIX/PPC, the GNU linker is very broken
12945 if test "$host_cpu" != ia64; then
12946 ld_shlibs=no
12947 cat <<_LT_EOF 1>&2
12948
cristy18304f92009-11-22 15:48:26 +000012949*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012950*** to be unable to reliably create shared libraries on AIX.
12951*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012952*** really care for shared libraries, you may want to modify your PATH
12953*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012954
12955_LT_EOF
12956 fi
12957 ;;
12958
12959 amigaos*)
12960 case $host_cpu in
12961 powerpc)
12962 # see comment about AmigaOS4 .so support
12963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12964 archive_expsym_cmds=''
12965 ;;
12966 m68k)
12967 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)'
12968 hardcode_libdir_flag_spec='-L$libdir'
12969 hardcode_minus_L=yes
12970 ;;
12971 esac
12972 ;;
12973
12974 beos*)
12975 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12976 allow_undefined_flag=unsupported
12977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12978 # support --undefined. This deserves some investigation. FIXME
12979 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12980 else
12981 ld_shlibs=no
12982 fi
12983 ;;
12984
12985 cygwin* | mingw* | pw32* | cegcc*)
12986 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12987 # as there is no search path for DLLs.
12988 hardcode_libdir_flag_spec='-L$libdir'
12989 allow_undefined_flag=unsupported
12990 always_export_symbols=no
12991 enable_shared_with_static_runtimes=yes
12992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12993
12994 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12996 # If the export-symbols file already is a .def file (1st line
12997 # is EXPORTS), use it as is; otherwise, prepend...
12998 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12999 cp $export_symbols $output_objdir/$soname.def;
13000 else
13001 echo EXPORTS > $output_objdir/$soname.def;
13002 cat $export_symbols >> $output_objdir/$soname.def;
13003 fi~
13004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13005 else
13006 ld_shlibs=no
13007 fi
13008 ;;
13009
13010 interix[3-9]*)
13011 hardcode_direct=no
13012 hardcode_shlibpath_var=no
13013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13014 export_dynamic_flag_spec='${wl}-E'
13015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13016 # Instead, shared libraries are loaded at an image base (0x10000000 by
13017 # default) and relocated if they conflict, which is a slow very memory
13018 # consuming and fragmenting process. To avoid this, we pick a random,
13019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13021 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13022 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'
13023 ;;
13024
cristy18304f92009-11-22 15:48:26 +000013025 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013026 tmp_diet=no
13027 if test "$host_os" = linux-dietlibc; then
13028 case $cc_basename in
13029 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13030 esac
13031 fi
13032 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13033 && test "$tmp_diet" = no
13034 then
13035 tmp_addflag=
13036 tmp_sharedflag='-shared'
13037 case $cc_basename,$host_cpu in
13038 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013039 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 +000013040 tmp_addflag=' $pic_flag'
13041 ;;
cristy18304f92009-11-22 15:48:26 +000013042 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13043 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 +000013044 tmp_addflag=' $pic_flag -Mnomain' ;;
13045 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13046 tmp_addflag=' -i_dynamic' ;;
13047 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13048 tmp_addflag=' -i_dynamic -nofor_main' ;;
13049 ifc* | ifort*) # Intel Fortran compiler
13050 tmp_addflag=' -nofor_main' ;;
13051 lf95*) # Lahey Fortran 8.1
13052 whole_archive_flag_spec=
13053 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013054 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013055 tmp_sharedflag='-qmkshrobj'
13056 tmp_addflag= ;;
13057 esac
13058 case `$CC -V 2>&1 | sed 5q` in
13059 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013060 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 +000013061 compiler_needs_object=yes
13062 tmp_sharedflag='-G' ;;
13063 *Sun\ F*) # Sun Fortran 8.3
13064 tmp_sharedflag='-G' ;;
13065 esac
13066 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13067
13068 if test "x$supports_anon_versioning" = xyes; then
13069 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13071 echo "local: *; };" >> $output_objdir/$libname.ver~
13072 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13073 fi
13074
13075 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013076 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013077 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13078 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13079 hardcode_libdir_flag_spec=
13080 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13081 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13082 if test "x$supports_anon_versioning" = xyes; then
13083 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13084 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13085 echo "local: *; };" >> $output_objdir/$libname.ver~
13086 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13087 fi
13088 ;;
13089 esac
13090 else
13091 ld_shlibs=no
13092 fi
13093 ;;
13094
13095 netbsd*)
13096 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13097 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13098 wlarc=
13099 else
13100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13102 fi
13103 ;;
13104
13105 solaris*)
13106 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13107 ld_shlibs=no
13108 cat <<_LT_EOF 1>&2
13109
13110*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13111*** create shared libraries on Solaris systems. Therefore, libtool
13112*** is disabling shared libraries support. We urge you to upgrade GNU
13113*** binutils to release 2.9.1 or newer. Another option is to modify
13114*** your PATH or compiler configuration so that the native linker is
13115*** used, and then restart.
13116
13117_LT_EOF
13118 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13121 else
13122 ld_shlibs=no
13123 fi
13124 ;;
13125
13126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13127 case `$LD -v 2>&1` in
13128 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13129 ld_shlibs=no
13130 cat <<_LT_EOF 1>&2
13131
13132*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13133*** reliably create shared libraries on SCO systems. Therefore, libtool
13134*** is disabling shared libraries support. We urge you to upgrade GNU
13135*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13136*** your PATH or compiler configuration so that the native linker is
13137*** used, and then restart.
13138
13139_LT_EOF
13140 ;;
13141 *)
13142 # For security reasons, it is highly recommended that you always
13143 # use absolute paths for naming shared libraries, and exclude the
13144 # DT_RUNPATH tag from executables and libraries. But doing so
13145 # requires that you compile everything twice, which is a pain.
13146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13150 else
13151 ld_shlibs=no
13152 fi
13153 ;;
13154 esac
13155 ;;
13156
13157 sunos4*)
13158 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13159 wlarc=
13160 hardcode_direct=yes
13161 hardcode_shlibpath_var=no
13162 ;;
13163
13164 *)
13165 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13168 else
13169 ld_shlibs=no
13170 fi
13171 ;;
13172 esac
13173
13174 if test "$ld_shlibs" = no; then
13175 runpath_var=
13176 hardcode_libdir_flag_spec=
13177 export_dynamic_flag_spec=
13178 whole_archive_flag_spec=
13179 fi
13180 else
13181 # PORTME fill in a description of your system's linker (not GNU ld)
13182 case $host_os in
13183 aix3*)
13184 allow_undefined_flag=unsupported
13185 always_export_symbols=yes
13186 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'
13187 # Note: this linker hardcodes the directories in LIBPATH if there
13188 # are no directories specified by -L.
13189 hardcode_minus_L=yes
13190 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13191 # Neither direct hardcoding nor static linking is supported with a
13192 # broken collect2.
13193 hardcode_direct=unsupported
13194 fi
13195 ;;
13196
13197 aix[4-9]*)
13198 if test "$host_cpu" = ia64; then
13199 # On IA64, the linker does run time linking by default, so we don't
13200 # have to do anything special.
13201 aix_use_runtimelinking=no
13202 exp_sym_flag='-Bexport'
13203 no_entry_flag=""
13204 else
13205 # If we're using GNU nm, then we don't want the "-C" option.
13206 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13207 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013208 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 +000013209 else
13210 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'
13211 fi
13212 aix_use_runtimelinking=no
13213
13214 # Test if we are trying to use run time linking or normal
13215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13216 # need to do runtime linking.
13217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13218 for ld_flag in $LDFLAGS; do
13219 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13220 aix_use_runtimelinking=yes
13221 break
13222 fi
13223 done
13224 ;;
13225 esac
13226
13227 exp_sym_flag='-bexport'
13228 no_entry_flag='-bnoentry'
13229 fi
13230
13231 # When large executables or shared objects are built, AIX ld can
13232 # have problems creating the table of contents. If linking a library
13233 # or program results in "error TOC overflow" add -mminimal-toc to
13234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13236
13237 archive_cmds=''
13238 hardcode_direct=yes
13239 hardcode_direct_absolute=yes
13240 hardcode_libdir_separator=':'
13241 link_all_deplibs=yes
13242 file_list_spec='${wl}-f,'
13243
13244 if test "$GCC" = yes; then
13245 case $host_os in aix4.[012]|aix4.[012].*)
13246 # We only want to do this on AIX 4.2 and lower, the check
13247 # below for broken collect2 doesn't work under 4.3+
13248 collect2name=`${CC} -print-prog-name=collect2`
13249 if test -f "$collect2name" &&
13250 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13251 then
13252 # We have reworked collect2
13253 :
13254 else
13255 # We have old collect2
13256 hardcode_direct=unsupported
13257 # It fails to find uninstalled libraries when the uninstalled
13258 # path is not listed in the libpath. Setting hardcode_minus_L
13259 # to unsupported forces relinking
13260 hardcode_minus_L=yes
13261 hardcode_libdir_flag_spec='-L$libdir'
13262 hardcode_libdir_separator=
13263 fi
13264 ;;
13265 esac
13266 shared_flag='-shared'
13267 if test "$aix_use_runtimelinking" = yes; then
13268 shared_flag="$shared_flag "'${wl}-G'
13269 fi
13270 else
13271 # not using gcc
13272 if test "$host_cpu" = ia64; then
13273 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13274 # chokes on -Wl,-G. The following line is correct:
13275 shared_flag='-G'
13276 else
13277 if test "$aix_use_runtimelinking" = yes; then
13278 shared_flag='${wl}-G'
13279 else
13280 shared_flag='${wl}-bM:SRE'
13281 fi
13282 fi
13283 fi
13284
13285 export_dynamic_flag_spec='${wl}-bexpall'
13286 # It seems that -bexpall does not export symbols beginning with
13287 # underscore (_), so it is better to generate a list of symbols to export.
13288 always_export_symbols=yes
13289 if test "$aix_use_runtimelinking" = yes; then
13290 # Warning - without using the other runtime loading flags (-brtl),
13291 # -berok will link without error, but may produce a broken library.
13292 allow_undefined_flag='-berok'
13293 # Determine the default libpath from the value encoded in an
13294 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013296/* end confdefs.h. */
13297
13298int
13299main ()
13300{
13301
13302 ;
13303 return 0;
13304}
13305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013306if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013307
13308lt_aix_libpath_sed='
13309 /Import File Strings/,/^$/ {
13310 /^0/ {
13311 s/^0 *\(.*\)$/\1/
13312 p
13313 }
13314 }'
13315aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13316# Check for a 64-bit object if we didn't find anything.
13317if test -z "$aix_libpath"; then
13318 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13319fi
cristy3ed852e2009-09-05 21:47:34 +000013320fi
cristy8b350f62009-11-15 23:12:43 +000013321rm -f core conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013323if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13324
13325 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000013326 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 +000013327 else
13328 if test "$host_cpu" = ia64; then
13329 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13330 allow_undefined_flag="-z nodefs"
13331 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"
13332 else
13333 # Determine the default libpath from the value encoded in an
13334 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013336/* end confdefs.h. */
13337
13338int
13339main ()
13340{
13341
13342 ;
13343 return 0;
13344}
13345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013347
13348lt_aix_libpath_sed='
13349 /Import File Strings/,/^$/ {
13350 /^0/ {
13351 s/^0 *\(.*\)$/\1/
13352 p
13353 }
13354 }'
13355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13356# Check for a 64-bit object if we didn't find anything.
13357if test -z "$aix_libpath"; then
13358 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13359fi
cristy3ed852e2009-09-05 21:47:34 +000013360fi
cristy8b350f62009-11-15 23:12:43 +000013361rm -f core conftest.err conftest.$ac_objext \
13362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13364
13365 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13366 # Warning - without using the other run time loading flags,
13367 # -berok will link without error, but may produce a broken library.
13368 no_undefined_flag=' ${wl}-bernotok'
13369 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000013370 # Exported symbols can be pulled into shared objects from archives
13371 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000013372 archive_cmds_need_lc=yes
13373 # This is similar to how AIX traditionally builds its shared libraries.
13374 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'
13375 fi
13376 fi
13377 ;;
13378
13379 amigaos*)
13380 case $host_cpu in
13381 powerpc)
13382 # see comment about AmigaOS4 .so support
13383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384 archive_expsym_cmds=''
13385 ;;
13386 m68k)
13387 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)'
13388 hardcode_libdir_flag_spec='-L$libdir'
13389 hardcode_minus_L=yes
13390 ;;
13391 esac
13392 ;;
13393
13394 bsdi[45]*)
13395 export_dynamic_flag_spec=-rdynamic
13396 ;;
13397
13398 cygwin* | mingw* | pw32* | cegcc*)
13399 # When not using gcc, we currently assume that we are using
13400 # Microsoft Visual C++.
13401 # hardcode_libdir_flag_spec is actually meaningless, as there is
13402 # no search path for DLLs.
13403 hardcode_libdir_flag_spec=' '
13404 allow_undefined_flag=unsupported
13405 # Tell ltmain to make .lib files, not .a files.
13406 libext=lib
13407 # Tell ltmain to make .dll files, not .so files.
13408 shrext_cmds=".dll"
13409 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000013410 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013411 # The linker will automatically build a .lib file if we build a DLL.
13412 old_archive_from_new_cmds='true'
13413 # FIXME: Should let the user specify the lib program.
13414 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13415 fix_srcfile_path='`cygpath -w "$srcfile"`'
13416 enable_shared_with_static_runtimes=yes
13417 ;;
13418
13419 darwin* | rhapsody*)
13420
13421
13422 archive_cmds_need_lc=no
13423 hardcode_direct=no
13424 hardcode_automatic=yes
13425 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000013426 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000013427 link_all_deplibs=yes
13428 allow_undefined_flag="$_lt_dar_allow_undefined"
13429 case $cc_basename in
13430 ifort*) _lt_dar_can_shared=yes ;;
13431 *) _lt_dar_can_shared=$GCC ;;
13432 esac
13433 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000013434 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000013435 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13436 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13437 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}"
13438 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}"
13439
13440 else
13441 ld_shlibs=no
13442 fi
13443
13444 ;;
13445
13446 dgux*)
13447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448 hardcode_libdir_flag_spec='-L$libdir'
13449 hardcode_shlibpath_var=no
13450 ;;
13451
13452 freebsd1*)
13453 ld_shlibs=no
13454 ;;
13455
13456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13457 # support. Future versions do this automatically, but an explicit c++rt0.o
13458 # does not break anything, and helps significantly (at the cost of a little
13459 # extra space).
13460 freebsd2.2*)
13461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13462 hardcode_libdir_flag_spec='-R$libdir'
13463 hardcode_direct=yes
13464 hardcode_shlibpath_var=no
13465 ;;
13466
13467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13468 freebsd2*)
13469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13470 hardcode_direct=yes
13471 hardcode_minus_L=yes
13472 hardcode_shlibpath_var=no
13473 ;;
13474
13475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13476 freebsd* | dragonfly*)
13477 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13478 hardcode_libdir_flag_spec='-R$libdir'
13479 hardcode_direct=yes
13480 hardcode_shlibpath_var=no
13481 ;;
13482
13483 hpux9*)
13484 if test "$GCC" = yes; then
13485 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'
13486 else
13487 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'
13488 fi
13489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13490 hardcode_libdir_separator=:
13491 hardcode_direct=yes
13492
13493 # hardcode_minus_L: Not really in the search PATH,
13494 # but as the default location of the library.
13495 hardcode_minus_L=yes
13496 export_dynamic_flag_spec='${wl}-E'
13497 ;;
13498
13499 hpux10*)
cristy18304f92009-11-22 15:48:26 +000013500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013501 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13502 else
13503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13504 fi
13505 if test "$with_gnu_ld" = no; then
13506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13507 hardcode_libdir_flag_spec_ld='+b $libdir'
13508 hardcode_libdir_separator=:
13509 hardcode_direct=yes
13510 hardcode_direct_absolute=yes
13511 export_dynamic_flag_spec='${wl}-E'
13512 # hardcode_minus_L: Not really in the search PATH,
13513 # but as the default location of the library.
13514 hardcode_minus_L=yes
13515 fi
13516 ;;
13517
13518 hpux11*)
cristy18304f92009-11-22 15:48:26 +000013519 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013520 case $host_cpu in
13521 hppa*64*)
13522 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13523 ;;
13524 ia64*)
13525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13526 ;;
13527 *)
13528 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13529 ;;
13530 esac
13531 else
13532 case $host_cpu in
13533 hppa*64*)
13534 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13535 ;;
13536 ia64*)
13537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13538 ;;
13539 *)
cristy18304f92009-11-22 15:48:26 +000013540 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 +000013541 ;;
13542 esac
13543 fi
13544 if test "$with_gnu_ld" = no; then
13545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13546 hardcode_libdir_separator=:
13547
13548 case $host_cpu in
13549 hppa*64*|ia64*)
13550 hardcode_direct=no
13551 hardcode_shlibpath_var=no
13552 ;;
13553 *)
13554 hardcode_direct=yes
13555 hardcode_direct_absolute=yes
13556 export_dynamic_flag_spec='${wl}-E'
13557
13558 # hardcode_minus_L: Not really in the search PATH,
13559 # but as the default location of the library.
13560 hardcode_minus_L=yes
13561 ;;
13562 esac
13563 fi
13564 ;;
13565
13566 irix5* | irix6* | nonstopux*)
13567 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000013568 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 +000013569 # Try to use the -exported_symbol ld option, if it does not
13570 # work, assume that -exports_file does not work either and
13571 # implicitly export all symbols.
13572 save_LDFLAGS="$LDFLAGS"
13573 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013576int foo(void) {}
13577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013578if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000013579 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 +000013580
cristy3ed852e2009-09-05 21:47:34 +000013581fi
cristy8b350f62009-11-15 23:12:43 +000013582rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013584 LDFLAGS="$save_LDFLAGS"
13585 else
cristy18304f92009-11-22 15:48:26 +000013586 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'
13587 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 +000013588 fi
13589 archive_cmds_need_lc='no'
13590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13591 hardcode_libdir_separator=:
13592 inherit_rpath=yes
13593 link_all_deplibs=yes
13594 ;;
13595
13596 netbsd*)
13597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13599 else
13600 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13601 fi
13602 hardcode_libdir_flag_spec='-R$libdir'
13603 hardcode_direct=yes
13604 hardcode_shlibpath_var=no
13605 ;;
13606
13607 newsos6)
13608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13609 hardcode_direct=yes
13610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13611 hardcode_libdir_separator=:
13612 hardcode_shlibpath_var=no
13613 ;;
13614
13615 *nto* | *qnx*)
13616 ;;
13617
13618 openbsd*)
13619 if test -f /usr/libexec/ld.so; then
13620 hardcode_direct=yes
13621 hardcode_shlibpath_var=no
13622 hardcode_direct_absolute=yes
13623 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13624 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13625 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13627 export_dynamic_flag_spec='${wl}-E'
13628 else
13629 case $host_os in
13630 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13632 hardcode_libdir_flag_spec='-R$libdir'
13633 ;;
13634 *)
13635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13636 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13637 ;;
13638 esac
13639 fi
13640 else
13641 ld_shlibs=no
13642 fi
13643 ;;
13644
13645 os2*)
13646 hardcode_libdir_flag_spec='-L$libdir'
13647 hardcode_minus_L=yes
13648 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000013649 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 +000013650 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13651 ;;
13652
13653 osf3*)
13654 if test "$GCC" = yes; then
13655 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013656 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 +000013657 else
13658 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013659 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 +000013660 fi
13661 archive_cmds_need_lc='no'
13662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13663 hardcode_libdir_separator=:
13664 ;;
13665
13666 osf4* | osf5*) # as osf3* with the addition of -msym flag
13667 if test "$GCC" = yes; then
13668 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013669 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 +000013670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13671 else
13672 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013673 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 +000013674 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 +000013675 $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 +000013676
13677 # Both c and cxx compiler support -rpath directly
13678 hardcode_libdir_flag_spec='-rpath $libdir'
13679 fi
13680 archive_cmds_need_lc='no'
13681 hardcode_libdir_separator=:
13682 ;;
13683
13684 solaris*)
13685 no_undefined_flag=' -z defs'
13686 if test "$GCC" = yes; then
13687 wlarc='${wl}'
13688 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13689 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13690 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13691 else
13692 case `$CC -V 2>&1` in
13693 *"Compilers 5.0"*)
13694 wlarc=''
13695 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13696 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13697 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13698 ;;
13699 *)
13700 wlarc='${wl}'
13701 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13702 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13703 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13704 ;;
13705 esac
13706 fi
13707 hardcode_libdir_flag_spec='-R$libdir'
13708 hardcode_shlibpath_var=no
13709 case $host_os in
13710 solaris2.[0-5] | solaris2.[0-5].*) ;;
13711 *)
13712 # The compiler driver will combine and reorder linker options,
13713 # but understands `-z linker_flag'. GCC discards it without `$wl',
13714 # but is careful enough not to reorder.
13715 # Supported since Solaris 2.6 (maybe 2.5.1?)
13716 if test "$GCC" = yes; then
13717 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13718 else
13719 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13720 fi
13721 ;;
13722 esac
13723 link_all_deplibs=yes
13724 ;;
13725
13726 sunos4*)
13727 if test "x$host_vendor" = xsequent; then
13728 # Use $CC to link under sequent, because it throws in some extra .o
13729 # files that make .init and .fini sections work.
13730 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13731 else
13732 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13733 fi
13734 hardcode_libdir_flag_spec='-L$libdir'
13735 hardcode_direct=yes
13736 hardcode_minus_L=yes
13737 hardcode_shlibpath_var=no
13738 ;;
13739
13740 sysv4)
13741 case $host_vendor in
13742 sni)
13743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13744 hardcode_direct=yes # is this really true???
13745 ;;
13746 siemens)
13747 ## LD is ld it makes a PLAMLIB
13748 ## CC just makes a GrossModule.
13749 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13750 reload_cmds='$CC -r -o $output$reload_objs'
13751 hardcode_direct=no
13752 ;;
13753 motorola)
13754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13755 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13756 ;;
13757 esac
13758 runpath_var='LD_RUN_PATH'
13759 hardcode_shlibpath_var=no
13760 ;;
13761
13762 sysv4.3*)
13763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13764 hardcode_shlibpath_var=no
13765 export_dynamic_flag_spec='-Bexport'
13766 ;;
13767
13768 sysv4*MP*)
13769 if test -d /usr/nec; then
13770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_shlibpath_var=no
13772 runpath_var=LD_RUN_PATH
13773 hardcode_runpath_var=yes
13774 ld_shlibs=yes
13775 fi
13776 ;;
13777
13778 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13779 no_undefined_flag='${wl}-z,text'
13780 archive_cmds_need_lc=no
13781 hardcode_shlibpath_var=no
13782 runpath_var='LD_RUN_PATH'
13783
13784 if test "$GCC" = yes; then
13785 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13786 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13787 else
13788 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13789 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 fi
13791 ;;
13792
13793 sysv5* | sco3.2v5* | sco5v6*)
13794 # Note: We can NOT use -z defs as we might desire, because we do not
13795 # link with -lc, and that would cause any symbols used from libc to
13796 # always be unresolved, which means just about no library would
13797 # ever link correctly. If we're not using GNU ld we use -z text
13798 # though, which does catch some bad symbols but isn't as heavy-handed
13799 # as -z defs.
13800 no_undefined_flag='${wl}-z,text'
13801 allow_undefined_flag='${wl}-z,nodefs'
13802 archive_cmds_need_lc=no
13803 hardcode_shlibpath_var=no
13804 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13805 hardcode_libdir_separator=':'
13806 link_all_deplibs=yes
13807 export_dynamic_flag_spec='${wl}-Bexport'
13808 runpath_var='LD_RUN_PATH'
13809
13810 if test "$GCC" = yes; then
13811 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13812 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813 else
13814 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13815 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13816 fi
13817 ;;
13818
13819 uts4*)
13820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13821 hardcode_libdir_flag_spec='-L$libdir'
13822 hardcode_shlibpath_var=no
13823 ;;
13824
13825 *)
13826 ld_shlibs=no
13827 ;;
13828 esac
13829
13830 if test x$host_vendor = xsni; then
13831 case $host in
13832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13833 export_dynamic_flag_spec='${wl}-Blargedynsym'
13834 ;;
13835 esac
13836 fi
13837 fi
13838
cristy8b350f62009-11-15 23:12:43 +000013839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013840$as_echo "$ld_shlibs" >&6; }
13841test "$ld_shlibs" = no && can_build_shared=no
13842
13843with_gnu_ld=$with_gnu_ld
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859#
13860# Do we need to explicitly link libc?
13861#
13862case "x$archive_cmds_need_lc" in
13863x|xyes)
13864 # Assume -lc should be added
13865 archive_cmds_need_lc=yes
13866
13867 if test "$enable_shared" = yes && test "$GCC" = yes; then
13868 case $archive_cmds in
13869 *'~'*)
13870 # FIXME: we may have to deal with multi-command sequences.
13871 ;;
13872 '$CC '*)
13873 # Test whether the compiler implicitly links with -lc since on some
13874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13875 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013877$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013878 $RM conftest*
13879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013880
cristy18304f92009-11-22 15:48:26 +000013881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013882 (eval $ac_compile) 2>&5
13883 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13885 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013886 soname=conftest
13887 lib=conftest
13888 libobjs=conftest.$ac_objext
13889 deplibs=
13890 wl=$lt_prog_compiler_wl
13891 pic_flag=$lt_prog_compiler_pic
13892 compiler_flags=-v
13893 linker_flags=-v
13894 verstring=
13895 output_objdir=.
13896 libname=conftest
13897 lt_save_allow_undefined_flag=$allow_undefined_flag
13898 allow_undefined_flag=
13899 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 +000013900 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13901 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013904 then
13905 archive_cmds_need_lc=no
13906 else
13907 archive_cmds_need_lc=yes
13908 fi
13909 allow_undefined_flag=$lt_save_allow_undefined_flag
13910 else
13911 cat conftest.err 1>&5
13912 fi
13913 $RM conftest*
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13915$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013916 ;;
13917 esac
13918 fi
13919 ;;
13920esac
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
14072
14073
14074
14075
14076
14077
cristy8b350f62009-11-15 23:12:43 +000014078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014079$as_echo_n "checking dynamic linker characteristics... " >&6; }
14080
14081if test "$GCC" = yes; then
14082 case $host_os in
14083 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14084 *) lt_awk_arg="/^libraries:/" ;;
14085 esac
cristy18304f92009-11-22 15:48:26 +000014086 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14087 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014088 # if the path contains ";" then we assume it to be the separator
14089 # otherwise default to the standard path separator (i.e. ":") - it is
14090 # assumed that no part of a normal pathname contains ";" but that should
14091 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014092 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14093 else
14094 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14095 fi
cristy3ed852e2009-09-05 21:47:34 +000014096 # Ok, now we have the path, separated by spaces, we can step through it
14097 # and add multilib dir if necessary.
14098 lt_tmp_lt_search_path_spec=
14099 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14100 for lt_sys_path in $lt_search_path_spec; do
14101 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14103 else
14104 test -d "$lt_sys_path" && \
14105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14106 fi
14107 done
cristy18304f92009-11-22 15:48:26 +000014108 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014109BEGIN {RS=" "; FS="/|\n";} {
14110 lt_foo="";
14111 lt_count=0;
14112 for (lt_i = NF; lt_i > 0; lt_i--) {
14113 if ($lt_i != "" && $lt_i != ".") {
14114 if ($lt_i == "..") {
14115 lt_count++;
14116 } else {
14117 if (lt_count == 0) {
14118 lt_foo="/" $lt_i lt_foo;
14119 } else {
14120 lt_count--;
14121 }
14122 }
14123 }
14124 }
14125 if (lt_foo != "") { lt_freq[lt_foo]++; }
14126 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14127}'`
cristy18304f92009-11-22 15:48:26 +000014128 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014129else
14130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14131fi
14132library_names_spec=
14133libname_spec='lib$name'
14134soname_spec=
14135shrext_cmds=".so"
14136postinstall_cmds=
14137postuninstall_cmds=
14138finish_cmds=
14139finish_eval=
14140shlibpath_var=
14141shlibpath_overrides_runpath=unknown
14142version_type=none
14143dynamic_linker="$host_os ld.so"
14144sys_lib_dlsearch_path_spec="/lib /usr/lib"
14145need_lib_prefix=unknown
14146hardcode_into_libs=no
14147
14148# when you set need_version to no, make sure it does not cause -set_version
14149# flags to be left without arguments
14150need_version=unknown
14151
14152case $host_os in
14153aix3*)
14154 version_type=linux
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14156 shlibpath_var=LIBPATH
14157
14158 # AIX 3 has no versioning support, so we append a major version to the name.
14159 soname_spec='${libname}${release}${shared_ext}$major'
14160 ;;
14161
14162aix[4-9]*)
14163 version_type=linux
14164 need_lib_prefix=no
14165 need_version=no
14166 hardcode_into_libs=yes
14167 if test "$host_cpu" = ia64; then
14168 # AIX 5 supports IA64
14169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 else
14172 # With GCC up to 2.95.x, collect2 would create an import file
14173 # for dependence libraries. The import file would start with
14174 # the line `#! .'. This would cause the generated library to
14175 # depend on `.', always an invalid library. This was fixed in
14176 # development snapshots of GCC prior to 3.0.
14177 case $host_os in
14178 aix4 | aix4.[01] | aix4.[01].*)
14179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14180 echo ' yes '
14181 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14182 :
14183 else
14184 can_build_shared=no
14185 fi
14186 ;;
14187 esac
14188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14189 # soname into executable. Probably we can add versioning support to
14190 # collect2, so additional links can be useful in future.
14191 if test "$aix_use_runtimelinking" = yes; then
14192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14193 # instead of lib<name>.a to let people know that these are not
14194 # typical AIX shared libraries.
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 else
14197 # We preserve .a as extension for shared libraries through AIX4.2
14198 # and later when we are not doing run time linking.
14199 library_names_spec='${libname}${release}.a $libname.a'
14200 soname_spec='${libname}${release}${shared_ext}$major'
14201 fi
14202 shlibpath_var=LIBPATH
14203 fi
14204 ;;
14205
14206amigaos*)
14207 case $host_cpu in
14208 powerpc)
14209 # Since July 2007 AmigaOS4 officially supports .so libraries.
14210 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212 ;;
14213 m68k)
14214 library_names_spec='$libname.ixlibrary $libname.a'
14215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014216 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 +000014217 ;;
14218 esac
14219 ;;
14220
14221beos*)
14222 library_names_spec='${libname}${shared_ext}'
14223 dynamic_linker="$host_os ld.so"
14224 shlibpath_var=LIBRARY_PATH
14225 ;;
14226
14227bsdi[45]*)
14228 version_type=linux
14229 need_version=no
14230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14231 soname_spec='${libname}${release}${shared_ext}$major'
14232 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14233 shlibpath_var=LD_LIBRARY_PATH
14234 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14235 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14236 # the default ld.so.conf also contains /usr/contrib/lib and
14237 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14238 # libtool to hard-code these into programs
14239 ;;
14240
14241cygwin* | mingw* | pw32* | cegcc*)
14242 version_type=windows
14243 shrext_cmds=".dll"
14244 need_version=no
14245 need_lib_prefix=no
14246
14247 case $GCC,$host_os in
14248 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14249 library_names_spec='$libname.dll.a'
14250 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14251 postinstall_cmds='base_file=`basename \${file}`~
14252 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14253 dldir=$destdir/`dirname \$dlpath`~
14254 test -d \$dldir || mkdir -p \$dldir~
14255 $install_prog $dir/$dlname \$dldir/$dlname~
14256 chmod a+x \$dldir/$dlname~
14257 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14258 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14259 fi'
14260 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14261 dlpath=$dir/\$dldll~
14262 $RM \$dlpath'
14263 shlibpath_overrides_runpath=yes
14264
14265 case $host_os in
14266 cygwin*)
14267 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14268 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014269 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014270 ;;
14271 mingw* | cegcc*)
14272 # MinGW DLLs use traditional 'lib' prefix
14273 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014274 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14275 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14276 # It is most probably a Windows format PATH printed by
14277 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14278 # path with ; separators, and with drive letters. We can handle the
14279 # drive letters (cygwin fileutils understands them), so leave them,
14280 # especially as we might pass files found there to a mingw objdump,
14281 # which wouldn't understand a cygwinified path. Ahh.
14282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14283 else
14284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14285 fi
cristy3ed852e2009-09-05 21:47:34 +000014286 ;;
14287 pw32*)
14288 # pw32 DLLs use 'pw' prefix rather than 'lib'
14289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14290 ;;
14291 esac
14292 ;;
14293
14294 *)
14295 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14296 ;;
14297 esac
14298 dynamic_linker='Win32 ld.exe'
14299 # FIXME: first we should search . and the directory the executable is in
14300 shlibpath_var=PATH
14301 ;;
14302
14303darwin* | rhapsody*)
14304 dynamic_linker="$host_os dyld"
14305 version_type=darwin
14306 need_lib_prefix=no
14307 need_version=no
14308 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14309 soname_spec='${libname}${release}${major}$shared_ext'
14310 shlibpath_overrides_runpath=yes
14311 shlibpath_var=DYLD_LIBRARY_PATH
14312 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14313
14314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14315 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14316 ;;
14317
14318dgux*)
14319 version_type=linux
14320 need_lib_prefix=no
14321 need_version=no
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14324 shlibpath_var=LD_LIBRARY_PATH
14325 ;;
14326
14327freebsd1*)
14328 dynamic_linker=no
14329 ;;
14330
14331freebsd* | dragonfly*)
14332 # DragonFly does not have aout. When/if they implement a new
14333 # versioning mechanism, adjust this.
14334 if test -x /usr/bin/objformat; then
14335 objformat=`/usr/bin/objformat`
14336 else
14337 case $host_os in
14338 freebsd[123]*) objformat=aout ;;
14339 *) objformat=elf ;;
14340 esac
14341 fi
14342 version_type=freebsd-$objformat
14343 case $version_type in
14344 freebsd-elf*)
14345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14346 need_version=no
14347 need_lib_prefix=no
14348 ;;
14349 freebsd-*)
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14351 need_version=yes
14352 ;;
14353 esac
14354 shlibpath_var=LD_LIBRARY_PATH
14355 case $host_os in
14356 freebsd2*)
14357 shlibpath_overrides_runpath=yes
14358 ;;
14359 freebsd3.[01]* | freebsdelf3.[01]*)
14360 shlibpath_overrides_runpath=yes
14361 hardcode_into_libs=yes
14362 ;;
14363 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14364 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14365 shlibpath_overrides_runpath=no
14366 hardcode_into_libs=yes
14367 ;;
14368 *) # from 4.6 on, and DragonFly
14369 shlibpath_overrides_runpath=yes
14370 hardcode_into_libs=yes
14371 ;;
14372 esac
14373 ;;
14374
14375gnu*)
14376 version_type=linux
14377 need_lib_prefix=no
14378 need_version=no
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14380 soname_spec='${libname}${release}${shared_ext}$major'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 hardcode_into_libs=yes
14383 ;;
14384
14385hpux9* | hpux10* | hpux11*)
14386 # Give a soname corresponding to the major version so that dld.sl refuses to
14387 # link against other versions.
14388 version_type=sunos
14389 need_lib_prefix=no
14390 need_version=no
14391 case $host_cpu in
14392 ia64*)
14393 shrext_cmds='.so'
14394 hardcode_into_libs=yes
14395 dynamic_linker="$host_os dld.so"
14396 shlibpath_var=LD_LIBRARY_PATH
14397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399 soname_spec='${libname}${release}${shared_ext}$major'
14400 if test "X$HPUX_IA64_MODE" = X32; then
14401 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14402 else
14403 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14404 fi
14405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14406 ;;
14407 hppa*64*)
14408 shrext_cmds='.sl'
14409 hardcode_into_libs=yes
14410 dynamic_linker="$host_os dld.sl"
14411 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14417 ;;
14418 *)
14419 shrext_cmds='.sl'
14420 dynamic_linker="$host_os dld.sl"
14421 shlibpath_var=SHLIB_PATH
14422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 ;;
14426 esac
cristy18304f92009-11-22 15:48:26 +000014427 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000014428 postinstall_cmds='chmod 555 $lib'
14429 ;;
14430
14431interix[3-9]*)
14432 version_type=linux
14433 need_lib_prefix=no
14434 need_version=no
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 shlibpath_overrides_runpath=no
14440 hardcode_into_libs=yes
14441 ;;
14442
14443irix5* | irix6* | nonstopux*)
14444 case $host_os in
14445 nonstopux*) version_type=nonstopux ;;
14446 *)
14447 if test "$lt_cv_prog_gnu_ld" = yes; then
14448 version_type=linux
14449 else
14450 version_type=irix
14451 fi ;;
14452 esac
14453 need_lib_prefix=no
14454 need_version=no
14455 soname_spec='${libname}${release}${shared_ext}$major'
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14457 case $host_os in
14458 irix5* | nonstopux*)
14459 libsuff= shlibsuff=
14460 ;;
14461 *)
14462 case $LD in # libtool.m4 will add one of these switches to LD
14463 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14464 libsuff= shlibsuff= libmagic=32-bit;;
14465 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14466 libsuff=32 shlibsuff=N32 libmagic=N32;;
14467 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14468 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14469 *) libsuff= shlibsuff= libmagic=never-match;;
14470 esac
14471 ;;
14472 esac
14473 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14474 shlibpath_overrides_runpath=no
14475 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14476 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14477 hardcode_into_libs=yes
14478 ;;
14479
14480# No shared lib support for Linux oldld, aout, or coff.
14481linux*oldld* | linux*aout* | linux*coff*)
14482 dynamic_linker=no
14483 ;;
14484
14485# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000014486linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014487 version_type=linux
14488 need_lib_prefix=no
14489 need_version=no
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 shlibpath_overrides_runpath=no
14495 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000014496 save_LDFLAGS=$LDFLAGS
14497 save_libdir=$libdir
14498 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14499 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014501/* end confdefs.h. */
14502
14503int
14504main ()
14505{
14506
14507 ;
14508 return 0;
14509}
14510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014511if ac_fn_c_try_link "$LINENO"; then :
14512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000014513 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014514fi
cristy3ed852e2009-09-05 21:47:34 +000014515fi
cristy8b350f62009-11-15 23:12:43 +000014516rm -f core conftest.err conftest.$ac_objext \
14517 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000014518 LDFLAGS=$save_LDFLAGS
14519 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000014520
14521 # This implies no fast_install, which is unacceptable.
14522 # Some rework will be needed to allow for fast_install
14523 # before this can be enabled.
14524 hardcode_into_libs=yes
14525
cristy679ed8e2009-12-05 02:37:41 +000014526 # Add ABI-specific directories to the system library path.
14527 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14528
cristy3ed852e2009-09-05 21:47:34 +000014529 # Append ld.so.conf contents to the search path
14530 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000014531 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 +000014532 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000014533 fi
14534
14535 # We used to test for /lib/ld.so.1 and disable shared libraries on
14536 # powerpc, because MkLinux only supported shared libraries with the
14537 # GNU dynamic linker. Since this was broken with cross compilers,
14538 # most powerpc-linux boxes support dynamic linking these days and
14539 # people can always --disable-shared, the test was removed, and we
14540 # assume the GNU/Linux dynamic linker is in use.
14541 dynamic_linker='GNU/Linux ld.so'
14542 ;;
14543
14544netbsd*)
14545 version_type=sunos
14546 need_lib_prefix=no
14547 need_version=no
14548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14551 dynamic_linker='NetBSD (a.out) ld.so'
14552 else
14553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14554 soname_spec='${libname}${release}${shared_ext}$major'
14555 dynamic_linker='NetBSD ld.elf_so'
14556 fi
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=yes
14559 hardcode_into_libs=yes
14560 ;;
14561
14562newsos6)
14563 version_type=linux
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 shlibpath_overrides_runpath=yes
14567 ;;
14568
14569*nto* | *qnx*)
14570 version_type=qnx
14571 need_lib_prefix=no
14572 need_version=no
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=no
14577 hardcode_into_libs=yes
14578 dynamic_linker='ldqnx.so'
14579 ;;
14580
14581openbsd*)
14582 version_type=sunos
14583 sys_lib_dlsearch_path_spec="/usr/lib"
14584 need_lib_prefix=no
14585 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14586 case $host_os in
14587 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14588 *) need_version=no ;;
14589 esac
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14594 case $host_os in
14595 openbsd2.[89] | openbsd2.[89].*)
14596 shlibpath_overrides_runpath=no
14597 ;;
14598 *)
14599 shlibpath_overrides_runpath=yes
14600 ;;
14601 esac
14602 else
14603 shlibpath_overrides_runpath=yes
14604 fi
14605 ;;
14606
14607os2*)
14608 libname_spec='$name'
14609 shrext_cmds=".dll"
14610 need_lib_prefix=no
14611 library_names_spec='$libname${shared_ext} $libname.a'
14612 dynamic_linker='OS/2 ld.exe'
14613 shlibpath_var=LIBPATH
14614 ;;
14615
14616osf3* | osf4* | osf5*)
14617 version_type=osf
14618 need_lib_prefix=no
14619 need_version=no
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14622 shlibpath_var=LD_LIBRARY_PATH
14623 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14624 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14625 ;;
14626
14627rdos*)
14628 dynamic_linker=no
14629 ;;
14630
14631solaris*)
14632 version_type=linux
14633 need_lib_prefix=no
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=yes
14639 hardcode_into_libs=yes
14640 # ldd complains unless libraries are executable
14641 postinstall_cmds='chmod +x $lib'
14642 ;;
14643
14644sunos4*)
14645 version_type=sunos
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14647 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 shlibpath_overrides_runpath=yes
14650 if test "$with_gnu_ld" = yes; then
14651 need_lib_prefix=no
14652 fi
14653 need_version=yes
14654 ;;
14655
14656sysv4 | sysv4.3*)
14657 version_type=linux
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 case $host_vendor in
14662 sni)
14663 shlibpath_overrides_runpath=no
14664 need_lib_prefix=no
14665 runpath_var=LD_RUN_PATH
14666 ;;
14667 siemens)
14668 need_lib_prefix=no
14669 ;;
14670 motorola)
14671 need_lib_prefix=no
14672 need_version=no
14673 shlibpath_overrides_runpath=no
14674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14675 ;;
14676 esac
14677 ;;
14678
14679sysv4*MP*)
14680 if test -d /usr/nec ;then
14681 version_type=linux
14682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14683 soname_spec='$libname${shared_ext}.$major'
14684 shlibpath_var=LD_LIBRARY_PATH
14685 fi
14686 ;;
14687
14688sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14689 version_type=freebsd-elf
14690 need_lib_prefix=no
14691 need_version=no
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 shlibpath_var=LD_LIBRARY_PATH
14695 shlibpath_overrides_runpath=yes
14696 hardcode_into_libs=yes
14697 if test "$with_gnu_ld" = yes; then
14698 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14699 else
14700 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14701 case $host_os in
14702 sco3.2v5*)
14703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14704 ;;
14705 esac
14706 fi
14707 sys_lib_dlsearch_path_spec='/usr/lib'
14708 ;;
14709
14710tpf*)
14711 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14712 version_type=linux
14713 need_lib_prefix=no
14714 need_version=no
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=no
14718 hardcode_into_libs=yes
14719 ;;
14720
14721uts4*)
14722 version_type=linux
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 shlibpath_var=LD_LIBRARY_PATH
14726 ;;
14727
14728*)
14729 dynamic_linker=no
14730 ;;
14731esac
cristy8b350f62009-11-15 23:12:43 +000014732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014733$as_echo "$dynamic_linker" >&6; }
14734test "$dynamic_linker" = no && can_build_shared=no
14735
14736variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14737if test "$GCC" = yes; then
14738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14739fi
14740
14741if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14742 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14743fi
14744if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14745 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14746fi
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
14828
14829
14830
14831
14832
14833
cristy8b350f62009-11-15 23:12:43 +000014834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014835$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14836hardcode_action=
14837if test -n "$hardcode_libdir_flag_spec" ||
14838 test -n "$runpath_var" ||
14839 test "X$hardcode_automatic" = "Xyes" ; then
14840
14841 # We can hardcode non-existent directories.
14842 if test "$hardcode_direct" != no &&
14843 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14844 # have to relink, otherwise we might link with an installed library
14845 # when we should be linking with a yet-to-be-installed one
14846 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14847 test "$hardcode_minus_L" != no; then
14848 # Linking always hardcodes the temporary library directory.
14849 hardcode_action=relink
14850 else
14851 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14852 hardcode_action=immediate
14853 fi
14854else
14855 # We cannot hardcode anything, or else we can only hardcode existing
14856 # directories.
14857 hardcode_action=unsupported
14858fi
cristy8b350f62009-11-15 23:12:43 +000014859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014860$as_echo "$hardcode_action" >&6; }
14861
14862if test "$hardcode_action" = relink ||
14863 test "$inherit_rpath" = yes; then
14864 # Fast installation is not supported
14865 enable_fast_install=no
14866elif test "$shlibpath_overrides_runpath" = yes ||
14867 test "$enable_shared" = no; then
14868 # Fast installation is not necessary
14869 enable_fast_install=needless
14870fi
14871
14872
14873
14874
14875
14876
14877 if test "x$enable_dlopen" != xyes; then
14878 enable_dlopen=unknown
14879 enable_dlopen_self=unknown
14880 enable_dlopen_self_static=unknown
14881else
14882 lt_cv_dlopen=no
14883 lt_cv_dlopen_libs=
14884
14885 case $host_os in
14886 beos*)
14887 lt_cv_dlopen="load_add_on"
14888 lt_cv_dlopen_libs=
14889 lt_cv_dlopen_self=yes
14890 ;;
14891
14892 mingw* | pw32* | cegcc*)
14893 lt_cv_dlopen="LoadLibrary"
14894 lt_cv_dlopen_libs=
14895 ;;
14896
14897 cygwin*)
14898 lt_cv_dlopen="dlopen"
14899 lt_cv_dlopen_libs=
14900 ;;
14901
14902 darwin*)
14903 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014905$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014906if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014907 $as_echo_n "(cached) " >&6
14908else
14909 ac_check_lib_save_LIBS=$LIBS
14910LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014912/* end confdefs.h. */
14913
14914/* Override any GCC internal prototype to avoid an error.
14915 Use char because int might match the return type of a GCC
14916 builtin and then its argument prototype would still apply. */
14917#ifdef __cplusplus
14918extern "C"
14919#endif
14920char dlopen ();
14921int
14922main ()
14923{
14924return dlopen ();
14925 ;
14926 return 0;
14927}
14928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014930 ac_cv_lib_dl_dlopen=yes
14931else
cristy8b350f62009-11-15 23:12:43 +000014932 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014933fi
cristy8b350f62009-11-15 23:12:43 +000014934rm -f core conftest.err conftest.$ac_objext \
14935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014936LIBS=$ac_check_lib_save_LIBS
14937fi
cristy8b350f62009-11-15 23:12:43 +000014938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014939$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014940if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14942else
14943
14944 lt_cv_dlopen="dyld"
14945 lt_cv_dlopen_libs=
14946 lt_cv_dlopen_self=yes
14947
14948fi
14949
14950 ;;
14951
14952 *)
cristy8b350f62009-11-15 23:12:43 +000014953 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14954if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014955 lt_cv_dlopen="shl_load"
14956else
cristy8b350f62009-11-15 23:12:43 +000014957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014958$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014959if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014960 $as_echo_n "(cached) " >&6
14961else
14962 ac_check_lib_save_LIBS=$LIBS
14963LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014965/* end confdefs.h. */
14966
14967/* Override any GCC internal prototype to avoid an error.
14968 Use char because int might match the return type of a GCC
14969 builtin and then its argument prototype would still apply. */
14970#ifdef __cplusplus
14971extern "C"
14972#endif
14973char shl_load ();
14974int
14975main ()
14976{
14977return shl_load ();
14978 ;
14979 return 0;
14980}
14981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014982if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014983 ac_cv_lib_dld_shl_load=yes
14984else
cristy8b350f62009-11-15 23:12:43 +000014985 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014986fi
cristy8b350f62009-11-15 23:12:43 +000014987rm -f core conftest.err conftest.$ac_objext \
14988 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014989LIBS=$ac_check_lib_save_LIBS
14990fi
cristy8b350f62009-11-15 23:12:43 +000014991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014992$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014993if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014994 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14995else
cristy8b350f62009-11-15 23:12:43 +000014996 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14997if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014998 lt_cv_dlopen="dlopen"
14999else
cristy8b350f62009-11-15 23:12:43 +000015000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015001$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015002if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015003 $as_echo_n "(cached) " >&6
15004else
15005 ac_check_lib_save_LIBS=$LIBS
15006LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015008/* end confdefs.h. */
15009
15010/* Override any GCC internal prototype to avoid an error.
15011 Use char because int might match the return type of a GCC
15012 builtin and then its argument prototype would still apply. */
15013#ifdef __cplusplus
15014extern "C"
15015#endif
15016char dlopen ();
15017int
15018main ()
15019{
15020return dlopen ();
15021 ;
15022 return 0;
15023}
15024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015025if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015026 ac_cv_lib_dl_dlopen=yes
15027else
cristy8b350f62009-11-15 23:12:43 +000015028 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015029fi
cristy8b350f62009-11-15 23:12:43 +000015030rm -f core conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015032LIBS=$ac_check_lib_save_LIBS
15033fi
cristy8b350f62009-11-15 23:12:43 +000015034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015035$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015036if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15038else
cristy8b350f62009-11-15 23:12:43 +000015039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015040$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015041if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015042 $as_echo_n "(cached) " >&6
15043else
15044 ac_check_lib_save_LIBS=$LIBS
15045LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015047/* end confdefs.h. */
15048
15049/* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15052#ifdef __cplusplus
15053extern "C"
15054#endif
15055char dlopen ();
15056int
15057main ()
15058{
15059return dlopen ();
15060 ;
15061 return 0;
15062}
15063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015064if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015065 ac_cv_lib_svld_dlopen=yes
15066else
cristy8b350f62009-11-15 23:12:43 +000015067 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015068fi
cristy8b350f62009-11-15 23:12:43 +000015069rm -f core conftest.err conftest.$ac_objext \
15070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015071LIBS=$ac_check_lib_save_LIBS
15072fi
cristy8b350f62009-11-15 23:12:43 +000015073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015074$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015075if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15077else
cristy8b350f62009-11-15 23:12:43 +000015078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015079$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015080if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015081 $as_echo_n "(cached) " >&6
15082else
15083 ac_check_lib_save_LIBS=$LIBS
15084LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015086/* end confdefs.h. */
15087
15088/* Override any GCC internal prototype to avoid an error.
15089 Use char because int might match the return type of a GCC
15090 builtin and then its argument prototype would still apply. */
15091#ifdef __cplusplus
15092extern "C"
15093#endif
15094char dld_link ();
15095int
15096main ()
15097{
15098return dld_link ();
15099 ;
15100 return 0;
15101}
15102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015104 ac_cv_lib_dld_dld_link=yes
15105else
cristy8b350f62009-11-15 23:12:43 +000015106 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015107fi
cristy8b350f62009-11-15 23:12:43 +000015108rm -f core conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015110LIBS=$ac_check_lib_save_LIBS
15111fi
cristy8b350f62009-11-15 23:12:43 +000015112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015113$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015114if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015115 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15116fi
15117
15118
15119fi
15120
15121
15122fi
15123
15124
15125fi
15126
15127
15128fi
15129
15130
15131fi
15132
15133 ;;
15134 esac
15135
15136 if test "x$lt_cv_dlopen" != xno; then
15137 enable_dlopen=yes
15138 else
15139 enable_dlopen=no
15140 fi
15141
15142 case $lt_cv_dlopen in
15143 dlopen)
15144 save_CPPFLAGS="$CPPFLAGS"
15145 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15146
15147 save_LDFLAGS="$LDFLAGS"
15148 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15149
15150 save_LIBS="$LIBS"
15151 LIBS="$lt_cv_dlopen_libs $LIBS"
15152
cristy8b350f62009-11-15 23:12:43 +000015153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015154$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015155if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015156 $as_echo_n "(cached) " >&6
15157else
15158 if test "$cross_compiling" = yes; then :
15159 lt_cv_dlopen_self=cross
15160else
15161 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15162 lt_status=$lt_dlunknown
15163 cat > conftest.$ac_ext <<_LT_EOF
cristybab87c32010-02-09 20:54:22 +000015164#line 15164 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015165#include "confdefs.h"
15166
15167#if HAVE_DLFCN_H
15168#include <dlfcn.h>
15169#endif
15170
15171#include <stdio.h>
15172
15173#ifdef RTLD_GLOBAL
15174# define LT_DLGLOBAL RTLD_GLOBAL
15175#else
15176# ifdef DL_GLOBAL
15177# define LT_DLGLOBAL DL_GLOBAL
15178# else
15179# define LT_DLGLOBAL 0
15180# endif
15181#endif
15182
15183/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15184 find out it does not work in some platform. */
15185#ifndef LT_DLLAZY_OR_NOW
15186# ifdef RTLD_LAZY
15187# define LT_DLLAZY_OR_NOW RTLD_LAZY
15188# else
15189# ifdef DL_LAZY
15190# define LT_DLLAZY_OR_NOW DL_LAZY
15191# else
15192# ifdef RTLD_NOW
15193# define LT_DLLAZY_OR_NOW RTLD_NOW
15194# else
15195# ifdef DL_NOW
15196# define LT_DLLAZY_OR_NOW DL_NOW
15197# else
15198# define LT_DLLAZY_OR_NOW 0
15199# endif
15200# endif
15201# endif
15202# endif
15203#endif
15204
cristy18304f92009-11-22 15:48:26 +000015205void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015206int main ()
15207{
15208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15209 int status = $lt_dlunknown;
15210
15211 if (self)
15212 {
15213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015214 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015215 /* dlclose (self); */
15216 }
15217 else
15218 puts (dlerror ());
15219
15220 return status;
15221}
15222_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015224 (eval $ac_link) 2>&5
15225 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15227 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015228 (./conftest; exit; ) >&5 2>/dev/null
15229 lt_status=$?
15230 case x$lt_status in
15231 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15232 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15233 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15234 esac
15235 else :
15236 # compilation failed
15237 lt_cv_dlopen_self=no
15238 fi
15239fi
15240rm -fr conftest*
15241
15242
15243fi
cristy8b350f62009-11-15 23:12:43 +000015244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015245$as_echo "$lt_cv_dlopen_self" >&6; }
15246
15247 if test "x$lt_cv_dlopen_self" = xyes; then
15248 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015250$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015251if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015252 $as_echo_n "(cached) " >&6
15253else
15254 if test "$cross_compiling" = yes; then :
15255 lt_cv_dlopen_self_static=cross
15256else
15257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15258 lt_status=$lt_dlunknown
15259 cat > conftest.$ac_ext <<_LT_EOF
cristybab87c32010-02-09 20:54:22 +000015260#line 15260 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015261#include "confdefs.h"
15262
15263#if HAVE_DLFCN_H
15264#include <dlfcn.h>
15265#endif
15266
15267#include <stdio.h>
15268
15269#ifdef RTLD_GLOBAL
15270# define LT_DLGLOBAL RTLD_GLOBAL
15271#else
15272# ifdef DL_GLOBAL
15273# define LT_DLGLOBAL DL_GLOBAL
15274# else
15275# define LT_DLGLOBAL 0
15276# endif
15277#endif
15278
15279/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15280 find out it does not work in some platform. */
15281#ifndef LT_DLLAZY_OR_NOW
15282# ifdef RTLD_LAZY
15283# define LT_DLLAZY_OR_NOW RTLD_LAZY
15284# else
15285# ifdef DL_LAZY
15286# define LT_DLLAZY_OR_NOW DL_LAZY
15287# else
15288# ifdef RTLD_NOW
15289# define LT_DLLAZY_OR_NOW RTLD_NOW
15290# else
15291# ifdef DL_NOW
15292# define LT_DLLAZY_OR_NOW DL_NOW
15293# else
15294# define LT_DLLAZY_OR_NOW 0
15295# endif
15296# endif
15297# endif
15298# endif
15299#endif
15300
cristy18304f92009-11-22 15:48:26 +000015301void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015302int main ()
15303{
15304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15305 int status = $lt_dlunknown;
15306
15307 if (self)
15308 {
15309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015310 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015311 /* dlclose (self); */
15312 }
15313 else
15314 puts (dlerror ());
15315
15316 return status;
15317}
15318_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015320 (eval $ac_link) 2>&5
15321 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15323 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015324 (./conftest; exit; ) >&5 2>/dev/null
15325 lt_status=$?
15326 case x$lt_status in
15327 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15328 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15329 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15330 esac
15331 else :
15332 # compilation failed
15333 lt_cv_dlopen_self_static=no
15334 fi
15335fi
15336rm -fr conftest*
15337
15338
15339fi
cristy8b350f62009-11-15 23:12:43 +000015340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015341$as_echo "$lt_cv_dlopen_self_static" >&6; }
15342 fi
15343
15344 CPPFLAGS="$save_CPPFLAGS"
15345 LDFLAGS="$save_LDFLAGS"
15346 LIBS="$save_LIBS"
15347 ;;
15348 esac
15349
15350 case $lt_cv_dlopen_self in
15351 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15352 *) enable_dlopen_self=unknown ;;
15353 esac
15354
15355 case $lt_cv_dlopen_self_static in
15356 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15357 *) enable_dlopen_self_static=unknown ;;
15358 esac
15359fi
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377striplib=
15378old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015380$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15381if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15383 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015385$as_echo "yes" >&6; }
15386else
15387# FIXME - insert some real tests, host_os isn't really good enough
15388 case $host_os in
15389 darwin*)
15390 if test -n "$STRIP" ; then
15391 striplib="$STRIP -x"
15392 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015394$as_echo "yes" >&6; }
15395 else
cristy8b350f62009-11-15 23:12:43 +000015396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015397$as_echo "no" >&6; }
15398 fi
15399 ;;
15400 *)
cristy8b350f62009-11-15 23:12:43 +000015401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015402$as_echo "no" >&6; }
15403 ;;
15404 esac
15405fi
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015420$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015422$as_echo "$can_build_shared" >&6; }
15423
cristy8b350f62009-11-15 23:12:43 +000015424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015425$as_echo_n "checking whether to build shared libraries... " >&6; }
15426 test "$can_build_shared" = "no" && enable_shared=no
15427
15428 # On AIX, shared libraries and static libraries use the same namespace, and
15429 # are all built from PIC.
15430 case $host_os in
15431 aix3*)
15432 test "$enable_shared" = yes && enable_static=no
15433 if test -n "$RANLIB"; then
15434 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15435 postinstall_cmds='$RANLIB $lib'
15436 fi
15437 ;;
15438
15439 aix[4-9]*)
15440 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15441 test "$enable_shared" = yes && enable_static=no
15442 fi
15443 ;;
15444 esac
cristy8b350f62009-11-15 23:12:43 +000015445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015446$as_echo "$enable_shared" >&6; }
15447
cristy8b350f62009-11-15 23:12:43 +000015448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015449$as_echo_n "checking whether to build static libraries... " >&6; }
15450 # Make sure either enable_shared or enable_static is yes.
15451 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015453$as_echo "$enable_static" >&6; }
15454
15455
15456
15457
15458fi
15459ac_ext=c
15460ac_cpp='$CPP $CPPFLAGS'
15461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15463ac_compiler_gnu=$ac_cv_c_compiler_gnu
15464
15465CC="$lt_save_CC"
15466
15467
15468ac_ext=cpp
15469ac_cpp='$CXXCPP $CPPFLAGS'
15470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15473
15474archive_cmds_need_lc_CXX=no
15475allow_undefined_flag_CXX=
15476always_export_symbols_CXX=no
15477archive_expsym_cmds_CXX=
15478compiler_needs_object_CXX=no
15479export_dynamic_flag_spec_CXX=
15480hardcode_direct_CXX=no
15481hardcode_direct_absolute_CXX=no
15482hardcode_libdir_flag_spec_CXX=
15483hardcode_libdir_flag_spec_ld_CXX=
15484hardcode_libdir_separator_CXX=
15485hardcode_minus_L_CXX=no
15486hardcode_shlibpath_var_CXX=unsupported
15487hardcode_automatic_CXX=no
15488inherit_rpath_CXX=no
15489module_cmds_CXX=
15490module_expsym_cmds_CXX=
15491link_all_deplibs_CXX=unknown
15492old_archive_cmds_CXX=$old_archive_cmds
15493no_undefined_flag_CXX=
15494whole_archive_flag_spec_CXX=
15495enable_shared_with_static_runtimes_CXX=no
15496
15497# Source file extension for C++ test sources.
15498ac_ext=cpp
15499
15500# Object file extension for compiled C++ test sources.
15501objext=o
15502objext_CXX=$objext
15503
15504# No sense in running all these tests if we already determined that
15505# the CXX compiler isn't working. Some variables (like enable_shared)
15506# are currently assumed to apply to all compilers on this platform,
15507# and will be corrupted by setting them based on a non-working compiler.
15508if test "$_lt_caught_CXX_error" != yes; then
15509 # Code to be used in simple compile tests
15510 lt_simple_compile_test_code="int some_variable = 0;"
15511
15512 # Code to be used in simple link tests
15513 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15514
15515 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15516
15517
15518
15519
15520
15521
15522# If no C compiler was specified, use CC.
15523LTCC=${LTCC-"$CC"}
15524
15525# If no C compiler flags were specified, use CFLAGS.
15526LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15527
15528# Allow CC to be a program name with arguments.
15529compiler=$CC
15530
15531
15532 # save warnings/boilerplate of simple test code
15533 ac_outfile=conftest.$ac_objext
15534echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15535eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15536_lt_compiler_boilerplate=`cat conftest.err`
15537$RM conftest*
15538
15539 ac_outfile=conftest.$ac_objext
15540echo "$lt_simple_link_test_code" >conftest.$ac_ext
15541eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15542_lt_linker_boilerplate=`cat conftest.err`
15543$RM -r conftest*
15544
15545
15546 # Allow CC to be a program name with arguments.
15547 lt_save_CC=$CC
15548 lt_save_LD=$LD
15549 lt_save_GCC=$GCC
15550 GCC=$GXX
15551 lt_save_with_gnu_ld=$with_gnu_ld
15552 lt_save_path_LD=$lt_cv_path_LD
15553 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15554 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15555 else
15556 $as_unset lt_cv_prog_gnu_ld
15557 fi
15558 if test -n "${lt_cv_path_LDCXX+set}"; then
15559 lt_cv_path_LD=$lt_cv_path_LDCXX
15560 else
15561 $as_unset lt_cv_path_LD
15562 fi
15563 test -z "${LDCXX+set}" || LD=$LDCXX
15564 CC=${CXX-"c++"}
15565 compiler=$CC
15566 compiler_CXX=$CC
15567 for cc_temp in $compiler""; do
15568 case $cc_temp in
15569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15571 \-*) ;;
15572 *) break;;
15573 esac
15574done
cristy18304f92009-11-22 15:48:26 +000015575cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000015576
15577
15578 if test -n "$compiler"; then
15579 # We don't want -fno-exception when compiling C++ code, so set the
15580 # no_builtin_flag separately
15581 if test "$GXX" = yes; then
15582 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15583 else
15584 lt_prog_compiler_no_builtin_flag_CXX=
15585 fi
15586
15587 if test "$GXX" = yes; then
15588 # Set up default GNU C++ configuration
15589
15590
15591
15592# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000015593if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015594 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15595else
15596 with_gnu_ld=no
15597fi
15598
15599ac_prog=ld
15600if test "$GCC" = yes; then
15601 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000015602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015603$as_echo_n "checking for ld used by $CC... " >&6; }
15604 case $host in
15605 *-*-mingw*)
15606 # gcc leaves a trailing carriage return which upsets mingw
15607 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15608 *)
15609 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15610 esac
15611 case $ac_prog in
15612 # Accept absolute paths.
15613 [\\/]* | ?:[\\/]*)
15614 re_direlt='/[^/][^/]*/\.\./'
15615 # Canonicalize the pathname of ld
15616 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15617 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15618 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15619 done
15620 test -z "$LD" && LD="$ac_prog"
15621 ;;
15622 "")
15623 # If it fails, then pretend we aren't using GCC.
15624 ac_prog=ld
15625 ;;
15626 *)
15627 # If it is relative, then search for the first ld in PATH.
15628 with_gnu_ld=unknown
15629 ;;
15630 esac
15631elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000015632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015633$as_echo_n "checking for GNU ld... " >&6; }
15634else
cristy8b350f62009-11-15 23:12:43 +000015635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015636$as_echo_n "checking for non-GNU ld... " >&6; }
15637fi
cristy8b350f62009-11-15 23:12:43 +000015638if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015639 $as_echo_n "(cached) " >&6
15640else
15641 if test -z "$LD"; then
15642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15643 for ac_dir in $PATH; do
15644 IFS="$lt_save_ifs"
15645 test -z "$ac_dir" && ac_dir=.
15646 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15647 lt_cv_path_LD="$ac_dir/$ac_prog"
15648 # Check to see if the program is GNU ld. I'd rather use --version,
15649 # but apparently some variants of GNU ld only accept -v.
15650 # Break only if it was the GNU/non-GNU ld that we prefer.
15651 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15652 *GNU* | *'with BFD'*)
15653 test "$with_gnu_ld" != no && break
15654 ;;
15655 *)
15656 test "$with_gnu_ld" != yes && break
15657 ;;
15658 esac
15659 fi
15660 done
15661 IFS="$lt_save_ifs"
15662else
15663 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15664fi
15665fi
15666
15667LD="$lt_cv_path_LD"
15668if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000015669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000015670$as_echo "$LD" >&6; }
15671else
cristy8b350f62009-11-15 23:12:43 +000015672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015673$as_echo "no" >&6; }
15674fi
cristy8b350f62009-11-15 23:12:43 +000015675test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015677$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015678if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015679 $as_echo_n "(cached) " >&6
15680else
15681 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15682case `$LD -v 2>&1 </dev/null` in
15683*GNU* | *'with BFD'*)
15684 lt_cv_prog_gnu_ld=yes
15685 ;;
15686*)
15687 lt_cv_prog_gnu_ld=no
15688 ;;
15689esac
15690fi
cristy8b350f62009-11-15 23:12:43 +000015691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015692$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15693with_gnu_ld=$lt_cv_prog_gnu_ld
15694
15695
15696
15697
15698
15699
15700
15701 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15702 # archiving commands below assume that GNU ld is being used.
15703 if test "$with_gnu_ld" = yes; then
15704 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15705 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'
15706
15707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15709
15710 # If archive_cmds runs LD, not CC, wlarc should be empty
15711 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15712 # investigate it a little bit more. (MM)
15713 wlarc='${wl}'
15714
15715 # ancient GNU ld didn't support --whole-archive et. al.
15716 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15717 $GREP 'no-whole-archive' > /dev/null; then
15718 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15719 else
15720 whole_archive_flag_spec_CXX=
15721 fi
15722 else
15723 with_gnu_ld=no
15724 wlarc=
15725
15726 # A generic and very simple default shared library creation
15727 # command for GNU C++ for the case where it uses the native
15728 # linker, instead of GNU ld. If possible, this setting should
15729 # overridden to take advantage of the native linker features on
15730 # the platform it is being used on.
15731 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15732 fi
15733
15734 # Commands to make compiler produce verbose output that lists
15735 # what "hidden" libraries, object files and flags are used when
15736 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015737 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015738
15739 else
15740 GXX=no
15741 with_gnu_ld=no
15742 wlarc=
15743 fi
15744
15745 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015747$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15748 ld_shlibs_CXX=yes
15749 case $host_os in
15750 aix3*)
15751 # FIXME: insert proper C++ library support
15752 ld_shlibs_CXX=no
15753 ;;
15754 aix[4-9]*)
15755 if test "$host_cpu" = ia64; then
15756 # On IA64, the linker does run time linking by default, so we don't
15757 # have to do anything special.
15758 aix_use_runtimelinking=no
15759 exp_sym_flag='-Bexport'
15760 no_entry_flag=""
15761 else
15762 aix_use_runtimelinking=no
15763
15764 # Test if we are trying to use run time linking or normal
15765 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15766 # need to do runtime linking.
15767 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15768 for ld_flag in $LDFLAGS; do
15769 case $ld_flag in
15770 *-brtl*)
15771 aix_use_runtimelinking=yes
15772 break
15773 ;;
15774 esac
15775 done
15776 ;;
15777 esac
15778
15779 exp_sym_flag='-bexport'
15780 no_entry_flag='-bnoentry'
15781 fi
15782
15783 # When large executables or shared objects are built, AIX ld can
15784 # have problems creating the table of contents. If linking a library
15785 # or program results in "error TOC overflow" add -mminimal-toc to
15786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15788
15789 archive_cmds_CXX=''
15790 hardcode_direct_CXX=yes
15791 hardcode_direct_absolute_CXX=yes
15792 hardcode_libdir_separator_CXX=':'
15793 link_all_deplibs_CXX=yes
15794 file_list_spec_CXX='${wl}-f,'
15795
15796 if test "$GXX" = yes; then
15797 case $host_os in aix4.[012]|aix4.[012].*)
15798 # We only want to do this on AIX 4.2 and lower, the check
15799 # below for broken collect2 doesn't work under 4.3+
15800 collect2name=`${CC} -print-prog-name=collect2`
15801 if test -f "$collect2name" &&
15802 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15803 then
15804 # We have reworked collect2
15805 :
15806 else
15807 # We have old collect2
15808 hardcode_direct_CXX=unsupported
15809 # It fails to find uninstalled libraries when the uninstalled
15810 # path is not listed in the libpath. Setting hardcode_minus_L
15811 # to unsupported forces relinking
15812 hardcode_minus_L_CXX=yes
15813 hardcode_libdir_flag_spec_CXX='-L$libdir'
15814 hardcode_libdir_separator_CXX=
15815 fi
15816 esac
15817 shared_flag='-shared'
15818 if test "$aix_use_runtimelinking" = yes; then
15819 shared_flag="$shared_flag "'${wl}-G'
15820 fi
15821 else
15822 # not using gcc
15823 if test "$host_cpu" = ia64; then
15824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15825 # chokes on -Wl,-G. The following line is correct:
15826 shared_flag='-G'
15827 else
15828 if test "$aix_use_runtimelinking" = yes; then
15829 shared_flag='${wl}-G'
15830 else
15831 shared_flag='${wl}-bM:SRE'
15832 fi
15833 fi
15834 fi
15835
15836 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15837 # It seems that -bexpall does not export symbols beginning with
15838 # underscore (_), so it is better to generate a list of symbols to
15839 # export.
15840 always_export_symbols_CXX=yes
15841 if test "$aix_use_runtimelinking" = yes; then
15842 # Warning - without using the other runtime loading flags (-brtl),
15843 # -berok will link without error, but may produce a broken library.
15844 allow_undefined_flag_CXX='-berok'
15845 # Determine the default libpath from the value encoded in an empty
15846 # executable.
cristy8b350f62009-11-15 23:12:43 +000015847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015848/* end confdefs.h. */
15849
15850int
15851main ()
15852{
15853
15854 ;
15855 return 0;
15856}
15857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015858if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015859
15860lt_aix_libpath_sed='
15861 /Import File Strings/,/^$/ {
15862 /^0/ {
15863 s/^0 *\(.*\)$/\1/
15864 p
15865 }
15866 }'
15867aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15868# Check for a 64-bit object if we didn't find anything.
15869if test -z "$aix_libpath"; then
15870 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15871fi
cristy3ed852e2009-09-05 21:47:34 +000015872fi
cristy8b350f62009-11-15 23:12:43 +000015873rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15876
15877 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15878
cristy18304f92009-11-22 15:48:26 +000015879 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 +000015880 else
15881 if test "$host_cpu" = ia64; then
15882 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15883 allow_undefined_flag_CXX="-z nodefs"
15884 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"
15885 else
15886 # Determine the default libpath from the value encoded in an
15887 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015889/* end confdefs.h. */
15890
15891int
15892main ()
15893{
15894
15895 ;
15896 return 0;
15897}
15898_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015899if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015900
15901lt_aix_libpath_sed='
15902 /Import File Strings/,/^$/ {
15903 /^0/ {
15904 s/^0 *\(.*\)$/\1/
15905 p
15906 }
15907 }'
15908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15909# Check for a 64-bit object if we didn't find anything.
15910if test -z "$aix_libpath"; then
15911 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15912fi
cristy3ed852e2009-09-05 21:47:34 +000015913fi
cristy8b350f62009-11-15 23:12:43 +000015914rm -f core conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015916if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15917
15918 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15919 # Warning - without using the other run time loading flags,
15920 # -berok will link without error, but may produce a broken library.
15921 no_undefined_flag_CXX=' ${wl}-bernotok'
15922 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015923 # Exported symbols can be pulled into shared objects from archives
15924 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015925 archive_cmds_need_lc_CXX=yes
15926 # This is similar to how AIX traditionally builds its shared
15927 # libraries.
15928 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'
15929 fi
15930 fi
15931 ;;
15932
15933 beos*)
15934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15935 allow_undefined_flag_CXX=unsupported
15936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15937 # support --undefined. This deserves some investigation. FIXME
15938 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15939 else
15940 ld_shlibs_CXX=no
15941 fi
15942 ;;
15943
15944 chorus*)
15945 case $cc_basename in
15946 *)
15947 # FIXME: insert proper C++ library support
15948 ld_shlibs_CXX=no
15949 ;;
15950 esac
15951 ;;
15952
15953 cygwin* | mingw* | pw32* | cegcc*)
15954 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15955 # as there is no search path for DLLs.
15956 hardcode_libdir_flag_spec_CXX='-L$libdir'
15957 allow_undefined_flag_CXX=unsupported
15958 always_export_symbols_CXX=no
15959 enable_shared_with_static_runtimes_CXX=yes
15960
15961 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15962 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'
15963 # If the export-symbols file already is a .def file (1st line
15964 # is EXPORTS), use it as is; otherwise, prepend...
15965 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15966 cp $export_symbols $output_objdir/$soname.def;
15967 else
15968 echo EXPORTS > $output_objdir/$soname.def;
15969 cat $export_symbols >> $output_objdir/$soname.def;
15970 fi~
15971 $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'
15972 else
15973 ld_shlibs_CXX=no
15974 fi
15975 ;;
15976 darwin* | rhapsody*)
15977
15978
15979 archive_cmds_need_lc_CXX=no
15980 hardcode_direct_CXX=no
15981 hardcode_automatic_CXX=yes
15982 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015983 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015984 link_all_deplibs_CXX=yes
15985 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15986 case $cc_basename in
15987 ifort*) _lt_dar_can_shared=yes ;;
15988 *) _lt_dar_can_shared=$GCC ;;
15989 esac
15990 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015991 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015992 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}"
15993 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15994 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}"
15995 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}"
15996 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15997 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}"
15998 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}"
15999 fi
16000
16001 else
16002 ld_shlibs_CXX=no
16003 fi
16004
16005 ;;
16006
16007 dgux*)
16008 case $cc_basename in
16009 ec++*)
16010 # FIXME: insert proper C++ library support
16011 ld_shlibs_CXX=no
16012 ;;
16013 ghcx*)
16014 # Green Hills C++ Compiler
16015 # FIXME: insert proper C++ library support
16016 ld_shlibs_CXX=no
16017 ;;
16018 *)
16019 # FIXME: insert proper C++ library support
16020 ld_shlibs_CXX=no
16021 ;;
16022 esac
16023 ;;
16024
16025 freebsd[12]*)
16026 # C++ shared libraries reported to be fairly broken before
16027 # switch to ELF
16028 ld_shlibs_CXX=no
16029 ;;
16030
16031 freebsd-elf*)
16032 archive_cmds_need_lc_CXX=no
16033 ;;
16034
16035 freebsd* | dragonfly*)
16036 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16037 # conventions
16038 ld_shlibs_CXX=yes
16039 ;;
16040
16041 gnu*)
16042 ;;
16043
16044 hpux9*)
16045 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16046 hardcode_libdir_separator_CXX=:
16047 export_dynamic_flag_spec_CXX='${wl}-E'
16048 hardcode_direct_CXX=yes
16049 hardcode_minus_L_CXX=yes # Not in the search PATH,
16050 # but as the default
16051 # location of the library.
16052
16053 case $cc_basename in
16054 CC*)
16055 # FIXME: insert proper C++ library support
16056 ld_shlibs_CXX=no
16057 ;;
16058 aCC*)
16059 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'
16060 # Commands to make compiler produce verbose output that lists
16061 # what "hidden" libraries, object files and flags are used when
16062 # linking a shared library.
16063 #
16064 # There doesn't appear to be a way to prevent this compiler from
16065 # explicitly linking system object files so we need to strip them
16066 # from the output so that they don't get included in the library
16067 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016068 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 +000016069 ;;
16070 *)
16071 if test "$GXX" = yes; then
16072 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'
16073 else
16074 # FIXME: insert proper C++ library support
16075 ld_shlibs_CXX=no
16076 fi
16077 ;;
16078 esac
16079 ;;
16080
16081 hpux10*|hpux11*)
16082 if test $with_gnu_ld = no; then
16083 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16084 hardcode_libdir_separator_CXX=:
16085
16086 case $host_cpu in
16087 hppa*64*|ia64*)
16088 ;;
16089 *)
16090 export_dynamic_flag_spec_CXX='${wl}-E'
16091 ;;
16092 esac
16093 fi
16094 case $host_cpu in
16095 hppa*64*|ia64*)
16096 hardcode_direct_CXX=no
16097 hardcode_shlibpath_var_CXX=no
16098 ;;
16099 *)
16100 hardcode_direct_CXX=yes
16101 hardcode_direct_absolute_CXX=yes
16102 hardcode_minus_L_CXX=yes # Not in the search PATH,
16103 # but as the default
16104 # location of the library.
16105 ;;
16106 esac
16107
16108 case $cc_basename in
16109 CC*)
16110 # FIXME: insert proper C++ library support
16111 ld_shlibs_CXX=no
16112 ;;
16113 aCC*)
16114 case $host_cpu in
16115 hppa*64*)
16116 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16117 ;;
16118 ia64*)
16119 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16120 ;;
16121 *)
16122 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16123 ;;
16124 esac
16125 # Commands to make compiler produce verbose output that lists
16126 # what "hidden" libraries, object files and flags are used when
16127 # linking a shared library.
16128 #
16129 # There doesn't appear to be a way to prevent this compiler from
16130 # explicitly linking system object files so we need to strip them
16131 # from the output so that they don't get included in the library
16132 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016133 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 +000016134 ;;
16135 *)
16136 if test "$GXX" = yes; then
16137 if test $with_gnu_ld = no; then
16138 case $host_cpu in
16139 hppa*64*)
16140 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16141 ;;
16142 ia64*)
16143 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16144 ;;
16145 *)
16146 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'
16147 ;;
16148 esac
16149 fi
16150 else
16151 # FIXME: insert proper C++ library support
16152 ld_shlibs_CXX=no
16153 fi
16154 ;;
16155 esac
16156 ;;
16157
16158 interix[3-9]*)
16159 hardcode_direct_CXX=no
16160 hardcode_shlibpath_var_CXX=no
16161 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16162 export_dynamic_flag_spec_CXX='${wl}-E'
16163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16164 # Instead, shared libraries are loaded at an image base (0x10000000 by
16165 # default) and relocated if they conflict, which is a slow very memory
16166 # consuming and fragmenting process. To avoid this, we pick a random,
16167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16169 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'
16170 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'
16171 ;;
16172 irix5* | irix6*)
16173 case $cc_basename in
16174 CC*)
16175 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016176 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 +000016177
16178 # Archives containing C++ object files must be created using
16179 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16180 # necessary to make sure instantiated templates are included
16181 # in the archive.
16182 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16183 ;;
16184 *)
16185 if test "$GXX" = yes; then
16186 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016187 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 +000016188 else
cristy18304f92009-11-22 15:48:26 +000016189 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 +000016190 fi
16191 fi
16192 link_all_deplibs_CXX=yes
16193 ;;
16194 esac
16195 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16196 hardcode_libdir_separator_CXX=:
16197 inherit_rpath_CXX=yes
16198 ;;
16199
cristy18304f92009-11-22 15:48:26 +000016200 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016201 case $cc_basename in
16202 KCC*)
16203 # Kuck and Associates, Inc. (KAI) C++ Compiler
16204
16205 # KCC will only create a shared library if the output file
16206 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16207 # to its proper name (with version) after linking.
16208 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'
16209 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'
16210 # Commands to make compiler produce verbose output that lists
16211 # what "hidden" libraries, object files and flags are used when
16212 # linking a shared library.
16213 #
16214 # There doesn't appear to be a way to prevent this compiler from
16215 # explicitly linking system object files so we need to strip them
16216 # from the output so that they don't get included in the library
16217 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016218 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 +000016219
16220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16221 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16222
16223 # Archives containing C++ object files must be created using
16224 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16225 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16226 ;;
16227 icpc* | ecpc* )
16228 # Intel C++
16229 with_gnu_ld=yes
16230 # version 8.0 and above of icpc choke on multiply defined symbols
16231 # if we add $predep_objects and $postdep_objects, however 7.1 and
16232 # earlier do not add the objects themselves.
16233 case `$CC -V 2>&1` in
16234 *"Version 7."*)
16235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16236 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'
16237 ;;
16238 *) # Version 8.0 or newer
16239 tmp_idyn=
16240 case $host_cpu in
16241 ia64*) tmp_idyn=' -i_dynamic';;
16242 esac
16243 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244 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'
16245 ;;
16246 esac
16247 archive_cmds_need_lc_CXX=no
16248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16249 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16250 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16251 ;;
16252 pgCC* | pgcpp*)
16253 # Portland Group C++ compiler
16254 case `$CC -V` in
16255 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16256 prelink_cmds_CXX='tpldir=Template.dir~
16257 rm -rf $tpldir~
16258 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16259 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16260 old_archive_cmds_CXX='tpldir=Template.dir~
16261 rm -rf $tpldir~
16262 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16263 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16264 $RANLIB $oldlib'
16265 archive_cmds_CXX='tpldir=Template.dir~
16266 rm -rf $tpldir~
16267 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16268 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16269 archive_expsym_cmds_CXX='tpldir=Template.dir~
16270 rm -rf $tpldir~
16271 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16272 $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'
16273 ;;
16274 *) # Version 6 will use weak symbols
16275 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16276 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'
16277 ;;
16278 esac
16279
16280 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016282 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 +000016283 ;;
16284 cxx*)
16285 # Compaq C++
16286 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16287 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'
16288
16289 runpath_var=LD_RUN_PATH
16290 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16291 hardcode_libdir_separator_CXX=:
16292
16293 # Commands to make compiler produce verbose output that lists
16294 # what "hidden" libraries, object files and flags are used when
16295 # linking a shared library.
16296 #
16297 # There doesn't appear to be a way to prevent this compiler from
16298 # explicitly linking system object files so we need to strip them
16299 # from the output so that they don't get included in the library
16300 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016301 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 +000016302 ;;
cristy18304f92009-11-22 15:48:26 +000016303 xl*)
cristy3ed852e2009-09-05 21:47:34 +000016304 # IBM XL 8.0 on PPC, with GNU ld
16305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16306 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16307 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16308 if test "x$supports_anon_versioning" = xyes; then
16309 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16311 echo "local: *; };" >> $output_objdir/$libname.ver~
16312 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16313 fi
16314 ;;
16315 *)
16316 case `$CC -V 2>&1 | sed 5q` in
16317 *Sun\ C*)
16318 # Sun C++ 5.9
16319 no_undefined_flag_CXX=' -zdefs'
16320 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16321 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'
16322 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000016323 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 +000016324 compiler_needs_object_CXX=yes
16325
16326 # Not sure whether something based on
16327 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16328 # would be better.
cristy18304f92009-11-22 15:48:26 +000016329 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016330
16331 # Archives containing C++ object files must be created using
16332 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16333 # necessary to make sure instantiated templates are included
16334 # in the archive.
16335 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16336 ;;
16337 esac
16338 ;;
16339 esac
16340 ;;
16341
16342 lynxos*)
16343 # FIXME: insert proper C++ library support
16344 ld_shlibs_CXX=no
16345 ;;
16346
16347 m88k*)
16348 # FIXME: insert proper C++ library support
16349 ld_shlibs_CXX=no
16350 ;;
16351
16352 mvs*)
16353 case $cc_basename in
16354 cxx*)
16355 # FIXME: insert proper C++ library support
16356 ld_shlibs_CXX=no
16357 ;;
16358 *)
16359 # FIXME: insert proper C++ library support
16360 ld_shlibs_CXX=no
16361 ;;
16362 esac
16363 ;;
16364
16365 netbsd*)
16366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16367 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16368 wlarc=
16369 hardcode_libdir_flag_spec_CXX='-R$libdir'
16370 hardcode_direct_CXX=yes
16371 hardcode_shlibpath_var_CXX=no
16372 fi
16373 # Workaround some broken pre-1.5 toolchains
16374 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16375 ;;
16376
16377 *nto* | *qnx*)
16378 ld_shlibs_CXX=yes
16379 ;;
16380
16381 openbsd2*)
16382 # C++ shared libraries are fairly broken
16383 ld_shlibs_CXX=no
16384 ;;
16385
16386 openbsd*)
16387 if test -f /usr/libexec/ld.so; then
16388 hardcode_direct_CXX=yes
16389 hardcode_shlibpath_var_CXX=no
16390 hardcode_direct_absolute_CXX=yes
16391 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16394 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16395 export_dynamic_flag_spec_CXX='${wl}-E'
16396 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16397 fi
cristy18304f92009-11-22 15:48:26 +000016398 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016399 else
16400 ld_shlibs_CXX=no
16401 fi
16402 ;;
16403
16404 osf3* | osf4* | osf5*)
16405 case $cc_basename in
16406 KCC*)
16407 # Kuck and Associates, Inc. (KAI) C++ Compiler
16408
16409 # KCC will only create a shared library if the output file
16410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16411 # to its proper name (with version) after linking.
16412 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'
16413
16414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16415 hardcode_libdir_separator_CXX=:
16416
16417 # Archives containing C++ object files must be created using
16418 # the KAI C++ compiler.
16419 case $host in
16420 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16421 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16422 esac
16423 ;;
16424 RCC*)
16425 # Rational C++ 2.4.1
16426 # FIXME: insert proper C++ library support
16427 ld_shlibs_CXX=no
16428 ;;
16429 cxx*)
16430 case $host in
16431 osf3*)
16432 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000016433 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 +000016434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16435 ;;
16436 *)
16437 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000016438 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 +000016439 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16440 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000016441 $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 +000016442 $RM $lib.exp'
16443 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16444 ;;
16445 esac
16446
16447 hardcode_libdir_separator_CXX=:
16448
16449 # Commands to make compiler produce verbose output that lists
16450 # what "hidden" libraries, object files and flags are used when
16451 # linking a shared library.
16452 #
16453 # There doesn't appear to be a way to prevent this compiler from
16454 # explicitly linking system object files so we need to strip them
16455 # from the output so that they don't get included in the library
16456 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016457 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 +000016458 ;;
16459 *)
16460 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16461 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16462 case $host in
16463 osf3*)
cristy18304f92009-11-22 15:48:26 +000016464 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 +000016465 ;;
16466 *)
cristy18304f92009-11-22 15:48:26 +000016467 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 +000016468 ;;
16469 esac
16470
16471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16472 hardcode_libdir_separator_CXX=:
16473
16474 # Commands to make compiler produce verbose output that lists
16475 # what "hidden" libraries, object files and flags are used when
16476 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016477 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016478
16479 else
16480 # FIXME: insert proper C++ library support
16481 ld_shlibs_CXX=no
16482 fi
16483 ;;
16484 esac
16485 ;;
16486
16487 psos*)
16488 # FIXME: insert proper C++ library support
16489 ld_shlibs_CXX=no
16490 ;;
16491
16492 sunos4*)
16493 case $cc_basename in
16494 CC*)
16495 # Sun C++ 4.x
16496 # FIXME: insert proper C++ library support
16497 ld_shlibs_CXX=no
16498 ;;
16499 lcc*)
16500 # Lucid
16501 # FIXME: insert proper C++ library support
16502 ld_shlibs_CXX=no
16503 ;;
16504 *)
16505 # FIXME: insert proper C++ library support
16506 ld_shlibs_CXX=no
16507 ;;
16508 esac
16509 ;;
16510
16511 solaris*)
16512 case $cc_basename in
16513 CC*)
16514 # Sun C++ 4.2, 5.x and Centerline C++
16515 archive_cmds_need_lc_CXX=yes
16516 no_undefined_flag_CXX=' -zdefs'
16517 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16518 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16519 $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'
16520
16521 hardcode_libdir_flag_spec_CXX='-R$libdir'
16522 hardcode_shlibpath_var_CXX=no
16523 case $host_os in
16524 solaris2.[0-5] | solaris2.[0-5].*) ;;
16525 *)
16526 # The compiler driver will combine and reorder linker options,
16527 # but understands `-z linker_flag'.
16528 # Supported since Solaris 2.6 (maybe 2.5.1?)
16529 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16530 ;;
16531 esac
16532 link_all_deplibs_CXX=yes
16533
cristy18304f92009-11-22 15:48:26 +000016534 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016535
16536 # Archives containing C++ object files must be created using
16537 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16538 # necessary to make sure instantiated templates are included
16539 # in the archive.
16540 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16541 ;;
16542 gcx*)
16543 # Green Hills C++ Compiler
16544 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16545
16546 # The C++ compiler must be used to create the archive.
16547 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16548 ;;
16549 *)
16550 # GNU C++ compiler with Solaris linker
16551 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16552 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16553 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16554 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16556 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16557
16558 # Commands to make compiler produce verbose output that lists
16559 # what "hidden" libraries, object files and flags are used when
16560 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016562 else
16563 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16564 # platform.
16565 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16566 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16567 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16568
16569 # Commands to make compiler produce verbose output that lists
16570 # what "hidden" libraries, object files and flags are used when
16571 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016572 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016573 fi
16574
16575 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16576 case $host_os in
16577 solaris2.[0-5] | solaris2.[0-5].*) ;;
16578 *)
16579 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16580 ;;
16581 esac
16582 fi
16583 ;;
16584 esac
16585 ;;
16586
16587 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16588 no_undefined_flag_CXX='${wl}-z,text'
16589 archive_cmds_need_lc_CXX=no
16590 hardcode_shlibpath_var_CXX=no
16591 runpath_var='LD_RUN_PATH'
16592
16593 case $cc_basename in
16594 CC*)
16595 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 ;;
16598 *)
16599 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16601 ;;
16602 esac
16603 ;;
16604
16605 sysv5* | sco3.2v5* | sco5v6*)
16606 # Note: We can NOT use -z defs as we might desire, because we do not
16607 # link with -lc, and that would cause any symbols used from libc to
16608 # always be unresolved, which means just about no library would
16609 # ever link correctly. If we're not using GNU ld we use -z text
16610 # though, which does catch some bad symbols but isn't as heavy-handed
16611 # as -z defs.
16612 no_undefined_flag_CXX='${wl}-z,text'
16613 allow_undefined_flag_CXX='${wl}-z,nodefs'
16614 archive_cmds_need_lc_CXX=no
16615 hardcode_shlibpath_var_CXX=no
16616 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16617 hardcode_libdir_separator_CXX=':'
16618 link_all_deplibs_CXX=yes
16619 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16620 runpath_var='LD_RUN_PATH'
16621
16622 case $cc_basename in
16623 CC*)
16624 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16625 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16626 ;;
16627 *)
16628 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16629 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16630 ;;
16631 esac
16632 ;;
16633
16634 tandem*)
16635 case $cc_basename in
16636 NCC*)
16637 # NonStop-UX NCC 3.20
16638 # FIXME: insert proper C++ library support
16639 ld_shlibs_CXX=no
16640 ;;
16641 *)
16642 # FIXME: insert proper C++ library support
16643 ld_shlibs_CXX=no
16644 ;;
16645 esac
16646 ;;
16647
16648 vxworks*)
16649 # FIXME: insert proper C++ library support
16650 ld_shlibs_CXX=no
16651 ;;
16652
16653 *)
16654 # FIXME: insert proper C++ library support
16655 ld_shlibs_CXX=no
16656 ;;
16657 esac
16658
cristy8b350f62009-11-15 23:12:43 +000016659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016660$as_echo "$ld_shlibs_CXX" >&6; }
16661 test "$ld_shlibs_CXX" = no && can_build_shared=no
16662
16663 GCC_CXX="$GXX"
16664 LD_CXX="$LD"
16665
16666 ## CAVEAT EMPTOR:
16667 ## There is no encapsulation within the following macros, do not change
16668 ## the running order or otherwise move them around unless you know exactly
16669 ## what you are doing...
16670 # Dependencies to place before and after the object being linked:
16671predep_objects_CXX=
16672postdep_objects_CXX=
16673predeps_CXX=
16674postdeps_CXX=
16675compiler_lib_search_path_CXX=
16676
16677cat > conftest.$ac_ext <<_LT_EOF
16678class Foo
16679{
16680public:
16681 Foo (void) { a = 0; }
16682private:
16683 int a;
16684};
16685_LT_EOF
16686
cristy8b350f62009-11-15 23:12:43 +000016687if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016688 (eval $ac_compile) 2>&5
16689 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16691 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000016692 # Parse the compiler output and extract the necessary
16693 # objects, libraries and library flags.
16694
16695 # Sentinel used to keep track of whether or not we are before
16696 # the conftest object file.
16697 pre_test_object_deps_done=no
16698
16699 for p in `eval "$output_verbose_link_cmd"`; do
16700 case $p in
16701
16702 -L* | -R* | -l*)
16703 # Some compilers place space between "-{L,R}" and the path.
16704 # Remove the space.
16705 if test $p = "-L" ||
16706 test $p = "-R"; then
16707 prev=$p
16708 continue
16709 else
16710 prev=
16711 fi
16712
16713 if test "$pre_test_object_deps_done" = no; then
16714 case $p in
16715 -L* | -R*)
16716 # Internal compiler library paths should come after those
16717 # provided the user. The postdeps already come after the
16718 # user supplied libs so there is no need to process them.
16719 if test -z "$compiler_lib_search_path_CXX"; then
16720 compiler_lib_search_path_CXX="${prev}${p}"
16721 else
16722 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16723 fi
16724 ;;
16725 # The "-l" case would never come before the object being
16726 # linked, so don't bother handling this case.
16727 esac
16728 else
16729 if test -z "$postdeps_CXX"; then
16730 postdeps_CXX="${prev}${p}"
16731 else
16732 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16733 fi
16734 fi
16735 ;;
16736
16737 *.$objext)
16738 # This assumes that the test object file only shows up
16739 # once in the compiler output.
16740 if test "$p" = "conftest.$objext"; then
16741 pre_test_object_deps_done=yes
16742 continue
16743 fi
16744
16745 if test "$pre_test_object_deps_done" = no; then
16746 if test -z "$predep_objects_CXX"; then
16747 predep_objects_CXX="$p"
16748 else
16749 predep_objects_CXX="$predep_objects_CXX $p"
16750 fi
16751 else
16752 if test -z "$postdep_objects_CXX"; then
16753 postdep_objects_CXX="$p"
16754 else
16755 postdep_objects_CXX="$postdep_objects_CXX $p"
16756 fi
16757 fi
16758 ;;
16759
16760 *) ;; # Ignore the rest.
16761
16762 esac
16763 done
16764
16765 # Clean up.
16766 rm -f a.out a.exe
16767else
16768 echo "libtool.m4: error: problem compiling CXX test program"
16769fi
16770
16771$RM -f confest.$objext
16772
16773# PORTME: override above test on systems where it is broken
16774case $host_os in
16775interix[3-9]*)
16776 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16777 # hack all around it, let's just trust "g++" to DTRT.
16778 predep_objects_CXX=
16779 postdep_objects_CXX=
16780 postdeps_CXX=
16781 ;;
16782
16783linux*)
16784 case `$CC -V 2>&1 | sed 5q` in
16785 *Sun\ C*)
16786 # Sun C++ 5.9
16787
16788 # The more standards-conforming stlport4 library is
16789 # incompatible with the Cstd library. Avoid specifying
16790 # it if it's in CXXFLAGS. Ignore libCrun as
16791 # -library=stlport4 depends on it.
16792 case " $CXX $CXXFLAGS " in
16793 *" -library=stlport4 "*)
16794 solaris_use_stlport4=yes
16795 ;;
16796 esac
16797
16798 if test "$solaris_use_stlport4" != yes; then
16799 postdeps_CXX='-library=Cstd -library=Crun'
16800 fi
16801 ;;
16802 esac
16803 ;;
16804
16805solaris*)
16806 case $cc_basename in
16807 CC*)
16808 # The more standards-conforming stlport4 library is
16809 # incompatible with the Cstd library. Avoid specifying
16810 # it if it's in CXXFLAGS. Ignore libCrun as
16811 # -library=stlport4 depends on it.
16812 case " $CXX $CXXFLAGS " in
16813 *" -library=stlport4 "*)
16814 solaris_use_stlport4=yes
16815 ;;
16816 esac
16817
16818 # Adding this requires a known-good setup of shared libraries for
16819 # Sun compiler versions before 5.6, else PIC objects from an old
16820 # archive will be linked into the output, leading to subtle bugs.
16821 if test "$solaris_use_stlport4" != yes; then
16822 postdeps_CXX='-library=Cstd -library=Crun'
16823 fi
16824 ;;
16825 esac
16826 ;;
16827esac
16828
16829
16830case " $postdeps_CXX " in
16831*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16832esac
16833 compiler_lib_search_dirs_CXX=
16834if test -n "${compiler_lib_search_path_CXX}"; then
16835 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16836fi
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
16863
16864
16865
16866
16867
16868 lt_prog_compiler_wl_CXX=
16869lt_prog_compiler_pic_CXX=
16870lt_prog_compiler_static_CXX=
16871
cristy8b350f62009-11-15 23:12:43 +000016872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016873$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16874
16875 # C++ specific cases for pic, static, wl, etc.
16876 if test "$GXX" = yes; then
16877 lt_prog_compiler_wl_CXX='-Wl,'
16878 lt_prog_compiler_static_CXX='-static'
16879
16880 case $host_os in
16881 aix*)
16882 # All AIX code is PIC.
16883 if test "$host_cpu" = ia64; then
16884 # AIX 5 now supports IA64 processor
16885 lt_prog_compiler_static_CXX='-Bstatic'
16886 fi
16887 ;;
16888
16889 amigaos*)
16890 case $host_cpu in
16891 powerpc)
16892 # see comment about AmigaOS4 .so support
16893 lt_prog_compiler_pic_CXX='-fPIC'
16894 ;;
16895 m68k)
16896 # FIXME: we need at least 68020 code to build shared libraries, but
16897 # adding the `-m68020' flag to GCC prevents building anything better,
16898 # like `-m68040'.
16899 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16900 ;;
16901 esac
16902 ;;
16903
16904 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16905 # PIC is the default for these OSes.
16906 ;;
16907 mingw* | cygwin* | os2* | pw32* | cegcc*)
16908 # This hack is so that the source file can tell whether it is being
16909 # built for inclusion in a dll (and should export symbols for example).
16910 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16911 # (--disable-auto-import) libraries
16912 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16913 ;;
16914 darwin* | rhapsody*)
16915 # PIC is the default on this platform
16916 # Common symbols not allowed in MH_DYLIB files
16917 lt_prog_compiler_pic_CXX='-fno-common'
16918 ;;
16919 *djgpp*)
16920 # DJGPP does not support shared libraries at all
16921 lt_prog_compiler_pic_CXX=
16922 ;;
16923 interix[3-9]*)
16924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16925 # Instead, we relocate shared libraries at runtime.
16926 ;;
16927 sysv4*MP*)
16928 if test -d /usr/nec; then
16929 lt_prog_compiler_pic_CXX=-Kconform_pic
16930 fi
16931 ;;
16932 hpux*)
16933 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16934 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16935 # sets the default TLS model and affects inlining.
16936 case $host_cpu in
16937 hppa*64*)
16938 ;;
16939 *)
16940 lt_prog_compiler_pic_CXX='-fPIC'
16941 ;;
16942 esac
16943 ;;
16944 *qnx* | *nto*)
16945 # QNX uses GNU C++, but need to define -shared option too, otherwise
16946 # it will coredump.
16947 lt_prog_compiler_pic_CXX='-fPIC -shared'
16948 ;;
16949 *)
16950 lt_prog_compiler_pic_CXX='-fPIC'
16951 ;;
16952 esac
16953 else
16954 case $host_os in
16955 aix[4-9]*)
16956 # All AIX code is PIC.
16957 if test "$host_cpu" = ia64; then
16958 # AIX 5 now supports IA64 processor
16959 lt_prog_compiler_static_CXX='-Bstatic'
16960 else
16961 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16962 fi
16963 ;;
16964 chorus*)
16965 case $cc_basename in
16966 cxch68*)
16967 # Green Hills C++ Compiler
16968 # _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"
16969 ;;
16970 esac
16971 ;;
16972 dgux*)
16973 case $cc_basename in
16974 ec++*)
16975 lt_prog_compiler_pic_CXX='-KPIC'
16976 ;;
16977 ghcx*)
16978 # Green Hills C++ Compiler
16979 lt_prog_compiler_pic_CXX='-pic'
16980 ;;
16981 *)
16982 ;;
16983 esac
16984 ;;
16985 freebsd* | dragonfly*)
16986 # FreeBSD uses GNU C++
16987 ;;
16988 hpux9* | hpux10* | hpux11*)
16989 case $cc_basename in
16990 CC*)
16991 lt_prog_compiler_wl_CXX='-Wl,'
16992 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16993 if test "$host_cpu" != ia64; then
16994 lt_prog_compiler_pic_CXX='+Z'
16995 fi
16996 ;;
16997 aCC*)
16998 lt_prog_compiler_wl_CXX='-Wl,'
16999 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17000 case $host_cpu in
17001 hppa*64*|ia64*)
17002 # +Z the default
17003 ;;
17004 *)
17005 lt_prog_compiler_pic_CXX='+Z'
17006 ;;
17007 esac
17008 ;;
17009 *)
17010 ;;
17011 esac
17012 ;;
17013 interix*)
17014 # This is c89, which is MS Visual C++ (no shared libs)
17015 # Anyone wants to do a port?
17016 ;;
17017 irix5* | irix6* | nonstopux*)
17018 case $cc_basename in
17019 CC*)
17020 lt_prog_compiler_wl_CXX='-Wl,'
17021 lt_prog_compiler_static_CXX='-non_shared'
17022 # CC pic flag -KPIC is the default.
17023 ;;
17024 *)
17025 ;;
17026 esac
17027 ;;
cristy18304f92009-11-22 15:48:26 +000017028 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017029 case $cc_basename in
17030 KCC*)
17031 # KAI C++ Compiler
17032 lt_prog_compiler_wl_CXX='--backend -Wl,'
17033 lt_prog_compiler_pic_CXX='-fPIC'
17034 ;;
17035 ecpc* )
17036 # old Intel C++ for x86_64 which still supported -KPIC.
17037 lt_prog_compiler_wl_CXX='-Wl,'
17038 lt_prog_compiler_pic_CXX='-KPIC'
17039 lt_prog_compiler_static_CXX='-static'
17040 ;;
17041 icpc* )
17042 # Intel C++, used to be incompatible with GCC.
17043 # ICC 10 doesn't accept -KPIC any more.
17044 lt_prog_compiler_wl_CXX='-Wl,'
17045 lt_prog_compiler_pic_CXX='-fPIC'
17046 lt_prog_compiler_static_CXX='-static'
17047 ;;
17048 pgCC* | pgcpp*)
17049 # Portland Group C++ compiler
17050 lt_prog_compiler_wl_CXX='-Wl,'
17051 lt_prog_compiler_pic_CXX='-fpic'
17052 lt_prog_compiler_static_CXX='-Bstatic'
17053 ;;
17054 cxx*)
17055 # Compaq C++
17056 # Make sure the PIC flag is empty. It appears that all Alpha
17057 # Linux and Compaq Tru64 Unix objects are PIC.
17058 lt_prog_compiler_pic_CXX=
17059 lt_prog_compiler_static_CXX='-non_shared'
17060 ;;
cristy18304f92009-11-22 15:48:26 +000017061 xlc* | xlC*)
17062 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017063 lt_prog_compiler_wl_CXX='-Wl,'
17064 lt_prog_compiler_pic_CXX='-qpic'
17065 lt_prog_compiler_static_CXX='-qstaticlink'
17066 ;;
17067 *)
17068 case `$CC -V 2>&1 | sed 5q` in
17069 *Sun\ C*)
17070 # Sun C++ 5.9
17071 lt_prog_compiler_pic_CXX='-KPIC'
17072 lt_prog_compiler_static_CXX='-Bstatic'
17073 lt_prog_compiler_wl_CXX='-Qoption ld '
17074 ;;
17075 esac
17076 ;;
17077 esac
17078 ;;
17079 lynxos*)
17080 ;;
17081 m88k*)
17082 ;;
17083 mvs*)
17084 case $cc_basename in
17085 cxx*)
17086 lt_prog_compiler_pic_CXX='-W c,exportall'
17087 ;;
17088 *)
17089 ;;
17090 esac
17091 ;;
17092 netbsd*)
17093 ;;
17094 *qnx* | *nto*)
17095 # QNX uses GNU C++, but need to define -shared option too, otherwise
17096 # it will coredump.
17097 lt_prog_compiler_pic_CXX='-fPIC -shared'
17098 ;;
17099 osf3* | osf4* | osf5*)
17100 case $cc_basename in
17101 KCC*)
17102 lt_prog_compiler_wl_CXX='--backend -Wl,'
17103 ;;
17104 RCC*)
17105 # Rational C++ 2.4.1
17106 lt_prog_compiler_pic_CXX='-pic'
17107 ;;
17108 cxx*)
17109 # Digital/Compaq C++
17110 lt_prog_compiler_wl_CXX='-Wl,'
17111 # Make sure the PIC flag is empty. It appears that all Alpha
17112 # Linux and Compaq Tru64 Unix objects are PIC.
17113 lt_prog_compiler_pic_CXX=
17114 lt_prog_compiler_static_CXX='-non_shared'
17115 ;;
17116 *)
17117 ;;
17118 esac
17119 ;;
17120 psos*)
17121 ;;
17122 solaris*)
17123 case $cc_basename in
17124 CC*)
17125 # Sun C++ 4.2, 5.x and Centerline C++
17126 lt_prog_compiler_pic_CXX='-KPIC'
17127 lt_prog_compiler_static_CXX='-Bstatic'
17128 lt_prog_compiler_wl_CXX='-Qoption ld '
17129 ;;
17130 gcx*)
17131 # Green Hills C++ Compiler
17132 lt_prog_compiler_pic_CXX='-PIC'
17133 ;;
17134 *)
17135 ;;
17136 esac
17137 ;;
17138 sunos4*)
17139 case $cc_basename in
17140 CC*)
17141 # Sun C++ 4.x
17142 lt_prog_compiler_pic_CXX='-pic'
17143 lt_prog_compiler_static_CXX='-Bstatic'
17144 ;;
17145 lcc*)
17146 # Lucid
17147 lt_prog_compiler_pic_CXX='-pic'
17148 ;;
17149 *)
17150 ;;
17151 esac
17152 ;;
17153 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17154 case $cc_basename in
17155 CC*)
17156 lt_prog_compiler_wl_CXX='-Wl,'
17157 lt_prog_compiler_pic_CXX='-KPIC'
17158 lt_prog_compiler_static_CXX='-Bstatic'
17159 ;;
17160 esac
17161 ;;
17162 tandem*)
17163 case $cc_basename in
17164 NCC*)
17165 # NonStop-UX NCC 3.20
17166 lt_prog_compiler_pic_CXX='-KPIC'
17167 ;;
17168 *)
17169 ;;
17170 esac
17171 ;;
17172 vxworks*)
17173 ;;
17174 *)
17175 lt_prog_compiler_can_build_shared_CXX=no
17176 ;;
17177 esac
17178 fi
17179
17180case $host_os in
17181 # For platforms which do not support PIC, -DPIC is meaningless:
17182 *djgpp*)
17183 lt_prog_compiler_pic_CXX=
17184 ;;
17185 *)
17186 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17187 ;;
17188esac
cristy8b350f62009-11-15 23:12:43 +000017189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017190$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17191
17192
17193
17194#
17195# Check to make sure the PIC flag actually works.
17196#
17197if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017198 { $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 +000017199$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017200if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017201 $as_echo_n "(cached) " >&6
17202else
17203 lt_cv_prog_compiler_pic_works_CXX=no
17204 ac_outfile=conftest.$ac_objext
17205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17206 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17207 # Insert the option either (1) after the last *FLAGS variable, or
17208 # (2) before a word containing "conftest.", or (3) at the end.
17209 # Note that $ac_compile itself does not contain backslashes and begins
17210 # with a dollar sign (not a hyphen), so the echo should work correctly.
17211 # The option is referenced via a variable to avoid confusing sed.
17212 lt_compile=`echo "$ac_compile" | $SED \
17213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17215 -e 's:$: $lt_compiler_flag:'`
cristybab87c32010-02-09 20:54:22 +000017216 (eval echo "\"\$as_me:17216: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017217 (eval "$lt_compile" 2>conftest.err)
17218 ac_status=$?
17219 cat conftest.err >&5
cristybab87c32010-02-09 20:54:22 +000017220 echo "$as_me:17220: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017221 if (exit $ac_status) && test -s "$ac_outfile"; then
17222 # The compiler can only warn and ignore the option if not recognized
17223 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017224 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17227 lt_cv_prog_compiler_pic_works_CXX=yes
17228 fi
17229 fi
17230 $RM conftest*
17231
17232fi
cristy8b350f62009-11-15 23:12:43 +000017233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017234$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17235
17236if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17237 case $lt_prog_compiler_pic_CXX in
17238 "" | " "*) ;;
17239 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17240 esac
17241else
17242 lt_prog_compiler_pic_CXX=
17243 lt_prog_compiler_can_build_shared_CXX=no
17244fi
17245
17246fi
17247
17248
17249
17250#
17251# Check to make sure the static flag actually works.
17252#
17253wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017255$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017256if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017257 $as_echo_n "(cached) " >&6
17258else
17259 lt_cv_prog_compiler_static_works_CXX=no
17260 save_LDFLAGS="$LDFLAGS"
17261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17264 # The linker can only warn and ignore the option if not recognized
17265 # So say no if there are warnings
17266 if test -s conftest.err; then
17267 # Append any errors to the config.log.
17268 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017269 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17271 if diff conftest.exp conftest.er2 >/dev/null; then
17272 lt_cv_prog_compiler_static_works_CXX=yes
17273 fi
17274 else
17275 lt_cv_prog_compiler_static_works_CXX=yes
17276 fi
17277 fi
17278 $RM -r conftest*
17279 LDFLAGS="$save_LDFLAGS"
17280
17281fi
cristy8b350f62009-11-15 23:12:43 +000017282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017283$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17284
17285if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17286 :
17287else
17288 lt_prog_compiler_static_CXX=
17289fi
17290
17291
17292
17293
cristy8b350f62009-11-15 23:12:43 +000017294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017295$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017296if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017297 $as_echo_n "(cached) " >&6
17298else
17299 lt_cv_prog_compiler_c_o_CXX=no
17300 $RM -r conftest 2>/dev/null
17301 mkdir conftest
17302 cd conftest
17303 mkdir out
17304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17305
17306 lt_compiler_flag="-o out/conftest2.$ac_objext"
17307 # Insert the option either (1) after the last *FLAGS variable, or
17308 # (2) before a word containing "conftest.", or (3) at the end.
17309 # Note that $ac_compile itself does not contain backslashes and begins
17310 # with a dollar sign (not a hyphen), so the echo should work correctly.
17311 lt_compile=`echo "$ac_compile" | $SED \
17312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17314 -e 's:$: $lt_compiler_flag:'`
cristybab87c32010-02-09 20:54:22 +000017315 (eval echo "\"\$as_me:17315: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017316 (eval "$lt_compile" 2>out/conftest.err)
17317 ac_status=$?
17318 cat out/conftest.err >&5
cristybab87c32010-02-09 20:54:22 +000017319 echo "$as_me:17319: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17321 then
17322 # The compiler can only warn and ignore the option if not recognized
17323 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017324 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17327 lt_cv_prog_compiler_c_o_CXX=yes
17328 fi
17329 fi
17330 chmod u+w . 2>&5
17331 $RM conftest*
17332 # SGI C++ compiler will create directory out/ii_files/ for
17333 # template instantiation
17334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17335 $RM out/* && rmdir out
17336 cd ..
17337 $RM -r conftest
17338 $RM conftest*
17339
17340fi
cristy8b350f62009-11-15 23:12:43 +000017341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017342$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17343
17344
17345
cristy8b350f62009-11-15 23:12:43 +000017346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017347$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017348if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017349 $as_echo_n "(cached) " >&6
17350else
17351 lt_cv_prog_compiler_c_o_CXX=no
17352 $RM -r conftest 2>/dev/null
17353 mkdir conftest
17354 cd conftest
17355 mkdir out
17356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17357
17358 lt_compiler_flag="-o out/conftest2.$ac_objext"
17359 # Insert the option either (1) after the last *FLAGS variable, or
17360 # (2) before a word containing "conftest.", or (3) at the end.
17361 # Note that $ac_compile itself does not contain backslashes and begins
17362 # with a dollar sign (not a hyphen), so the echo should work correctly.
17363 lt_compile=`echo "$ac_compile" | $SED \
17364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17366 -e 's:$: $lt_compiler_flag:'`
cristybab87c32010-02-09 20:54:22 +000017367 (eval echo "\"\$as_me:17367: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017368 (eval "$lt_compile" 2>out/conftest.err)
17369 ac_status=$?
17370 cat out/conftest.err >&5
cristybab87c32010-02-09 20:54:22 +000017371 echo "$as_me:17371: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17373 then
17374 # The compiler can only warn and ignore the option if not recognized
17375 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017376 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17379 lt_cv_prog_compiler_c_o_CXX=yes
17380 fi
17381 fi
17382 chmod u+w . 2>&5
17383 $RM conftest*
17384 # SGI C++ compiler will create directory out/ii_files/ for
17385 # template instantiation
17386 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17387 $RM out/* && rmdir out
17388 cd ..
17389 $RM -r conftest
17390 $RM conftest*
17391
17392fi
cristy8b350f62009-11-15 23:12:43 +000017393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017394$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17395
17396
17397
17398
17399hard_links="nottested"
17400if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17401 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017403$as_echo_n "checking if we can lock with hard links... " >&6; }
17404 hard_links=yes
17405 $RM conftest*
17406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17407 touch conftest.a
17408 ln conftest.a conftest.b 2>&5 || hard_links=no
17409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017411$as_echo "$hard_links" >&6; }
17412 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017413 { $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 +000017414$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17415 need_locks=warn
17416 fi
17417else
17418 need_locks=no
17419fi
17420
17421
17422
cristy8b350f62009-11-15 23:12:43 +000017423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017424$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17425
17426 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17427 case $host_os in
17428 aix[4-9]*)
17429 # If we're using GNU nm, then we don't want the "-C" option.
17430 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000017432 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 +000017433 else
17434 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'
17435 fi
17436 ;;
17437 pw32*)
17438 export_symbols_cmds_CXX="$ltdll_cmds"
17439 ;;
17440 cygwin* | mingw* | cegcc*)
17441 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'
17442 ;;
17443 *)
17444 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17445 ;;
17446 esac
17447 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17448
cristy8b350f62009-11-15 23:12:43 +000017449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017450$as_echo "$ld_shlibs_CXX" >&6; }
17451test "$ld_shlibs_CXX" = no && can_build_shared=no
17452
17453with_gnu_ld_CXX=$with_gnu_ld
17454
17455
17456
17457
17458
17459
17460#
17461# Do we need to explicitly link libc?
17462#
17463case "x$archive_cmds_need_lc_CXX" in
17464x|xyes)
17465 # Assume -lc should be added
17466 archive_cmds_need_lc_CXX=yes
17467
17468 if test "$enable_shared" = yes && test "$GCC" = yes; then
17469 case $archive_cmds_CXX in
17470 *'~'*)
17471 # FIXME: we may have to deal with multi-command sequences.
17472 ;;
17473 '$CC '*)
17474 # Test whether the compiler implicitly links with -lc since on some
17475 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17476 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017478$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000017479 $RM conftest*
17480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017481
cristy18304f92009-11-22 15:48:26 +000017482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017483 (eval $ac_compile) 2>&5
17484 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000017487 soname=conftest
17488 lib=conftest
17489 libobjs=conftest.$ac_objext
17490 deplibs=
17491 wl=$lt_prog_compiler_wl_CXX
17492 pic_flag=$lt_prog_compiler_pic_CXX
17493 compiler_flags=-v
17494 linker_flags=-v
17495 verstring=
17496 output_objdir=.
17497 libname=conftest
17498 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17499 allow_undefined_flag_CXX=
17500 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 +000017501 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17502 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17504 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000017505 then
17506 archive_cmds_need_lc_CXX=no
17507 else
17508 archive_cmds_need_lc_CXX=yes
17509 fi
17510 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17511 else
17512 cat conftest.err 1>&5
17513 fi
17514 $RM conftest*
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17516$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000017517 ;;
17518 esac
17519 fi
17520 ;;
17521esac
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
17580
17581
17582
17583
17584
17585
cristy8b350f62009-11-15 23:12:43 +000017586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000017587$as_echo_n "checking dynamic linker characteristics... " >&6; }
17588
17589library_names_spec=
17590libname_spec='lib$name'
17591soname_spec=
17592shrext_cmds=".so"
17593postinstall_cmds=
17594postuninstall_cmds=
17595finish_cmds=
17596finish_eval=
17597shlibpath_var=
17598shlibpath_overrides_runpath=unknown
17599version_type=none
17600dynamic_linker="$host_os ld.so"
17601sys_lib_dlsearch_path_spec="/lib /usr/lib"
17602need_lib_prefix=unknown
17603hardcode_into_libs=no
17604
17605# when you set need_version to no, make sure it does not cause -set_version
17606# flags to be left without arguments
17607need_version=unknown
17608
17609case $host_os in
17610aix3*)
17611 version_type=linux
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17613 shlibpath_var=LIBPATH
17614
17615 # AIX 3 has no versioning support, so we append a major version to the name.
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 ;;
17618
17619aix[4-9]*)
17620 version_type=linux
17621 need_lib_prefix=no
17622 need_version=no
17623 hardcode_into_libs=yes
17624 if test "$host_cpu" = ia64; then
17625 # AIX 5 supports IA64
17626 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 else
17629 # With GCC up to 2.95.x, collect2 would create an import file
17630 # for dependence libraries. The import file would start with
17631 # the line `#! .'. This would cause the generated library to
17632 # depend on `.', always an invalid library. This was fixed in
17633 # development snapshots of GCC prior to 3.0.
17634 case $host_os in
17635 aix4 | aix4.[01] | aix4.[01].*)
17636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17637 echo ' yes '
17638 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17639 :
17640 else
17641 can_build_shared=no
17642 fi
17643 ;;
17644 esac
17645 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17646 # soname into executable. Probably we can add versioning support to
17647 # collect2, so additional links can be useful in future.
17648 if test "$aix_use_runtimelinking" = yes; then
17649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17650 # instead of lib<name>.a to let people know that these are not
17651 # typical AIX shared libraries.
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17653 else
17654 # We preserve .a as extension for shared libraries through AIX4.2
17655 # and later when we are not doing run time linking.
17656 library_names_spec='${libname}${release}.a $libname.a'
17657 soname_spec='${libname}${release}${shared_ext}$major'
17658 fi
17659 shlibpath_var=LIBPATH
17660 fi
17661 ;;
17662
17663amigaos*)
17664 case $host_cpu in
17665 powerpc)
17666 # Since July 2007 AmigaOS4 officially supports .so libraries.
17667 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669 ;;
17670 m68k)
17671 library_names_spec='$libname.ixlibrary $libname.a'
17672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000017673 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 +000017674 ;;
17675 esac
17676 ;;
17677
17678beos*)
17679 library_names_spec='${libname}${shared_ext}'
17680 dynamic_linker="$host_os ld.so"
17681 shlibpath_var=LIBRARY_PATH
17682 ;;
17683
17684bsdi[45]*)
17685 version_type=linux
17686 need_version=no
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17690 shlibpath_var=LD_LIBRARY_PATH
17691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17693 # the default ld.so.conf also contains /usr/contrib/lib and
17694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17695 # libtool to hard-code these into programs
17696 ;;
17697
17698cygwin* | mingw* | pw32* | cegcc*)
17699 version_type=windows
17700 shrext_cmds=".dll"
17701 need_version=no
17702 need_lib_prefix=no
17703
17704 case $GCC,$host_os in
17705 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17706 library_names_spec='$libname.dll.a'
17707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17708 postinstall_cmds='base_file=`basename \${file}`~
17709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17710 dldir=$destdir/`dirname \$dlpath`~
17711 test -d \$dldir || mkdir -p \$dldir~
17712 $install_prog $dir/$dlname \$dldir/$dlname~
17713 chmod a+x \$dldir/$dlname~
17714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17716 fi'
17717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17718 dlpath=$dir/\$dldll~
17719 $RM \$dlpath'
17720 shlibpath_overrides_runpath=yes
17721
17722 case $host_os in
17723 cygwin*)
17724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000017727 ;;
17728 mingw* | cegcc*)
17729 # MinGW DLLs use traditional 'lib' prefix
17730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017731 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17732 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17733 # It is most probably a Windows format PATH printed by
17734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17735 # path with ; separators, and with drive letters. We can handle the
17736 # drive letters (cygwin fileutils understands them), so leave them,
17737 # especially as we might pass files found there to a mingw objdump,
17738 # which wouldn't understand a cygwinified path. Ahh.
17739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17740 else
17741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17742 fi
cristy3ed852e2009-09-05 21:47:34 +000017743 ;;
17744 pw32*)
17745 # pw32 DLLs use 'pw' prefix rather than 'lib'
17746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17747 ;;
17748 esac
17749 ;;
17750
17751 *)
17752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17753 ;;
17754 esac
17755 dynamic_linker='Win32 ld.exe'
17756 # FIXME: first we should search . and the directory the executable is in
17757 shlibpath_var=PATH
17758 ;;
17759
17760darwin* | rhapsody*)
17761 dynamic_linker="$host_os dyld"
17762 version_type=darwin
17763 need_lib_prefix=no
17764 need_version=no
17765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17766 soname_spec='${libname}${release}${major}$shared_ext'
17767 shlibpath_overrides_runpath=yes
17768 shlibpath_var=DYLD_LIBRARY_PATH
17769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17770
17771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17772 ;;
17773
17774dgux*)
17775 version_type=linux
17776 need_lib_prefix=no
17777 need_version=no
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17779 soname_spec='${libname}${release}${shared_ext}$major'
17780 shlibpath_var=LD_LIBRARY_PATH
17781 ;;
17782
17783freebsd1*)
17784 dynamic_linker=no
17785 ;;
17786
17787freebsd* | dragonfly*)
17788 # DragonFly does not have aout. When/if they implement a new
17789 # versioning mechanism, adjust this.
17790 if test -x /usr/bin/objformat; then
17791 objformat=`/usr/bin/objformat`
17792 else
17793 case $host_os in
17794 freebsd[123]*) objformat=aout ;;
17795 *) objformat=elf ;;
17796 esac
17797 fi
17798 version_type=freebsd-$objformat
17799 case $version_type in
17800 freebsd-elf*)
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17802 need_version=no
17803 need_lib_prefix=no
17804 ;;
17805 freebsd-*)
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17807 need_version=yes
17808 ;;
17809 esac
17810 shlibpath_var=LD_LIBRARY_PATH
17811 case $host_os in
17812 freebsd2*)
17813 shlibpath_overrides_runpath=yes
17814 ;;
17815 freebsd3.[01]* | freebsdelf3.[01]*)
17816 shlibpath_overrides_runpath=yes
17817 hardcode_into_libs=yes
17818 ;;
17819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17821 shlibpath_overrides_runpath=no
17822 hardcode_into_libs=yes
17823 ;;
17824 *) # from 4.6 on, and DragonFly
17825 shlibpath_overrides_runpath=yes
17826 hardcode_into_libs=yes
17827 ;;
17828 esac
17829 ;;
17830
17831gnu*)
17832 version_type=linux
17833 need_lib_prefix=no
17834 need_version=no
17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17836 soname_spec='${libname}${release}${shared_ext}$major'
17837 shlibpath_var=LD_LIBRARY_PATH
17838 hardcode_into_libs=yes
17839 ;;
17840
17841hpux9* | hpux10* | hpux11*)
17842 # Give a soname corresponding to the major version so that dld.sl refuses to
17843 # link against other versions.
17844 version_type=sunos
17845 need_lib_prefix=no
17846 need_version=no
17847 case $host_cpu in
17848 ia64*)
17849 shrext_cmds='.so'
17850 hardcode_into_libs=yes
17851 dynamic_linker="$host_os dld.so"
17852 shlibpath_var=LD_LIBRARY_PATH
17853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 if test "X$HPUX_IA64_MODE" = X32; then
17857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17858 else
17859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17860 fi
17861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17862 ;;
17863 hppa*64*)
17864 shrext_cmds='.sl'
17865 hardcode_into_libs=yes
17866 dynamic_linker="$host_os dld.sl"
17867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870 soname_spec='${libname}${release}${shared_ext}$major'
17871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17873 ;;
17874 *)
17875 shrext_cmds='.sl'
17876 dynamic_linker="$host_os dld.sl"
17877 shlibpath_var=SHLIB_PATH
17878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880 soname_spec='${libname}${release}${shared_ext}$major'
17881 ;;
17882 esac
cristy18304f92009-11-22 15:48:26 +000017883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017884 postinstall_cmds='chmod 555 $lib'
17885 ;;
17886
17887interix[3-9]*)
17888 version_type=linux
17889 need_lib_prefix=no
17890 need_version=no
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17893 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17894 shlibpath_var=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath=no
17896 hardcode_into_libs=yes
17897 ;;
17898
17899irix5* | irix6* | nonstopux*)
17900 case $host_os in
17901 nonstopux*) version_type=nonstopux ;;
17902 *)
17903 if test "$lt_cv_prog_gnu_ld" = yes; then
17904 version_type=linux
17905 else
17906 version_type=irix
17907 fi ;;
17908 esac
17909 need_lib_prefix=no
17910 need_version=no
17911 soname_spec='${libname}${release}${shared_ext}$major'
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17913 case $host_os in
17914 irix5* | nonstopux*)
17915 libsuff= shlibsuff=
17916 ;;
17917 *)
17918 case $LD in # libtool.m4 will add one of these switches to LD
17919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17920 libsuff= shlibsuff= libmagic=32-bit;;
17921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17922 libsuff=32 shlibsuff=N32 libmagic=N32;;
17923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17924 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17925 *) libsuff= shlibsuff= libmagic=never-match;;
17926 esac
17927 ;;
17928 esac
17929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17930 shlibpath_overrides_runpath=no
17931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17933 hardcode_into_libs=yes
17934 ;;
17935
17936# No shared lib support for Linux oldld, aout, or coff.
17937linux*oldld* | linux*aout* | linux*coff*)
17938 dynamic_linker=no
17939 ;;
17940
17941# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017942linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017943 version_type=linux
17944 need_lib_prefix=no
17945 need_version=no
17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947 soname_spec='${libname}${release}${shared_ext}$major'
17948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17949 shlibpath_var=LD_LIBRARY_PATH
17950 shlibpath_overrides_runpath=no
17951 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017952 save_LDFLAGS=$LDFLAGS
17953 save_libdir=$libdir
17954 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17955 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017957/* end confdefs.h. */
17958
17959int
17960main ()
17961{
17962
17963 ;
17964 return 0;
17965}
17966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017967if ac_fn_cxx_try_link "$LINENO"; then :
17968 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017969 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017970fi
cristy3ed852e2009-09-05 21:47:34 +000017971fi
cristy8b350f62009-11-15 23:12:43 +000017972rm -f core conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017974 LDFLAGS=$save_LDFLAGS
17975 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017976
17977 # This implies no fast_install, which is unacceptable.
17978 # Some rework will be needed to allow for fast_install
17979 # before this can be enabled.
17980 hardcode_into_libs=yes
17981
cristy679ed8e2009-12-05 02:37:41 +000017982 # Add ABI-specific directories to the system library path.
17983 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17984
cristy3ed852e2009-09-05 21:47:34 +000017985 # Append ld.so.conf contents to the search path
17986 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017987 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 +000017988 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017989 fi
17990
17991 # We used to test for /lib/ld.so.1 and disable shared libraries on
17992 # powerpc, because MkLinux only supported shared libraries with the
17993 # GNU dynamic linker. Since this was broken with cross compilers,
17994 # most powerpc-linux boxes support dynamic linking these days and
17995 # people can always --disable-shared, the test was removed, and we
17996 # assume the GNU/Linux dynamic linker is in use.
17997 dynamic_linker='GNU/Linux ld.so'
17998 ;;
17999
18000netbsd*)
18001 version_type=sunos
18002 need_lib_prefix=no
18003 need_version=no
18004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18007 dynamic_linker='NetBSD (a.out) ld.so'
18008 else
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18010 soname_spec='${libname}${release}${shared_ext}$major'
18011 dynamic_linker='NetBSD ld.elf_so'
18012 fi
18013 shlibpath_var=LD_LIBRARY_PATH
18014 shlibpath_overrides_runpath=yes
18015 hardcode_into_libs=yes
18016 ;;
18017
18018newsos6)
18019 version_type=linux
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021 shlibpath_var=LD_LIBRARY_PATH
18022 shlibpath_overrides_runpath=yes
18023 ;;
18024
18025*nto* | *qnx*)
18026 version_type=qnx
18027 need_lib_prefix=no
18028 need_version=no
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030 soname_spec='${libname}${release}${shared_ext}$major'
18031 shlibpath_var=LD_LIBRARY_PATH
18032 shlibpath_overrides_runpath=no
18033 hardcode_into_libs=yes
18034 dynamic_linker='ldqnx.so'
18035 ;;
18036
18037openbsd*)
18038 version_type=sunos
18039 sys_lib_dlsearch_path_spec="/usr/lib"
18040 need_lib_prefix=no
18041 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18042 case $host_os in
18043 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18044 *) need_version=no ;;
18045 esac
18046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18050 case $host_os in
18051 openbsd2.[89] | openbsd2.[89].*)
18052 shlibpath_overrides_runpath=no
18053 ;;
18054 *)
18055 shlibpath_overrides_runpath=yes
18056 ;;
18057 esac
18058 else
18059 shlibpath_overrides_runpath=yes
18060 fi
18061 ;;
18062
18063os2*)
18064 libname_spec='$name'
18065 shrext_cmds=".dll"
18066 need_lib_prefix=no
18067 library_names_spec='$libname${shared_ext} $libname.a'
18068 dynamic_linker='OS/2 ld.exe'
18069 shlibpath_var=LIBPATH
18070 ;;
18071
18072osf3* | osf4* | osf5*)
18073 version_type=osf
18074 need_lib_prefix=no
18075 need_version=no
18076 soname_spec='${libname}${release}${shared_ext}$major'
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078 shlibpath_var=LD_LIBRARY_PATH
18079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18080 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18081 ;;
18082
18083rdos*)
18084 dynamic_linker=no
18085 ;;
18086
18087solaris*)
18088 version_type=linux
18089 need_lib_prefix=no
18090 need_version=no
18091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18092 soname_spec='${libname}${release}${shared_ext}$major'
18093 shlibpath_var=LD_LIBRARY_PATH
18094 shlibpath_overrides_runpath=yes
18095 hardcode_into_libs=yes
18096 # ldd complains unless libraries are executable
18097 postinstall_cmds='chmod +x $lib'
18098 ;;
18099
18100sunos4*)
18101 version_type=sunos
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18104 shlibpath_var=LD_LIBRARY_PATH
18105 shlibpath_overrides_runpath=yes
18106 if test "$with_gnu_ld" = yes; then
18107 need_lib_prefix=no
18108 fi
18109 need_version=yes
18110 ;;
18111
18112sysv4 | sysv4.3*)
18113 version_type=linux
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 shlibpath_var=LD_LIBRARY_PATH
18117 case $host_vendor in
18118 sni)
18119 shlibpath_overrides_runpath=no
18120 need_lib_prefix=no
18121 runpath_var=LD_RUN_PATH
18122 ;;
18123 siemens)
18124 need_lib_prefix=no
18125 ;;
18126 motorola)
18127 need_lib_prefix=no
18128 need_version=no
18129 shlibpath_overrides_runpath=no
18130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18131 ;;
18132 esac
18133 ;;
18134
18135sysv4*MP*)
18136 if test -d /usr/nec ;then
18137 version_type=linux
18138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18139 soname_spec='$libname${shared_ext}.$major'
18140 shlibpath_var=LD_LIBRARY_PATH
18141 fi
18142 ;;
18143
18144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18145 version_type=freebsd-elf
18146 need_lib_prefix=no
18147 need_version=no
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 shlibpath_var=LD_LIBRARY_PATH
18151 shlibpath_overrides_runpath=yes
18152 hardcode_into_libs=yes
18153 if test "$with_gnu_ld" = yes; then
18154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18155 else
18156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18157 case $host_os in
18158 sco3.2v5*)
18159 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18160 ;;
18161 esac
18162 fi
18163 sys_lib_dlsearch_path_spec='/usr/lib'
18164 ;;
18165
18166tpf*)
18167 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18168 version_type=linux
18169 need_lib_prefix=no
18170 need_version=no
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=no
18174 hardcode_into_libs=yes
18175 ;;
18176
18177uts4*)
18178 version_type=linux
18179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 shlibpath_var=LD_LIBRARY_PATH
18182 ;;
18183
18184*)
18185 dynamic_linker=no
18186 ;;
18187esac
cristy8b350f62009-11-15 23:12:43 +000018188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018189$as_echo "$dynamic_linker" >&6; }
18190test "$dynamic_linker" = no && can_build_shared=no
18191
18192variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18193if test "$GCC" = yes; then
18194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18195fi
18196
18197if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18198 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18199fi
18200if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18201 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18202fi
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
18233
18234
18235
18236
18237
18238
cristy8b350f62009-11-15 23:12:43 +000018239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018240$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18241hardcode_action_CXX=
18242if test -n "$hardcode_libdir_flag_spec_CXX" ||
18243 test -n "$runpath_var_CXX" ||
18244 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18245
18246 # We can hardcode non-existent directories.
18247 if test "$hardcode_direct_CXX" != no &&
18248 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18249 # have to relink, otherwise we might link with an installed library
18250 # when we should be linking with a yet-to-be-installed one
18251 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18252 test "$hardcode_minus_L_CXX" != no; then
18253 # Linking always hardcodes the temporary library directory.
18254 hardcode_action_CXX=relink
18255 else
18256 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18257 hardcode_action_CXX=immediate
18258 fi
18259else
18260 # We cannot hardcode anything, or else we can only hardcode existing
18261 # directories.
18262 hardcode_action_CXX=unsupported
18263fi
cristy8b350f62009-11-15 23:12:43 +000018264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018265$as_echo "$hardcode_action_CXX" >&6; }
18266
18267if test "$hardcode_action_CXX" = relink ||
18268 test "$inherit_rpath_CXX" = yes; then
18269 # Fast installation is not supported
18270 enable_fast_install=no
18271elif test "$shlibpath_overrides_runpath" = yes ||
18272 test "$enable_shared" = no; then
18273 # Fast installation is not necessary
18274 enable_fast_install=needless
18275fi
18276
18277
18278
18279
18280
18281
18282
18283 fi # test -n "$compiler"
18284
18285 CC=$lt_save_CC
18286 LDCXX=$LD
18287 LD=$lt_save_LD
18288 GCC=$lt_save_GCC
18289 with_gnu_ld=$lt_save_with_gnu_ld
18290 lt_cv_path_LDCXX=$lt_cv_path_LD
18291 lt_cv_path_LD=$lt_save_path_LD
18292 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18293 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18294fi # test "$_lt_caught_CXX_error" != yes
18295
18296ac_ext=c
18297ac_cpp='$CPP $CPPFLAGS'
18298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18300ac_compiler_gnu=$ac_cv_c_compiler_gnu
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314 ac_config_commands="$ac_config_commands libtool"
18315
18316
18317
18318
18319# Only expand once:
18320
18321
18322
18323
18324
18325# Configure libltdl
18326
18327
18328
18329
18330
18331
18332
cristy18304f92009-11-22 15:48:26 +000018333
cristy8b350f62009-11-15 23:12:43 +000018334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018335$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018336if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018337 $as_echo_n "(cached) " >&6
18338else
18339
18340module=yes
18341eval libltdl_cv_shlibext=$shrext_cmds
18342
18343fi
cristy8b350f62009-11-15 23:12:43 +000018344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018345$as_echo "$libltdl_cv_shlibext" >&6; }
18346if test -n "$libltdl_cv_shlibext"; then
18347
18348cat >>confdefs.h <<_ACEOF
18349#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18350_ACEOF
18351
18352fi
18353
cristy8b350f62009-11-15 23:12:43 +000018354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018355$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018356if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018357 $as_echo_n "(cached) " >&6
18358else
18359 lt_cv_module_path_var="$shlibpath_var"
18360fi
cristy8b350f62009-11-15 23:12:43 +000018361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018362$as_echo "$lt_cv_module_path_var" >&6; }
18363if test -n "$lt_cv_module_path_var"; then
18364
18365cat >>confdefs.h <<_ACEOF
18366#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18367_ACEOF
18368
18369fi
18370
cristy8b350f62009-11-15 23:12:43 +000018371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018372$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018373if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018374 $as_echo_n "(cached) " >&6
18375else
18376 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18377fi
cristy8b350f62009-11-15 23:12:43 +000018378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018379$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18380if test -n "$lt_cv_sys_dlsearch_path"; then
18381 sys_dlsearch_path=
18382 for dir in $lt_cv_sys_dlsearch_path; do
18383 if test -z "$sys_dlsearch_path"; then
18384 sys_dlsearch_path="$dir"
18385 else
18386 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18387 fi
18388 done
18389
18390cat >>confdefs.h <<_ACEOF
18391#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18392_ACEOF
18393
18394fi
18395
18396
18397LT_DLLOADERS=
18398
18399
18400ac_ext=c
18401ac_cpp='$CPP $CPPFLAGS'
18402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18404ac_compiler_gnu=$ac_cv_c_compiler_gnu
18405
18406
18407LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018409$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018410if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018411 $as_echo_n "(cached) " >&6
18412else
18413 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018415/* end confdefs.h. */
18416
18417/* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18420#ifdef __cplusplus
18421extern "C"
18422#endif
18423char dlopen ();
18424int
18425main ()
18426{
18427return dlopen ();
18428 ;
18429 return 0;
18430}
18431_ACEOF
18432for ac_lib in '' dl; do
18433 if test -z "$ac_lib"; then
18434 ac_res="none required"
18435 else
18436 ac_res=-l$ac_lib
18437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18438 fi
cristy8b350f62009-11-15 23:12:43 +000018439 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018440 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018441fi
cristy8b350f62009-11-15 23:12:43 +000018442rm -f core conftest.err conftest.$ac_objext \
18443 conftest$ac_exeext
18444 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018445 break
18446fi
18447done
cristy8b350f62009-11-15 23:12:43 +000018448if test "${ac_cv_search_dlopen+set}" = set; then :
18449
cristy3ed852e2009-09-05 21:47:34 +000018450else
18451 ac_cv_search_dlopen=no
18452fi
18453rm conftest.$ac_ext
18454LIBS=$ac_func_search_save_LIBS
18455fi
cristy8b350f62009-11-15 23:12:43 +000018456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018457$as_echo "$ac_cv_search_dlopen" >&6; }
18458ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018459if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18461
cristy8b350f62009-11-15 23:12:43 +000018462$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018463
18464 if test "$ac_cv_search_dlopen" != "none required" ; then
18465 LIBADD_DLOPEN="-ldl"
18466 fi
18467 libltdl_cv_lib_dl_dlopen="yes"
18468 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18469else
cristy8b350f62009-11-15 23:12:43 +000018470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018471/* end confdefs.h. */
18472#if HAVE_DLFCN_H
18473# include <dlfcn.h>
18474#endif
18475
18476int
18477main ()
18478{
18479dlopen(0, 0);
18480 ;
18481 return 0;
18482}
18483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018485
cristy8b350f62009-11-15 23:12:43 +000018486$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018487
18488 libltdl_cv_func_dlopen="yes"
18489 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18490else
cristy8b350f62009-11-15 23:12:43 +000018491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018492$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018493if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018494 $as_echo_n "(cached) " >&6
18495else
18496 ac_check_lib_save_LIBS=$LIBS
18497LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018499/* end confdefs.h. */
18500
18501/* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18504#ifdef __cplusplus
18505extern "C"
18506#endif
18507char dlopen ();
18508int
18509main ()
18510{
18511return dlopen ();
18512 ;
18513 return 0;
18514}
18515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018516if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018517 ac_cv_lib_svld_dlopen=yes
18518else
cristy8b350f62009-11-15 23:12:43 +000018519 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000018520fi
cristy8b350f62009-11-15 23:12:43 +000018521rm -f core conftest.err conftest.$ac_objext \
18522 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018523LIBS=$ac_check_lib_save_LIBS
18524fi
cristy8b350f62009-11-15 23:12:43 +000018525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018526$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018527if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018528
cristy8b350f62009-11-15 23:12:43 +000018529$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018530
18531 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18532 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18533fi
18534
18535fi
cristy8b350f62009-11-15 23:12:43 +000018536rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018538fi
18539
18540if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18541then
18542 lt_save_LIBS="$LIBS"
18543 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000018544 for ac_func in dlerror
18545do :
18546 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18547if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018548 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018549#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000018550_ACEOF
18551
18552fi
18553done
18554
18555 LIBS="$lt_save_LIBS"
18556fi
18557
18558
18559LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000018560ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18561if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018562
cristy8b350f62009-11-15 23:12:43 +000018563$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018564
18565 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18566else
cristy8b350f62009-11-15 23:12:43 +000018567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018568$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018569if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018570 $as_echo_n "(cached) " >&6
18571else
18572 ac_check_lib_save_LIBS=$LIBS
18573LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018575/* end confdefs.h. */
18576
18577/* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
18580#ifdef __cplusplus
18581extern "C"
18582#endif
18583char shl_load ();
18584int
18585main ()
18586{
18587return shl_load ();
18588 ;
18589 return 0;
18590}
18591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018592if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018593 ac_cv_lib_dld_shl_load=yes
18594else
cristy8b350f62009-11-15 23:12:43 +000018595 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000018596fi
cristy8b350f62009-11-15 23:12:43 +000018597rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018599LIBS=$ac_check_lib_save_LIBS
18600fi
cristy8b350f62009-11-15 23:12:43 +000018601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000018602$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018603if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018604
cristy8b350f62009-11-15 23:12:43 +000018605$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018606
18607 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18608 LIBADD_SHL_LOAD="-ldld"
18609fi
18610
18611fi
18612
18613
18614
18615case $host_os in
18616darwin[1567].*)
18617# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000018618 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18619if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018620
cristy8b350f62009-11-15 23:12:43 +000018621$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018622
18623 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18624fi
18625
18626 ;;
18627beos*)
18628 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18629 ;;
18630cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000018631 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18632"
18633if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18634 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000018635else
cristy8b350f62009-11-15 23:12:43 +000018636 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000018637fi
18638
cristy3ed852e2009-09-05 21:47:34 +000018639cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018640#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000018641_ACEOF
18642
cristy3ed852e2009-09-05 21:47:34 +000018643 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18644 ;;
18645esac
18646
cristy8b350f62009-11-15 23:12:43 +000018647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018648$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018649if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018650 $as_echo_n "(cached) " >&6
18651else
18652 ac_check_lib_save_LIBS=$LIBS
18653LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018655/* end confdefs.h. */
18656
18657/* Override any GCC internal prototype to avoid an error.
18658 Use char because int might match the return type of a GCC
18659 builtin and then its argument prototype would still apply. */
18660#ifdef __cplusplus
18661extern "C"
18662#endif
18663char dld_link ();
18664int
18665main ()
18666{
18667return dld_link ();
18668 ;
18669 return 0;
18670}
18671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018672if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018673 ac_cv_lib_dld_dld_link=yes
18674else
cristy8b350f62009-11-15 23:12:43 +000018675 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000018676fi
cristy8b350f62009-11-15 23:12:43 +000018677rm -f core conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018679LIBS=$ac_check_lib_save_LIBS
18680fi
cristy8b350f62009-11-15 23:12:43 +000018681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000018682$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018683if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018684
cristy8b350f62009-11-15 23:12:43 +000018685$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018686
18687 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18688fi
18689
18690
18691
18692
18693LT_DLPREOPEN=
18694if test -n "$LT_DLLOADERS"
18695then
18696 for lt_loader in $LT_DLLOADERS; do
18697 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18698 done
18699
cristy8b350f62009-11-15 23:12:43 +000018700$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018701
18702fi
18703
18704
18705LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18706
18707
18708ac_ext=c
18709ac_cpp='$CPP $CPPFLAGS'
18710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18712ac_compiler_gnu=$ac_cv_c_compiler_gnu
18713
18714
cristy8b350f62009-11-15 23:12:43 +000018715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018716$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018717if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018718 $as_echo_n "(cached) " >&6
18719else
18720 lt_cv_sys_symbol_underscore=no
18721 cat > conftest.$ac_ext <<_LT_EOF
18722void nm_test_func(){}
18723int main(){nm_test_func;return 0;}
18724_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018726 (eval $ac_compile) 2>&5
18727 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18729 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018730 # Now try to grab the symbols.
18731 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018732 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 +000018733 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18734 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18736 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018737 # See whether the symbols have a leading underscore.
18738 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18739 lt_cv_sys_symbol_underscore=yes
18740 else
18741 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18742 :
18743 else
18744 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18745 fi
18746 fi
18747 else
18748 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18749 fi
18750 else
18751 echo "configure: failed program was:" >&5
18752 cat conftest.c >&5
18753 fi
18754 rm -rf conftest*
18755
18756fi
cristy8b350f62009-11-15 23:12:43 +000018757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018758$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18759 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18760
18761
18762if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18763 if test x"$libltdl_cv_func_dlopen" = xyes ||
18764 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018766$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018767if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018768 $as_echo_n "(cached) " >&6
18769else
18770 libltdl_cv_need_uscore=unknown
18771 save_LIBS="$LIBS"
18772 LIBS="$LIBS $LIBADD_DLOPEN"
18773 if test "$cross_compiling" = yes; then :
18774 libltdl_cv_need_uscore=cross
18775else
18776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18777 lt_status=$lt_dlunknown
18778 cat > conftest.$ac_ext <<_LT_EOF
cristybab87c32010-02-09 20:54:22 +000018779#line 18779 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018780#include "confdefs.h"
18781
18782#if HAVE_DLFCN_H
18783#include <dlfcn.h>
18784#endif
18785
18786#include <stdio.h>
18787
18788#ifdef RTLD_GLOBAL
18789# define LT_DLGLOBAL RTLD_GLOBAL
18790#else
18791# ifdef DL_GLOBAL
18792# define LT_DLGLOBAL DL_GLOBAL
18793# else
18794# define LT_DLGLOBAL 0
18795# endif
18796#endif
18797
18798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18799 find out it does not work in some platform. */
18800#ifndef LT_DLLAZY_OR_NOW
18801# ifdef RTLD_LAZY
18802# define LT_DLLAZY_OR_NOW RTLD_LAZY
18803# else
18804# ifdef DL_LAZY
18805# define LT_DLLAZY_OR_NOW DL_LAZY
18806# else
18807# ifdef RTLD_NOW
18808# define LT_DLLAZY_OR_NOW RTLD_NOW
18809# else
18810# ifdef DL_NOW
18811# define LT_DLLAZY_OR_NOW DL_NOW
18812# else
18813# define LT_DLLAZY_OR_NOW 0
18814# endif
18815# endif
18816# endif
18817# endif
18818#endif
18819
cristy18304f92009-11-22 15:48:26 +000018820void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018821int main ()
18822{
18823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18824 int status = $lt_dlunknown;
18825
18826 if (self)
18827 {
18828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018830 /* dlclose (self); */
18831 }
18832 else
18833 puts (dlerror ());
18834
18835 return status;
18836}
18837_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018839 (eval $ac_link) 2>&5
18840 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18842 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018843 (./conftest; exit; ) >&5 2>/dev/null
18844 lt_status=$?
18845 case x$lt_status in
18846 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18847 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18848 x$lt_dlunknown|x*) ;;
18849 esac
18850 else :
18851 # compilation failed
18852
18853 fi
18854fi
18855rm -fr conftest*
18856
18857 LIBS="$save_LIBS"
18858
18859fi
cristy8b350f62009-11-15 23:12:43 +000018860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018861$as_echo "$libltdl_cv_need_uscore" >&6; }
18862 fi
18863fi
18864
18865if test x"$libltdl_cv_need_uscore" = xyes; then
18866
cristy8b350f62009-11-15 23:12:43 +000018867$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018868
18869fi
18870
cristy8b350f62009-11-15 23:12:43 +000018871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018872$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018873if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018874 $as_echo_n "(cached) " >&6
18875else
18876 # PORTME does your system automatically load deplibs for dlopen?
18877 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18878 # For now, we just catch OSes we know something about -- in the
18879 # future, we'll try test this programmatically.
18880 lt_cv_sys_dlopen_deplibs=unknown
18881 case $host_os in
18882 aix3*|aix4.1.*|aix4.2.*)
18883 # Unknown whether this is true for these versions of AIX, but
18884 # we want this `case' here to explicitly catch those versions.
18885 lt_cv_sys_dlopen_deplibs=unknown
18886 ;;
18887 aix[4-9]*)
18888 lt_cv_sys_dlopen_deplibs=yes
18889 ;;
18890 amigaos*)
18891 case $host_cpu in
18892 powerpc)
18893 lt_cv_sys_dlopen_deplibs=no
18894 ;;
18895 esac
18896 ;;
18897 darwin*)
18898 # Assuming the user has installed a libdl from somewhere, this is true
18899 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18900 lt_cv_sys_dlopen_deplibs=yes
18901 ;;
18902 freebsd* | dragonfly*)
18903 lt_cv_sys_dlopen_deplibs=yes
18904 ;;
cristy18304f92009-11-22 15:48:26 +000018905 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018906 # GNU and its variants, using gnu ld.so (Glibc)
18907 lt_cv_sys_dlopen_deplibs=yes
18908 ;;
18909 hpux10*|hpux11*)
18910 lt_cv_sys_dlopen_deplibs=yes
18911 ;;
18912 interix*)
18913 lt_cv_sys_dlopen_deplibs=yes
18914 ;;
18915 irix[12345]*|irix6.[01]*)
18916 # Catch all versions of IRIX before 6.2, and indicate that we don't
18917 # know how it worked for any of those versions.
18918 lt_cv_sys_dlopen_deplibs=unknown
18919 ;;
18920 irix*)
18921 # The case above catches anything before 6.2, and it's known that
18922 # at 6.2 and later dlopen does load deplibs.
18923 lt_cv_sys_dlopen_deplibs=yes
18924 ;;
18925 netbsd*)
18926 lt_cv_sys_dlopen_deplibs=yes
18927 ;;
18928 openbsd*)
18929 lt_cv_sys_dlopen_deplibs=yes
18930 ;;
18931 osf[1234]*)
18932 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18933 # it did *not* use an RPATH in a shared library to find objects the
18934 # library depends on, so we explicitly say `no'.
18935 lt_cv_sys_dlopen_deplibs=no
18936 ;;
18937 osf5.0|osf5.0a|osf5.1)
18938 # dlopen *does* load deplibs and with the right loader patch applied
18939 # it even uses RPATH in a shared library to search for shared objects
18940 # that the library depends on, but there's no easy way to know if that
18941 # patch is installed. Since this is the case, all we can really
18942 # say is unknown -- it depends on the patch being installed. If
18943 # it is, this changes to `yes'. Without it, it would be `no'.
18944 lt_cv_sys_dlopen_deplibs=unknown
18945 ;;
18946 osf*)
18947 # the two cases above should catch all versions of osf <= 5.1. Read
18948 # the comments above for what we know about them.
18949 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18950 # is used to find them so we can finally say `yes'.
18951 lt_cv_sys_dlopen_deplibs=yes
18952 ;;
18953 qnx*)
18954 lt_cv_sys_dlopen_deplibs=yes
18955 ;;
18956 solaris*)
18957 lt_cv_sys_dlopen_deplibs=yes
18958 ;;
18959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18960 libltdl_cv_sys_dlopen_deplibs=yes
18961 ;;
18962 esac
18963
18964fi
cristy8b350f62009-11-15 23:12:43 +000018965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018966$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18967if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18968
cristy8b350f62009-11-15 23:12:43 +000018969$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018970
18971fi
18972
18973:
18974
cristy3ed852e2009-09-05 21:47:34 +000018975for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018976do :
18977 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18978"
18979if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018980 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018981#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018982_ACEOF
18983
18984fi
18985
18986done
18987
18988
cristy8b350f62009-11-15 23:12:43 +000018989ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018990# include <argz.h>
18991#endif
cristy8b350f62009-11-15 23:12:43 +000018992"
18993if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018994
18995cat >>confdefs.h <<_ACEOF
18996#define HAVE_ERROR_T 1
18997_ACEOF
18998
18999
19000else
19001
cristy8b350f62009-11-15 23:12:43 +000019002$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019003
19004
cristy8b350f62009-11-15 23:12:43 +000019005$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019006
19007fi
19008
19009
19010ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019011for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19012 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019013do :
19014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19015ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19016eval as_val=\$$as_ac_var
19017 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019018 cat >>confdefs.h <<_ACEOF
19019#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19020_ACEOF
19021
19022else
19023 ARGZ_H=argz.h;
19024
19025 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19026
19027fi
19028done
19029
19030
cristy8b350f62009-11-15 23:12:43 +000019031if test -z "$ARGZ_H"; then :
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019033$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019034if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019035 $as_echo_n "(cached) " >&6
19036else
19037 case $host_os in #(
19038 *cygwin*)
19039 lt_cv_sys_argz_works=no
19040 if test "$cross_compiling" != no; then
19041 lt_cv_sys_argz_works="guessing no"
19042 else
19043 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19044 save_IFS=$IFS
19045 IFS=-.
19046 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19047 IFS=$save_IFS
19048 lt_os_major=${2-0}
19049 lt_os_minor=${3-0}
19050 lt_os_micro=${4-0}
19051 if test "$lt_os_major" -gt 1 \
19052 || { test "$lt_os_major" -eq 1 \
19053 && { test "$lt_os_minor" -gt 5 \
19054 || { test "$lt_os_minor" -eq 5 \
19055 && test "$lt_os_micro" -gt 24; }; }; }; then
19056 lt_cv_sys_argz_works=yes
19057 fi
19058 fi
19059 ;; #(
19060 *) lt_cv_sys_argz_works=yes ;;
19061 esac
19062fi
cristy8b350f62009-11-15 23:12:43 +000019063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019064$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019065 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019066
cristy8b350f62009-11-15 23:12:43 +000019067$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019068
19069else
19070 ARGZ_H=argz.h
19071
19072
19073 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19074
19075fi
cristy3ed852e2009-09-05 21:47:34 +000019076fi
19077
19078
19079
cristy8b350f62009-11-15 23:12:43 +000019080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019081$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019082if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019083 $as_echo_n "(cached) " >&6
19084else
19085 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19086 libltdl_cv_preloaded_symbols=yes
19087 else
19088 libltdl_cv_preloaded_symbols=no
19089 fi
19090
19091fi
cristy8b350f62009-11-15 23:12:43 +000019092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019093$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19094if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19095
cristy8b350f62009-11-15 23:12:43 +000019096$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019097
19098fi
19099
19100# Set options
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019113if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019114 withval=$with_included_ltdl;
19115fi
19116
19117
19118if test "x$with_included_ltdl" != xyes; then
19119 # We are not being forced to use the included libltdl sources, so
19120 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019121 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019122
cristy8b350f62009-11-15 23:12:43 +000019123"
19124if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19125 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 +000019126 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019127"
19128if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019130$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019131if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019132 $as_echo_n "(cached) " >&6
19133else
19134 ac_check_lib_save_LIBS=$LIBS
19135LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019137/* end confdefs.h. */
19138
19139/* Override any GCC internal prototype to avoid an error.
19140 Use char because int might match the return type of a GCC
19141 builtin and then its argument prototype would still apply. */
19142#ifdef __cplusplus
19143extern "C"
19144#endif
19145char lt_dladvise_preload ();
19146int
19147main ()
19148{
19149return lt_dladvise_preload ();
19150 ;
19151 return 0;
19152}
19153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019154if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019155 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19156else
cristy8b350f62009-11-15 23:12:43 +000019157 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019158fi
cristy8b350f62009-11-15 23:12:43 +000019159rm -f core conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019161LIBS=$ac_check_lib_save_LIBS
19162fi
cristy8b350f62009-11-15 23:12:43 +000019163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019164$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019165if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019166 with_included_ltdl=no
19167else
19168 with_included_ltdl=yes
19169fi
19170
19171else
19172 with_included_ltdl=yes
19173fi
19174
19175else
19176 with_included_ltdl=yes
19177fi
19178
19179
19180fi
19181
19182
19183
19184
19185# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019186if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019187 withval=$with_ltdl_include;
19188fi
19189
19190
19191if test -n "$with_ltdl_include"; then
19192 if test -f "$with_ltdl_include/ltdl.h"; then :
19193 else
cristy8b350f62009-11-15 23:12:43 +000019194 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019195 fi
19196else
19197 with_ltdl_include=no
19198fi
19199
19200
19201# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019202if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019203 withval=$with_ltdl_lib;
19204fi
19205
19206
19207if test -n "$with_ltdl_lib"; then
19208 if test -f "$with_ltdl_lib/libltdl.la"; then :
19209 else
cristy8b350f62009-11-15 23:12:43 +000019210 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019211 fi
19212else
19213 with_ltdl_lib=no
19214fi
19215
19216case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19217 ,yes,no,no,)
19218 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019219 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019220 "") enable_ltdl_convenience=yes
19221 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19222esac
19223LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19224LTDLDEPS=$LIBLTDL
19225LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19226
19227
19228
19229
19230
19231# For backwards non-gettext consistent compatibility...
19232INCLTDL="$LTDLINCL"
19233
19234
19235 ;;
19236 ,no,no,no,)
19237 # If the included ltdl is not to be used, then use the
19238 # preinstalled libltdl we found.
19239
cristy8b350f62009-11-15 23:12:43 +000019240$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019241
19242 LIBLTDL=-lltdl
19243 LTDLDEPS=
19244 LTDLINCL=
19245 ;;
19246 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019247 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019248 ;;
19249 *) with_included_ltdl=no
19250 LIBLTDL="-L$with_ltdl_lib -lltdl"
19251 LTDLDEPS=
19252 LTDLINCL="-I$with_ltdl_include"
19253 ;;
19254esac
19255INCLTDL="$LTDLINCL"
19256
19257# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019259$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019261$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019263$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019265$as_echo "$LIBLTDL" >&6; }
19266
19267
19268
19269# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019270if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019271 enableval=$enable_ltdl_install;
19272fi
19273
19274
19275case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19276 *yes*) ;;
19277 *) enable_ltdl_convenience=yes ;;
19278esac
19279
19280 if test x"${enable_ltdl_install-no}" != xno; then
19281 INSTALL_LTDL_TRUE=
19282 INSTALL_LTDL_FALSE='#'
19283else
19284 INSTALL_LTDL_TRUE='#'
19285 INSTALL_LTDL_FALSE=
19286fi
19287
19288 if test x"${enable_ltdl_convenience-no}" != xno; then
19289 CONVENIENCE_LTDL_TRUE=
19290 CONVENIENCE_LTDL_FALSE='#'
19291else
19292 CONVENIENCE_LTDL_TRUE='#'
19293 CONVENIENCE_LTDL_FALSE=
19294fi
19295
19296
19297
19298
19299
19300
cristy18304f92009-11-22 15:48:26 +000019301
cristy3ed852e2009-09-05 21:47:34 +000019302# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19303# the user used. This is so that ltdl.h can pick up the parent projects
19304# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19305# definitions required by ltdl.c.
19306# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19307
19308
19309
cristy3ed852e2009-09-05 21:47:34 +000019310for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019311do :
19312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19313ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19314"
19315eval as_val=\$$as_ac_Header
19316 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019317 cat >>confdefs.h <<_ACEOF
19318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19319_ACEOF
19320
19321fi
19322
19323done
19324
19325
cristy3ed852e2009-09-05 21:47:34 +000019326for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019327do :
19328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19329ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19330eval as_val=\$$as_ac_var
19331 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019332 cat >>confdefs.h <<_ACEOF
19333#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19334_ACEOF
19335
19336else
19337
19338
19339 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19340
19341fi
19342done
19343
cristy3ed852e2009-09-05 21:47:34 +000019344for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019345do :
19346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19347ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19348eval as_val=\$$as_ac_var
19349 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019350 cat >>confdefs.h <<_ACEOF
19351#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19352_ACEOF
19353
19354else
19355
19356
19357 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19358
19359fi
19360done
19361
19362
19363
19364cat >>confdefs.h <<_ACEOF
19365#define LT_LIBEXT "$libext"
19366_ACEOF
19367
19368
19369name=ltdl
19370LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19371
19372
19373
19374
19375
19376
19377
19378
19379# Only expand once:
19380
19381
19382
19383# Check to see if building shared libraries
19384libtool_build_shared_libs='no'
19385if test "$enable_shared" = 'yes'; then
19386 libtool_build_shared_libs='yes'
19387fi
19388
19389# Check to see if building static libraries
19390libtool_build_static_libs='no'
19391if test "$enable_static" = 'yes'; then
19392 libtool_build_static_libs='yes'
19393fi
19394
cristyfa112112010-01-04 17:48:07 +000019395 if test "${libtool_build_shared_libs}" = 'yes'; then
19396 WITH_SHARED_LIBS_TRUE=
19397 WITH_SHARED_LIBS_FALSE='#'
19398else
19399 WITH_SHARED_LIBS_TRUE='#'
19400 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019401fi
19402
19403#
19404# Enable support for building loadable modules
19405#
19406
19407# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019408if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019409 withval=$with_modules; with_modules=$withval
19410else
cristy5a1cefd2010-01-06 20:42:35 +000019411 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019412fi
19413
19414
19415# Only allow building loadable modules if we are building shared libraries
19416if test "$with_modules" != 'no' ; then
19417 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019418 { $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 +000019419$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19420 with_modules='no'
19421 fi
19422fi
19423if test "$with_modules" != 'no'; then
19424
cristy8b350f62009-11-15 23:12:43 +000019425$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019426
19427fi
19428 if test "$with_modules" != 'no'; then
19429 WITH_MODULES_TRUE=
19430 WITH_MODULES_FALSE='#'
19431else
19432 WITH_MODULES_TRUE='#'
19433 WITH_MODULES_FALSE=
19434fi
19435
19436
19437# Enable building/use of libltdl if we are building shared libraries regardless
19438# of whether modules are built or not.
19439with_ltdl='no'
19440if test "$libtool_build_shared_libs" != 'no'; then
19441 with_ltdl='yes'
19442fi
19443
19444 if test "$with_ltdl" != 'no'; then
19445 WITH_LTDL_TRUE=
19446 WITH_LTDL_FALSE='#'
19447else
19448 WITH_LTDL_TRUE='#'
19449 WITH_LTDL_FALSE=
19450fi
19451
19452if test "$with_ltdl" != 'no'; then
19453
cristy8b350f62009-11-15 23:12:43 +000019454$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019455
19456
19457 # Set DLLDFLAGS
19458 if test X"$enable_shared" = Xyes; then
19459 DLLDFLAGS=-export-dynamic
19460
19461 fi
19462fi
19463
19464# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019465# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019466# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019467if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019468 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19469else
19470 enable_delegate_build='no'
19471fi
19472
19473
19474# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019475if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019476 enableval=$enable_deprecated; enable_deprecated=$enableval
19477else
19478 enable_deprecated='no'
19479fi
19480
19481
19482if test "$enable_deprecated" = 'yes'; then
19483
cristy8b350f62009-11-15 23:12:43 +000019484$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019485
19486else
19487 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19488fi
19489
19490# Build a version of ImageMagick which operates uninstalled.
19491# Used to build distributions located via MAGICK_HOME / executable path
19492# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019493if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019494 enableval=$enable_installed; enable_installed=$enableval
19495else
19496 enable_installed='yes'
19497fi
19498
19499
19500if test "$enable_installed" = 'yes'; then
19501
cristy8b350f62009-11-15 23:12:43 +000019502$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019503
19504else
19505 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19506fi
19507
19508# Permit enciphering and deciphering image pixels.
19509# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000019510if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019511 enableval=$enable_cipher; enable_cipher=$enableval
19512else
19513 enable_cipher='yes'
19514fi
19515
19516
19517if test "$enable_cipher" = 'yes'; then
19518
cristy8b350f62009-11-15 23:12:43 +000019519$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019520
19521fi
19522
19523# Build an embeddable version of ImageMagick.
19524# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000019525if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019526 enableval=$enable_embeddable; enable_embeddable=$enableval
19527else
19528 enable_embeddable='no'
19529fi
19530
19531
19532if test "$enable_embeddable" = 'yes'; then
19533
cristy8b350f62009-11-15 23:12:43 +000019534$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019535
19536fi
19537
19538# Build a high dynamic range version of ImageMagick.
19539# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000019540if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019541 enableval=$enable_hdri; enable_hdri=$enableval
19542else
19543 enable_hdri='no'
19544fi
19545
19546
19547MAGICK_HDRI=""
19548if test "$enable_hdri" = 'yes'; then
19549 MAGICK_HDRI="HDRI"
19550
cristy8b350f62009-11-15 23:12:43 +000019551$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019552
19553fi
19554
cristy3ed852e2009-09-05 21:47:34 +000019555# Build a version of ImageMagick with assert statements.
19556# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000019557if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019558 enableval=$enable_assert; enable_assert=$enableval
19559else
19560 enable_assert='yes'
19561fi
19562
19563
19564if test "$enable_assert" = 'no'; then
19565
cristy8b350f62009-11-15 23:12:43 +000019566$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019567
19568fi
19569
19570# Add configure option --enable-maintainer-mode which enables dependency
19571# checking and generation useful to package maintainers. This is made an
19572# option to avoid confusing end users.
19573
cristy8b350f62009-11-15 23:12:43 +000019574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000019575$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19576 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000019577if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019578 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19579else
19580 USE_MAINTAINER_MODE=no
19581fi
19582
cristy8b350f62009-11-15 23:12:43 +000019583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000019584$as_echo "$USE_MAINTAINER_MODE" >&6; }
19585 if test $USE_MAINTAINER_MODE = yes; then
19586 MAINTAINER_MODE_TRUE=
19587 MAINTAINER_MODE_FALSE='#'
19588else
19589 MAINTAINER_MODE_TRUE='#'
19590 MAINTAINER_MODE_FALSE=
19591fi
19592
19593 MAINT=$MAINTAINER_MODE_TRUE
19594
19595
19596
19597
19598# Enable ccmalloc memory debugging support
19599# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000019600if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019601 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19602else
19603 enable_ccmalloc='no'
19604fi
19605
19606
19607# Enable Electric Fence memory debugging support
19608# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000019609if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019610 enableval=$enable_efence; enable_efence=$enableval
19611else
19612 enable_efence='no'
19613fi
19614
19615
19616# Enable prof-based profiling support
19617# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000019618if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019619 enableval=$enable_prof; enable_prof=$enableval
19620else
19621 enable_prof='no'
19622fi
19623
19624
19625# Enable gprof-based profiling support
19626# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000019627if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019628 enableval=$enable_gprof; enable_gprof=$enableval
19629else
19630 enable_gprof='no'
19631fi
19632
19633
19634# Enable gcov-based profiling support
19635# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000019636if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019637 enableval=$enable_gcov; enable_gcov=$enableval
19638else
19639 enable_gcov='no'
19640fi
19641
19642
19643enable_profiling='no'
19644if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19645 enable_profiling='yes'
19646 if test "$libtool_build_shared_libs" = 'yes'; then
19647 echo "Warning: Can not profile code using shared libraries"
19648 fi
19649fi
19650
19651# Magick API method prefix
19652
19653# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000019654if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019655 withval=$with_method_prefix; with_method_prefix=$enableval
19656else
19657 with_method_prefix=''
19658fi
19659
19660
19661if test "$with_method_prefix" != ''; then
19662
19663cat >>confdefs.h <<_ACEOF
19664#define NAMESPACE_PREFIX $with_method_prefix
19665_ACEOF
19666
19667fi
19668
19669# Number of bits in a Quantum
19670
19671# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000019672if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019673 withval=$with_quantum_depth; with_quantum_depth=$withval
19674else
19675 with_quantum_depth=16
19676fi
19677
19678
19679if test "$with_quantum_depth" != '8'; then
19680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19681fi
19682
19683case "${with_quantum_depth}" in
19684 8 ) ;;
19685 16 ) ;;
19686 32 ) ;;
19687 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000019688 * ) { as_fn_set_status 16
19689as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000019690esac
19691QUANTUM_DEPTH="$with_quantum_depth"
19692
19693cat >>confdefs.h <<_ACEOF
19694#define QUANTUM_DEPTH $QUANTUM_DEPTH
19695_ACEOF
19696
19697
19698# Set pixel cache threshold
19699
19700# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000019701if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019702 withval=$with_cache; with_cache=$withval
19703else
19704 with_cache=''
19705fi
19706
19707
19708if test "$with_cache" != ''; then
19709
19710cat >>confdefs.h <<_ACEOF
19711#define PixelCacheThreshold $with_cache
19712_ACEOF
19713
19714 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19715fi
19716
19717# Disable/Enable support for full delegate paths
19718
19719# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000019720if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019721 withval=$with_frozenpaths; with_frozenpaths=$withval
19722else
19723 with_frozenpaths='no'
19724fi
19725
19726
19727# Enable build/install of Magick++
19728
19729# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019730if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019731 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19732else
19733 with_magick_plus_plus='yes'
19734fi
19735
19736
19737# Disable build/install of PerlMagick.
19738
19739# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019740if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019741 withval=$with_perl; with_perl=$withval
19742else
19743 with_perl=$libtool_build_shared_libs
19744fi
19745
19746
19747# Options to pass when configuring PerlMagick
19748
19749# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019750if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000019751 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000019752fi
19753
19754
cristy3ed852e2009-09-05 21:47:34 +000019755
19756# Enable umem, object-caching memory allocation library.
19757
19758# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019759if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019760 withval=$with_umem; with_umem=$withval
19761else
19762 with_umem='no'
19763fi
19764
19765if test "$with_umem" != 'yes' ; then
19766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19767fi
19768
19769#
19770# Specify path to shared libstdc++ if not in normal location
19771#
19772
19773# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019774if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019775 withval=$with_libstdc; with_libstdc=$withval
19776else
19777 with_libstdc=''
19778fi
19779
19780
19781if test "$with_libstdc" != ''; then
19782 if test -d "$with_libstdc"; then
19783 LIBSTDCLDFLAGS="-L$with_libstdc"
19784 fi
19785fi
19786
19787
19788# Does gcc required -traditional?
19789if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019791$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019792if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019793 $as_echo_n "(cached) " >&6
19794else
19795 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019797/* end confdefs.h. */
19798#include <sgtty.h>
19799Autoconf TIOCGETP
19800_ACEOF
19801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019802 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019803 ac_cv_prog_gcc_traditional=yes
19804else
19805 ac_cv_prog_gcc_traditional=no
19806fi
19807rm -f conftest*
19808
19809
19810 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019812/* end confdefs.h. */
19813#include <termio.h>
19814Autoconf TCGETA
19815_ACEOF
19816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019817 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019818 ac_cv_prog_gcc_traditional=yes
19819fi
19820rm -f conftest*
19821
19822 fi
19823fi
cristy8b350f62009-11-15 23:12:43 +000019824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019825$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19826 if test $ac_cv_prog_gcc_traditional = yes; then
19827 CC="$CC -traditional"
19828 fi
19829fi
19830
19831
19832########
19833#
19834# Set defines required to build DLLs and modules using MinGW
19835#
19836########
19837# These options are set for multi-thread DLL module build
19838# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19839# module: _DLL
19840# executable/Magick++: _DLL _MAGICKMOD_
19841MODULE_EXTRA_CPPFLAGS=''
19842LIBRARY_EXTRA_CPPFLAGS=''
19843if test "${native_win32_build}" = 'yes'; then
19844 if test "${libtool_build_shared_libs}" = 'yes'; then
19845 CPPFLAGS="$CPPFLAGS -D_DLL"
19846 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19847 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19848 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19849 if test "$with_modules" = 'yes'; then
19850 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19851 else
19852 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19853 fi
19854 else
19855 CPPFLAGS="$CPPFLAGS -D_LIB"
19856 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19857 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19858 fi
19859 if test "$with_threads" = 'yes'; then
19860 CPPFLAGS="$CPPFLAGS -D_MT"
19861 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19862 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19863 fi
19864fi
19865
19866
19867
19868# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019870$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019871if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019872 $as_echo_n "(cached) " >&6
19873else
cristy8b350f62009-11-15 23:12:43 +000019874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019875/* end confdefs.h. */
19876#include <stdlib.h>
19877#include <stdarg.h>
19878#include <string.h>
19879#include <float.h>
19880
19881int
19882main ()
19883{
19884
19885 ;
19886 return 0;
19887}
19888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019890 ac_cv_header_stdc=yes
19891else
cristy8b350f62009-11-15 23:12:43 +000019892 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019893fi
cristy3ed852e2009-09-05 21:47:34 +000019894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895
19896if test $ac_cv_header_stdc = yes; then
19897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019899/* end confdefs.h. */
19900#include <string.h>
19901
19902_ACEOF
19903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019904 $EGREP "memchr" >/dev/null 2>&1; then :
19905
cristy3ed852e2009-09-05 21:47:34 +000019906else
19907 ac_cv_header_stdc=no
19908fi
19909rm -f conftest*
19910
19911fi
19912
19913if test $ac_cv_header_stdc = yes; then
19914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019916/* end confdefs.h. */
19917#include <stdlib.h>
19918
19919_ACEOF
19920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019921 $EGREP "free" >/dev/null 2>&1; then :
19922
cristy3ed852e2009-09-05 21:47:34 +000019923else
19924 ac_cv_header_stdc=no
19925fi
19926rm -f conftest*
19927
19928fi
19929
19930if test $ac_cv_header_stdc = yes; then
19931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019932 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019933 :
19934else
cristy8b350f62009-11-15 23:12:43 +000019935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019936/* end confdefs.h. */
19937#include <ctype.h>
19938#include <stdlib.h>
19939#if ((' ' & 0x0FF) == 0x020)
19940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19942#else
19943# define ISLOWER(c) \
19944 (('a' <= (c) && (c) <= 'i') \
19945 || ('j' <= (c) && (c) <= 'r') \
19946 || ('s' <= (c) && (c) <= 'z'))
19947# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19948#endif
19949
19950#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19951int
19952main ()
19953{
19954 int i;
19955 for (i = 0; i < 256; i++)
19956 if (XOR (islower (i), ISLOWER (i))
19957 || toupper (i) != TOUPPER (i))
19958 return 2;
19959 return 0;
19960}
19961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019962if ac_fn_c_try_run "$LINENO"; then :
19963
cristy3ed852e2009-09-05 21:47:34 +000019964else
cristy8b350f62009-11-15 23:12:43 +000019965 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019966fi
cristy8b350f62009-11-15 23:12:43 +000019967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19968 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019969fi
19970
cristy3ed852e2009-09-05 21:47:34 +000019971fi
19972fi
cristy8b350f62009-11-15 23:12:43 +000019973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019974$as_echo "$ac_cv_header_stdc" >&6; }
19975if test $ac_cv_header_stdc = yes; then
19976
cristy8b350f62009-11-15 23:12:43 +000019977$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019978
19979fi
19980
19981if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019982 { $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 +000019983 header files. Compilation cannot proceed. Please install the ANSI C
19984 headers and rerun this script." >&5
19985$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19986 header files. Compilation cannot proceed. Please install the ANSI C
19987 headers and rerun this script." >&2;};
19988fi
cristya0b81c32010-01-22 02:54:33 +000019989
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
19991$as_echo_n "checking whether to enable assertions... " >&6; }
19992 # Check whether --enable-assert was given.
19993if test "${enable_assert+set}" = set; then :
19994 enableval=$enable_assert; ac_enable_assert=$enableval
19995 if test "x$enableval" = xno; then :
19996
19997$as_echo "#define NDEBUG 1" >>confdefs.h
19998
19999elif test "x$enableval" != xyes; then :
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20001$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20002 ac_enable_assert=yes
20003fi
20004else
20005 ac_enable_assert=yes
20006fi
20007
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20009$as_echo "$ac_enable_assert" >&6; }
20010
cristy3ed852e2009-09-05 21:47:34 +000020011ac_header_dirent=no
20012for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20013 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020015$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020017 $as_echo_n "(cached) " >&6
20018else
cristy8b350f62009-11-15 23:12:43 +000020019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020020/* end confdefs.h. */
20021#include <sys/types.h>
20022#include <$ac_hdr>
20023
20024int
20025main ()
20026{
20027if ((DIR *) 0)
20028return 0;
20029 ;
20030 return 0;
20031}
20032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020033if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020034 eval "$as_ac_Header=yes"
20035else
cristy8b350f62009-11-15 23:12:43 +000020036 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020037fi
cristy3ed852e2009-09-05 21:47:34 +000020038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039fi
cristy8b350f62009-11-15 23:12:43 +000020040eval ac_res=\$$as_ac_Header
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020042$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020043eval as_val=\$$as_ac_Header
20044 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020045 cat >>confdefs.h <<_ACEOF
20046#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20047_ACEOF
20048
20049ac_header_dirent=$ac_hdr; break
20050fi
20051
20052done
20053# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20054if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020056$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020057if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020058 $as_echo_n "(cached) " >&6
20059else
20060 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020062/* end confdefs.h. */
20063
20064/* Override any GCC internal prototype to avoid an error.
20065 Use char because int might match the return type of a GCC
20066 builtin and then its argument prototype would still apply. */
20067#ifdef __cplusplus
20068extern "C"
20069#endif
20070char opendir ();
20071int
20072main ()
20073{
20074return opendir ();
20075 ;
20076 return 0;
20077}
20078_ACEOF
20079for ac_lib in '' dir; do
20080 if test -z "$ac_lib"; then
20081 ac_res="none required"
20082 else
20083 ac_res=-l$ac_lib
20084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20085 fi
cristy8b350f62009-11-15 23:12:43 +000020086 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020087 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020088fi
cristy8b350f62009-11-15 23:12:43 +000020089rm -f core conftest.err conftest.$ac_objext \
20090 conftest$ac_exeext
20091 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020092 break
20093fi
20094done
cristy8b350f62009-11-15 23:12:43 +000020095if test "${ac_cv_search_opendir+set}" = set; then :
20096
cristy3ed852e2009-09-05 21:47:34 +000020097else
20098 ac_cv_search_opendir=no
20099fi
20100rm conftest.$ac_ext
20101LIBS=$ac_func_search_save_LIBS
20102fi
cristy8b350f62009-11-15 23:12:43 +000020103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020104$as_echo "$ac_cv_search_opendir" >&6; }
20105ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020106if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20108
20109fi
20110
20111else
cristy8b350f62009-11-15 23:12:43 +000020112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020113$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020114if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020115 $as_echo_n "(cached) " >&6
20116else
20117 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020119/* end confdefs.h. */
20120
20121/* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20124#ifdef __cplusplus
20125extern "C"
20126#endif
20127char opendir ();
20128int
20129main ()
20130{
20131return opendir ();
20132 ;
20133 return 0;
20134}
20135_ACEOF
20136for ac_lib in '' x; do
20137 if test -z "$ac_lib"; then
20138 ac_res="none required"
20139 else
20140 ac_res=-l$ac_lib
20141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20142 fi
cristy8b350f62009-11-15 23:12:43 +000020143 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020144 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020145fi
cristy8b350f62009-11-15 23:12:43 +000020146rm -f core conftest.err conftest.$ac_objext \
20147 conftest$ac_exeext
20148 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020149 break
20150fi
20151done
cristy8b350f62009-11-15 23:12:43 +000020152if test "${ac_cv_search_opendir+set}" = set; then :
20153
cristy3ed852e2009-09-05 21:47:34 +000020154else
20155 ac_cv_search_opendir=no
20156fi
20157rm conftest.$ac_ext
20158LIBS=$ac_func_search_save_LIBS
20159fi
cristy8b350f62009-11-15 23:12:43 +000020160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020161$as_echo "$ac_cv_search_opendir" >&6; }
20162ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020163if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20165
20166fi
20167
20168fi
20169
20170
20171# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020172for 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 +000020173do :
20174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20175ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20176eval as_val=\$$as_ac_Header
20177 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020178 cat >>confdefs.h <<_ACEOF
20179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20180_ACEOF
20181
20182fi
20183
20184done
20185
20186
20187########
20188#
20189# Checks for typedefs, structures, and compiler characteristics.
20190#
20191########
20192
cristy8b350f62009-11-15 23:12:43 +000020193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020194$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020195if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020196 $as_echo_n "(cached) " >&6
20197else
cristy8b350f62009-11-15 23:12:43 +000020198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020199/* end confdefs.h. */
20200
20201#include <stdbool.h>
20202#ifndef bool
20203 "error: bool is not defined"
20204#endif
20205#ifndef false
20206 "error: false is not defined"
20207#endif
20208#if false
20209 "error: false is not 0"
20210#endif
20211#ifndef true
20212 "error: true is not defined"
20213#endif
20214#if true != 1
20215 "error: true is not 1"
20216#endif
20217#ifndef __bool_true_false_are_defined
20218 "error: __bool_true_false_are_defined is not defined"
20219#endif
20220
20221 struct s { _Bool s: 1; _Bool t; } s;
20222
20223 char a[true == 1 ? 1 : -1];
20224 char b[false == 0 ? 1 : -1];
20225 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20226 char d[(bool) 0.5 == true ? 1 : -1];
20227 bool e = &s;
20228 char f[(_Bool) 0.0 == false ? 1 : -1];
20229 char g[true];
20230 char h[sizeof (_Bool)];
20231 char i[sizeof s.t];
20232 enum { j = false, k = true, l = false * true, m = true * 256 };
20233 /* The following fails for
20234 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20235 _Bool n[m];
20236 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20237 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20238# if defined __xlc__ || defined __GNUC__
20239 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20240 reported by James Lemley on 2005-10-05; see
20241 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20242 This test is not quite right, since xlc is allowed to
20243 reject this program, as the initializer for xlcbug is
20244 not one of the forms that C requires support for.
20245 However, doing the test right would require a runtime
20246 test, and that would make cross-compilation harder.
20247 Let us hope that IBM fixes the xlc bug, and also adds
20248 support for this kind of constant expression. In the
20249 meantime, this test will reject xlc, which is OK, since
20250 our stdbool.h substitute should suffice. We also test
20251 this with GCC, where it should work, to detect more
20252 quickly whether someone messes up the test in the
20253 future. */
20254 char digs[] = "0123456789";
20255 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20256# endif
20257 /* Catch a bug in an HP-UX C compiler. See
20258 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20259 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20260 */
20261 _Bool q = true;
20262 _Bool *pq = &q;
20263
20264int
20265main ()
20266{
20267
20268 *pq |= q;
20269 *pq |= ! q;
20270 /* Refer to every declared value, to avoid compiler optimizations. */
20271 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20272 + !m + !n + !o + !p + !q + !pq);
20273
20274 ;
20275 return 0;
20276}
20277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020278if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020279 ac_cv_header_stdbool_h=yes
20280else
cristy8b350f62009-11-15 23:12:43 +000020281 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020282fi
cristy3ed852e2009-09-05 21:47:34 +000020283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284fi
cristy8b350f62009-11-15 23:12:43 +000020285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020286$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020287ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20288if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020289
20290cat >>confdefs.h <<_ACEOF
20291#define HAVE__BOOL 1
20292_ACEOF
20293
20294
20295fi
20296
20297if test $ac_cv_header_stdbool_h = yes; then
20298
cristy8b350f62009-11-15 23:12:43 +000020299$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020300
20301fi
20302
cristy8b350f62009-11-15 23:12:43 +000020303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020304$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020305if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020306 $as_echo_n "(cached) " >&6
20307else
cristy8b350f62009-11-15 23:12:43 +000020308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020309/* end confdefs.h. */
20310
20311int
20312main ()
20313{
20314
20315volatile int x;
20316int * volatile y = (int *) 0;
20317return !x && !y;
20318 ;
20319 return 0;
20320}
20321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020322if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020323 ac_cv_c_volatile=yes
20324else
cristy8b350f62009-11-15 23:12:43 +000020325 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020326fi
cristy3ed852e2009-09-05 21:47:34 +000020327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328fi
cristy8b350f62009-11-15 23:12:43 +000020329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020330$as_echo "$ac_cv_c_volatile" >&6; }
20331if test $ac_cv_c_volatile = no; then
20332
cristy8b350f62009-11-15 23:12:43 +000020333$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020334
20335fi
20336
cristy8b350f62009-11-15 23:12:43 +000020337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020338$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020339if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020340 $as_echo_n "(cached) " >&6
20341else
cristy8b350f62009-11-15 23:12:43 +000020342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020343/* end confdefs.h. */
20344#define x(y) #y
20345
20346char *s = x(teststring);
20347_ACEOF
20348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020349 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020350 ac_cv_c_stringize=no
20351else
20352 ac_cv_c_stringize=yes
20353fi
20354rm -f conftest*
20355
20356fi
cristy8b350f62009-11-15 23:12:43 +000020357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020358$as_echo "$ac_cv_c_stringize" >&6; }
20359if test $ac_cv_c_stringize = yes; then
20360
cristy8b350f62009-11-15 23:12:43 +000020361$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020362
20363fi
20364
cristy8b350f62009-11-15 23:12:43 +000020365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020366$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020367if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020368 $as_echo_n "(cached) " >&6
20369else
cristy8b350f62009-11-15 23:12:43 +000020370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020371/* end confdefs.h. */
20372#include <sys/types.h>
20373#include <sys/stat.h>
20374
20375#if defined S_ISBLK && defined S_IFDIR
20376extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20377#endif
20378
20379#if defined S_ISBLK && defined S_IFCHR
20380extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20381#endif
20382
20383#if defined S_ISLNK && defined S_IFREG
20384extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20385#endif
20386
20387#if defined S_ISSOCK && defined S_IFREG
20388extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20389#endif
20390
20391_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020392if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020393 ac_cv_header_stat_broken=no
20394else
cristy8b350f62009-11-15 23:12:43 +000020395 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020396fi
cristy3ed852e2009-09-05 21:47:34 +000020397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398fi
cristy8b350f62009-11-15 23:12:43 +000020399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020400$as_echo "$ac_cv_header_stat_broken" >&6; }
20401if test $ac_cv_header_stat_broken = yes; then
20402
cristy8b350f62009-11-15 23:12:43 +000020403$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020404
20405fi
20406
cristy8b350f62009-11-15 23:12:43 +000020407{ $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 +000020408$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020409if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020410 $as_echo_n "(cached) " >&6
20411else
cristy8b350f62009-11-15 23:12:43 +000020412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020413/* end confdefs.h. */
20414#include <sys/types.h>
20415#include <sys/time.h>
20416#include <time.h>
20417
20418int
20419main ()
20420{
20421if ((struct tm *) 0)
20422return 0;
20423 ;
20424 return 0;
20425}
20426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020427if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020428 ac_cv_header_time=yes
20429else
cristy8b350f62009-11-15 23:12:43 +000020430 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020431fi
cristy3ed852e2009-09-05 21:47:34 +000020432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20433fi
cristy8b350f62009-11-15 23:12:43 +000020434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020435$as_echo "$ac_cv_header_time" >&6; }
20436if test $ac_cv_header_time = yes; then
20437
cristy8b350f62009-11-15 23:12:43 +000020438$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020439
20440fi
20441
cristy8b350f62009-11-15 23:12:43 +000020442{ $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 +000020443$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020444if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020445 $as_echo_n "(cached) " >&6
20446else
cristy8b350f62009-11-15 23:12:43 +000020447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020448/* end confdefs.h. */
20449#include <sys/types.h>
20450#include <time.h>
20451
20452int
20453main ()
20454{
20455struct tm tm;
20456 int *p = &tm.tm_sec;
20457 return !p;
20458 ;
20459 return 0;
20460}
20461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020462if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020463 ac_cv_struct_tm=time.h
20464else
cristy8b350f62009-11-15 23:12:43 +000020465 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020466fi
cristy3ed852e2009-09-05 21:47:34 +000020467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20468fi
cristy8b350f62009-11-15 23:12:43 +000020469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020470$as_echo "$ac_cv_struct_tm" >&6; }
20471if test $ac_cv_struct_tm = sys/time.h; then
20472
cristy8b350f62009-11-15 23:12:43 +000020473$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020474
20475fi
20476
cristy8b350f62009-11-15 23:12:43 +000020477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000020478$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020479if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020480 $as_echo_n "(cached) " >&6
20481else
20482 echo '#! /bin/cat
20483exit 69
20484' >conftest
20485chmod u+x conftest
20486(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20487if test $? -ne 69; then
20488 ac_cv_sys_interpreter=yes
20489else
20490 ac_cv_sys_interpreter=no
20491fi
20492rm -f conftest
20493fi
cristy8b350f62009-11-15 23:12:43 +000020494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000020495$as_echo "$ac_cv_sys_interpreter" >&6; }
20496interpval=$ac_cv_sys_interpreter
20497
20498
cristy3ed852e2009-09-05 21:47:34 +000020499# If the C compiler supports the keyword inline, do nothing. Otherwise
20500# define inline to __inline__ or __inline if it accepts one of those,
20501# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000020502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020503$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020504if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020505 $as_echo_n "(cached) " >&6
20506else
20507 ac_cv_c_inline=no
20508for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000020509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020510/* end confdefs.h. */
20511#ifndef __cplusplus
20512typedef int foo_t;
20513static $ac_kw foo_t static_foo () {return 0; }
20514$ac_kw foo_t foo () {return 0; }
20515#endif
20516
20517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020518if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020519 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020520fi
cristy3ed852e2009-09-05 21:47:34 +000020521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522 test "$ac_cv_c_inline" != no && break
20523done
20524
20525fi
cristy8b350f62009-11-15 23:12:43 +000020526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020527$as_echo "$ac_cv_c_inline" >&6; }
20528
cristy3ed852e2009-09-05 21:47:34 +000020529case $ac_cv_c_inline in
20530 inline | yes) ;;
20531 *)
20532 case $ac_cv_c_inline in
20533 no) ac_val=;;
20534 *) ac_val=$ac_cv_c_inline;;
20535 esac
20536 cat >>confdefs.h <<_ACEOF
20537#ifndef __cplusplus
20538#define inline $ac_val
20539#endif
20540_ACEOF
20541 ;;
20542esac
20543
20544
20545# If the C compiler supports the keyword restrict, do nothing. Otherwise
20546# define restrict to __restrict__ or __restrict if it accepts one of those,
20547# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000020548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000020549$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020550if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020551 $as_echo_n "(cached) " >&6
20552else
20553 ac_cv_c_restrict=no
20554 # The order here caters to the fact that C++ does not require restrict.
20555 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000020556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020557/* end confdefs.h. */
20558typedef int * int_ptr;
20559 int foo (int_ptr $ac_kw ip) {
20560 return ip[0];
20561 }
20562int
20563main ()
20564{
20565int s[1];
20566 int * $ac_kw t = s;
20567 t[0] = 0;
20568 return foo(t)
20569 ;
20570 return 0;
20571}
20572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020573if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020574 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020575fi
cristy3ed852e2009-09-05 21:47:34 +000020576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577 test "$ac_cv_c_restrict" != no && break
20578 done
20579
20580fi
cristy8b350f62009-11-15 23:12:43 +000020581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000020582$as_echo "$ac_cv_c_restrict" >&6; }
20583
cristy3ed852e2009-09-05 21:47:34 +000020584 case $ac_cv_c_restrict in
20585 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000020586 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020587 ;;
20588 *) cat >>confdefs.h <<_ACEOF
20589#define restrict $ac_cv_c_restrict
20590_ACEOF
20591 ;;
20592 esac
20593
20594
20595# If words are stored with the most significant byte first (like
20596# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000020597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020598$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020599if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020600 $as_echo_n "(cached) " >&6
20601else
20602 ac_cv_c_bigendian=unknown
20603 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000020604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020605/* end confdefs.h. */
20606#ifndef __APPLE_CC__
20607 not a universal capable compiler
20608 #endif
20609 typedef int dummy;
20610
20611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020612if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020613
20614 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000020615 # there are at least two -arch flags with different values.
20616 ac_arch=
20617 ac_prev=
20618 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20619 if test -n "$ac_prev"; then
20620 case $ac_word in
20621 i?86 | x86_64 | ppc | ppc64)
20622 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20623 ac_arch=$ac_word
20624 else
20625 ac_cv_c_bigendian=universal
20626 break
20627 fi
20628 ;;
20629 esac
20630 ac_prev=
20631 elif test "x$ac_word" = "x-arch"; then
20632 ac_prev=arch
20633 fi
20634 done
cristy3ed852e2009-09-05 21:47:34 +000020635fi
cristy3ed852e2009-09-05 21:47:34 +000020636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20637 if test $ac_cv_c_bigendian = unknown; then
20638 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000020639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020640/* end confdefs.h. */
20641#include <sys/types.h>
20642 #include <sys/param.h>
20643
20644int
20645main ()
20646{
20647#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20648 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20649 && LITTLE_ENDIAN)
20650 bogus endian macros
20651 #endif
20652
20653 ;
20654 return 0;
20655}
20656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020657if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020658 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020660/* end confdefs.h. */
20661#include <sys/types.h>
20662 #include <sys/param.h>
20663
20664int
20665main ()
20666{
20667#if BYTE_ORDER != BIG_ENDIAN
20668 not big endian
20669 #endif
20670
20671 ;
20672 return 0;
20673}
20674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020675if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020676 ac_cv_c_bigendian=yes
20677else
cristy8b350f62009-11-15 23:12:43 +000020678 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020679fi
cristy3ed852e2009-09-05 21:47:34 +000020680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020681fi
cristy3ed852e2009-09-05 21:47:34 +000020682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683 fi
20684 if test $ac_cv_c_bigendian = unknown; then
20685 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020687/* end confdefs.h. */
20688#include <limits.h>
20689
20690int
20691main ()
20692{
20693#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20694 bogus endian macros
20695 #endif
20696
20697 ;
20698 return 0;
20699}
20700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020701if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020702 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020704/* end confdefs.h. */
20705#include <limits.h>
20706
20707int
20708main ()
20709{
20710#ifndef _BIG_ENDIAN
20711 not big endian
20712 #endif
20713
20714 ;
20715 return 0;
20716}
20717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020718if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020719 ac_cv_c_bigendian=yes
20720else
cristy8b350f62009-11-15 23:12:43 +000020721 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020722fi
cristy3ed852e2009-09-05 21:47:34 +000020723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020724fi
cristy3ed852e2009-09-05 21:47:34 +000020725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 fi
20727 if test $ac_cv_c_bigendian = unknown; then
20728 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020729 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020730 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020732/* end confdefs.h. */
20733short int ascii_mm[] =
20734 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20735 short int ascii_ii[] =
20736 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20737 int use_ascii (int i) {
20738 return ascii_mm[i] + ascii_ii[i];
20739 }
20740 short int ebcdic_ii[] =
20741 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20742 short int ebcdic_mm[] =
20743 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20744 int use_ebcdic (int i) {
20745 return ebcdic_mm[i] + ebcdic_ii[i];
20746 }
20747 extern int foo;
20748
20749int
20750main ()
20751{
20752return use_ascii (foo) == use_ebcdic (foo);
20753 ;
20754 return 0;
20755}
20756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020757if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020758 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20759 ac_cv_c_bigendian=yes
20760 fi
20761 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20762 if test "$ac_cv_c_bigendian" = unknown; then
20763 ac_cv_c_bigendian=no
20764 else
20765 # finding both strings is unlikely to happen, but who knows?
20766 ac_cv_c_bigendian=unknown
20767 fi
20768 fi
cristy3ed852e2009-09-05 21:47:34 +000020769fi
cristy3ed852e2009-09-05 21:47:34 +000020770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771else
cristy8b350f62009-11-15 23:12:43 +000020772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020773/* end confdefs.h. */
20774$ac_includes_default
20775int
20776main ()
20777{
20778
20779 /* Are we little or big endian? From Harbison&Steele. */
20780 union
20781 {
20782 long int l;
20783 char c[sizeof (long int)];
20784 } u;
20785 u.l = 1;
20786 return u.c[sizeof (long int) - 1] == 1;
20787
20788 ;
20789 return 0;
20790}
20791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020792if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020793 ac_cv_c_bigendian=no
20794else
cristy8b350f62009-11-15 23:12:43 +000020795 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020796fi
cristy8b350f62009-11-15 23:12:43 +000020797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20798 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020799fi
20800
cristy3ed852e2009-09-05 21:47:34 +000020801 fi
20802fi
cristy8b350f62009-11-15 23:12:43 +000020803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020804$as_echo "$ac_cv_c_bigendian" >&6; }
20805 case $ac_cv_c_bigendian in #(
20806 yes)
cristy8b350f62009-11-15 23:12:43 +000020807 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020808;; #(
20809 no)
20810 ;; #(
20811 universal)
20812
cristy8b350f62009-11-15 23:12:43 +000020813$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020814
20815 ;; #(
20816 *)
cristy8b350f62009-11-15 23:12:43 +000020817 as_fn_error "unknown endianness
20818 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020819 esac
20820
20821
20822# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020823ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20824if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020825
cristy3ed852e2009-09-05 21:47:34 +000020826else
20827
20828cat >>confdefs.h <<_ACEOF
20829#define mode_t int
20830_ACEOF
20831
20832fi
20833
20834
20835# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020836ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20837if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020838
cristy3ed852e2009-09-05 21:47:34 +000020839else
20840
20841cat >>confdefs.h <<_ACEOF
20842#define off_t long int
20843_ACEOF
20844
20845fi
20846
20847
20848# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020849ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20850if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020851
cristy3ed852e2009-09-05 21:47:34 +000020852else
20853
20854cat >>confdefs.h <<_ACEOF
20855#define pid_t int
20856_ACEOF
20857
20858fi
20859
20860
20861# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020862ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20863if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020864
cristy3ed852e2009-09-05 21:47:34 +000020865else
20866
20867cat >>confdefs.h <<_ACEOF
20868#define size_t unsigned int
20869_ACEOF
20870
20871fi
20872
20873
20874# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020875ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20876if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020877
cristy3ed852e2009-09-05 21:47:34 +000020878else
20879
20880cat >>confdefs.h <<_ACEOF
20881#define ssize_t int
20882_ACEOF
20883
20884fi
20885
20886
20887# If the C compiler supports a working long double type with more range
20888# or precision than the double type, define HAVE_LONG_DOUBLE.
20889
cristy8b350f62009-11-15 23:12:43 +000020890 { $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 +000020891$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020892if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020893 $as_echo_n "(cached) " >&6
20894else
cristy8b350f62009-11-15 23:12:43 +000020895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020896/* end confdefs.h. */
20897#include <float.h>
20898 long double const a[] =
20899 {
20900 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20901 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20902 };
20903 long double
20904 f (long double x)
20905 {
20906 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20907 + (x ? f (x) : 'c'));
20908 }
20909
20910int
20911main ()
20912{
20913static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20914 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20915 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20916 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20917 && (int) LDBL_EPSILON == 0
20918 )];
20919test_array [0] = 0
20920
20921 ;
20922 return 0;
20923}
20924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020925if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020926 ac_cv_type_long_double_wider=yes
20927else
cristy8b350f62009-11-15 23:12:43 +000020928 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020929fi
cristy3ed852e2009-09-05 21:47:34 +000020930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931fi
cristy8b350f62009-11-15 23:12:43 +000020932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020933$as_echo "$ac_cv_type_long_double_wider" >&6; }
20934 if test $ac_cv_type_long_double_wider = yes; then
20935
cristy8b350f62009-11-15 23:12:43 +000020936$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020937
20938 fi
20939
20940
20941# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20942# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020944$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020945if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020946 $as_echo_n "(cached) " >&6
20947else
cristy8b350f62009-11-15 23:12:43 +000020948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020949/* end confdefs.h. */
20950$ac_includes_default
20951int
20952main ()
20953{
20954static int test_array [1 - 2 * !(((char) -1) < 0)];
20955test_array [0] = 0
20956
20957 ;
20958 return 0;
20959}
20960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020961if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020962 ac_cv_c_char_unsigned=no
20963else
cristy8b350f62009-11-15 23:12:43 +000020964 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020965fi
cristy3ed852e2009-09-05 21:47:34 +000020966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967fi
cristy8b350f62009-11-15 23:12:43 +000020968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020969$as_echo "$ac_cv_c_char_unsigned" >&6; }
20970if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020971 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020972
20973fi
20974
20975
20976# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20977# The cast to long int works around a bug in the HP C Compiler
20978# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20979# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20980# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020982$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020983if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020984 $as_echo_n "(cached) " >&6
20985else
cristy8b350f62009-11-15 23:12:43 +000020986 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 +000020987
cristy3ed852e2009-09-05 21:47:34 +000020988else
cristy8b350f62009-11-15 23:12:43 +000020989 if test "$ac_cv_type_signed_short" = yes; then
20990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020992{ as_fn_set_status 77
20993as_fn_error "cannot compute sizeof (signed short)
20994See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020995 else
20996 ac_cv_sizeof_signed_short=0
20997 fi
20998fi
cristy8b350f62009-11-15 23:12:43 +000020999
cristy3ed852e2009-09-05 21:47:34 +000021000fi
cristy8b350f62009-11-15 23:12:43 +000021001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021002$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21003
21004
21005
21006cat >>confdefs.h <<_ACEOF
21007#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21008_ACEOF
21009
21010
21011
21012# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21013# The cast to long int works around a bug in the HP C Compiler
21014# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21015# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21016# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021018$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021019if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021020 $as_echo_n "(cached) " >&6
21021else
cristy8b350f62009-11-15 23:12:43 +000021022 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 +000021023
cristy3ed852e2009-09-05 21:47:34 +000021024else
cristy8b350f62009-11-15 23:12:43 +000021025 if test "$ac_cv_type_unsigned_short" = yes; then
21026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021028{ as_fn_set_status 77
21029as_fn_error "cannot compute sizeof (unsigned short)
21030See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021031 else
21032 ac_cv_sizeof_unsigned_short=0
21033 fi
21034fi
cristy8b350f62009-11-15 23:12:43 +000021035
cristy3ed852e2009-09-05 21:47:34 +000021036fi
cristy8b350f62009-11-15 23:12:43 +000021037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021038$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21039
21040
21041
21042cat >>confdefs.h <<_ACEOF
21043#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21044_ACEOF
21045
21046
21047
21048# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21049# The cast to long int works around a bug in the HP C Compiler
21050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21052# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021054$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021055if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021056 $as_echo_n "(cached) " >&6
21057else
cristy8b350f62009-11-15 23:12:43 +000021058 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 +000021059
cristy3ed852e2009-09-05 21:47:34 +000021060else
cristy8b350f62009-11-15 23:12:43 +000021061 if test "$ac_cv_type_signed_int" = yes; then
21062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021064{ as_fn_set_status 77
21065as_fn_error "cannot compute sizeof (signed int)
21066See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021067 else
21068 ac_cv_sizeof_signed_int=0
21069 fi
21070fi
cristy8b350f62009-11-15 23:12:43 +000021071
cristy3ed852e2009-09-05 21:47:34 +000021072fi
cristy8b350f62009-11-15 23:12:43 +000021073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021074$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21075
21076
21077
21078cat >>confdefs.h <<_ACEOF
21079#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21080_ACEOF
21081
21082
21083
21084# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21085# The cast to long int works around a bug in the HP C Compiler
21086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21088# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021090$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021091if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021092 $as_echo_n "(cached) " >&6
21093else
cristy8b350f62009-11-15 23:12:43 +000021094 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 +000021095
cristy3ed852e2009-09-05 21:47:34 +000021096else
cristy8b350f62009-11-15 23:12:43 +000021097 if test "$ac_cv_type_unsigned_int" = yes; then
21098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021100{ as_fn_set_status 77
21101as_fn_error "cannot compute sizeof (unsigned int)
21102See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021103 else
21104 ac_cv_sizeof_unsigned_int=0
21105 fi
21106fi
cristy8b350f62009-11-15 23:12:43 +000021107
cristy3ed852e2009-09-05 21:47:34 +000021108fi
cristy8b350f62009-11-15 23:12:43 +000021109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021110$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21111
21112
21113
21114cat >>confdefs.h <<_ACEOF
21115#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21116_ACEOF
21117
21118
21119
21120# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21121# The cast to long int works around a bug in the HP C Compiler
21122# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21123# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21124# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021126$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021127if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021128 $as_echo_n "(cached) " >&6
21129else
cristy8b350f62009-11-15 23:12:43 +000021130 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 +000021131
cristy3ed852e2009-09-05 21:47:34 +000021132else
cristy8b350f62009-11-15 23:12:43 +000021133 if test "$ac_cv_type_signed_long" = yes; then
21134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021136{ as_fn_set_status 77
21137as_fn_error "cannot compute sizeof (signed long)
21138See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021139 else
21140 ac_cv_sizeof_signed_long=0
21141 fi
21142fi
cristy8b350f62009-11-15 23:12:43 +000021143
cristy3ed852e2009-09-05 21:47:34 +000021144fi
cristy8b350f62009-11-15 23:12:43 +000021145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021146$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21147
21148
21149
21150cat >>confdefs.h <<_ACEOF
21151#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21152_ACEOF
21153
21154
21155
21156# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21157# The cast to long int works around a bug in the HP C Compiler
21158# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21159# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21160# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021162$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021163if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021164 $as_echo_n "(cached) " >&6
21165else
cristy8b350f62009-11-15 23:12:43 +000021166 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 +000021167
cristy3ed852e2009-09-05 21:47:34 +000021168else
cristy8b350f62009-11-15 23:12:43 +000021169 if test "$ac_cv_type_unsigned_long" = yes; then
21170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021172{ as_fn_set_status 77
21173as_fn_error "cannot compute sizeof (unsigned long)
21174See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021175 else
21176 ac_cv_sizeof_unsigned_long=0
21177 fi
21178fi
cristy8b350f62009-11-15 23:12:43 +000021179
cristy3ed852e2009-09-05 21:47:34 +000021180fi
cristy8b350f62009-11-15 23:12:43 +000021181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021182$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21183
21184
21185
21186cat >>confdefs.h <<_ACEOF
21187#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21188_ACEOF
21189
21190
21191
21192# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21193# 'signed long long' is not supported then the value defined is zero.
21194# The cast to long int works around a bug in the HP C Compiler
21195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21197# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021199$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021200if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021201 $as_echo_n "(cached) " >&6
21202else
cristy8b350f62009-11-15 23:12:43 +000021203 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 +000021204
cristy3ed852e2009-09-05 21:47:34 +000021205else
cristy8b350f62009-11-15 23:12:43 +000021206 if test "$ac_cv_type_signed_long_long" = yes; then
21207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021209{ as_fn_set_status 77
21210as_fn_error "cannot compute sizeof (signed long long)
21211See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021212 else
21213 ac_cv_sizeof_signed_long_long=0
21214 fi
21215fi
cristy8b350f62009-11-15 23:12:43 +000021216
cristy3ed852e2009-09-05 21:47:34 +000021217fi
cristy8b350f62009-11-15 23:12:43 +000021218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021219$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21220
21221
21222
21223cat >>confdefs.h <<_ACEOF
21224#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21225_ACEOF
21226
21227
21228
21229# Obtain size of a 'unsigned long long' and define as
21230# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21231# supported then the value defined is zero.
21232# The cast to long int works around a bug in the HP C Compiler
21233# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21234# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21235# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021237$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021238if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021239 $as_echo_n "(cached) " >&6
21240else
cristy8b350f62009-11-15 23:12:43 +000021241 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 +000021242
cristy3ed852e2009-09-05 21:47:34 +000021243else
cristy8b350f62009-11-15 23:12:43 +000021244 if test "$ac_cv_type_unsigned_long_long" = yes; then
21245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021247{ as_fn_set_status 77
21248as_fn_error "cannot compute sizeof (unsigned long long)
21249See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021250 else
21251 ac_cv_sizeof_unsigned_long_long=0
21252 fi
21253fi
cristy8b350f62009-11-15 23:12:43 +000021254
cristy3ed852e2009-09-05 21:47:34 +000021255fi
cristy8b350f62009-11-15 23:12:43 +000021256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021257$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21258
21259
21260
21261cat >>confdefs.h <<_ACEOF
21262#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21263_ACEOF
21264
21265
21266
21267# Obtain size of off_t and define as SIZEOF_OFF_T
21268# The cast to long int works around a bug in the HP C Compiler
21269# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21270# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21271# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021273$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021274if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021275 $as_echo_n "(cached) " >&6
21276else
cristy8b350f62009-11-15 23:12:43 +000021277 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 +000021278
cristy3ed852e2009-09-05 21:47:34 +000021279else
cristy8b350f62009-11-15 23:12:43 +000021280 if test "$ac_cv_type_off_t" = yes; then
21281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021283{ as_fn_set_status 77
21284as_fn_error "cannot compute sizeof (off_t)
21285See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021286 else
21287 ac_cv_sizeof_off_t=0
21288 fi
21289fi
cristy8b350f62009-11-15 23:12:43 +000021290
cristy3ed852e2009-09-05 21:47:34 +000021291fi
cristy8b350f62009-11-15 23:12:43 +000021292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021293$as_echo "$ac_cv_sizeof_off_t" >&6; }
21294
21295
21296
21297cat >>confdefs.h <<_ACEOF
21298#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21299_ACEOF
21300
21301
21302
21303# Obtain size of size_t and define as SIZEOF_SIZE_T
21304# The cast to long int works around a bug in the HP C Compiler
21305# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21306# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21307# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021309$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021310if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021311 $as_echo_n "(cached) " >&6
21312else
cristy8b350f62009-11-15 23:12:43 +000021313 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 +000021314
cristy3ed852e2009-09-05 21:47:34 +000021315else
cristy8b350f62009-11-15 23:12:43 +000021316 if test "$ac_cv_type_size_t" = yes; then
21317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021319{ as_fn_set_status 77
21320as_fn_error "cannot compute sizeof (size_t)
21321See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021322 else
21323 ac_cv_sizeof_size_t=0
21324 fi
21325fi
cristy8b350f62009-11-15 23:12:43 +000021326
cristy3ed852e2009-09-05 21:47:34 +000021327fi
cristy8b350f62009-11-15 23:12:43 +000021328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021329$as_echo "$ac_cv_sizeof_size_t" >&6; }
21330
21331
21332
21333cat >>confdefs.h <<_ACEOF
21334#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21335_ACEOF
21336
21337
21338
21339# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21340# The cast to long int works around a bug in the HP C Compiler
21341# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21342# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21343# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021345$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021346if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021347 $as_echo_n "(cached) " >&6
21348else
cristy8b350f62009-11-15 23:12:43 +000021349 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 +000021350
cristy3ed852e2009-09-05 21:47:34 +000021351else
cristy8b350f62009-11-15 23:12:43 +000021352 if test "$ac_cv_type_unsigned_intp" = yes; then
21353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021355{ as_fn_set_status 77
21356as_fn_error "cannot compute sizeof (unsigned int*)
21357See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021358 else
21359 ac_cv_sizeof_unsigned_intp=0
21360 fi
21361fi
cristy8b350f62009-11-15 23:12:43 +000021362
cristy3ed852e2009-09-05 21:47:34 +000021363fi
cristy8b350f62009-11-15 23:12:43 +000021364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021365$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21366
21367
21368
21369cat >>confdefs.h <<_ACEOF
21370#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21371_ACEOF
21372
21373
21374
21375#
21376# Compute sized types for current CPU and compiler options.
21377#
21378
cristy8b350f62009-11-15 23:12:43 +000021379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021380$as_echo_n "checking for signed 8-bit type... " >&6; }
21381INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021383$as_echo "$INT8_T" >&6; }
21384
21385
cristy8b350f62009-11-15 23:12:43 +000021386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021387$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21388UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021390$as_echo "$UINT8_T" >&6; }
21391
21392
cristy8b350f62009-11-15 23:12:43 +000021393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021394$as_echo_n "checking for signed 16-bit type... " >&6; }
21395INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021397$as_echo "$INT16_T" >&6; }
21398
21399
cristy8b350f62009-11-15 23:12:43 +000021400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021401$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21402UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021404$as_echo "$UINT16_T" >&6; }
21405
21406
cristy8b350f62009-11-15 23:12:43 +000021407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021408$as_echo_n "checking for signed 32-bit type... " >&6; }
21409INT32_T='none'
21410if test $ac_cv_sizeof_signed_int -eq 4; then
21411 INT32_T='signed int'
21412elif test $ac_cv_sizeof_signed_long -eq 4; then
21413 INT32_T='signed long'
21414fi
cristy8b350f62009-11-15 23:12:43 +000021415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021416$as_echo "$INT32_T" >&6; }
21417
21418
cristy8b350f62009-11-15 23:12:43 +000021419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021420$as_echo_n "checking for unsigned 32-bit type... " >&6; }
21421UINT32_T='none'
21422if test $ac_cv_sizeof_unsigned_int -eq 4; then
21423 UINT32_T='unsigned int'
21424elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21425 UINT32_T='unsigned long'
21426fi
cristy8b350f62009-11-15 23:12:43 +000021427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021428$as_echo "$UINT32_T" >&6; }
21429
21430
cristy8b350f62009-11-15 23:12:43 +000021431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021432$as_echo_n "checking for signed 64-bit type... " >&6; }
21433INT64_T='none'
21434if test $ac_cv_sizeof_signed_long -eq 8; then
21435 INT64_T='signed long'
21436elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21437 INT64_T='signed long long'
21438fi
cristy8b350f62009-11-15 23:12:43 +000021439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021440$as_echo "$INT64_T" >&6; }
21441
21442
cristy8b350f62009-11-15 23:12:43 +000021443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021444$as_echo_n "checking for unsigned 64-bit type... " >&6; }
21445UINT64_T='none'
21446if test $ac_cv_sizeof_unsigned_long -eq 8; then
21447 UINT64_T='unsigned long'
21448elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21449 UINT64_T='unsigned long long'
21450fi
cristy8b350f62009-11-15 23:12:43 +000021451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021452$as_echo "$UINT64_T" >&6; }
21453
21454
cristy8b350f62009-11-15 23:12:43 +000021455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021456$as_echo_n "checking for unsigned maximum type... " >&6; }
21457UINTMAX_T='none'
21458if test "$UINT64_T" != 'none'; then
21459 UINTMAX_T=$UINT64_T
21460elif test "$UINT32_T" != 'none'; then
21461 UINTMAX_T=$UINT32_T
21462fi
cristy8b350f62009-11-15 23:12:43 +000021463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021464$as_echo "$UINTMAX_T" >&6; }
21465
21466
cristy8b350f62009-11-15 23:12:43 +000021467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021468$as_echo_n "checking for pointer difference type... " >&6; }
21469UINTPTR_T='none'
21470if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21471 UINTPTR_T='unsigned long'
21472elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21473 UINTPTR_T='unsigned long long'
21474fi
cristy8b350f62009-11-15 23:12:43 +000021475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021476$as_echo "$UINTPTR_T" >&6; }
21477
21478
cristy8b350f62009-11-15 23:12:43 +000021479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021480$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021482/* end confdefs.h. */
21483
21484int
21485main ()
21486{
21487{ const char *func = __func__; return(func != 0 ? 0 : 1); }
21488 ;
21489 return 0;
21490}
21491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021492if ac_fn_c_try_compile "$LINENO"; then :
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021494$as_echo "yes" >&6; }
21495else
cristy8b350f62009-11-15 23:12:43 +000021496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021497$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021499$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021501/* end confdefs.h. */
21502
21503int
21504main ()
21505{
21506{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21507 ;
21508 return 0;
21509}
21510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021511if ac_fn_c_try_compile "$LINENO"; then :
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021513$as_echo "yes" >&6; }
21514
cristy8b350f62009-11-15 23:12:43 +000021515$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021516
21517else
cristy8b350f62009-11-15 23:12:43 +000021518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021519$as_echo "no" >&6; }
21520
cristy8b350f62009-11-15 23:12:43 +000021521$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021522
21523fi
cristy3ed852e2009-09-05 21:47:34 +000021524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525fi
cristy3ed852e2009-09-05 21:47:34 +000021526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21527
21528########
21529#
21530# Check for functions
21531#
21532########
cristy3ed852e2009-09-05 21:47:34 +000021533for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000021534do :
21535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21536ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21537eval as_val=\$$as_ac_Header
21538 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021539 cat >>confdefs.h <<_ACEOF
21540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21541_ACEOF
21542
21543fi
21544
21545done
21546
cristy3ed852e2009-09-05 21:47:34 +000021547for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021548do :
21549 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21550if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021551 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021552#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021553_ACEOF
21554
21555fi
21556done
21557
cristy8b350f62009-11-15 23:12:43 +000021558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000021559$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021560if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021561 $as_echo_n "(cached) " >&6
21562else
cristy8b350f62009-11-15 23:12:43 +000021563 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021564 magick_cv_func_mmap_fileio=no
21565else
cristy8b350f62009-11-15 23:12:43 +000021566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021567/* end confdefs.h. */
21568$ac_includes_default
21569/* malloc might have been renamed as rpl_malloc. */
21570#undef malloc
21571
21572/*
21573 This test is derived from GNU Autoconf's similar macro.
21574 The purpose of this test is to verify that files may be memory
21575 mapped, and that memory mapping and file I/O are coherent.
21576
21577 The test creates a test file, memory maps the file, updates
21578 the file using the memory map, and then reads the file using
21579 file I/O to verify that the file contains the updates.
21580*/
21581
21582#include <fcntl.h>
21583#include <sys/mman.h>
21584
21585#if !STDC_HEADERS && !HAVE_STDLIB_H
21586char *malloc ();
21587#endif
21588
21589/* This mess was copied from the GNU getpagesize.h. */
21590#if !HAVE_GETPAGESIZE
21591/* Assume that all systems that can run configure have sys/param.h. */
21592# if !HAVE_SYS_PARAM_H
21593# define HAVE_SYS_PARAM_H 1
21594# endif
21595
21596# ifdef _SC_PAGESIZE
21597# define getpagesize() sysconf(_SC_PAGESIZE)
21598# else /* no _SC_PAGESIZE */
21599# if HAVE_SYS_PARAM_H
21600# include <sys/param.h>
21601# ifdef EXEC_PAGESIZE
21602# define getpagesize() EXEC_PAGESIZE
21603# else /* no EXEC_PAGESIZE */
21604# ifdef NBPG
21605# define getpagesize() NBPG * CLSIZE
21606# ifndef CLSIZE
21607# define CLSIZE 1
21608# endif /* no CLSIZE */
21609# else /* no NBPG */
21610# ifdef NBPC
21611# define getpagesize() NBPC
21612# else /* no NBPC */
21613# ifdef PAGESIZE
21614# define getpagesize() PAGESIZE
21615# endif /* PAGESIZE */
21616# endif /* no NBPC */
21617# endif /* no NBPG */
21618# endif /* no EXEC_PAGESIZE */
21619# else /* no HAVE_SYS_PARAM_H */
21620# define getpagesize() 8192 /* punt totally */
21621# endif /* no HAVE_SYS_PARAM_H */
21622# endif /* no _SC_PAGESIZE */
21623
21624#endif /* no HAVE_GETPAGESIZE */
21625
21626int
21627main ()
21628{
21629 char *data, *data2, *data3;
21630 int i, pagesize;
21631 int fd;
21632
21633 pagesize = getpagesize ();
21634
21635 /* First, make a file with some known garbage in it. */
21636 data = (char *) malloc (pagesize);
21637 if (!data)
21638 exit (1);
21639 for (i = 0; i < pagesize; ++i)
21640 *(data + i) = rand ();
21641 umask (0);
21642 fd = creat ("conftest.mmap", 0600);
21643 if (fd < 0)
21644 exit (1);
21645 if (write (fd, data, pagesize) != pagesize)
21646 exit (1);
21647 close (fd);
21648
21649 /* Mmap the file as read/write/shared and verify that we see the
21650 same garbage. */
21651 fd = open ("conftest.mmap", O_RDWR);
21652 if (fd < 0)
21653 exit (1);
21654 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21655 if (data2 == 0)
21656 exit (1);
21657 for (i = 0; i < pagesize; ++i)
21658 if (*(data + i) != *(data2 + i))
21659 exit (1);
21660
21661 /* Finally, make sure that changes to the mapped area
21662 percolate back to the file as seen by read(). */
21663 for (i = 0; i < pagesize; ++i)
21664 *(data2 + i) = *(data2 + i) + 1;
21665 data3 = (char *) malloc (pagesize);
21666 if (!data3)
21667 exit (1);
21668 if (read (fd, data3, pagesize) != pagesize)
21669 exit (1);
21670 for (i = 0; i < pagesize; ++i)
21671 if (*(data2 + i) != *(data3 + i))
21672 exit (1);
21673 close (fd);
21674 exit (0);
21675}
21676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021677if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021678 magick_cv_func_mmap_fileio=yes
21679else
cristy8b350f62009-11-15 23:12:43 +000021680 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021681fi
cristy8b350f62009-11-15 23:12:43 +000021682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21683 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021684fi
21685
cristy3ed852e2009-09-05 21:47:34 +000021686fi
cristy8b350f62009-11-15 23:12:43 +000021687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021688$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21689if test $magick_cv_func_mmap_fileio = yes; then
21690
cristy8b350f62009-11-15 23:12:43 +000021691$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021692
21693fi
21694rm -f conftest.mmap
21695
cristy8b350f62009-11-15 23:12:43 +000021696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021697$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021698if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021699 $as_echo_n "(cached) " >&6
21700else
cristy8b350f62009-11-15 23:12:43 +000021701 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021702 ac_cv_func_closedir_void=yes
21703else
cristy8b350f62009-11-15 23:12:43 +000021704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021705/* end confdefs.h. */
21706$ac_includes_default
21707#include <$ac_header_dirent>
21708#ifndef __cplusplus
21709int closedir ();
21710#endif
21711
21712int
21713main ()
21714{
21715return closedir (opendir (".")) != 0;
21716 ;
21717 return 0;
21718}
21719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021720if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 ac_cv_func_closedir_void=no
21722else
cristy8b350f62009-11-15 23:12:43 +000021723 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021724fi
cristy8b350f62009-11-15 23:12:43 +000021725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21726 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021727fi
21728
cristy3ed852e2009-09-05 21:47:34 +000021729fi
cristy8b350f62009-11-15 23:12:43 +000021730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021731$as_echo "$ac_cv_func_closedir_void" >&6; }
21732if test $ac_cv_func_closedir_void = yes; then
21733
cristy8b350f62009-11-15 23:12:43 +000021734$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021735
21736fi
21737
cristycd4c5312009-11-22 01:19:08 +000021738
21739
21740
21741 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021742do :
21743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021744ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21745"
cristy8b350f62009-11-15 23:12:43 +000021746eval as_val=\$$as_ac_Header
21747 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021748 cat >>confdefs.h <<_ACEOF
21749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21750_ACEOF
21751
21752fi
21753
21754done
21755
cristycd4c5312009-11-22 01:19:08 +000021756
21757
21758
21759
21760
21761
21762
cristy3ed852e2009-09-05 21:47:34 +000021763for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021764do :
21765 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21766if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021767 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021768#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021769_ACEOF
21770
21771fi
21772done
21773
cristy8b350f62009-11-15 23:12:43 +000021774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021775$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021776if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021777 $as_echo_n "(cached) " >&6
21778else
cristy8b350f62009-11-15 23:12:43 +000021779 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021780 ac_cv_func_mmap_fixed_mapped=no
21781else
cristy8b350f62009-11-15 23:12:43 +000021782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021783/* end confdefs.h. */
21784$ac_includes_default
21785/* malloc might have been renamed as rpl_malloc. */
21786#undef malloc
21787
21788/* Thanks to Mike Haertel and Jim Avera for this test.
21789 Here is a matrix of mmap possibilities:
21790 mmap private not fixed
21791 mmap private fixed at somewhere currently unmapped
21792 mmap private fixed at somewhere already mapped
21793 mmap shared not fixed
21794 mmap shared fixed at somewhere currently unmapped
21795 mmap shared fixed at somewhere already mapped
21796 For private mappings, we should verify that changes cannot be read()
21797 back from the file, nor mmap's back from the file at a different
21798 address. (There have been systems where private was not correctly
21799 implemented like the infamous i386 svr4.0, and systems where the
21800 VM page cache was not coherent with the file system buffer cache
21801 like early versions of FreeBSD and possibly contemporary NetBSD.)
21802 For shared mappings, we should conversely verify that changes get
21803 propagated back to all the places they're supposed to be.
21804
21805 Grep wants private fixed already mapped.
21806 The main things grep needs to know about mmap are:
21807 * does it exist and is it safe to write into the mmap'd area
21808 * how to use it (BSD variants) */
21809
21810#include <fcntl.h>
21811#include <sys/mman.h>
21812
21813#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21814char *malloc ();
21815#endif
21816
21817/* This mess was copied from the GNU getpagesize.h. */
21818#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021819# ifdef _SC_PAGESIZE
21820# define getpagesize() sysconf(_SC_PAGESIZE)
21821# else /* no _SC_PAGESIZE */
21822# ifdef HAVE_SYS_PARAM_H
21823# include <sys/param.h>
21824# ifdef EXEC_PAGESIZE
21825# define getpagesize() EXEC_PAGESIZE
21826# else /* no EXEC_PAGESIZE */
21827# ifdef NBPG
21828# define getpagesize() NBPG * CLSIZE
21829# ifndef CLSIZE
21830# define CLSIZE 1
21831# endif /* no CLSIZE */
21832# else /* no NBPG */
21833# ifdef NBPC
21834# define getpagesize() NBPC
21835# else /* no NBPC */
21836# ifdef PAGESIZE
21837# define getpagesize() PAGESIZE
21838# endif /* PAGESIZE */
21839# endif /* no NBPC */
21840# endif /* no NBPG */
21841# endif /* no EXEC_PAGESIZE */
21842# else /* no HAVE_SYS_PARAM_H */
21843# define getpagesize() 8192 /* punt totally */
21844# endif /* no HAVE_SYS_PARAM_H */
21845# endif /* no _SC_PAGESIZE */
21846
21847#endif /* no HAVE_GETPAGESIZE */
21848
21849int
21850main ()
21851{
21852 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021853 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021854 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021855 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021856
21857 pagesize = getpagesize ();
21858
21859 /* First, make a file with some known garbage in it. */
21860 data = (char *) malloc (pagesize);
21861 if (!data)
21862 return 1;
21863 for (i = 0; i < pagesize; ++i)
21864 *(data + i) = rand ();
21865 umask (0);
21866 fd = creat ("conftest.mmap", 0600);
21867 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021868 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021869 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021870 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021871 close (fd);
21872
cristycd4c5312009-11-22 01:19:08 +000021873 /* Next, check that the tail of a page is zero-filled. File must have
21874 non-zero length, otherwise we risk SIGBUS for entire page. */
21875 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21876 if (fd2 < 0)
21877 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021878 cdata2 = "";
21879 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021880 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021881 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021882 if (data2 == MAP_FAILED)
21883 return 6;
21884 for (i = 0; i < pagesize; ++i)
21885 if (*(data2 + i))
21886 return 7;
21887 close (fd2);
21888 if (munmap (data2, pagesize))
21889 return 8;
21890
cristy3ed852e2009-09-05 21:47:34 +000021891 /* Next, try to mmap the file at a fixed address which already has
21892 something else allocated at it. If we can, also make sure that
21893 we see the same garbage. */
21894 fd = open ("conftest.mmap", O_RDWR);
21895 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021896 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021897 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21898 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021899 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021900 for (i = 0; i < pagesize; ++i)
21901 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021902 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021903
21904 /* Finally, make sure that changes to the mapped area do not
21905 percolate back to the file as seen by read(). (This is a bug on
21906 some variants of i386 svr4.0.) */
21907 for (i = 0; i < pagesize; ++i)
21908 *(data2 + i) = *(data2 + i) + 1;
21909 data3 = (char *) malloc (pagesize);
21910 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021911 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021912 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021913 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021914 for (i = 0; i < pagesize; ++i)
21915 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021916 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021917 close (fd);
21918 return 0;
21919}
21920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021921if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021922 ac_cv_func_mmap_fixed_mapped=yes
21923else
cristy8b350f62009-11-15 23:12:43 +000021924 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021925fi
cristy8b350f62009-11-15 23:12:43 +000021926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21927 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021928fi
21929
cristy3ed852e2009-09-05 21:47:34 +000021930fi
cristy8b350f62009-11-15 23:12:43 +000021931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021932$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21933if test $ac_cv_func_mmap_fixed_mapped = yes; then
21934
cristy8b350f62009-11-15 23:12:43 +000021935$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021936
21937fi
cristycd4c5312009-11-22 01:19:08 +000021938rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021939
cristy3ed852e2009-09-05 21:47:34 +000021940for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021941do :
21942 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21943if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021945#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021946_ACEOF
21947
21948fi
21949
21950done
21951
cristy3ed852e2009-09-05 21:47:34 +000021952for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021953do :
21954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21955ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21956eval as_val=\$$as_ac_var
21957 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021958 cat >>confdefs.h <<_ACEOF
21959#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21960_ACEOF
21961
21962fi
21963done
21964
21965if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021967$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021968if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021969 $as_echo_n "(cached) " >&6
21970else
cristy8b350f62009-11-15 23:12:43 +000021971 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021972 ac_cv_func_fork_works=cross
21973else
cristy8b350f62009-11-15 23:12:43 +000021974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021975/* end confdefs.h. */
21976$ac_includes_default
21977int
21978main ()
21979{
21980
21981 /* By Ruediger Kuhlmann. */
21982 return fork () < 0;
21983
21984 ;
21985 return 0;
21986}
21987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021988if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021989 ac_cv_func_fork_works=yes
21990else
cristy8b350f62009-11-15 23:12:43 +000021991 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021992fi
cristy8b350f62009-11-15 23:12:43 +000021993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21994 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021995fi
21996
cristy3ed852e2009-09-05 21:47:34 +000021997fi
cristy8b350f62009-11-15 23:12:43 +000021998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021999$as_echo "$ac_cv_func_fork_works" >&6; }
22000
22001else
22002 ac_cv_func_fork_works=$ac_cv_func_fork
22003fi
22004if test "x$ac_cv_func_fork_works" = xcross; then
22005 case $host in
22006 *-*-amigaos* | *-*-msdosdjgpp*)
22007 # Override, as these systems have only a dummy fork() stub
22008 ac_cv_func_fork_works=no
22009 ;;
22010 *)
22011 ac_cv_func_fork_works=yes
22012 ;;
22013 esac
cristy8b350f62009-11-15 23:12:43 +000022014 { $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 +000022015$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22016fi
22017ac_cv_func_vfork_works=$ac_cv_func_vfork
22018if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022020$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022021if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022022 $as_echo_n "(cached) " >&6
22023else
cristy8b350f62009-11-15 23:12:43 +000022024 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022025 ac_cv_func_vfork_works=cross
22026else
cristy8b350f62009-11-15 23:12:43 +000022027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022028/* end confdefs.h. */
22029/* Thanks to Paul Eggert for this test. */
22030$ac_includes_default
22031#include <sys/wait.h>
22032#ifdef HAVE_VFORK_H
22033# include <vfork.h>
22034#endif
22035/* On some sparc systems, changes by the child to local and incoming
22036 argument registers are propagated back to the parent. The compiler
22037 is told about this with #include <vfork.h>, but some compilers
22038 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22039 static variable whose address is put into a register that is
22040 clobbered by the vfork. */
22041static void
22042#ifdef __cplusplus
22043sparc_address_test (int arg)
22044# else
22045sparc_address_test (arg) int arg;
22046#endif
22047{
22048 static pid_t child;
22049 if (!child) {
22050 child = vfork ();
22051 if (child < 0) {
22052 perror ("vfork");
22053 _exit(2);
22054 }
22055 if (!child) {
22056 arg = getpid();
22057 write(-1, "", 0);
22058 _exit (arg);
22059 }
22060 }
22061}
22062
22063int
22064main ()
22065{
22066 pid_t parent = getpid ();
22067 pid_t child;
22068
22069 sparc_address_test (0);
22070
22071 child = vfork ();
22072
22073 if (child == 0) {
22074 /* Here is another test for sparc vfork register problems. This
22075 test uses lots of local variables, at least as many local
22076 variables as main has allocated so far including compiler
22077 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22078 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22079 reuse the register of parent for one of the local variables,
22080 since it will think that parent can't possibly be used any more
22081 in this routine. Assigning to the local variable will thus
22082 munge parent in the parent process. */
22083 pid_t
22084 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22085 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22086 /* Convince the compiler that p..p7 are live; otherwise, it might
22087 use the same hardware register for all 8 local variables. */
22088 if (p != p1 || p != p2 || p != p3 || p != p4
22089 || p != p5 || p != p6 || p != p7)
22090 _exit(1);
22091
22092 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22093 from child file descriptors. If the child closes a descriptor
22094 before it execs or exits, this munges the parent's descriptor
22095 as well. Test for this by closing stdout in the child. */
22096 _exit(close(fileno(stdout)) != 0);
22097 } else {
22098 int status;
22099 struct stat st;
22100
22101 while (wait(&status) != child)
22102 ;
22103 return (
22104 /* Was there some problem with vforking? */
22105 child < 0
22106
22107 /* Did the child fail? (This shouldn't happen.) */
22108 || status
22109
22110 /* Did the vfork/compiler bug occur? */
22111 || parent != getpid()
22112
22113 /* Did the file descriptor bug occur? */
22114 || fstat(fileno(stdout), &st) != 0
22115 );
22116 }
22117}
22118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022119if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022120 ac_cv_func_vfork_works=yes
22121else
cristy8b350f62009-11-15 23:12:43 +000022122 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022123fi
cristy8b350f62009-11-15 23:12:43 +000022124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22125 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022126fi
22127
cristy3ed852e2009-09-05 21:47:34 +000022128fi
cristy8b350f62009-11-15 23:12:43 +000022129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022130$as_echo "$ac_cv_func_vfork_works" >&6; }
22131
22132fi;
22133if test "x$ac_cv_func_fork_works" = xcross; then
22134 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022135 { $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 +000022136$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22137fi
22138
22139if test "x$ac_cv_func_vfork_works" = xyes; then
22140
cristy8b350f62009-11-15 23:12:43 +000022141$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022142
22143else
22144
cristy8b350f62009-11-15 23:12:43 +000022145$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022146
22147fi
22148if test "x$ac_cv_func_fork_works" = xyes; then
22149
cristy8b350f62009-11-15 23:12:43 +000022150$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022151
22152fi
22153
cristy8b350f62009-11-15 23:12:43 +000022154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022155$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022156if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022157 $as_echo_n "(cached) " >&6
22158else
cristy8b350f62009-11-15 23:12:43 +000022159 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022160 ac_cv_func_memcmp_working=no
22161else
cristy8b350f62009-11-15 23:12:43 +000022162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022163/* end confdefs.h. */
22164$ac_includes_default
22165int
22166main ()
22167{
22168
22169 /* Some versions of memcmp are not 8-bit clean. */
22170 char c0 = '\100', c1 = '\200', c2 = '\201';
22171 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22172 return 1;
22173
22174 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22175 or more and with at least one buffer not starting on a 4-byte boundary.
22176 William Lewis provided this test program. */
22177 {
22178 char foo[21];
22179 char bar[21];
22180 int i;
22181 for (i = 0; i < 4; i++)
22182 {
22183 char *a = foo + i;
22184 char *b = bar + i;
22185 strcpy (a, "--------01111111");
22186 strcpy (b, "--------10000000");
22187 if (memcmp (a, b, 16) >= 0)
22188 return 1;
22189 }
22190 return 0;
22191 }
22192
22193 ;
22194 return 0;
22195}
22196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022197if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022198 ac_cv_func_memcmp_working=yes
22199else
cristy8b350f62009-11-15 23:12:43 +000022200 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022201fi
cristy8b350f62009-11-15 23:12:43 +000022202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22203 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022204fi
22205
cristy3ed852e2009-09-05 21:47:34 +000022206fi
cristy8b350f62009-11-15 23:12:43 +000022207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022208$as_echo "$ac_cv_func_memcmp_working" >&6; }
22209test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22210 *" memcmp.$ac_objext "* ) ;;
22211 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22212 ;;
22213esac
22214
22215
cristy3ed852e2009-09-05 21:47:34 +000022216for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022217do :
22218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22219ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22220eval as_val=\$$as_ac_Header
22221 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022222 cat >>confdefs.h <<_ACEOF
22223#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22224_ACEOF
22225
22226fi
22227
22228done
22229
cristy8b350f62009-11-15 23:12:43 +000022230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022231$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022232if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022233 $as_echo_n "(cached) " >&6
22234else
22235 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22236 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22237 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022239/* end confdefs.h. */
22240$ac_includes_default
22241#ifdef HAVE_SYS_SELECT_H
22242# include <sys/select.h>
22243#endif
22244#ifdef HAVE_SYS_SOCKET_H
22245# include <sys/socket.h>
22246#endif
22247
22248int
22249main ()
22250{
22251extern int select ($ac_arg1,
22252 $ac_arg234, $ac_arg234, $ac_arg234,
22253 $ac_arg5);
22254 ;
22255 return 0;
22256}
22257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022258if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022259 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022260fi
cristy3ed852e2009-09-05 21:47:34 +000022261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 done
22263 done
22264done
22265# Provide a safe default value.
22266: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22267
22268fi
cristy8b350f62009-11-15 23:12:43 +000022269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022270$as_echo "$ac_cv_func_select_args" >&6; }
22271ac_save_IFS=$IFS; IFS=','
22272set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22273IFS=$ac_save_IFS
22274shift
22275
22276cat >>confdefs.h <<_ACEOF
22277#define SELECT_TYPE_ARG1 $1
22278_ACEOF
22279
22280
22281cat >>confdefs.h <<_ACEOF
22282#define SELECT_TYPE_ARG234 ($2)
22283_ACEOF
22284
22285
22286cat >>confdefs.h <<_ACEOF
22287#define SELECT_TYPE_ARG5 ($3)
22288_ACEOF
22289
22290rm -f conftest*
22291
cristy8b350f62009-11-15 23:12:43 +000022292if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022293 $as_echo_n "(cached) " >&6
22294else
22295 ac_cv_func_setvbuf_reversed=no
22296fi
22297
22298
cristy8b350f62009-11-15 23:12:43 +000022299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022300$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022301if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022302 $as_echo_n "(cached) " >&6
22303else
cristy8b350f62009-11-15 23:12:43 +000022304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022305/* end confdefs.h. */
22306#include <sys/types.h>
22307#include <signal.h>
22308
22309int
22310main ()
22311{
22312return *(signal (0, 0)) (0) == 1;
22313 ;
22314 return 0;
22315}
22316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022317if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 ac_cv_type_signal=int
22319else
cristy8b350f62009-11-15 23:12:43 +000022320 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022321fi
cristy3ed852e2009-09-05 21:47:34 +000022322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22323fi
cristy8b350f62009-11-15 23:12:43 +000022324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022325$as_echo "$ac_cv_type_signal" >&6; }
22326
22327cat >>confdefs.h <<_ACEOF
22328#define RETSIGTYPE $ac_cv_type_signal
22329_ACEOF
22330
22331
cristy8b350f62009-11-15 23:12:43 +000022332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022333$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022334if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022335 $as_echo_n "(cached) " >&6
22336else
cristy8b350f62009-11-15 23:12:43 +000022337 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022338 ac_cv_func_strtod=no
22339else
cristy8b350f62009-11-15 23:12:43 +000022340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022341/* end confdefs.h. */
22342
22343$ac_includes_default
22344#ifndef strtod
22345double strtod ();
22346#endif
22347int
22348main()
22349{
22350 {
22351 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22352 char *string = " +69";
22353 char *term;
22354 double value;
22355 value = strtod (string, &term);
22356 if (value != 69 || term != (string + 4))
22357 return 1;
22358 }
22359
22360 {
22361 /* Under Solaris 2.4, strtod returns the wrong value for the
22362 terminating character under some conditions. */
22363 char *string = "NaN";
22364 char *term;
22365 strtod (string, &term);
22366 if (term != string && *(term - 1) == 0)
22367 return 1;
22368 }
22369 return 0;
22370}
22371
22372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022373if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022374 ac_cv_func_strtod=yes
22375else
cristy8b350f62009-11-15 23:12:43 +000022376 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022377fi
cristy8b350f62009-11-15 23:12:43 +000022378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22379 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022380fi
22381
cristy3ed852e2009-09-05 21:47:34 +000022382fi
cristy8b350f62009-11-15 23:12:43 +000022383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022384$as_echo "$ac_cv_func_strtod" >&6; }
22385if test $ac_cv_func_strtod = no; then
22386 case " $LIBOBJS " in
22387 *" strtod.$ac_objext "* ) ;;
22388 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22389 ;;
22390esac
22391
cristy8b350f62009-11-15 23:12:43 +000022392ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22393if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022394
cristy3ed852e2009-09-05 21:47:34 +000022395fi
22396
cristy3ed852e2009-09-05 21:47:34 +000022397if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022399$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022400if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022401 $as_echo_n "(cached) " >&6
22402else
22403 ac_check_lib_save_LIBS=$LIBS
22404LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022406/* end confdefs.h. */
22407
22408/* Override any GCC internal prototype to avoid an error.
22409 Use char because int might match the return type of a GCC
22410 builtin and then its argument prototype would still apply. */
22411#ifdef __cplusplus
22412extern "C"
22413#endif
22414char pow ();
22415int
22416main ()
22417{
22418return pow ();
22419 ;
22420 return 0;
22421}
22422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022424 ac_cv_lib_m_pow=yes
22425else
cristy8b350f62009-11-15 23:12:43 +000022426 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000022427fi
cristy8b350f62009-11-15 23:12:43 +000022428rm -f core conftest.err conftest.$ac_objext \
22429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022430LIBS=$ac_check_lib_save_LIBS
22431fi
cristy8b350f62009-11-15 23:12:43 +000022432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022433$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022434if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022435 POW_LIB=-lm
22436else
cristy8b350f62009-11-15 23:12:43 +000022437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022438$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22439fi
22440
22441fi
22442
22443fi
22444
cristy3ed852e2009-09-05 21:47:34 +000022445for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000022446do :
22447 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22448if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022449 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022450#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000022451_ACEOF
22452
cristy8b350f62009-11-15 23:12:43 +000022453ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22454if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022455
cristy8b350f62009-11-15 23:12:43 +000022456$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022457
22458fi
22459
22460fi
22461done
22462
22463
22464
cristy393bbe52010-01-11 16:32:56 +000022465for 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 +000022466do :
22467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22468ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22469eval as_val=\$$as_ac_var
22470 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022471 cat >>confdefs.h <<_ACEOF
22472#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22473_ACEOF
22474
22475fi
22476done
22477
22478
cristye43a45e2009-09-28 14:49:00 +000022479#
22480# Check for clock_gettime().
22481#
cristy8b350f62009-11-15 23:12:43 +000022482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022483$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022484if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022485 $as_echo_n "(cached) " >&6
22486else
22487 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022489/* end confdefs.h. */
22490
22491/* Override any GCC internal prototype to avoid an error.
22492 Use char because int might match the return type of a GCC
22493 builtin and then its argument prototype would still apply. */
22494#ifdef __cplusplus
22495extern "C"
22496#endif
22497char clock_gettime ();
22498int
22499main ()
22500{
22501return clock_gettime ();
22502 ;
22503 return 0;
22504}
22505_ACEOF
22506for ac_lib in '' rt; do
22507 if test -z "$ac_lib"; then
22508 ac_res="none required"
22509 else
22510 ac_res=-l$ac_lib
22511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22512 fi
cristy8b350f62009-11-15 23:12:43 +000022513 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022514 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000022515fi
cristy8b350f62009-11-15 23:12:43 +000022516rm -f core conftest.err conftest.$ac_objext \
22517 conftest$ac_exeext
22518 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022519 break
22520fi
22521done
cristy8b350f62009-11-15 23:12:43 +000022522if test "${ac_cv_search_clock_gettime+set}" = set; then :
22523
cristye43a45e2009-09-28 14:49:00 +000022524else
22525 ac_cv_search_clock_gettime=no
22526fi
22527rm conftest.$ac_ext
22528LIBS=$ac_func_search_save_LIBS
22529fi
cristy8b350f62009-11-15 23:12:43 +000022530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022531$as_echo "$ac_cv_search_clock_gettime" >&6; }
22532ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000022533if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000022534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22535
22536
cristy8b350f62009-11-15 23:12:43 +000022537$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022538
cristy8b350f62009-11-15 23:12:43 +000022539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000022540$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022542/* end confdefs.h. */
22543#include <time.h>
22544int
22545main ()
22546{
22547clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000022548 ;
22549 return 0;
22550}
22551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022552if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022553
cristy8b350f62009-11-15 23:12:43 +000022554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000022555$as_echo "yes" >&6; }
22556
cristy8b350f62009-11-15 23:12:43 +000022557$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022558
22559
22560else
cristy8b350f62009-11-15 23:12:43 +000022561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000022562$as_echo "no" >&6; }
22563
22564fi
cristye43a45e2009-09-28 14:49:00 +000022565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22566
22567else
22568
cristy8b350f62009-11-15 23:12:43 +000022569 for ac_func in gettimeofday ftime
22570do :
22571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22572ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22573eval as_val=\$$as_ac_var
22574 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000022575 cat >>confdefs.h <<_ACEOF
22576#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22577_ACEOF
22578 break
22579fi
22580done
22581
22582
22583
22584fi
22585
22586
cristy3ed852e2009-09-05 21:47:34 +000022587########
22588#
22589# Check for function prototypes
22590#
22591########
22592
cristy8b350f62009-11-15 23:12:43 +000022593ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000022594#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022595"
22596if test "x$ac_cv_have_decl_pread" = x""yes; then :
22597 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022598else
cristy8b350f62009-11-15 23:12:43 +000022599 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022600fi
22601
cristy3ed852e2009-09-05 21:47:34 +000022602cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022603#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022605ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000022606#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022607"
22608if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22609 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022610else
cristy8b350f62009-11-15 23:12:43 +000022611 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022612fi
22613
cristy3ed852e2009-09-05 21:47:34 +000022614cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022615#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022616_ACEOF
22617
22618
cristy8b350f62009-11-15 23:12:43 +000022619ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000022620#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000022621"
22622if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22623 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022624else
cristy8b350f62009-11-15 23:12:43 +000022625 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022626fi
22627
cristy3ed852e2009-09-05 21:47:34 +000022628cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022629#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022630_ACEOF
22631
22632
cristy8b350f62009-11-15 23:12:43 +000022633ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000022634#include <stdio.h>
22635#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000022636"
22637if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22638 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022639else
cristy8b350f62009-11-15 23:12:43 +000022640 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022641fi
22642
cristy3ed852e2009-09-05 21:47:34 +000022643cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022644#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022645_ACEOF
22646
22647
cristy3ed852e2009-09-05 21:47:34 +000022648########
22649#
22650# C++ Support Tests (For Magick++)
22651#
22652########
22653have_magick_plus_plus='no'
22654if test "$with_magick_plus_plus" = 'yes'; then
22655 OLIBS="$LIBS"
22656 LIBS=''
22657 ac_ext=cpp
22658ac_cpp='$CXXCPP $CPPFLAGS'
22659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22662
22663
22664 # Full set of headers used...
22665 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22666 # functional iomanip iosfwd iostream iterator list string strstream utility
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
22672
22673 ac_ext=cpp
22674ac_cpp='$CXXCPP $CPPFLAGS'
22675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22678if test -z "$CXX"; then
22679 if test -n "$CCC"; then
22680 CXX=$CCC
22681 else
22682 if test -n "$ac_tool_prefix"; then
22683 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22684 do
22685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022688$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022689if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022690 $as_echo_n "(cached) " >&6
22691else
22692 if test -n "$CXX"; then
22693 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22694else
22695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22696for as_dir in $PATH
22697do
22698 IFS=$as_save_IFS
22699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22702 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022704 break 2
22705 fi
22706done
cristy8b350f62009-11-15 23:12:43 +000022707 done
cristy3ed852e2009-09-05 21:47:34 +000022708IFS=$as_save_IFS
22709
22710fi
22711fi
22712CXX=$ac_cv_prog_CXX
22713if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022715$as_echo "$CXX" >&6; }
22716else
cristy8b350f62009-11-15 23:12:43 +000022717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022718$as_echo "no" >&6; }
22719fi
22720
22721
22722 test -n "$CXX" && break
22723 done
22724fi
22725if test -z "$CXX"; then
22726 ac_ct_CXX=$CXX
22727 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22728do
22729 # Extract the first word of "$ac_prog", so it can be a program name with args.
22730set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022732$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022733if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022734 $as_echo_n "(cached) " >&6
22735else
22736 if test -n "$ac_ct_CXX"; then
22737 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22738else
22739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22740for as_dir in $PATH
22741do
22742 IFS=$as_save_IFS
22743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22746 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022748 break 2
22749 fi
22750done
cristy8b350f62009-11-15 23:12:43 +000022751 done
cristy3ed852e2009-09-05 21:47:34 +000022752IFS=$as_save_IFS
22753
22754fi
22755fi
22756ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22757if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022759$as_echo "$ac_ct_CXX" >&6; }
22760else
cristy8b350f62009-11-15 23:12:43 +000022761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022762$as_echo "no" >&6; }
22763fi
22764
22765
22766 test -n "$ac_ct_CXX" && break
22767done
22768
22769 if test "x$ac_ct_CXX" = x; then
22770 CXX="g++"
22771 else
22772 case $cross_compiling:$ac_tool_warned in
22773yes:)
cristy8b350f62009-11-15 23:12:43 +000022774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22776ac_tool_warned=yes ;;
22777esac
22778 CXX=$ac_ct_CXX
22779 fi
22780fi
22781
22782 fi
22783fi
22784# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022785$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022786set X $ac_compile
22787ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022788for ac_option in --version -v -V -qversion; do
22789 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022790case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22793esac
cristy8b350f62009-11-15 23:12:43 +000022794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22795$as_echo "$ac_try_echo"; } >&5
22796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022797 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022798 if test -s conftest.err; then
22799 sed '10a\
22800... rest of stderr output deleted ...
22801 10q' conftest.err >conftest.er1
22802 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022803 fi
cristycd4c5312009-11-22 01:19:08 +000022804 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22806 test $ac_status = 0; }
22807done
cristy3ed852e2009-09-05 21:47:34 +000022808
cristy8b350f62009-11-15 23:12:43 +000022809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022810$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022811if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022812 $as_echo_n "(cached) " >&6
22813else
cristy8b350f62009-11-15 23:12:43 +000022814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022815/* end confdefs.h. */
22816
22817int
22818main ()
22819{
22820#ifndef __GNUC__
22821 choke me
22822#endif
22823
22824 ;
22825 return 0;
22826}
22827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022828if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022829 ac_compiler_gnu=yes
22830else
cristy8b350f62009-11-15 23:12:43 +000022831 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022832fi
cristy3ed852e2009-09-05 21:47:34 +000022833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22835
22836fi
cristy8b350f62009-11-15 23:12:43 +000022837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022838$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22839if test $ac_compiler_gnu = yes; then
22840 GXX=yes
22841else
22842 GXX=
22843fi
22844ac_test_CXXFLAGS=${CXXFLAGS+set}
22845ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022847$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022848if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022849 $as_echo_n "(cached) " >&6
22850else
22851 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22852 ac_cxx_werror_flag=yes
22853 ac_cv_prog_cxx_g=no
22854 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022856/* end confdefs.h. */
22857
22858int
22859main ()
22860{
22861
22862 ;
22863 return 0;
22864}
22865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022866if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022867 ac_cv_prog_cxx_g=yes
22868else
cristy8b350f62009-11-15 23:12:43 +000022869 CXXFLAGS=""
22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022871/* end confdefs.h. */
22872
22873int
22874main ()
22875{
22876
22877 ;
22878 return 0;
22879}
22880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022881if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022882
cristy8b350f62009-11-15 23:12:43 +000022883else
22884 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022885 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022887/* end confdefs.h. */
22888
22889int
22890main ()
22891{
22892
22893 ;
22894 return 0;
22895}
22896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022897if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022898 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022899fi
cristy3ed852e2009-09-05 21:47:34 +000022900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901fi
cristy3ed852e2009-09-05 21:47:34 +000022902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903fi
cristy3ed852e2009-09-05 21:47:34 +000022904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22906fi
cristy8b350f62009-11-15 23:12:43 +000022907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022908$as_echo "$ac_cv_prog_cxx_g" >&6; }
22909if test "$ac_test_CXXFLAGS" = set; then
22910 CXXFLAGS=$ac_save_CXXFLAGS
22911elif test $ac_cv_prog_cxx_g = yes; then
22912 if test "$GXX" = yes; then
22913 CXXFLAGS="-g -O2"
22914 else
22915 CXXFLAGS="-g"
22916 fi
22917else
22918 if test "$GXX" = yes; then
22919 CXXFLAGS="-O2"
22920 else
22921 CXXFLAGS=
22922 fi
22923fi
22924ac_ext=cpp
22925ac_cpp='$CXXCPP $CPPFLAGS'
22926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22929
22930depcc="$CXX" am_compiler_list=
22931
cristy8b350f62009-11-15 23:12:43 +000022932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022933$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022934if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022935 $as_echo_n "(cached) " >&6
22936else
22937 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22938 # We make a subdir and do the tests there. Otherwise we can end up
22939 # making bogus files that we don't know about and never remove. For
22940 # instance it was reported that on HP-UX the gcc test will end up
22941 # making a dummy file named `D' -- because `-MD' means `put the output
22942 # in D'.
22943 mkdir conftest.dir
22944 # Copy depcomp to subdir because otherwise we won't find it if we're
22945 # using a relative directory.
22946 cp "$am_depcomp" conftest.dir
22947 cd conftest.dir
22948 # We will build objects and dependencies in a subdirectory because
22949 # it helps to detect inapplicable dependency modes. For instance
22950 # both Tru64's cc and ICC support -MD to output dependencies as a
22951 # side effect of compilation, but ICC will put the dependencies in
22952 # the current directory while Tru64 will put them in the object
22953 # directory.
22954 mkdir sub
22955
22956 am_cv_CXX_dependencies_compiler_type=none
22957 if test "$am_compiler_list" = ""; then
22958 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22959 fi
22960 am__universal=false
22961 case " $depcc " in #(
22962 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22963 esac
22964
22965 for depmode in $am_compiler_list; do
22966 # Setup a source with many dependencies, because some compilers
22967 # like to wrap large dependency lists on column 80 (with \), and
22968 # we should not choose a depcomp mode which is confused by this.
22969 #
22970 # We need to recreate these files for each test, as the compiler may
22971 # overwrite some of them when testing with obscure command lines.
22972 # This happens at least with the AIX C compiler.
22973 : > sub/conftest.c
22974 for i in 1 2 3 4 5 6; do
22975 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22976 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22977 # Solaris 8's {/usr,}/bin/sh.
22978 touch sub/conftst$i.h
22979 done
22980 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22981
22982 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22983 # mode. It turns out that the SunPro C++ compiler does not properly
22984 # handle `-M -o', and we need to detect this. Also, some Intel
22985 # versions had trouble with output in subdirs
22986 am__obj=sub/conftest.${OBJEXT-o}
22987 am__minus_obj="-o $am__obj"
22988 case $depmode in
22989 gcc)
22990 # This depmode causes a compiler race in universal mode.
22991 test "$am__universal" = false || continue
22992 ;;
22993 nosideeffect)
22994 # after this tag, mechanisms are not by side-effect, so they'll
22995 # only be used when explicitly requested
22996 if test "x$enable_dependency_tracking" = xyes; then
22997 continue
22998 else
22999 break
23000 fi
23001 ;;
23002 msvisualcpp | msvcmsys)
23003 # This compiler won't grok `-c -o', but also, the minuso test has
23004 # not run yet. These depmodes are late enough in the game, and
23005 # so weak that their functioning should not be impacted.
23006 am__obj=conftest.${OBJEXT-o}
23007 am__minus_obj=
23008 ;;
23009 none) break ;;
23010 esac
23011 if depmode=$depmode \
23012 source=sub/conftest.c object=$am__obj \
23013 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23014 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23015 >/dev/null 2>conftest.err &&
23016 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23017 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23018 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23019 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23020 # icc doesn't choke on unknown options, it will just issue warnings
23021 # or remarks (even with -Werror). So we grep stderr for any message
23022 # that says an option was ignored or not supported.
23023 # When given -MP, icc 7.0 and 7.1 complain thusly:
23024 # icc: Command line warning: ignoring option '-M'; no argument required
23025 # The diagnosis changed in icc 8.0:
23026 # icc: Command line remark: option '-MP' not supported
23027 if (grep 'ignoring option' conftest.err ||
23028 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23029 am_cv_CXX_dependencies_compiler_type=$depmode
23030 break
23031 fi
23032 fi
23033 done
23034
23035 cd ..
23036 rm -rf conftest.dir
23037else
23038 am_cv_CXX_dependencies_compiler_type=none
23039fi
23040
23041fi
cristy8b350f62009-11-15 23:12:43 +000023042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023043$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23044CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23045
23046 if
23047 test "x$enable_dependency_tracking" != xno \
23048 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23049 am__fastdepCXX_TRUE=
23050 am__fastdepCXX_FALSE='#'
23051else
23052 am__fastdepCXX_TRUE='#'
23053 am__fastdepCXX_FALSE=
23054fi
23055
23056
cristy8b350f62009-11-15 23:12:43 +000023057 { $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 +000023058$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023059if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023060 $as_echo_n "(cached) " >&6
23061else
23062
23063 ac_ext=cpp
23064ac_cpp='$CXXCPP $CPPFLAGS'
23065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23068
cristy8b350f62009-11-15 23:12:43 +000023069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023070/* end confdefs.h. */
23071
23072int f(int x){return 1;}
23073int f(char x){return 1;}
23074int f(bool x){return 1;}
23075
23076int
23077main ()
23078{
23079bool b = true; return f(b);
23080 ;
23081 return 0;
23082}
23083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023084if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023085 ac_cv_cxx_have_bool=yes
23086else
cristy8b350f62009-11-15 23:12:43 +000023087 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023088fi
cristy3ed852e2009-09-05 21:47:34 +000023089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 ac_ext=cpp
23091ac_cpp='$CXXCPP $CPPFLAGS'
23092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23095
23096
23097fi
cristy8b350f62009-11-15 23:12:43 +000023098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000023099$as_echo "$ac_cv_cxx_have_bool" >&6; }
23100if test "$ac_cv_cxx_have_bool" = yes; then
23101
cristy8b350f62009-11-15 23:12:43 +000023102$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023103
23104fi
23105
cristy8b350f62009-11-15 23:12:43 +000023106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023107$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023108if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023109 $as_echo_n "(cached) " >&6
23110else
23111
23112 ac_ext=cpp
23113ac_cpp='$CXXCPP $CPPFLAGS'
23114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23117
cristy8b350f62009-11-15 23:12:43 +000023118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023119/* end confdefs.h. */
23120namespace Outer { namespace Inner { int i = 0; }}
23121int
23122main ()
23123{
23124using namespace Outer::Inner; return i;
23125 ;
23126 return 0;
23127}
23128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023129if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023130 ac_cv_cxx_have_namespaces=yes
23131else
cristy8b350f62009-11-15 23:12:43 +000023132 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023133fi
cristy3ed852e2009-09-05 21:47:34 +000023134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23135 ac_ext=cpp
23136ac_cpp='$CXXCPP $CPPFLAGS'
23137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23140
23141
23142fi
cristy8b350f62009-11-15 23:12:43 +000023143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023144$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
23145if test "$ac_cv_cxx_have_namespaces" = yes; then
23146
cristy8b350f62009-11-15 23:12:43 +000023147$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023148
23149fi
23150
cristy8b350f62009-11-15 23:12:43 +000023151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023152$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023153if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023154 $as_echo_n "(cached) " >&6
23155else
23156
23157 ac_ext=cpp
23158ac_cpp='$CXXCPP $CPPFLAGS'
23159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23162
cristy8b350f62009-11-15 23:12:43 +000023163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023164/* end confdefs.h. */
23165#include <iostream>
23166 std::istream& is = std::cin;
23167
23168int
23169main ()
23170{
23171return 0;
23172 ;
23173 return 0;
23174}
23175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023176if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023177 ac_cv_cxx_have_std_namespace=yes
23178else
cristy8b350f62009-11-15 23:12:43 +000023179 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023180fi
cristy3ed852e2009-09-05 21:47:34 +000023181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23182 ac_ext=cpp
23183ac_cpp='$CXXCPP $CPPFLAGS'
23184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23187
23188
23189fi
cristy8b350f62009-11-15 23:12:43 +000023190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023191$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
23192if test "$ac_cv_cxx_have_std_namespace" = yes; then
23193
cristy8b350f62009-11-15 23:12:43 +000023194$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023195
23196fi
23197
cristy8b350f62009-11-15 23:12:43 +000023198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023199$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023200if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023201 $as_echo_n "(cached) " >&6
23202else
23203
23204
23205 ac_ext=cpp
23206ac_cpp='$CXXCPP $CPPFLAGS'
23207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23210
cristy8b350f62009-11-15 23:12:43 +000023211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023212/* end confdefs.h. */
23213#include <iostream>
23214#include <map>
23215#include <iomanip>
23216#include <cmath>
23217#ifdef HAVE_NAMESPACES
23218using namespace std;
23219#endif
23220int
23221main ()
23222{
23223return 0;
23224 ;
23225 return 0;
23226}
23227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023228if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023229 ac_cv_cxx_have_std_libs=yes
23230else
cristy8b350f62009-11-15 23:12:43 +000023231 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023232fi
cristy3ed852e2009-09-05 21:47:34 +000023233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 ac_ext=cpp
23235ac_cpp='$CXXCPP $CPPFLAGS'
23236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23239
23240
23241fi
cristy8b350f62009-11-15 23:12:43 +000023242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023243$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23244if test "$ac_cv_cxx_have_std_libs" = yes; then
23245
cristy8b350f62009-11-15 23:12:43 +000023246$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023247
23248fi
23249
cristy8b350f62009-11-15 23:12:43 +000023250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023251$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023252if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023253 $as_echo_n "(cached) " >&6
23254else
23255
23256 ac_ext=cpp
23257ac_cpp='$CXXCPP $CPPFLAGS'
23258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23261
cristy8b350f62009-11-15 23:12:43 +000023262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023263/* end confdefs.h. */
23264const wchar_t* s=L"wide string";
23265_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023266if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023267 ac_cv_cxx_have_lstring=yes
23268else
cristy8b350f62009-11-15 23:12:43 +000023269 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023270fi
cristy3ed852e2009-09-05 21:47:34 +000023271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272 ac_ext=cpp
23273ac_cpp='$CXXCPP $CPPFLAGS'
23274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23277
23278
23279fi
cristy8b350f62009-11-15 23:12:43 +000023280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023281$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23282if test "$ac_cv_cxx_have_lstring" = yes; then
23283
cristy8b350f62009-11-15 23:12:43 +000023284$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023285
23286fi
23287
23288
23289 OPENMP_CXXFLAGS=
23290 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023291if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023292 enableval=$enable_openmp;
23293fi
23294
23295 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23297$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023298if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023299 $as_echo_n "(cached) " >&6
23300else
cristy8b350f62009-11-15 23:12:43 +000023301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23302/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023303
23304#ifndef _OPENMP
23305 choke me
23306#endif
23307#include <omp.h>
23308int main () { return omp_get_num_threads (); }
23309
23310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023311if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023312 ac_cv_prog_cxx_openmp='none needed'
23313else
cristy8b350f62009-11-15 23:12:43 +000023314 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023315 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23316 ac_save_CXXFLAGS=$CXXFLAGS
23317 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023320
23321#ifndef _OPENMP
23322 choke me
23323#endif
23324#include <omp.h>
23325int main () { return omp_get_num_threads (); }
23326
23327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023328if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023329 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023330fi
cristy8b350f62009-11-15 23:12:43 +000023331rm -f core conftest.err conftest.$ac_objext \
23332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023333 CXXFLAGS=$ac_save_CXXFLAGS
23334 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23335 break
23336 fi
23337 done
23338fi
cristy8b350f62009-11-15 23:12:43 +000023339rm -f core conftest.err conftest.$ac_objext \
23340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023341fi
cristy8b350f62009-11-15 23:12:43 +000023342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023343$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23344 case $ac_cv_prog_cxx_openmp in #(
23345 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023346 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023347 *)
cristy8b350f62009-11-15 23:12:43 +000023348 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023349 esac
23350 fi
23351
23352
23353 ac_ext=c
23354ac_cpp='$CPP $CPPFLAGS'
23355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357ac_compiler_gnu=$ac_cv_c_compiler_gnu
23358
23359
cristy8b350f62009-11-15 23:12:43 +000023360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023361$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23362 if \
23363 test $ac_cv_cxx_have_bool = 'yes' && \
23364 test $ac_cv_cxx_have_lstring = 'yes' && \
23365 test $ac_cv_cxx_have_namespaces = 'yes' && \
23366 test $ac_cv_cxx_have_std_libs = 'yes' && \
23367 test $ac_cv_cxx_have_std_namespace = 'yes'; then
23368 have_magick_plus_plus='yes'
23369 else
23370 have_magick_plus_plus='no (failed tests)'
23371 fi
cristy8b350f62009-11-15 23:12:43 +000023372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$have_magick_plus_plus" >&6; }
23374 LIBS="$OLIBS"
23375fi
23376 if test "$have_magick_plus_plus" = 'yes'; then
23377 WITH_MAGICK_PLUS_PLUS_TRUE=
23378 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23379else
23380 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23381 WITH_MAGICK_PLUS_PLUS_FALSE=
23382fi
23383
23384
23385# Only check for delegate libraries in subdirectories if requested.
23386if test "$enable_delegate_build" != 'no'; then
23387 # Check for delegate sub-directories and add -I & -L options as required.
23388 # This presumes that delegates are installed as detailed in the ImageMagick
23389 # README. If delegates are installed in a standard location where the
23390 # compiler will automatically find them then these options should not be
23391 # required.
23392
23393 #
23394 # Most delegates have includes in the same directory as the library, but not all...
23395 #
23396 # Includes
cristy5850e4b2010-01-08 14:28:24 +000023397 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 +000023398 if test -d "$builddir/$dir"; then
23399 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23400 else
23401 if test -d "$srcdirfull/$dir"; then
23402 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23403 fi
23404 fi
23405 done
23406
23407 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000023408 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 +000023409 if test -d "$builddir/$dir/.libs"; then
23410 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23411 else
23412 if test -d "$srcdirfull/$dir/.libs"; then
23413 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23414 fi
23415 fi
23416 if test -d "$builddir/$dir"; then
23417 LDFLAGS="$LDFLAGS -L$builddir/$dir"
23418 else
23419 if test -d "$srcdirfull/$dir"; then
23420 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23421 fi
23422 fi
23423 done
23424fi
23425
23426# Assume that delegate headers reside under same directory as ImageMagick
23427# installation prefix.
23428MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23429
23430#
23431# Find the X11 RGB database
23432#
cristy8b350f62009-11-15 23:12:43 +000023433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000023434$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023435if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023436 $as_echo_n "(cached) " >&6
23437else
23438 # Look for the header file in a standard set of common directories.
23439# Check X11 before X11Rn because it is often a symlink to the current release.
23440 for ac_dir in \
23441 /lib/usr/lib/X11 \
23442 /usr/X11/lib \
23443 /usr/X11R4/lib \
23444 /usr/X11R5/lib \
23445 /usr/X11R6/lib \
23446 /usr/X11R7/lib \
23447 /usr/X386/lib \
23448 /usr/XFree86/lib/X11 \
23449 /usr/athena/lib \
23450 /usr/lib \
23451 /usr/lib/X11 \
23452 /usr/lib/X11R4 \
23453 /usr/lib/X11R5 \
23454 /usr/lib/X11R6 \
23455 /usr/lib/X11R7 \
23456 /usr/local/X11/lib \
23457 /usr/local/X11R4/lib \
23458 /usr/local/X11R5/lib \
23459 /usr/local/X11R6/lib \
23460 /usr/local/lib \
23461 /usr/local/lib/X11 \
23462 /usr/local/lib/X11R4 \
23463 /usr/local/lib/X11R5 \
23464 /usr/local/lib/X11R6 \
23465 /usr/local/lib/X11R7 \
23466 /usr/local/x11r5/lib \
23467 /usr/lpp/Xamples/lib \
23468 /usr/openwin/lib \
23469 /usr/openwin/share/lib \
23470 /usr/unsupported/lib \
23471 /usr/x386/lib \
23472 ; do
23473 if test -f "$ac_dir/X11/rgb.txt"; then
23474 im_cv_x_configure="$ac_dir/X11/"
23475 break
23476 elif test -f "$ac_dir/rgb.txt"; then
23477 im_cv_x_configure="$ac_dir/"
23478 break
23479 fi
23480
23481 done
23482fi
cristy8b350f62009-11-15 23:12:43 +000023483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000023484$as_echo "$im_cv_x_configure" >&6; }
23485X11_CONFIGURE_PATH="$im_cv_x_configure"
23486case "${build_os}" in
23487 mingw* )
23488 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23489 ;;
23490esac
23491
23492cat >>confdefs.h <<_ACEOF
23493#define X11_CONFIGURE_PATH "$X11ConfigurePath"
23494_ACEOF
23495
23496
23497#
23498# Find OpenMP library
23499#
23500GOMP_LIBS=''
23501if test "$enable_openmp" != 'no'; then
23502 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000023503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023504$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023505if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023506 $as_echo_n "(cached) " >&6
23507else
23508 ac_check_lib_save_LIBS=$LIBS
23509LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023511/* end confdefs.h. */
23512
23513/* Override any GCC internal prototype to avoid an error.
23514 Use char because int might match the return type of a GCC
23515 builtin and then its argument prototype would still apply. */
23516#ifdef __cplusplus
23517extern "C"
23518#endif
23519char GOMP_parallel_start ();
23520int
23521main ()
23522{
23523return GOMP_parallel_start ();
23524 ;
23525 return 0;
23526}
23527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023529 ac_cv_lib_gomp_GOMP_parallel_start=yes
23530else
cristy8b350f62009-11-15 23:12:43 +000023531 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000023532fi
cristy8b350f62009-11-15 23:12:43 +000023533rm -f core conftest.err conftest.$ac_objext \
23534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023535LIBS=$ac_check_lib_save_LIBS
23536fi
cristy8b350f62009-11-15 23:12:43 +000023537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023539if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023540 GOMP_LIBS="-lgomp"
23541fi
23542 # gcc
23543 else
cristy8b350f62009-11-15 23:12:43 +000023544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000023545$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023546if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023547 $as_echo_n "(cached) " >&6
23548else
23549 ac_check_lib_save_LIBS=$LIBS
23550LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023552/* end confdefs.h. */
23553
23554/* Override any GCC internal prototype to avoid an error.
23555 Use char because int might match the return type of a GCC
23556 builtin and then its argument prototype would still apply. */
23557#ifdef __cplusplus
23558extern "C"
23559#endif
23560char sunw_mp_register_warn ();
23561int
23562main ()
23563{
23564return sunw_mp_register_warn ();
23565 ;
23566 return 0;
23567}
23568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023570 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23571else
cristy8b350f62009-11-15 23:12:43 +000023572 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000023573fi
cristy8b350f62009-11-15 23:12:43 +000023574rm -f core conftest.err conftest.$ac_objext \
23575 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023576LIBS=$ac_check_lib_save_LIBS
23577fi
cristy8b350f62009-11-15 23:12:43 +000023578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023580if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023581 GOMP_LIBS="-lmtsk"
23582fi
23583 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000023584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023585$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023586if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023587 $as_echo_n "(cached) " >&6
23588else
23589 ac_check_lib_save_LIBS=$LIBS
23590LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023592/* end confdefs.h. */
23593
23594/* Override any GCC internal prototype to avoid an error.
23595 Use char because int might match the return type of a GCC
23596 builtin and then its argument prototype would still apply. */
23597#ifdef __cplusplus
23598extern "C"
23599#endif
23600char _xlsmpFlush ();
23601int
23602main ()
23603{
23604return _xlsmpFlush ();
23605 ;
23606 return 0;
23607}
23608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023609if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023610 ac_cv_lib_xlsmp__xlsmpFlush=yes
23611else
cristy8b350f62009-11-15 23:12:43 +000023612 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000023613fi
cristy8b350f62009-11-15 23:12:43 +000023614rm -f core conftest.err conftest.$ac_objext \
23615 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023616LIBS=$ac_check_lib_save_LIBS
23617fi
cristy8b350f62009-11-15 23:12:43 +000023618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000023619$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023620if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023621 GOMP_LIBS="-lxlsmp"
23622fi
23623 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000023624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023625$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023626if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023627 $as_echo_n "(cached) " >&6
23628else
23629 ac_check_lib_save_LIBS=$LIBS
23630LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023632/* end confdefs.h. */
23633
23634/* Override any GCC internal prototype to avoid an error.
23635 Use char because int might match the return type of a GCC
23636 builtin and then its argument prototype would still apply. */
23637#ifdef __cplusplus
23638extern "C"
23639#endif
23640char mp_destroy ();
23641int
23642main ()
23643{
23644return mp_destroy ();
23645 ;
23646 return 0;
23647}
23648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023649if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023650 ac_cv_lib_mp_mp_destroy=yes
23651else
cristy8b350f62009-11-15 23:12:43 +000023652 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000023653fi
cristy8b350f62009-11-15 23:12:43 +000023654rm -f core conftest.err conftest.$ac_objext \
23655 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023656LIBS=$ac_check_lib_save_LIBS
23657fi
cristy8b350f62009-11-15 23:12:43 +000023658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000023659$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023660if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023661 GOMP_LIBS="-lmp"
23662fi
23663 # SGI IRIX 6.5 MIPSpro C/C++
23664 fi
23665 LIBS="$GOMP_LIBS $LIBS"
23666fi
23667
23668
23669#
23670# Find Posix threads library
23671#
23672THREAD_LIBS=''
23673if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23674
23675 if test "x$PTHREAD_LIBS" = "x"; then
23676 case "${host_cpu}-${host_os}" in
23677 *-freebsd*)
23678
23679
23680
23681ac_ext=c
23682ac_cpp='$CPP $CPPFLAGS'
23683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23685ac_compiler_gnu=$ac_cv_c_compiler_gnu
23686
23687magick_pthread_lib_ok=no
23688
23689LIB=-lc_r
23690save_LIBS="$LIBS"
23691LIBS="$LIBS $LIB"
23692
cristy8b350f62009-11-15 23:12:43 +000023693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023694$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023696/* end confdefs.h. */
23697#include <pthread.h>
23698int
23699main ()
23700{
23701 pthread_t th;
23702 pthread_join(th, 0);
23703 pthread_attr_init(0);
23704 pthread_cleanup_push(0, 0);
23705 pthread_create(0,0,0,0);
23706 pthread_cleanup_pop(0);
23707 ;
23708 return 0;
23709}
23710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023711if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023712 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023713fi
cristy8b350f62009-11-15 23:12:43 +000023714rm -f core conftest.err conftest.$ac_objext \
23715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023716
cristy8b350f62009-11-15 23:12:43 +000023717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo "${magick_pthread_lib_ok}" >&6; }
23719if test "$magick_pthread_lib_ok" = yes
23720then
23721 PTHREAD_LIBS=-lc_r
23722 :
23723else
23724
23725 :
23726fi
23727
23728LIBS="$save_LIBS"
23729
23730ac_ext=c
23731ac_cpp='$CPP $CPPFLAGS'
23732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23734ac_compiler_gnu=$ac_cv_c_compiler_gnu
23735
23736 ;;
23737 esac
23738 fi
23739
23740 for lib in pthread pthreads; do
23741 if test "x$PTHREAD_LIBS" = "x"; then
23742
23743
23744
23745ac_ext=c
23746ac_cpp='$CPP $CPPFLAGS'
23747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23749ac_compiler_gnu=$ac_cv_c_compiler_gnu
23750
23751magick_pthread_lib_ok=no
23752
23753LIB=-l$lib
23754save_LIBS="$LIBS"
23755LIBS="$LIBS $LIB"
23756
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023760/* end confdefs.h. */
23761#include <pthread.h>
23762int
23763main ()
23764{
23765 pthread_t th;
23766 pthread_join(th, 0);
23767 pthread_attr_init(0);
23768 pthread_cleanup_push(0, 0);
23769 pthread_create(0,0,0,0);
23770 pthread_cleanup_pop(0);
23771 ;
23772 return 0;
23773}
23774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023776 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023777fi
cristy8b350f62009-11-15 23:12:43 +000023778rm -f core conftest.err conftest.$ac_objext \
23779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023780
cristy8b350f62009-11-15 23:12:43 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023782$as_echo "${magick_pthread_lib_ok}" >&6; }
23783if test "$magick_pthread_lib_ok" = yes
23784then
23785 PTHREAD_LIBS=-l$lib
23786 :
23787else
23788
23789 :
23790fi
23791
23792LIBS="$save_LIBS"
23793
23794ac_ext=c
23795ac_cpp='$CPP $CPPFLAGS'
23796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23798ac_compiler_gnu=$ac_cv_c_compiler_gnu
23799
23800
23801 fi
23802 done
23803
23804 THREAD_LIBS="$PTHREAD_LIBS"
23805 LIBS="$LIBS $THREAD_LIBS"
23806fi
23807
23808
23809#
23810# Check for umem.
23811#
23812have_umem='no'
23813UMEM_LIBS=''
23814if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023816$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023818$as_echo "" >&6; }
23819 failed=0
23820 passed=0
cristy8b350f62009-11-15 23:12:43 +000023821 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23822if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023823 passed=`expr $passed + 1`
23824else
23825 failed=`expr $failed + 1`
23826fi
23827
23828
cristy8b350f62009-11-15 23:12:43 +000023829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023830$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023831if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023832 $as_echo_n "(cached) " >&6
23833else
23834 ac_check_lib_save_LIBS=$LIBS
23835LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023837/* end confdefs.h. */
23838
23839/* Override any GCC internal prototype to avoid an error.
23840 Use char because int might match the return type of a GCC
23841 builtin and then its argument prototype would still apply. */
23842#ifdef __cplusplus
23843extern "C"
23844#endif
23845char umem_alloc ();
23846int
23847main ()
23848{
23849return umem_alloc ();
23850 ;
23851 return 0;
23852}
23853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023855 ac_cv_lib_umem_umem_alloc=yes
23856else
cristy8b350f62009-11-15 23:12:43 +000023857 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023858fi
cristy8b350f62009-11-15 23:12:43 +000023859rm -f core conftest.err conftest.$ac_objext \
23860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023861LIBS=$ac_check_lib_save_LIBS
23862fi
cristy8b350f62009-11-15 23:12:43 +000023863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023864$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023865if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023866 passed=`expr $passed + 1`
23867else
23868 failed=`expr $failed + 1`
23869fi
23870
cristy8b350f62009-11-15 23:12:43 +000023871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023872$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023873if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023874 $as_echo_n "(cached) " >&6
23875else
23876 ac_check_lib_save_LIBS=$LIBS
23877LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023879/* end confdefs.h. */
23880
23881/* Override any GCC internal prototype to avoid an error.
23882 Use char because int might match the return type of a GCC
23883 builtin and then its argument prototype would still apply. */
23884#ifdef __cplusplus
23885extern "C"
23886#endif
23887char umem_free ();
23888int
23889main ()
23890{
23891return umem_free ();
23892 ;
23893 return 0;
23894}
23895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023897 ac_cv_lib_umem_umem_free=yes
23898else
cristy8b350f62009-11-15 23:12:43 +000023899 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023900fi
cristy8b350f62009-11-15 23:12:43 +000023901rm -f core conftest.err conftest.$ac_objext \
23902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023903LIBS=$ac_check_lib_save_LIBS
23904fi
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023907if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023908 passed=`expr $passed + 1`
23909else
23910 failed=`expr $failed + 1`
23911fi
23912
cristy8b350f62009-11-15 23:12:43 +000023913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23915 if test $passed -gt 0; then
23916 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023918$as_echo "no -- some components failed test" >&6; }
23919 have_umem='no (failed tests)'
23920 else
23921 UMEM_LIBS='-lumem'
23922 LIBS="$UMEM_LIBS $LIBS"
23923
cristy8b350f62009-11-15 23:12:43 +000023924$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023925
cristy8b350f62009-11-15 23:12:43 +000023926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo "yes" >&6; }
23928 have_umem='yes'
23929 fi
23930 else
cristy8b350f62009-11-15 23:12:43 +000023931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023932$as_echo "no" >&6; }
23933 fi
23934fi
23935 if test "$have_umem" = 'yes'; then
23936 HasUMEM_TRUE=
23937 HasUMEM_FALSE='#'
23938else
23939 HasUMEM_TRUE='#'
23940 HasUMEM_FALSE=
23941fi
23942
23943
23944
23945#
23946# Add support for ccmalloc memory debugging library if requested
23947#
23948have_ccmalloc='no'
23949CCMALLOC_LIBS=''
23950if test "$enable_ccmalloc" = 'yes'; then
23951 # Extract the first word of "ccmalloc", so it can be a program name with args.
23952set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023954$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023955if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023956 $as_echo_n "(cached) " >&6
23957else
23958 case $CCMALLOCDelegate in
23959 [\\/]* | ?:[\\/]*)
23960 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23961 ;;
23962 *)
23963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23964for as_dir in $PATH
23965do
23966 IFS=$as_save_IFS
23967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23970 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023972 break 2
23973 fi
23974done
cristy8b350f62009-11-15 23:12:43 +000023975 done
cristy3ed852e2009-09-05 21:47:34 +000023976IFS=$as_save_IFS
23977
23978 ;;
23979esac
23980fi
23981CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23982if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023984$as_echo "$CCMALLOCDelegate" >&6; }
23985else
cristy8b350f62009-11-15 23:12:43 +000023986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo "no" >&6; }
23988fi
23989
23990
23991 if test -n "$CCMALLOCDelegate"; then
23992 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23993 OLIBS="$LIBS"
23994 # Assume that gcc is used with ccmalloc.
23995 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023997$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023998if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023999 $as_echo_n "(cached) " >&6
24000else
24001 ac_check_lib_save_LIBS=$LIBS
24002LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024004/* end confdefs.h. */
24005
24006/* Override any GCC internal prototype to avoid an error.
24007 Use char because int might match the return type of a GCC
24008 builtin and then its argument prototype would still apply. */
24009#ifdef __cplusplus
24010extern "C"
24011#endif
24012char ccmalloc_malloc ();
24013int
24014main ()
24015{
24016return ccmalloc_malloc ();
24017 ;
24018 return 0;
24019}
24020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024022 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24023else
cristy8b350f62009-11-15 23:12:43 +000024024 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024025fi
cristy8b350f62009-11-15 23:12:43 +000024026rm -f core conftest.err conftest.$ac_objext \
24027 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024028LIBS=$ac_check_lib_save_LIBS
24029fi
cristy8b350f62009-11-15 23:12:43 +000024030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024031$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024032if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024033 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24034fi
24035
24036 if test -n "$CCMALLOC_LIBS"; then
24037 LIBS="$OLIBS"
24038 LIBS="$LIBS $CCMALLOC_LIBS"
24039 have_ccmalloc='yes'
24040 else
24041 LIBS="$OLIBS"
24042 fi
24043 fi
24044fi
24045
24046#
24047# Add support for efence memory debugging library if requested
24048#
24049if test "$enable_efence" = 'yes'; then
24050 EFENCE_LIBS='-lefence'
24051 LIBS="$EFENCE_LIBS $LIBS"
24052fi
24053
24054#
24055# Find math library
24056#
24057MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024059$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024060if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024061 $as_echo_n "(cached) " >&6
24062else
24063 ac_check_lib_save_LIBS=$LIBS
24064LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024066/* end confdefs.h. */
24067
24068/* Override any GCC internal prototype to avoid an error.
24069 Use char because int might match the return type of a GCC
24070 builtin and then its argument prototype would still apply. */
24071#ifdef __cplusplus
24072extern "C"
24073#endif
24074char sqrt ();
24075int
24076main ()
24077{
24078return sqrt ();
24079 ;
24080 return 0;
24081}
24082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024083if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024084 ac_cv_lib_m_sqrt=yes
24085else
cristy8b350f62009-11-15 23:12:43 +000024086 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000024087fi
cristy8b350f62009-11-15 23:12:43 +000024088rm -f core conftest.err conftest.$ac_objext \
24089 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024090LIBS=$ac_check_lib_save_LIBS
24091fi
cristy8b350f62009-11-15 23:12:43 +000024092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024094if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024095 MATH_LIBS="-lm"
24096fi
24097
24098LIBS="$MATH_LIBS $LIBS"
24099
24100
24101
24102#
24103# Check for BZLIB
24104#
24105
24106
24107# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024108if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024109 withval=$with_bzlib; with_bzlib=$withval
24110else
24111 with_bzlib='yes'
24112fi
24113
24114
24115if test "$with_bzlib" != 'yes'; then
24116 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24117fi
24118
24119have_bzlib='no'
24120if test "$with_bzlib" != 'no'; then
24121 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024123$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024125$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo "" >&6; }
24128 failed=0
24129 passed=0
24130 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024131 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24132if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024133 passed=`expr $passed + 1`
24134else
24135 failed=`expr $failed + 1`
24136fi
24137
24138
cristy8b350f62009-11-15 23:12:43 +000024139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024140$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024141if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024142 $as_echo_n "(cached) " >&6
24143else
24144 ac_check_lib_save_LIBS=$LIBS
24145LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024147/* end confdefs.h. */
24148
24149/* Override any GCC internal prototype to avoid an error.
24150 Use char because int might match the return type of a GCC
24151 builtin and then its argument prototype would still apply. */
24152#ifdef __cplusplus
24153extern "C"
24154#endif
24155char BZ2_bzDecompress ();
24156int
24157main ()
24158{
24159return BZ2_bzDecompress ();
24160 ;
24161 return 0;
24162}
24163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24166else
cristy8b350f62009-11-15 23:12:43 +000024167 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024168fi
cristy8b350f62009-11-15 23:12:43 +000024169rm -f core conftest.err conftest.$ac_objext \
24170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024171LIBS=$ac_check_lib_save_LIBS
24172fi
cristy8b350f62009-11-15 23:12:43 +000024173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024174$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024175if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024176 found_libbz=`expr $found_libbz + 1`
24177fi
24178
24179 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024182if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024183 $as_echo_n "(cached) " >&6
24184else
24185 ac_check_lib_save_LIBS=$LIBS
24186LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024188/* end confdefs.h. */
24189
24190/* Override any GCC internal prototype to avoid an error.
24191 Use char because int might match the return type of a GCC
24192 builtin and then its argument prototype would still apply. */
24193#ifdef __cplusplus
24194extern "C"
24195#endif
24196char _imp__BZ2_decompress ();
24197int
24198main ()
24199{
24200return _imp__BZ2_decompress ();
24201 ;
24202 return 0;
24203}
24204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024205if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024206 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24207else
cristy8b350f62009-11-15 23:12:43 +000024208 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024209fi
cristy8b350f62009-11-15 23:12:43 +000024210rm -f core conftest.err conftest.$ac_objext \
24211 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024212LIBS=$ac_check_lib_save_LIBS
24213fi
cristy8b350f62009-11-15 23:12:43 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024216if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024217 found_libbz=`expr $found_libbz + 1`
24218fi
24219
24220 fi
24221 if test $found_libbz -gt 0; then
24222 passed=`expr $passed + 1`
24223 else
24224 failed=`expr $failed + 1`
24225 fi
cristy8b350f62009-11-15 23:12:43 +000024226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024227$as_echo_n "checking if BZLIB package is complete... " >&6; }
24228 if test $passed -gt 0; then
24229 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024231$as_echo "no -- some components failed test" >&6; }
24232 have_bzlib='no (failed tests)'
24233 else
24234 BZLIB_LIBS='-lbz2'
24235 LIBS="$BZLIB_LIBS $LIBS"
24236
cristy8b350f62009-11-15 23:12:43 +000024237$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024238
cristy8b350f62009-11-15 23:12:43 +000024239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024240$as_echo "yes" >&6; }
24241 have_bzlib='yes'
24242 fi
24243 else
cristy8b350f62009-11-15 23:12:43 +000024244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024245$as_echo "no" >&6; }
24246 fi
24247fi
24248 if test "$have_bzlib" = 'yes'; then
24249 BZLIB_DELEGATE_TRUE=
24250 BZLIB_DELEGATE_FALSE='#'
24251else
24252 BZLIB_DELEGATE_TRUE='#'
24253 BZLIB_DELEGATE_FALSE=
24254fi
24255
24256
24257
24258#
24259# Find the X11 include and library directories.
24260#
24261IPC_LIBS=''
24262X11_LIBS=''
24263XEXT_LIBS=''
24264XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024266$as_echo_n "checking for X... " >&6; }
24267
24268
24269# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024270if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024271 withval=$with_x;
24272fi
24273
24274# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24275if test "x$with_x" = xno; then
24276 # The user explicitly disabled X.
24277 have_x=disabled
24278else
24279 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000024280 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24281 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024282 $as_echo_n "(cached) " >&6
24283else
24284 # One or both of the vars are not set, and there is no cached value.
24285ac_x_includes=no ac_x_libraries=no
24286rm -f -r conftest.dir
24287if mkdir conftest.dir; then
24288 cd conftest.dir
24289 cat >Imakefile <<'_ACEOF'
24290incroot:
24291 @echo incroot='${INCROOT}'
24292usrlibdir:
24293 @echo usrlibdir='${USRLIBDIR}'
24294libdir:
24295 @echo libdir='${LIBDIR}'
24296_ACEOF
24297 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24298 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24299 for ac_var in incroot usrlibdir libdir; do
24300 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24301 done
24302 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24303 for ac_extension in a so sl dylib la dll; do
24304 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24305 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24306 ac_im_usrlibdir=$ac_im_libdir; break
24307 fi
24308 done
24309 # Screen out bogus values from the imake configuration. They are
24310 # bogus both because they are the default anyway, and because
24311 # using them would break gcc on systems where it needs fixed includes.
24312 case $ac_im_incroot in
24313 /usr/include) ac_x_includes= ;;
24314 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24315 esac
24316 case $ac_im_usrlibdir in
24317 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24318 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24319 esac
24320 fi
24321 cd ..
24322 rm -f -r conftest.dir
24323fi
24324
24325# Standard set of common directories for X headers.
24326# Check X11 before X11Rn because it is often a symlink to the current release.
24327ac_x_header_dirs='
24328/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024329/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024330/usr/X11R6/include
24331/usr/X11R5/include
24332/usr/X11R4/include
24333
24334/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024335/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024336/usr/include/X11R6
24337/usr/include/X11R5
24338/usr/include/X11R4
24339
24340/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024341/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024342/usr/local/X11R6/include
24343/usr/local/X11R5/include
24344/usr/local/X11R4/include
24345
24346/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024347/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024348/usr/local/include/X11R6
24349/usr/local/include/X11R5
24350/usr/local/include/X11R4
24351
24352/usr/X386/include
24353/usr/x386/include
24354/usr/XFree86/include/X11
24355
24356/usr/include
24357/usr/local/include
24358/usr/unsupported/include
24359/usr/athena/include
24360/usr/local/x11r5/include
24361/usr/lpp/Xamples/include
24362
24363/usr/openwin/include
24364/usr/openwin/share/include'
24365
24366if test "$ac_x_includes" = no; then
24367 # Guess where to find include files, by looking for Xlib.h.
24368 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024370/* end confdefs.h. */
24371#include <X11/Xlib.h>
24372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024373if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024374 # We can compile using X headers with no special include directory.
24375ac_x_includes=
24376else
cristyc7083c12009-10-14 03:16:55 +000024377 for ac_dir in $ac_x_header_dirs; do
24378 if test -r "$ac_dir/X11/Xlib.h"; then
24379 ac_x_includes=$ac_dir
24380 break
24381 fi
24382done
24383fi
cristyc7083c12009-10-14 03:16:55 +000024384rm -f conftest.err conftest.$ac_ext
24385fi # $ac_x_includes = no
24386
24387if test "$ac_x_libraries" = no; then
24388 # Check for the libraries.
24389 # See if we find them without any special options.
24390 # Don't add to $LIBS permanently.
24391 ac_save_LIBS=$LIBS
24392 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024394/* end confdefs.h. */
24395#include <X11/Xlib.h>
24396int
24397main ()
24398{
24399XrmInitialize ()
24400 ;
24401 return 0;
24402}
24403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024404if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024405 LIBS=$ac_save_LIBS
24406# We can link X programs with no special library path.
24407ac_x_libraries=
24408else
cristy8b350f62009-11-15 23:12:43 +000024409 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024410for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24411do
24412 # Don't even attempt the hair of trying to link an X program!
24413 for ac_extension in a so sl dylib la dll; do
24414 if test -r "$ac_dir/libX11.$ac_extension"; then
24415 ac_x_libraries=$ac_dir
24416 break 2
24417 fi
24418 done
24419done
24420fi
cristy8b350f62009-11-15 23:12:43 +000024421rm -f core conftest.err conftest.$ac_objext \
24422 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024423fi # $ac_x_libraries = no
24424
24425case $ac_x_includes,$ac_x_libraries in #(
24426 no,* | *,no | *\'*)
24427 # Didn't find X, or a directory has "'" in its name.
24428 ac_cv_have_x="have_x=no";; #(
24429 *)
24430 # Record where we found X for the cache.
24431 ac_cv_have_x="have_x=yes\
24432 ac_x_includes='$ac_x_includes'\
24433 ac_x_libraries='$ac_x_libraries'"
24434esac
24435fi
24436;; #(
24437 *) have_x=yes;;
24438 esac
24439 eval "$ac_cv_have_x"
24440fi # $with_x != no
24441
24442if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000024444$as_echo "$have_x" >&6; }
24445 no_x=yes
24446else
24447 # If each of the values was on the command line, it overrides each guess.
24448 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24449 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24450 # Update the cache value to reflect the command line values.
24451 ac_cv_have_x="have_x=yes\
24452 ac_x_includes='$x_includes'\
24453 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000024454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000024455$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24456fi
24457
cristy3ed852e2009-09-05 21:47:34 +000024458if test "$no_x" = yes; then
24459 # Not all programs may use this symbol, but it does not hurt to define it.
24460
cristy8b350f62009-11-15 23:12:43 +000024461$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024462
24463 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24464else
24465 if test -n "$x_includes"; then
24466 X_CFLAGS="$X_CFLAGS -I$x_includes"
24467 fi
24468
24469 # It would also be nice to do this for all -L options, not just this one.
24470 if test -n "$x_libraries"; then
24471 X_LIBS="$X_LIBS -L$x_libraries"
24472 # For Solaris; some versions of Sun CC require a space after -R and
24473 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000024474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000024475$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24476 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24477 ac_xsave_c_werror_flag=$ac_c_werror_flag
24478 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000024479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024480/* end confdefs.h. */
24481
24482int
24483main ()
24484{
24485
24486 ;
24487 return 0;
24488}
24489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024490if ac_fn_c_try_link "$LINENO"; then :
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024492$as_echo "no" >&6; }
24493 X_LIBS="$X_LIBS -R$x_libraries"
24494else
cristy8b350f62009-11-15 23:12:43 +000024495 LIBS="$ac_xsave_LIBS -R $x_libraries"
24496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024497/* end confdefs.h. */
24498
24499int
24500main ()
24501{
24502
24503 ;
24504 return 0;
24505}
24506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024507if ac_fn_c_try_link "$LINENO"; then :
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024509$as_echo "yes" >&6; }
24510 X_LIBS="$X_LIBS -R $x_libraries"
24511else
cristy8b350f62009-11-15 23:12:43 +000024512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024513$as_echo "neither works" >&6; }
24514fi
cristy8b350f62009-11-15 23:12:43 +000024515rm -f core conftest.err conftest.$ac_objext \
24516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024517fi
cristy8b350f62009-11-15 23:12:43 +000024518rm -f core conftest.err conftest.$ac_objext \
24519 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024520 ac_c_werror_flag=$ac_xsave_c_werror_flag
24521 LIBS=$ac_xsave_LIBS
24522 fi
24523
24524 # Check for system-dependent libraries X programs must link with.
24525 # Do this before checking for the system-independent R6 libraries
24526 # (-lICE), since we may need -lsocket or whatever for X linking.
24527
24528 if test "$ISC" = yes; then
24529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24530 else
24531 # Martyn Johnson says this is needed for Ultrix, if the X
24532 # libraries were built with DECnet support. And Karl Berry says
24533 # the Alpha needs dnet_stub (dnet does not exist).
24534 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000024535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024536/* end confdefs.h. */
24537
24538/* Override any GCC internal prototype to avoid an error.
24539 Use char because int might match the return type of a GCC
24540 builtin and then its argument prototype would still apply. */
24541#ifdef __cplusplus
24542extern "C"
24543#endif
24544char XOpenDisplay ();
24545int
24546main ()
24547{
24548return XOpenDisplay ();
24549 ;
24550 return 0;
24551}
24552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024553if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024554
cristy8b350f62009-11-15 23:12:43 +000024555else
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024557$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024558if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024559 $as_echo_n "(cached) " >&6
24560else
24561 ac_check_lib_save_LIBS=$LIBS
24562LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024564/* end confdefs.h. */
24565
24566/* Override any GCC internal prototype to avoid an error.
24567 Use char because int might match the return type of a GCC
24568 builtin and then its argument prototype would still apply. */
24569#ifdef __cplusplus
24570extern "C"
24571#endif
24572char dnet_ntoa ();
24573int
24574main ()
24575{
24576return dnet_ntoa ();
24577 ;
24578 return 0;
24579}
24580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024581if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024582 ac_cv_lib_dnet_dnet_ntoa=yes
24583else
cristy8b350f62009-11-15 23:12:43 +000024584 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024585fi
cristy8b350f62009-11-15 23:12:43 +000024586rm -f core conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024588LIBS=$ac_check_lib_save_LIBS
24589fi
cristy8b350f62009-11-15 23:12:43 +000024590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024591$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024592if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024593 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24594fi
24595
24596 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000024597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000024598$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024599if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024600 $as_echo_n "(cached) " >&6
24601else
24602 ac_check_lib_save_LIBS=$LIBS
24603LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024605/* end confdefs.h. */
24606
24607/* Override any GCC internal prototype to avoid an error.
24608 Use char because int might match the return type of a GCC
24609 builtin and then its argument prototype would still apply. */
24610#ifdef __cplusplus
24611extern "C"
24612#endif
24613char dnet_ntoa ();
24614int
24615main ()
24616{
24617return dnet_ntoa ();
24618 ;
24619 return 0;
24620}
24621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024623 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24624else
cristy8b350f62009-11-15 23:12:43 +000024625 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024626fi
cristy8b350f62009-11-15 23:12:43 +000024627rm -f core conftest.err conftest.$ac_objext \
24628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024629LIBS=$ac_check_lib_save_LIBS
24630fi
cristy8b350f62009-11-15 23:12:43 +000024631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024633if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024634 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24635fi
24636
24637 fi
24638fi
cristy8b350f62009-11-15 23:12:43 +000024639rm -f core conftest.err conftest.$ac_objext \
24640 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024641 LIBS="$ac_xsave_LIBS"
24642
24643 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24644 # to get the SysV transport functions.
24645 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24646 # needs -lnsl.
24647 # The nsl library prevents programs from opening the X display
24648 # on Irix 5.2, according to T.E. Dickey.
24649 # The functions gethostbyname, getservbyname, and inet_addr are
24650 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000024651 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24652if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024653
cristy3ed852e2009-09-05 21:47:34 +000024654fi
24655
cristy3ed852e2009-09-05 21:47:34 +000024656 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024658$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024659if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024660 $as_echo_n "(cached) " >&6
24661else
24662 ac_check_lib_save_LIBS=$LIBS
24663LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024665/* end confdefs.h. */
24666
24667/* Override any GCC internal prototype to avoid an error.
24668 Use char because int might match the return type of a GCC
24669 builtin and then its argument prototype would still apply. */
24670#ifdef __cplusplus
24671extern "C"
24672#endif
24673char gethostbyname ();
24674int
24675main ()
24676{
24677return gethostbyname ();
24678 ;
24679 return 0;
24680}
24681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024683 ac_cv_lib_nsl_gethostbyname=yes
24684else
cristy8b350f62009-11-15 23:12:43 +000024685 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024686fi
cristy8b350f62009-11-15 23:12:43 +000024687rm -f core conftest.err conftest.$ac_objext \
24688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024689LIBS=$ac_check_lib_save_LIBS
24690fi
cristy8b350f62009-11-15 23:12:43 +000024691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024692$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024693if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024694 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24695fi
24696
24697 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024699$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024700if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024701 $as_echo_n "(cached) " >&6
24702else
24703 ac_check_lib_save_LIBS=$LIBS
24704LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024706/* end confdefs.h. */
24707
24708/* Override any GCC internal prototype to avoid an error.
24709 Use char because int might match the return type of a GCC
24710 builtin and then its argument prototype would still apply. */
24711#ifdef __cplusplus
24712extern "C"
24713#endif
24714char gethostbyname ();
24715int
24716main ()
24717{
24718return gethostbyname ();
24719 ;
24720 return 0;
24721}
24722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024724 ac_cv_lib_bsd_gethostbyname=yes
24725else
cristy8b350f62009-11-15 23:12:43 +000024726 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024727fi
cristy8b350f62009-11-15 23:12:43 +000024728rm -f core conftest.err conftest.$ac_objext \
24729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024730LIBS=$ac_check_lib_save_LIBS
24731fi
cristy8b350f62009-11-15 23:12:43 +000024732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024733$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024734if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24736fi
24737
24738 fi
24739 fi
24740
24741 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24742 # socket/setsockopt and other routines are undefined under SCO ODT
24743 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24744 # on later versions), says Simon Leinen: it contains gethostby*
24745 # variants that don't use the name server (or something). -lsocket
24746 # must be given before -lnsl if both are needed. We assume that
24747 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024748 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24749if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024750
cristy3ed852e2009-09-05 21:47:34 +000024751fi
24752
cristy3ed852e2009-09-05 21:47:34 +000024753 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024755$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024756if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024757 $as_echo_n "(cached) " >&6
24758else
24759 ac_check_lib_save_LIBS=$LIBS
24760LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024762/* end confdefs.h. */
24763
24764/* Override any GCC internal prototype to avoid an error.
24765 Use char because int might match the return type of a GCC
24766 builtin and then its argument prototype would still apply. */
24767#ifdef __cplusplus
24768extern "C"
24769#endif
24770char connect ();
24771int
24772main ()
24773{
24774return connect ();
24775 ;
24776 return 0;
24777}
24778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024780 ac_cv_lib_socket_connect=yes
24781else
cristy8b350f62009-11-15 23:12:43 +000024782 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024783fi
cristy8b350f62009-11-15 23:12:43 +000024784rm -f core conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024786LIBS=$ac_check_lib_save_LIBS
24787fi
cristy8b350f62009-11-15 23:12:43 +000024788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024789$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024790if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024791 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24792fi
24793
24794 fi
24795
24796 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024797 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24798if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024799
cristy3ed852e2009-09-05 21:47:34 +000024800fi
24801
cristy3ed852e2009-09-05 21:47:34 +000024802 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024804$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024805if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024806 $as_echo_n "(cached) " >&6
24807else
24808 ac_check_lib_save_LIBS=$LIBS
24809LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024811/* end confdefs.h. */
24812
24813/* Override any GCC internal prototype to avoid an error.
24814 Use char because int might match the return type of a GCC
24815 builtin and then its argument prototype would still apply. */
24816#ifdef __cplusplus
24817extern "C"
24818#endif
24819char remove ();
24820int
24821main ()
24822{
24823return remove ();
24824 ;
24825 return 0;
24826}
24827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024829 ac_cv_lib_posix_remove=yes
24830else
cristy8b350f62009-11-15 23:12:43 +000024831 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024832fi
cristy8b350f62009-11-15 23:12:43 +000024833rm -f core conftest.err conftest.$ac_objext \
24834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024835LIBS=$ac_check_lib_save_LIBS
24836fi
cristy8b350f62009-11-15 23:12:43 +000024837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024838$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024839if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24841fi
24842
24843 fi
24844
24845 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024846 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24847if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024848
cristy3ed852e2009-09-05 21:47:34 +000024849fi
24850
cristy3ed852e2009-09-05 21:47:34 +000024851 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024853$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024854if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024855 $as_echo_n "(cached) " >&6
24856else
24857 ac_check_lib_save_LIBS=$LIBS
24858LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024860/* end confdefs.h. */
24861
24862/* Override any GCC internal prototype to avoid an error.
24863 Use char because int might match the return type of a GCC
24864 builtin and then its argument prototype would still apply. */
24865#ifdef __cplusplus
24866extern "C"
24867#endif
24868char shmat ();
24869int
24870main ()
24871{
24872return shmat ();
24873 ;
24874 return 0;
24875}
24876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024878 ac_cv_lib_ipc_shmat=yes
24879else
cristy8b350f62009-11-15 23:12:43 +000024880 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024881fi
cristy8b350f62009-11-15 23:12:43 +000024882rm -f core conftest.err conftest.$ac_objext \
24883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024884LIBS=$ac_check_lib_save_LIBS
24885fi
cristy8b350f62009-11-15 23:12:43 +000024886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024887$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024888if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24890fi
24891
24892 fi
24893 fi
24894
24895 # Check for libraries that X11R6 Xt/Xaw programs need.
24896 ac_save_LDFLAGS=$LDFLAGS
24897 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24898 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24899 # check for ICE first), but we must link in the order -lSM -lICE or
24900 # we get undefined symbols. So assume we have SM if we have ICE.
24901 # These have to be linked with before -lX11, unlike the other
24902 # libraries we check for below, so use a different variable.
24903 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024905$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024906if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024907 $as_echo_n "(cached) " >&6
24908else
24909 ac_check_lib_save_LIBS=$LIBS
24910LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024912/* end confdefs.h. */
24913
24914/* Override any GCC internal prototype to avoid an error.
24915 Use char because int might match the return type of a GCC
24916 builtin and then its argument prototype would still apply. */
24917#ifdef __cplusplus
24918extern "C"
24919#endif
24920char IceConnectionNumber ();
24921int
24922main ()
24923{
24924return IceConnectionNumber ();
24925 ;
24926 return 0;
24927}
24928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024930 ac_cv_lib_ICE_IceConnectionNumber=yes
24931else
cristy8b350f62009-11-15 23:12:43 +000024932 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024933fi
cristy8b350f62009-11-15 23:12:43 +000024934rm -f core conftest.err conftest.$ac_objext \
24935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024936LIBS=$ac_check_lib_save_LIBS
24937fi
cristy8b350f62009-11-15 23:12:43 +000024938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024939$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024940if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024941 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24942fi
24943
24944 LDFLAGS=$ac_save_LDFLAGS
24945
24946fi
24947
24948if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024950$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024952$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024954$as_echo "" >&6; }
24955 LDFLAGS="$LDFLAGS $X_LIBS"
24956 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24957 LIBS="$X11_LIBS $LIBS"
24958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24959
24960
cristy8b350f62009-11-15 23:12:43 +000024961$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024962
24963 #
24964 # Check for X11 shared memory extension
24965 #
24966 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024967 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24968if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024969 have_shmctl='yes'
24970fi
24971
24972 if test "$have_shmctl" != 'yes'; then
24973 PERSIST_LIBS=$LIBS
24974 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024976/* end confdefs.h. */
24977
24978/* Override any GCC internal prototype to avoid an error.
24979 Use char because int might match the return type of a GCC
24980 builtin and then its argument prototype would still apply. */
24981#ifdef __cplusplus
24982extern "C"
24983#endif
24984char shmctl ();
24985int
24986main ()
24987{
24988return shmctl ();
24989 ;
24990 return 0;
24991}
24992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024994 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024995fi
cristy8b350f62009-11-15 23:12:43 +000024996rm -f core conftest.err conftest.$ac_objext \
24997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024998 LIBS=$PERSIST_LIBS
24999 fi
25000
25001 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025003$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025004if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 $as_echo_n "(cached) " >&6
25006else
25007 ac_check_lib_save_LIBS=$LIBS
25008LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025010/* end confdefs.h. */
25011
25012/* Override any GCC internal prototype to avoid an error.
25013 Use char because int might match the return type of a GCC
25014 builtin and then its argument prototype would still apply. */
25015#ifdef __cplusplus
25016extern "C"
25017#endif
25018char XShmAttach ();
25019int
25020main ()
25021{
25022return XShmAttach ();
25023 ;
25024 return 0;
25025}
25026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025027if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025028 ac_cv_lib_Xext_XShmAttach=yes
25029else
cristy8b350f62009-11-15 23:12:43 +000025030 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025031fi
cristy8b350f62009-11-15 23:12:43 +000025032rm -f core conftest.err conftest.$ac_objext \
25033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025034LIBS=$ac_check_lib_save_LIBS
25035fi
cristy8b350f62009-11-15 23:12:43 +000025036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025037$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025038if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025039 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025040$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025041
25042fi
25043
25044 fi
25045
25046 #
25047 # Check for X11 shape extension
25048 #
cristy8b350f62009-11-15 23:12:43 +000025049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025050$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025051if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025052 $as_echo_n "(cached) " >&6
25053else
25054 ac_check_lib_save_LIBS=$LIBS
25055LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025057/* end confdefs.h. */
25058
25059/* Override any GCC internal prototype to avoid an error.
25060 Use char because int might match the return type of a GCC
25061 builtin and then its argument prototype would still apply. */
25062#ifdef __cplusplus
25063extern "C"
25064#endif
25065char XShapeCombineMask ();
25066int
25067main ()
25068{
25069return XShapeCombineMask ();
25070 ;
25071 return 0;
25072}
25073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025075 ac_cv_lib_Xext_XShapeCombineMask=yes
25076else
cristy8b350f62009-11-15 23:12:43 +000025077 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025078fi
cristy8b350f62009-11-15 23:12:43 +000025079rm -f core conftest.err conftest.$ac_objext \
25080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025081LIBS=$ac_check_lib_save_LIBS
25082fi
cristy8b350f62009-11-15 23:12:43 +000025083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025084$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025085if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025086 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025087$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025088
25089fi
25090
cristy8b350f62009-11-15 23:12:43 +000025091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025092$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025093if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025094 $as_echo_n "(cached) " >&6
25095else
25096 ac_check_lib_save_LIBS=$LIBS
25097LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025099/* end confdefs.h. */
25100
25101/* Override any GCC internal prototype to avoid an error.
25102 Use char because int might match the return type of a GCC
25103 builtin and then its argument prototype would still apply. */
25104#ifdef __cplusplus
25105extern "C"
25106#endif
25107char XtSetEventDispatcher ();
25108int
25109main ()
25110{
25111return XtSetEventDispatcher ();
25112 ;
25113 return 0;
25114}
25115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025116if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025117 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25118else
cristy8b350f62009-11-15 23:12:43 +000025119 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025120fi
cristy8b350f62009-11-15 23:12:43 +000025121rm -f core conftest.err conftest.$ac_objext \
25122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025123LIBS=$ac_check_lib_save_LIBS
25124fi
cristy8b350f62009-11-15 23:12:43 +000025125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025126$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025127if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025128 XT_LIBS='-lXt'
25129fi
25130
25131 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25132fi
25133if test "$no_x" != 'yes'; then
25134 have_x='yes'
25135else
25136 have_x='no'
25137fi
25138 if test "$have_x" = 'yes'; then
25139 X11_DELEGATE_TRUE=
25140 X11_DELEGATE_FALSE='#'
25141else
25142 X11_DELEGATE_TRUE='#'
25143 X11_DELEGATE_FALSE=
25144fi
25145
25146
25147
25148
25149
25150#
25151# Check for ZLIB
25152#
25153
25154# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025155if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025156 withval=$with_zlib; with_zlib=$withval
25157else
25158 with_zlib='yes'
25159fi
25160
25161
25162if test "$with_zlib" != 'yes'; then
25163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25164fi
25165
25166have_zlib='no'
25167ZLIB_LIBS=''
25168if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025170$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025172$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025174$as_echo "" >&6; }
25175 ZLIB_LIBS=''
25176 failed=0
25177 passed=0
cristy8b350f62009-11-15 23:12:43 +000025178 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25179if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025180 passed=`expr $passed + 1`
25181else
25182 failed=`expr $failed + 1`
25183fi
25184
25185
cristy8b350f62009-11-15 23:12:43 +000025186 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25187if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025188 passed=`expr $passed + 1`
25189else
25190 failed=`expr $failed + 1`
25191fi
25192
25193
cristy8b350f62009-11-15 23:12:43 +000025194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025195$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025196if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025197 $as_echo_n "(cached) " >&6
25198else
25199 ac_check_lib_save_LIBS=$LIBS
25200LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025202/* end confdefs.h. */
25203
25204/* Override any GCC internal prototype to avoid an error.
25205 Use char because int might match the return type of a GCC
25206 builtin and then its argument prototype would still apply. */
25207#ifdef __cplusplus
25208extern "C"
25209#endif
25210char compress ();
25211int
25212main ()
25213{
25214return compress ();
25215 ;
25216 return 0;
25217}
25218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025220 ac_cv_lib_z_compress=yes
25221else
cristy8b350f62009-11-15 23:12:43 +000025222 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025223fi
cristy8b350f62009-11-15 23:12:43 +000025224rm -f core conftest.err conftest.$ac_objext \
25225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025226LIBS=$ac_check_lib_save_LIBS
25227fi
cristy8b350f62009-11-15 23:12:43 +000025228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025229$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025230if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025231 passed=`expr $passed + 1`
25232else
25233 failed=`expr $failed + 1`
25234fi
25235
cristy8b350f62009-11-15 23:12:43 +000025236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025237$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025238if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025239 $as_echo_n "(cached) " >&6
25240else
25241 ac_check_lib_save_LIBS=$LIBS
25242LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025244/* end confdefs.h. */
25245
25246/* Override any GCC internal prototype to avoid an error.
25247 Use char because int might match the return type of a GCC
25248 builtin and then its argument prototype would still apply. */
25249#ifdef __cplusplus
25250extern "C"
25251#endif
25252char uncompress ();
25253int
25254main ()
25255{
25256return uncompress ();
25257 ;
25258 return 0;
25259}
25260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025262 ac_cv_lib_z_uncompress=yes
25263else
cristy8b350f62009-11-15 23:12:43 +000025264 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025265fi
cristy8b350f62009-11-15 23:12:43 +000025266rm -f core conftest.err conftest.$ac_objext \
25267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025268LIBS=$ac_check_lib_save_LIBS
25269fi
cristy8b350f62009-11-15 23:12:43 +000025270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025271$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025272if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025273 passed=`expr $passed + 1`
25274else
25275 failed=`expr $failed + 1`
25276fi
25277
cristy8b350f62009-11-15 23:12:43 +000025278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025279$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025280if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025281 $as_echo_n "(cached) " >&6
25282else
25283 ac_check_lib_save_LIBS=$LIBS
25284LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025286/* end confdefs.h. */
25287
25288/* Override any GCC internal prototype to avoid an error.
25289 Use char because int might match the return type of a GCC
25290 builtin and then its argument prototype would still apply. */
25291#ifdef __cplusplus
25292extern "C"
25293#endif
25294char deflate ();
25295int
25296main ()
25297{
25298return deflate ();
25299 ;
25300 return 0;
25301}
25302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025303if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025304 ac_cv_lib_z_deflate=yes
25305else
cristy8b350f62009-11-15 23:12:43 +000025306 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025307fi
cristy8b350f62009-11-15 23:12:43 +000025308rm -f core conftest.err conftest.$ac_objext \
25309 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025310LIBS=$ac_check_lib_save_LIBS
25311fi
cristy8b350f62009-11-15 23:12:43 +000025312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025313$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025314if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025315 passed=`expr $passed + 1`
25316else
25317 failed=`expr $failed + 1`
25318fi
25319
cristy8b350f62009-11-15 23:12:43 +000025320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025321$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025322if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025323 $as_echo_n "(cached) " >&6
25324else
25325 ac_check_lib_save_LIBS=$LIBS
25326LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025328/* end confdefs.h. */
25329
25330/* Override any GCC internal prototype to avoid an error.
25331 Use char because int might match the return type of a GCC
25332 builtin and then its argument prototype would still apply. */
25333#ifdef __cplusplus
25334extern "C"
25335#endif
25336char inflate ();
25337int
25338main ()
25339{
25340return inflate ();
25341 ;
25342 return 0;
25343}
25344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025345if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025346 ac_cv_lib_z_inflate=yes
25347else
cristy8b350f62009-11-15 23:12:43 +000025348 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025349fi
cristy8b350f62009-11-15 23:12:43 +000025350rm -f core conftest.err conftest.$ac_objext \
25351 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025352LIBS=$ac_check_lib_save_LIBS
25353fi
cristy8b350f62009-11-15 23:12:43 +000025354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025355$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025356if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025357 passed=`expr $passed + 1`
25358else
25359 failed=`expr $failed + 1`
25360fi
25361
cristy8b350f62009-11-15 23:12:43 +000025362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025363$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025364if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025365 $as_echo_n "(cached) " >&6
25366else
25367 ac_check_lib_save_LIBS=$LIBS
25368LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025370/* end confdefs.h. */
25371
25372/* Override any GCC internal prototype to avoid an error.
25373 Use char because int might match the return type of a GCC
25374 builtin and then its argument prototype would still apply. */
25375#ifdef __cplusplus
25376extern "C"
25377#endif
25378char gzseek ();
25379int
25380main ()
25381{
25382return gzseek ();
25383 ;
25384 return 0;
25385}
25386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025388 ac_cv_lib_z_gzseek=yes
25389else
cristy8b350f62009-11-15 23:12:43 +000025390 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025391fi
cristy8b350f62009-11-15 23:12:43 +000025392rm -f core conftest.err conftest.$ac_objext \
25393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025394LIBS=$ac_check_lib_save_LIBS
25395fi
cristy8b350f62009-11-15 23:12:43 +000025396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025398if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025399 passed=`expr $passed + 1`
25400else
25401 failed=`expr $failed + 1`
25402fi
25403
cristy8b350f62009-11-15 23:12:43 +000025404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025405$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025406if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025407 $as_echo_n "(cached) " >&6
25408else
25409 ac_check_lib_save_LIBS=$LIBS
25410LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025412/* end confdefs.h. */
25413
25414/* Override any GCC internal prototype to avoid an error.
25415 Use char because int might match the return type of a GCC
25416 builtin and then its argument prototype would still apply. */
25417#ifdef __cplusplus
25418extern "C"
25419#endif
25420char gztell ();
25421int
25422main ()
25423{
25424return gztell ();
25425 ;
25426 return 0;
25427}
25428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025430 ac_cv_lib_z_gztell=yes
25431else
cristy8b350f62009-11-15 23:12:43 +000025432 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000025433fi
cristy8b350f62009-11-15 23:12:43 +000025434rm -f core conftest.err conftest.$ac_objext \
25435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025436LIBS=$ac_check_lib_save_LIBS
25437fi
cristy8b350f62009-11-15 23:12:43 +000025438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000025439$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025440if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025441 passed=`expr $passed + 1`
25442else
25443 failed=`expr $failed + 1`
25444fi
25445
cristy8b350f62009-11-15 23:12:43 +000025446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025447$as_echo_n "checking if ZLIB package is complete... " >&6; }
25448 if test $passed -gt 0; then
25449 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025451$as_echo "no -- some components failed test" >&6; }
25452 have_zlib='no (failed tests)'
25453 else
25454 ZLIB_LIBS='-lz'
25455 LIBS="$ZLIB_LIBS $LIBS"
25456
cristy8b350f62009-11-15 23:12:43 +000025457$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025458
cristy8b350f62009-11-15 23:12:43 +000025459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460$as_echo "yes" >&6; }
25461 have_zlib='yes'
25462 fi
25463 else
cristy8b350f62009-11-15 23:12:43 +000025464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025465$as_echo "no" >&6; }
25466 fi
25467fi
25468 if test "$have_zlib" = 'yes'; then
25469 ZLIB_DELEGATE_TRUE=
25470 ZLIB_DELEGATE_FALSE='#'
25471else
25472 ZLIB_DELEGATE_TRUE='#'
25473 ZLIB_DELEGATE_FALSE=
25474fi
25475
25476
25477
25478#
25479# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25480#
25481LIB_DL=''
25482if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025484$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025485if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 $as_echo_n "(cached) " >&6
25487else
25488 ac_check_lib_save_LIBS=$LIBS
25489LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025491/* end confdefs.h. */
25492
25493/* Override any GCC internal prototype to avoid an error.
25494 Use char because int might match the return type of a GCC
25495 builtin and then its argument prototype would still apply. */
25496#ifdef __cplusplus
25497extern "C"
25498#endif
25499char dlopen ();
25500int
25501main ()
25502{
25503return dlopen ();
25504 ;
25505 return 0;
25506}
25507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025508if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025509 ac_cv_lib_dl_dlopen=yes
25510else
cristy8b350f62009-11-15 23:12:43 +000025511 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000025512fi
cristy8b350f62009-11-15 23:12:43 +000025513rm -f core conftest.err conftest.$ac_objext \
25514 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025515LIBS=$ac_check_lib_save_LIBS
25516fi
cristy8b350f62009-11-15 23:12:43 +000025517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000025518$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025519if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025520 LIB_DL='-ldl'
25521fi
25522
25523 LIBS="$LIB_DL $LIBS"
25524fi
25525
25526
25527
25528#
25529# Check for Autotrace delegate library.
25530#
25531
25532# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000025533if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025534 withval=$with_autotrace; with_autotrace=$withval
25535else
25536 with_autotrace='no'
25537fi
25538
25539
25540if test "$with_autotrace" != 'yes'; then
25541 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25542fi
25543
25544have_autotrace='no'
25545AUTOTRACE_CFLAGS=""
25546AUTOTRACE_LIBS=""
25547AUTOTRACE_PKG=""
25548if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025550$as_echo "-------------------------------------------------------------" >&6; }
25551
25552pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025554$as_echo_n "checking for AUTOTRACE... " >&6; }
25555
25556if test -n "$AUTOTRACE_CFLAGS"; then
25557 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25558 elif test -n "$PKG_CONFIG"; then
25559 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025561 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25562 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25564 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025565 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25566else
25567 pkg_failed=yes
25568fi
25569 else
25570 pkg_failed=untried
25571fi
25572if test -n "$AUTOTRACE_LIBS"; then
25573 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25574 elif test -n "$PKG_CONFIG"; then
25575 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025577 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25578 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25580 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025581 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25582else
25583 pkg_failed=yes
25584fi
25585 else
25586 pkg_failed=untried
25587fi
25588
25589
25590
25591if test $pkg_failed = yes; then
25592
25593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25594 _pkg_short_errors_supported=yes
25595else
25596 _pkg_short_errors_supported=no
25597fi
25598 if test $_pkg_short_errors_supported = yes; then
25599 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25600 else
25601 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25602 fi
25603 # Put the nasty error message in config.log where it belongs
25604 echo "$AUTOTRACE_PKG_ERRORS" >&5
25605
cristy8b350f62009-11-15 23:12:43 +000025606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025607$as_echo "no" >&6; }
25608 have_autotrace=no
25609elif test $pkg_failed = untried; then
25610 have_autotrace=no
25611else
25612 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25613 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000025614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025615$as_echo "yes" >&6; }
25616 have_autotrace=yes
25617fi
cristy8b350f62009-11-15 23:12:43 +000025618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025619$as_echo "" >&6; }
25620fi
25621
25622if test "$have_autotrace" = 'yes'; then
25623 failed=0
25624
cristy8b350f62009-11-15 23:12:43 +000025625$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025626
25627 if test "$with_modules" = 'no'; then
25628 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25629 fi
25630fi
25631
25632 if test "$have_autotrace" = 'yes'; then
25633 AUTOTRACE_DELEGATE_TRUE=
25634 AUTOTRACE_DELEGATE_FALSE='#'
25635else
25636 AUTOTRACE_DELEGATE_TRUE='#'
25637 AUTOTRACE_DELEGATE_FALSE=
25638fi
25639
25640
25641
25642
25643
25644#
25645# Check for Display Postscript delegate library.
25646#
25647
25648# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000025649if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 withval=$with_dps; with_dps=$withval
25651else
25652 with_dps='yes'
25653fi
25654
25655
25656if test "$with_dps" != 'yes'; then
25657 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25658fi
25659
25660have_dps='no'
25661DPS_LIBS=''
25662if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025664$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025666$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025668$as_echo "" >&6; }
25669 failed=0
25670 passed=0
25671 PERSIST_CPPFLAGS="$CPPFLAGS"
25672 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025673 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25674if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025675 passed=`expr $passed + 1`
25676else
25677 failed=`expr $failed + 1`
25678fi
25679
25680
25681 # DPS issues:
25682 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25683 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25684 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25685 # ImageMagick itself doesn't use -lXt.
25686 have_libdps='no'
25687 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025689$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025690if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025691 $as_echo_n "(cached) " >&6
25692else
25693 ac_check_lib_save_LIBS=$LIBS
25694LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025696/* end confdefs.h. */
25697
25698/* Override any GCC internal prototype to avoid an error.
25699 Use char because int might match the return type of a GCC
25700 builtin and then its argument prototype would still apply. */
25701#ifdef __cplusplus
25702extern "C"
25703#endif
25704char DPSInitialize ();
25705int
25706main ()
25707{
25708return DPSInitialize ();
25709 ;
25710 return 0;
25711}
25712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025713if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025714 ac_cv_lib_dps_DPSInitialize=yes
25715else
cristy8b350f62009-11-15 23:12:43 +000025716 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025717fi
cristy8b350f62009-11-15 23:12:43 +000025718rm -f core conftest.err conftest.$ac_objext \
25719 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025720LIBS=$ac_check_lib_save_LIBS
25721fi
cristy8b350f62009-11-15 23:12:43 +000025722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025723$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025724if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025725 have_libdps='yes'
25726else
25727 have_libdps='no'
25728fi
25729
25730 if test "$have_libdps" != 'yes'; then
25731 # Unset cache variable so we can try again.
25732 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025734$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025735if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025736 $as_echo_n "(cached) " >&6
25737else
25738 ac_check_lib_save_LIBS=$LIBS
25739LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025741/* end confdefs.h. */
25742
25743/* Override any GCC internal prototype to avoid an error.
25744 Use char because int might match the return type of a GCC
25745 builtin and then its argument prototype would still apply. */
25746#ifdef __cplusplus
25747extern "C"
25748#endif
25749char DPSInitialize ();
25750int
25751main ()
25752{
25753return DPSInitialize ();
25754 ;
25755 return 0;
25756}
25757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025759 ac_cv_lib_dps_DPSInitialize=yes
25760else
cristy8b350f62009-11-15 23:12:43 +000025761 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025762fi
cristy8b350f62009-11-15 23:12:43 +000025763rm -f core conftest.err conftest.$ac_objext \
25764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025765LIBS=$ac_check_lib_save_LIBS
25766fi
cristy8b350f62009-11-15 23:12:43 +000025767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025768$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025769if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025770 have_libdps='yes'
25771else
25772 have_libdps='no'
25773fi
25774
25775 if test "$have_libdps" = 'yes'; then
25776 LIBDPS_XT='-lXt'
25777 fi
25778 fi
25779 if test "$have_libdps" = 'yes'; then
25780 passed=`expr $passed + 1`
25781 else
25782 failed=`expr $failed + 1`
25783 fi
cristy8b350f62009-11-15 23:12:43 +000025784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025785$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025786if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025787 $as_echo_n "(cached) " >&6
25788else
25789 ac_check_lib_save_LIBS=$LIBS
25790LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025792/* end confdefs.h. */
25793
25794/* Override any GCC internal prototype to avoid an error.
25795 Use char because int might match the return type of a GCC
25796 builtin and then its argument prototype would still apply. */
25797#ifdef __cplusplus
25798extern "C"
25799#endif
25800char XDPSPixelsPerPoint ();
25801int
25802main ()
25803{
25804return XDPSPixelsPerPoint ();
25805 ;
25806 return 0;
25807}
25808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025809if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025810 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25811else
cristy8b350f62009-11-15 23:12:43 +000025812 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025813fi
cristy8b350f62009-11-15 23:12:43 +000025814rm -f core conftest.err conftest.$ac_objext \
25815 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025816LIBS=$ac_check_lib_save_LIBS
25817fi
cristy8b350f62009-11-15 23:12:43 +000025818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025819$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025820if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025821 passed=`expr $passed + 1`
25822else
25823 failed=`expr $failed + 1`
25824fi
25825
cristy8b350f62009-11-15 23:12:43 +000025826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025827$as_echo_n "checking if DPS package is complete... " >&6; }
25828 if test $passed -gt 0; then
25829 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025831$as_echo "no -- some components failed test" >&6; }
25832 have_dps='no (failed tests)'
25833 CPPFLAGS="$PERSIST_CPPFLAGS"
25834 else
25835 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25836 LIBS="$DPS_LIBS $LIBS"
25837
cristy8b350f62009-11-15 23:12:43 +000025838$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025839
cristy8b350f62009-11-15 23:12:43 +000025840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025841$as_echo "yes" >&6; }
25842 have_dps='yes'
25843 fi
25844 else
cristy8b350f62009-11-15 23:12:43 +000025845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025846$as_echo "no" >&6; }
25847 CPPFLAGS=$PERSIST_CPPFLAGS
25848 fi
25849fi
25850 if test "$have_dps" = 'yes'; then
25851 DPS_DELEGATE_TRUE=
25852 DPS_DELEGATE_FALSE='#'
25853else
25854 DPS_DELEGATE_TRUE='#'
25855 DPS_DELEGATE_FALSE=
25856fi
25857
25858
25859
25860
25861#
25862# Check for DJVU delegate library.
25863#
25864
25865# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025866if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025867 withval=$with_djvu; with_djvu=$withval
25868else
25869 with_djvu='yes'
25870fi
25871
25872
25873if test "$with_djvu" != 'yes'; then
25874 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25875fi
25876
25877have_djvu='no'
25878DJVU_LIBS=''
25879if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025881$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025883$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025885$as_echo "" >&6; }
25886 failed=0
25887 passed=0
cristy8b350f62009-11-15 23:12:43 +000025888 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25889if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025890 passed=`expr $passed + 1`
25891else
25892 failed=`expr $failed + 1`
25893fi
25894
25895
cristy8b350f62009-11-15 23:12:43 +000025896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025897$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025898if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025899 $as_echo_n "(cached) " >&6
25900else
25901 ac_check_lib_save_LIBS=$LIBS
25902LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025904/* end confdefs.h. */
25905
25906/* Override any GCC internal prototype to avoid an error.
25907 Use char because int might match the return type of a GCC
25908 builtin and then its argument prototype would still apply. */
25909#ifdef __cplusplus
25910extern "C"
25911#endif
25912char ddjvu_context_create ();
25913int
25914main ()
25915{
25916return ddjvu_context_create ();
25917 ;
25918 return 0;
25919}
25920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025921if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025922 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25923else
cristy8b350f62009-11-15 23:12:43 +000025924 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025925fi
cristy8b350f62009-11-15 23:12:43 +000025926rm -f core conftest.err conftest.$ac_objext \
25927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025928LIBS=$ac_check_lib_save_LIBS
25929fi
cristy8b350f62009-11-15 23:12:43 +000025930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025931$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025932if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025933 passed=`expr $passed + 1`
25934else
25935 failed=`expr $failed + 1`
25936fi
25937
cristy8b350f62009-11-15 23:12:43 +000025938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025939$as_echo_n "checking if DJVU package is complete... " >&6; }
25940 if test $passed -gt 0; then
25941 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025943$as_echo "no -- some components failed test" >&6; }
25944 have_djvu='no (failed tests)'
25945 else
25946 DJVU_LIBS='-ldjvulibre'
25947 LIBS="$DJVU_LIBS $LIBS"
25948
cristy8b350f62009-11-15 23:12:43 +000025949$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025950
cristy8b350f62009-11-15 23:12:43 +000025951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025952$as_echo "yes" >&6; }
25953 have_djvu='yes'
25954 fi
25955 else
cristy8b350f62009-11-15 23:12:43 +000025956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025957$as_echo "no" >&6; }
25958 fi
25959fi
25960 if test "$have_djvu" = 'yes'; then
25961 DJVU_DELEGATE_TRUE=
25962 DJVU_DELEGATE_FALSE='#'
25963else
25964 DJVU_DELEGATE_TRUE='#'
25965 DJVU_DELEGATE_FALSE=
25966fi
25967
25968
25969
25970
25971#
cristy430a7312010-01-21 20:44:04 +000025972# Set DejaVu font directory.
25973#
25974
25975# Check whether --with-dejavu-font-dir was given.
25976if test "${with_dejavu_font_dir+set}" = set; then :
25977 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
25978else
25979 with_dejavu_font_dir='default'
25980fi
25981
25982
25983if test "$with_dejavu_font_dir" != 'default'; then
25984 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
25985fi
25986
25987
25988#
cristy3ed852e2009-09-05 21:47:34 +000025989# Check for FFTW delegate library.
25990#
25991
25992# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025993if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025994 withval=$with_fftw; with_fftw=$withval
25995else
25996 with_fftw='yes'
25997fi
25998
25999
26000if test "$with_fftw" != 'yes'; then
26001 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26002fi
26003
26004have_fftw='no'
26005FFTW_LIBS=''
26006if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026010$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo "" >&6; }
26013 failed=0
26014 passed=0
cristy8b350f62009-11-15 23:12:43 +000026015 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26016if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026017 passed=`expr $passed + 1`
26018else
26019 failed=`expr $failed + 1`
26020fi
26021
26022
cristy8b350f62009-11-15 23:12:43 +000026023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026024$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026025if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026026 $as_echo_n "(cached) " >&6
26027else
26028 ac_check_lib_save_LIBS=$LIBS
26029LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026031/* end confdefs.h. */
26032
26033/* Override any GCC internal prototype to avoid an error.
26034 Use char because int might match the return type of a GCC
26035 builtin and then its argument prototype would still apply. */
26036#ifdef __cplusplus
26037extern "C"
26038#endif
26039char fftw_execute ();
26040int
26041main ()
26042{
26043return fftw_execute ();
26044 ;
26045 return 0;
26046}
26047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026049 ac_cv_lib_fftw3_fftw_execute=yes
26050else
cristy8b350f62009-11-15 23:12:43 +000026051 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026052fi
cristy8b350f62009-11-15 23:12:43 +000026053rm -f core conftest.err conftest.$ac_objext \
26054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026055LIBS=$ac_check_lib_save_LIBS
26056fi
cristy8b350f62009-11-15 23:12:43 +000026057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026058$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026059if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026060 passed=`expr $passed + 1`
26061else
26062 failed=`expr $failed + 1`
26063fi
26064
cristy8b350f62009-11-15 23:12:43 +000026065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026066$as_echo_n "checking if FFTW package is complete... " >&6; }
26067 if test $passed -gt 0; then
26068 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026070$as_echo "no -- some components failed test" >&6; }
26071 have_fftw='no (failed tests)'
26072 else
26073 FFTW_LIBS='-lfftw3'
26074 LIBS="$FFTW_LIBS $LIBS"
26075
cristy8b350f62009-11-15 23:12:43 +000026076$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026077
cristy8b350f62009-11-15 23:12:43 +000026078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026079$as_echo "yes" >&6; }
26080 have_fftw='yes'
26081 fi
26082 else
cristy8b350f62009-11-15 23:12:43 +000026083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084$as_echo "no" >&6; }
26085 fi
26086fi
26087 if test "$have_fftw" = 'yes'; then
26088 FFTW_DELEGATE_TRUE=
26089 FFTW_DELEGATE_FALSE='#'
26090else
26091 FFTW_DELEGATE_TRUE='#'
26092 FFTW_DELEGATE_FALSE=
26093fi
26094
26095
26096
26097
26098#
26099# Check for FlashPIX delegate library.
26100#
26101
26102# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026103if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026104 withval=$with_fpx; with_fpx=$withval
26105else
26106 with_fpx='yes'
26107fi
26108
26109
26110if test "$with_fpx" != 'yes'; then
26111 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26112fi
26113
26114have_fpx='no'
26115FPX_LIBS=''
26116if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026118$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026120$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026122$as_echo "" >&6; }
26123 failed=0
26124 passed=0
26125 ac_ext=cpp
26126ac_cpp='$CXXCPP $CPPFLAGS'
26127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26130
26131
cristy8b350f62009-11-15 23:12:43 +000026132ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26133if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026134 passed=`expr $passed + 1`
26135else
26136 failed=`expr $failed + 1`
26137fi
26138
26139
cristy8b350f62009-11-15 23:12:43 +000026140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026141$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026142if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026143 $as_echo_n "(cached) " >&6
26144else
26145 ac_check_lib_save_LIBS=$LIBS
26146LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026148/* end confdefs.h. */
26149
26150/* Override any GCC internal prototype to avoid an error.
26151 Use char because int might match the return type of a GCC
26152 builtin and then its argument prototype would still apply. */
26153#ifdef __cplusplus
26154extern "C"
26155#endif
26156char FPX_OpenImageByFilename ();
26157int
26158main ()
26159{
26160return FPX_OpenImageByFilename ();
26161 ;
26162 return 0;
26163}
26164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026165if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026166 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26167else
cristy8b350f62009-11-15 23:12:43 +000026168 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026169fi
cristy8b350f62009-11-15 23:12:43 +000026170rm -f core conftest.err conftest.$ac_objext \
26171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026172LIBS=$ac_check_lib_save_LIBS
26173fi
cristy8b350f62009-11-15 23:12:43 +000026174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026175$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026176if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026177 passed=`expr $passed + 1`
26178else
26179 failed=`expr $failed + 1`
26180fi
26181
26182 ac_ext=c
26183ac_cpp='$CPP $CPPFLAGS'
26184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26186ac_compiler_gnu=$ac_cv_c_compiler_gnu
26187
cristy8b350f62009-11-15 23:12:43 +000026188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026189$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26190 if test $passed -gt 0; then
26191 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026193$as_echo "no -- some components failed test" >&6; }
26194 have_fpx='no (failed tests)'
26195 else
26196 FPX_LIBS='-lfpx'
26197
cristy8b350f62009-11-15 23:12:43 +000026198$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026199
cristy8b350f62009-11-15 23:12:43 +000026200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026201$as_echo "yes" >&6; }
26202 have_fpx='yes'
26203 PERLMAINCC="$CXX"
26204 fi
26205 else
cristy8b350f62009-11-15 23:12:43 +000026206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026207$as_echo "no" >&6; }
26208 fi
26209fi
26210 if test "$have_fpx" = 'yes'; then
26211 FPX_DELEGATE_TRUE=
26212 FPX_DELEGATE_FALSE='#'
26213else
26214 FPX_DELEGATE_TRUE='#'
26215 FPX_DELEGATE_FALSE=
26216fi
26217
26218
26219
26220
26221#
26222# Check for fontconfig delegate library.
26223#
26224
26225# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026226if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026227 withval=$with_fontconfig; with_fontconfig=$withval
26228else
26229 with_fontconfig=$have_x
26230fi
26231
26232
26233if test "$with_fontconfig" != 'yes'; then
26234 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26235fi
26236
26237have_fontconfig='no'
26238FONTCONFIG_CFLAGS=""
26239FONTCONFIG_LIBS=""
26240FONTCONFIG_PKG=""
26241if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026243$as_echo "-------------------------------------------------------------" >&6; }
26244
26245pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo_n "checking for FONTCONFIG... " >&6; }
26248
26249if test -n "$FONTCONFIG_CFLAGS"; then
26250 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26251 elif test -n "$PKG_CONFIG"; then
26252 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026254 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26255 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026258 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26259else
26260 pkg_failed=yes
26261fi
26262 else
26263 pkg_failed=untried
26264fi
26265if test -n "$FONTCONFIG_LIBS"; then
26266 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26267 elif test -n "$PKG_CONFIG"; then
26268 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026270 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26271 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26273 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026274 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26275else
26276 pkg_failed=yes
26277fi
26278 else
26279 pkg_failed=untried
26280fi
26281
26282
26283
26284if test $pkg_failed = yes; then
26285
26286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26287 _pkg_short_errors_supported=yes
26288else
26289 _pkg_short_errors_supported=no
26290fi
26291 if test $_pkg_short_errors_supported = yes; then
26292 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26293 else
26294 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26295 fi
26296 # Put the nasty error message in config.log where it belongs
26297 echo "$FONTCONFIG_PKG_ERRORS" >&5
26298
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo "no" >&6; }
26301 have_fontconfig=no
26302elif test $pkg_failed = untried; then
26303 have_fontconfig=no
26304else
26305 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26306 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026308$as_echo "yes" >&6; }
26309 have_fontconfig=yes
26310fi
cristy8b350f62009-11-15 23:12:43 +000026311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026312$as_echo "" >&6; }
26313fi
26314
26315if test "$have_fontconfig" = 'yes'; then
26316
cristy8b350f62009-11-15 23:12:43 +000026317$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026318
26319 if test "$with_modules" = 'no'; then
26320 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26321 fi
26322fi
26323
26324 if test "$have_fontconfig" = 'yes'; then
26325 FONTCONFIG_DELEGATE_TRUE=
26326 FONTCONFIG_DELEGATE_FALSE='#'
26327else
26328 FONTCONFIG_DELEGATE_TRUE='#'
26329 FONTCONFIG_DELEGATE_FALSE=
26330fi
26331
26332
26333
26334
26335
26336#
26337# Check for freetype delegate library.
26338#
26339
26340# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026341if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026342 withval=$with_freetype; with_freetype=$withval
26343else
26344 with_freetype='yes'
26345fi
26346
26347
26348
26349if test "$with_freetype" != 'yes'; then
26350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26351fi
26352
26353have_freetype='no'
26354FREETYPE_LIBS=''
26355if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026357$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026359$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026361$as_echo "" >&6; }
26362 failed=0
26363 passed=0
cristy66291112009-10-03 22:44:36 +000026364 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026365 PERSIST_CPPFLAGS="$CPPFLAGS"
26366 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26367 :
26368 else
26369 freetype_config=''
26370 for ac_prog in freetype-config
26371do
26372 # Extract the first word of "$ac_prog", so it can be a program name with args.
26373set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026375$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026376if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026377 $as_echo_n "(cached) " >&6
26378else
26379 if test -n "$freetype_config"; then
26380 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26381else
26382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26383for as_dir in $PATH
26384do
26385 IFS=$as_save_IFS
26386 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026387 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26389 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026391 break 2
26392 fi
26393done
cristy8b350f62009-11-15 23:12:43 +000026394 done
cristy3ed852e2009-09-05 21:47:34 +000026395IFS=$as_save_IFS
26396
26397fi
26398fi
26399freetype_config=$ac_cv_prog_freetype_config
26400if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026402$as_echo "$freetype_config" >&6; }
26403else
cristy8b350f62009-11-15 23:12:43 +000026404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026405$as_echo "no" >&6; }
26406fi
26407
26408
26409 test -n "$freetype_config" && break
26410done
26411 if test -n "$freetype_config"; then
26412 freetype_cflags=`$freetype_config --cflags`
26413 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000026414 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000026415 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26416 fi
26417 fi
26418
26419 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000026420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000026421$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026422if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 $as_echo_n "(cached) " >&6
26424else
26425 ac_check_lib_save_LIBS=$LIBS
26426LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026428/* end confdefs.h. */
26429
26430/* Override any GCC internal prototype to avoid an error.
26431 Use char because int might match the return type of a GCC
26432 builtin and then its argument prototype would still apply. */
26433#ifdef __cplusplus
26434extern "C"
26435#endif
26436char FT_Init_FreeType ();
26437int
26438main ()
26439{
26440return FT_Init_FreeType ();
26441 ;
26442 return 0;
26443}
26444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026446 ac_cv_lib_freetype_FT_Init_FreeType=yes
26447else
cristy8b350f62009-11-15 23:12:43 +000026448 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000026449fi
cristy8b350f62009-11-15 23:12:43 +000026450rm -f core conftest.err conftest.$ac_objext \
26451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026452LIBS=$ac_check_lib_save_LIBS
26453fi
cristy8b350f62009-11-15 23:12:43 +000026454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000026455$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026456if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026457 FREETYPE_LIBS='-lfreetype'
26458fi
26459
26460 if test "$FREETYPE_LIBS" != ''; then
26461 passed=`expr $passed + 1`
26462 else
26463 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000026464 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026465 fi
26466 fi
26467
cristy8b350f62009-11-15 23:12:43 +000026468 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26469if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026470 FT2BUILD_H='#include <ft2build.h>'
26471else
26472 ft2build=''
26473fi
26474
26475
cristy8b350f62009-11-15 23:12:43 +000026476 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26477"
26478if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026479 have_freetype_h='yes'
26480else
26481 have_freetype_h='no'
26482fi
26483
26484
26485 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26486 passed=`expr $passed + 1`
26487 else
26488 failed=`expr $failed + 1`
26489 CPPFLAGS="$PERSIST_CPPFLAGS"
26490 fi
26491
cristy8b350f62009-11-15 23:12:43 +000026492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026493$as_echo_n "checking if FreeType package is complete... " >&6; }
26494 if test $passed -gt 0; then
26495 if test $failed -gt 0; then
26496 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026498$as_echo "no -- some components failed test" >&6; }
26499 have_freetype='no (failed tests)'
26500 else
26501 LIBS="$FREETYPE_LIBS $LIBS"
26502
cristy8b350f62009-11-15 23:12:43 +000026503$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026504
26505 if test "$ac_cv_header_ft2build_h" = 'yes'; then
26506
cristy8b350f62009-11-15 23:12:43 +000026507$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026508
26509 fi
cristy8b350f62009-11-15 23:12:43 +000026510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026511$as_echo "yes" >&6; }
26512 have_freetype='yes'
26513 fi
26514 else
cristy8b350f62009-11-15 23:12:43 +000026515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026516$as_echo "no" >&6; }
26517 fi
26518fi
26519 if test "$have_freetype" = 'yes'; then
26520 FREETYPE_DELEGATE_TRUE=
26521 FREETYPE_DELEGATE_FALSE='#'
26522else
26523 FREETYPE_DELEGATE_TRUE='#'
26524 FREETYPE_DELEGATE_FALSE=
26525fi
26526
26527
26528
26529
26530
26531#
26532# Check for Ghostscript library or framework.
26533#
26534# Test for iapi.h & test for gsapi_new_instance in -lgs
26535# or -framework Ghostscript
26536
26537
26538# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000026539if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026540 withval=$with_gslib; with_gslib=$withval
26541else
26542 with_gslib='no'
26543fi
26544
26545
cristyb7931f12009-09-25 10:22:21 +000026546gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000026547if test "$with_gslib" != 'yes'; then
26548 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26549fi
26550
26551have_gslib='no'
26552GS_LIBS=''
26553if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000026557$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026559$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000026560 framework=0
cristy3ed852e2009-09-05 21:47:34 +000026561 failed=0
26562 passed=0
cristy8b350f62009-11-15 23:12:43 +000026563 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26564if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026565 passed=`expr $passed + 1`
26566else
26567 failed=`expr $failed + 1`
26568fi
26569
26570
cristy8b350f62009-11-15 23:12:43 +000026571 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26572if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 passed=`expr $passed + 1`
26574else
26575 failed=`expr $failed + 1`
26576fi
26577
26578
cristy8b350f62009-11-15 23:12:43 +000026579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000026580$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026581if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026582 $as_echo_n "(cached) " >&6
26583else
26584 ac_check_framework_save_LIBS=$LIBS
26585LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026587/* end confdefs.h. */
26588
26589/* Override any GCC internal prototype to avoid an error.
26590 Use char because int might match the return type of a GCC
26591 builtin and then its argument prototype would still apply. */
26592#ifdef __cplusplus
26593extern "C"
26594#endif
26595char gsapi_new_instance ();
26596int
26597main ()
26598{
26599return gsapi_new_instance ();
26600 ;
26601 return 0;
26602}
26603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26606else
cristy8b350f62009-11-15 23:12:43 +000026607 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026608fi
cristy8b350f62009-11-15 23:12:43 +000026609rm -f core conftest.err conftest.$ac_objext \
26610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026611LIBS=$ac_check_framework_save_LIBS
26612fi
cristy8b350f62009-11-15 23:12:43 +000026613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026614$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026615if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026616 framework=`expr $framework + 1`
26617else
cristy8b350f62009-11-15 23:12:43 +000026618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000026619$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026620if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026621 $as_echo_n "(cached) " >&6
26622else
26623 ac_check_lib_save_LIBS=$LIBS
26624LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026626/* end confdefs.h. */
26627
26628/* Override any GCC internal prototype to avoid an error.
26629 Use char because int might match the return type of a GCC
26630 builtin and then its argument prototype would still apply. */
26631#ifdef __cplusplus
26632extern "C"
26633#endif
26634char gsapi_new_instance ();
26635int
26636main ()
26637{
26638return gsapi_new_instance ();
26639 ;
26640 return 0;
26641}
26642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026643if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026644 ac_cv_lib_gs_gsapi_new_instance=yes
26645else
cristy8b350f62009-11-15 23:12:43 +000026646 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026647fi
cristy8b350f62009-11-15 23:12:43 +000026648rm -f core conftest.err conftest.$ac_objext \
26649 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026650LIBS=$ac_check_lib_save_LIBS
26651fi
cristy8b350f62009-11-15 23:12:43 +000026652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026653$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026654if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026655 passed=`expr $passed + 1`
26656else
26657 failed=`expr $failed + 1`
26658fi
26659
26660fi
cristy8b350f62009-11-15 23:12:43 +000026661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026662$as_echo_n "checking if Ghostscript package is complete... " >&6; }
26663 if test $passed -gt 0; then
26664 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026666$as_echo "no -- some components failed test" >&6; }
26667 have_gslib='no (failed tests)'
26668 else
26669 if test $framework -gt 0; then
26670 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000026671 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000026672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000026673$as_echo "yes, using framework." >&6; }
26674 else
cristy8b350f62009-11-15 23:12:43 +000026675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000026676$as_echo "yes, using library." >&6; }
26677 GS_LIBS='-lgs'
26678 fi
26679 LIBS="$GS_LIBS $LIBS"
26680
cristy8b350f62009-11-15 23:12:43 +000026681$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026682
26683 have_gslib='yes'
26684 fi
26685 else
cristy8b350f62009-11-15 23:12:43 +000026686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo "no" >&6; }
26688 fi
26689fi
26690 if test "$have_gslib" = 'yes'; then
26691 GS_DELEGATE_TRUE=
26692 GS_DELEGATE_FALSE='#'
26693else
26694 GS_DELEGATE_TRUE='#'
26695 GS_DELEGATE_FALSE=
26696fi
26697
26698
26699
26700# Set default font search path
26701
26702# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026703if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026704 withval=$with_fontpath; with_fontpath=$withval
26705else
26706 with_fontpath=''
26707fi
26708
26709
26710if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26711 with_fontpath=''
26712else
26713
26714cat >>confdefs.h <<_ACEOF
26715#define MAGICK_FONT_PATH "$with_fontpath"
26716_ACEOF
26717
26718fi
26719if test "$with_fontpath=" != ''; then
26720 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26721fi
26722
26723# Set Ghostscript font directory
26724
26725# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026726if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026727 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26728else
26729 with_gs_font_dir='default'
26730fi
26731
26732
26733if test "$with_gs_font_dir" != 'default'; then
26734 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26735fi
26736
26737
26738#
26739# Check for GVC delegate library.
26740#
26741
26742# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026743if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026744 withval=$with_gvc; with_gvc=$withval
26745else
26746 with_gvc='yes'
26747fi
26748
26749
26750if test "$with_gvc" != 'yes'; then
26751 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26752fi
26753
26754GVC_PKG=""
26755if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026757$as_echo "-------------------------------------------------------------" >&6; }
26758
26759pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026761$as_echo_n "checking for GVC... " >&6; }
26762
26763if test -n "$GVC_CFLAGS"; then
26764 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26765 elif test -n "$PKG_CONFIG"; then
26766 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026768 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26769 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26771 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026772 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26773else
26774 pkg_failed=yes
26775fi
26776 else
26777 pkg_failed=untried
26778fi
26779if test -n "$GVC_LIBS"; then
26780 pkg_cv_GVC_LIBS="$GVC_LIBS"
26781 elif test -n "$PKG_CONFIG"; then
26782 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026784 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26785 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26787 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026788 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26789else
26790 pkg_failed=yes
26791fi
26792 else
26793 pkg_failed=untried
26794fi
26795
26796
26797
26798if test $pkg_failed = yes; then
26799
26800if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26801 _pkg_short_errors_supported=yes
26802else
26803 _pkg_short_errors_supported=no
26804fi
26805 if test $_pkg_short_errors_supported = yes; then
26806 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26807 else
26808 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26809 fi
26810 # Put the nasty error message in config.log where it belongs
26811 echo "$GVC_PKG_ERRORS" >&5
26812
cristy8b350f62009-11-15 23:12:43 +000026813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026814$as_echo "no" >&6; }
26815 have_gvc=no
26816elif test $pkg_failed = untried; then
26817 have_gvc=no
26818else
26819 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26820 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026822$as_echo "yes" >&6; }
26823 have_gvc=yes
26824fi
cristy8b350f62009-11-15 23:12:43 +000026825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026826$as_echo "" >&6; }
26827fi
26828
26829if test "$have_gvc" = 'yes'; then
26830
cristy8b350f62009-11-15 23:12:43 +000026831$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026832
26833 if test "$with_modules" = 'no'; then
26834 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26835 fi
26836fi
26837
26838 if test "$have_gvc" = 'yes'; then
26839 GVC_DELEGATE_TRUE=
26840 GVC_DELEGATE_FALSE='#'
26841else
26842 GVC_DELEGATE_TRUE='#'
26843 GVC_DELEGATE_FALSE=
26844fi
26845
26846
26847
26848
26849
26850#
26851# Check for JBIG delegate library.
26852#
26853
26854
26855# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026856if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026857 withval=$with_jbig; with_jbig=$withval
26858else
26859 with_jbig='yes'
26860fi
26861
26862
26863have_jbig='no'
26864JBIG_LIBS=''
26865if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026867$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026869$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo "" >&6; }
26872 failed=0
26873 passed=0
cristy8b350f62009-11-15 23:12:43 +000026874 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26875if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026876 passed=`expr $passed + 1`
26877else
26878 failed=`expr $failed + 1`
26879fi
26880
26881
cristy8b350f62009-11-15 23:12:43 +000026882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026883$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026884if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026885 $as_echo_n "(cached) " >&6
26886else
26887 ac_check_lib_save_LIBS=$LIBS
26888LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026890/* end confdefs.h. */
26891
26892/* Override any GCC internal prototype to avoid an error.
26893 Use char because int might match the return type of a GCC
26894 builtin and then its argument prototype would still apply. */
26895#ifdef __cplusplus
26896extern "C"
26897#endif
26898char jbg_dec_init ();
26899int
26900main ()
26901{
26902return jbg_dec_init ();
26903 ;
26904 return 0;
26905}
26906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026908 ac_cv_lib_jbig_jbg_dec_init=yes
26909else
cristy8b350f62009-11-15 23:12:43 +000026910 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026911fi
cristy8b350f62009-11-15 23:12:43 +000026912rm -f core conftest.err conftest.$ac_objext \
26913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026914LIBS=$ac_check_lib_save_LIBS
26915fi
cristy8b350f62009-11-15 23:12:43 +000026916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026917$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026918if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026919 passed=`expr $passed + 1`
26920else
26921 failed=`expr $failed + 1`
26922fi
26923
cristy8b350f62009-11-15 23:12:43 +000026924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026925$as_echo_n "checking if JBIG package is complete... " >&6; }
26926 if test $passed -gt 0; then
26927 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026929$as_echo "no -- some components failed test" >&6; }
26930 have_jbig='no (failed tests)'
26931 else
26932 JBIG_LIBS='-ljbig'
26933 LIBS="$JBIG_LIBS $LIBS"
26934
cristy8b350f62009-11-15 23:12:43 +000026935$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026936
cristy8b350f62009-11-15 23:12:43 +000026937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026938$as_echo "yes" >&6; }
26939 have_jbig='yes'
26940 fi
26941 else
cristy8b350f62009-11-15 23:12:43 +000026942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026943$as_echo "no" >&6; }
26944 fi
26945fi
26946 if test "$have_jbig" = 'yes'; then
26947 JBIG_DELEGATE_TRUE=
26948 JBIG_DELEGATE_FALSE='#'
26949else
26950 JBIG_DELEGATE_TRUE='#'
26951 JBIG_DELEGATE_FALSE=
26952fi
26953
26954
26955
26956
26957#
26958# Check for JPEG delegate library.
26959#
26960
26961# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026962if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026963 withval=$with_jpeg; with_jpeg=$withval
26964else
26965 with_jpeg='yes'
26966fi
26967
26968
26969if test "$with_jpeg" != 'yes'; then
26970 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26971fi
26972
26973have_jpeg='no'
26974JPEG_LIBS=''
26975if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026977$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026979$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026981$as_echo "" >&6; }
26982 failed=0
26983 passed=0
cristy8b350f62009-11-15 23:12:43 +000026984 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26985if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026986 passed=`expr $passed + 1`
26987else
26988 failed=`expr $failed + 1`
26989fi
26990
26991
cristy8b350f62009-11-15 23:12:43 +000026992 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26993if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026994 passed=`expr $passed + 1`
26995else
26996 failed=`expr $failed + 1`
26997fi
26998
26999
cristy8b350f62009-11-15 23:12:43 +000027000 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27001if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027002 passed=`expr $passed + 1`
27003else
27004 failed=`expr $failed + 1`
27005fi
27006
27007
cristy8b350f62009-11-15 23:12:43 +000027008 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27009if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027010 passed=`expr $passed + 1`
27011else
27012 failed=`expr $failed + 1`
27013fi
27014
27015
cristy8b350f62009-11-15 23:12:43 +000027016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027017$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027018if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027019 $as_echo_n "(cached) " >&6
27020else
27021 ac_check_lib_save_LIBS=$LIBS
27022LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027024/* end confdefs.h. */
27025
27026/* Override any GCC internal prototype to avoid an error.
27027 Use char because int might match the return type of a GCC
27028 builtin and then its argument prototype would still apply. */
27029#ifdef __cplusplus
27030extern "C"
27031#endif
27032char jpeg_read_header ();
27033int
27034main ()
27035{
27036return jpeg_read_header ();
27037 ;
27038 return 0;
27039}
27040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027041if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027042 ac_cv_lib_jpeg_jpeg_read_header=yes
27043else
cristy8b350f62009-11-15 23:12:43 +000027044 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027045fi
cristy8b350f62009-11-15 23:12:43 +000027046rm -f core conftest.err conftest.$ac_objext \
27047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027048LIBS=$ac_check_lib_save_LIBS
27049fi
cristy8b350f62009-11-15 23:12:43 +000027050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027052if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027053 passed=`expr $passed + 1`
27054else
27055 failed=`expr $failed + 1`
27056fi
27057
27058
27059# Test for compatible JPEG library
27060if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027062$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027063if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027064 $as_echo_n "(cached) " >&6
27065else
cristy8b350f62009-11-15 23:12:43 +000027066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027067/* end confdefs.h. */
27068#include <stdio.h>
27069#include <stdlib.h>
27070#include <jpeglib.h>
27071
27072int
27073main ()
27074{
27075
27076#if JPEG_LIB_VERSION < 62
27077#error IJG JPEG library must be version 6b or newer!
27078#endif
27079return 0;
27080
27081 ;
27082 return 0;
27083}
27084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027085if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027086 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27087else
cristy8b350f62009-11-15 23:12:43 +000027088 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027089fi
cristy3ed852e2009-09-05 21:47:34 +000027090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27091fi
cristy8b350f62009-11-15 23:12:43 +000027092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027093$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27094fi
cristy8b350f62009-11-15 23:12:43 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo_n "checking if JPEG package is complete... " >&6; }
27097 if test $passed -gt 0; then
27098 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo "no -- some components failed test" >&6; }
27101 have_jpeg='no (failed tests)'
27102 else
27103 JPEG_LIBS='-ljpeg'
27104 LIBS="$JPEG_LIBS $LIBS"
27105
cristy8b350f62009-11-15 23:12:43 +000027106$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027107
cristy8b350f62009-11-15 23:12:43 +000027108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027109$as_echo "yes" >&6; }
27110 have_jpeg='yes'
27111 fi
27112 else
cristy8b350f62009-11-15 23:12:43 +000027113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027114$as_echo "no" >&6; }
27115 fi
27116fi
27117 if test "$have_jpeg" = 'yes'; then
27118 JPEG_DELEGATE_TRUE=
27119 JPEG_DELEGATE_FALSE='#'
27120else
27121 JPEG_DELEGATE_TRUE='#'
27122 JPEG_DELEGATE_FALSE=
27123fi
27124
27125
27126
27127
27128#
27129# Check for JPEG Version 2 delegate library.
27130#
27131
27132# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027133if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027134 withval=$with_jp2; with_jp2=$withval
27135else
27136 with_jp2='yes'
27137fi
27138
27139
27140if test "$with_jp2" != 'yes'; then
27141 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27142fi
27143
27144have_jp2='no'
27145JP2_LIBS=''
27146if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027148$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027150$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027152$as_echo "" >&6; }
27153 failed=0
27154 passed=0
cristy8b350f62009-11-15 23:12:43 +000027155 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27156if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027157 passed=`expr $passed + 1`
27158else
27159 failed=`expr $failed + 1`
27160fi
27161
27162
cristy8b350f62009-11-15 23:12:43 +000027163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027165if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 $as_echo_n "(cached) " >&6
27167else
27168 ac_check_lib_save_LIBS=$LIBS
27169LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027171/* end confdefs.h. */
27172
27173/* Override any GCC internal prototype to avoid an error.
27174 Use char because int might match the return type of a GCC
27175 builtin and then its argument prototype would still apply. */
27176#ifdef __cplusplus
27177extern "C"
27178#endif
27179char jas_stream_fopen ();
27180int
27181main ()
27182{
27183return jas_stream_fopen ();
27184 ;
27185 return 0;
27186}
27187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027188if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027189 ac_cv_lib_jasper_jas_stream_fopen=yes
27190else
cristy8b350f62009-11-15 23:12:43 +000027191 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027192fi
cristy8b350f62009-11-15 23:12:43 +000027193rm -f core conftest.err conftest.$ac_objext \
27194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027195LIBS=$ac_check_lib_save_LIBS
27196fi
cristy8b350f62009-11-15 23:12:43 +000027197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027198$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027199if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027200 passed=`expr $passed + 1`
27201else
27202 failed=`expr $failed + 1`
27203fi
27204
cristy8b350f62009-11-15 23:12:43 +000027205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027206$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27207 if test $passed -gt 0; then
27208 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027210$as_echo "no -- some components failed test" >&6; }
27211 have_jp2='no (failed tests)'
27212 else
27213 JP2_LIBS='-ljasper'
27214 LIBS="$JP2_LIBS $LIBS"
27215
cristy8b350f62009-11-15 23:12:43 +000027216$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027217
cristy8b350f62009-11-15 23:12:43 +000027218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027219$as_echo "yes" >&6; }
27220 have_jp2='yes'
27221 fi
27222 else
cristy8b350f62009-11-15 23:12:43 +000027223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo "no" >&6; }
27225 fi
27226fi
27227 if test "$have_jp2" = 'yes'; then
27228 JP2_DELEGATE_TRUE=
27229 JP2_DELEGATE_FALSE='#'
27230else
27231 JP2_DELEGATE_TRUE='#'
27232 JP2_DELEGATE_FALSE=
27233fi
27234
27235
27236
27237
27238#
27239# Check for LCMS delegate library.
27240#
27241
27242# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027243if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 withval=$with_lcms; with_lcms=$withval
27245else
27246 with_lcms='yes'
27247fi
27248
27249
27250if test "$with_lcms" != 'yes'; then
27251 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27252fi
27253
27254have_lcms='no'
27255LCMS_LIBS=''
27256if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027258$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027262$as_echo "" >&6; }
27263 failed=0
27264 passed=0
27265 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000027266 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27267if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027268 have_lcms_header='yes'
27269fi
27270
27271
27272 if test "$have_lcms_header" = 'yes'; then
27273 passed=`expr $passed + 1`
27274
cristy8b350f62009-11-15 23:12:43 +000027275$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027276
27277 else
cristy8b350f62009-11-15 23:12:43 +000027278 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27279if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 have_lcms_header='yes'
27281fi
27282
27283
27284 if test "$have_lcms_header" = 'yes'; then
27285 passed=`expr $passed + 1`
27286
cristy8b350f62009-11-15 23:12:43 +000027287$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027288
27289 else
27290 failed=`expr $failed + 1`
27291 fi
27292 fi
cristy8b350f62009-11-15 23:12:43 +000027293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027295if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 $as_echo_n "(cached) " >&6
27297else
27298 ac_check_lib_save_LIBS=$LIBS
27299LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027301/* end confdefs.h. */
27302
27303/* Override any GCC internal prototype to avoid an error.
27304 Use char because int might match the return type of a GCC
27305 builtin and then its argument prototype would still apply. */
27306#ifdef __cplusplus
27307extern "C"
27308#endif
27309char cmsOpenProfileFromMem ();
27310int
27311main ()
27312{
27313return cmsOpenProfileFromMem ();
27314 ;
27315 return 0;
27316}
27317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027319 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27320else
cristy8b350f62009-11-15 23:12:43 +000027321 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000027322fi
cristy8b350f62009-11-15 23:12:43 +000027323rm -f core conftest.err conftest.$ac_objext \
27324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027325LIBS=$ac_check_lib_save_LIBS
27326fi
cristy8b350f62009-11-15 23:12:43 +000027327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027328$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027329if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 passed=`expr $passed + 1`
27331else
27332 failed=`expr $failed + 1`
27333fi
27334
cristy8b350f62009-11-15 23:12:43 +000027335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027336$as_echo_n "checking if LCMS package is complete... " >&6; }
27337 if test $passed -gt 0; then
27338 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027340$as_echo "no -- some components failed test" >&6; }
27341 have_lcms='no (failed tests)'
27342 else
27343 LCMS_LIBS='-llcms'
27344 LIBS="$LCMS_LIBS $LIBS"
27345
cristy8b350f62009-11-15 23:12:43 +000027346$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027347
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "yes" >&6; }
27350 have_lcms='yes'
27351 fi
27352 else
cristy8b350f62009-11-15 23:12:43 +000027353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027354$as_echo "no" >&6; }
27355 fi
27356fi
27357 if test "$have_lcms" = 'yes'; then
27358 LCMS_DELEGATE_TRUE=
27359 LCMS_DELEGATE_FALSE='#'
27360else
27361 LCMS_DELEGATE_TRUE='#'
27362 LCMS_DELEGATE_FALSE=
27363fi
27364
27365
27366
27367
27368#
27369# Check for the LQR (Liquid Rescale) delegate library.
27370#
27371
27372# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000027373if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027374 withval=$with_lqr; with_lqr=$withval
27375else
27376 with_lqr='yes'
27377fi
27378
27379
27380if test "$with_lqr" != 'yes'; then
27381 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27382fi
27383
27384have_lqr='no'
27385LQR_CFLAGS=""
27386LQR_LIBS=""
27387LQR_PKG=""
27388if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027390$as_echo "-------------------------------------------------------------" >&6; }
27391
27392pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027394$as_echo_n "checking for LQR... " >&6; }
27395
27396if test -n "$LQR_CFLAGS"; then
27397 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27398 elif test -n "$PKG_CONFIG"; then
27399 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027401 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27402 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27404 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027405 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27406else
27407 pkg_failed=yes
27408fi
27409 else
27410 pkg_failed=untried
27411fi
27412if test -n "$LQR_LIBS"; then
27413 pkg_cv_LQR_LIBS="$LQR_LIBS"
27414 elif test -n "$PKG_CONFIG"; then
27415 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027417 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27418 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27420 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027421 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27422else
27423 pkg_failed=yes
27424fi
27425 else
27426 pkg_failed=untried
27427fi
27428
27429
27430
27431if test $pkg_failed = yes; then
27432
27433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27434 _pkg_short_errors_supported=yes
27435else
27436 _pkg_short_errors_supported=no
27437fi
27438 if test $_pkg_short_errors_supported = yes; then
27439 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27440 else
27441 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27442 fi
27443 # Put the nasty error message in config.log where it belongs
27444 echo "$LQR_PKG_ERRORS" >&5
27445
cristy8b350f62009-11-15 23:12:43 +000027446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027447$as_echo "no" >&6; }
27448 have_lqr=no
27449elif test $pkg_failed = untried; then
27450 have_lqr=no
27451else
27452 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27453 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027455$as_echo "yes" >&6; }
27456 have_lqr=yes
27457fi
cristy8b350f62009-11-15 23:12:43 +000027458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027459$as_echo "" >&6; }
27460fi
27461
27462if test "$have_lqr" = 'yes'; then
27463
cristy8b350f62009-11-15 23:12:43 +000027464$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027465
27466 CFLAGS="$LQR_CFLAGS $CFLAGS"
27467fi
27468
27469 if test "$have_lqr" = 'yes'; then
27470 LQR_DELEGATE_TRUE=
27471 LQR_DELEGATE_FALSE='#'
27472else
27473 LQR_DELEGATE_TRUE='#'
27474 LQR_DELEGATE_FALSE=
27475fi
27476
27477
27478
27479
27480
27481#
27482# Check for the OpenEXR delegate library.
27483#
27484
27485# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000027486if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 withval=$with_openexr; with_openexr=$withval
27488else
27489 with_openexr='yes'
27490fi
27491
27492
27493if test "$with_openexr" != 'yes'; then
27494 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27495fi
27496
27497have_openexr='no'
27498OPENEXR_CFLAGS=""
27499OPENEXR_LIBS=""
27500OPENEXR_PKG=""
27501if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027503$as_echo "-------------------------------------------------------------" >&6; }
27504
27505pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027507$as_echo_n "checking for OPENEXR... " >&6; }
27508
27509if test -n "$OPENEXR_CFLAGS"; then
27510 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27511 elif test -n "$PKG_CONFIG"; then
27512 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027514 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27515 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27517 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027518 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27519else
27520 pkg_failed=yes
27521fi
27522 else
27523 pkg_failed=untried
27524fi
27525if test -n "$OPENEXR_LIBS"; then
27526 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27527 elif test -n "$PKG_CONFIG"; then
27528 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027529 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027530 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27531 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27533 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027534 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27535else
27536 pkg_failed=yes
27537fi
27538 else
27539 pkg_failed=untried
27540fi
27541
27542
27543
27544if test $pkg_failed = yes; then
27545
27546if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27547 _pkg_short_errors_supported=yes
27548else
27549 _pkg_short_errors_supported=no
27550fi
27551 if test $_pkg_short_errors_supported = yes; then
27552 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27553 else
27554 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27555 fi
27556 # Put the nasty error message in config.log where it belongs
27557 echo "$OPENEXR_PKG_ERRORS" >&5
27558
cristy8b350f62009-11-15 23:12:43 +000027559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027560$as_echo "no" >&6; }
27561 have_openexr=no
27562elif test $pkg_failed = untried; then
27563 have_openexr=no
27564else
27565 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27566 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo "yes" >&6; }
27569 have_openexr=yes
27570fi
cristy8b350f62009-11-15 23:12:43 +000027571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027572$as_echo "" >&6; }
27573fi
27574
27575if test "$have_openexr" = 'yes'; then
27576
cristy8b350f62009-11-15 23:12:43 +000027577$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027578
27579 if test "$with_modules" = 'no'; then
27580 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27581 fi
27582fi
27583
27584 if test "$have_openexr" = 'yes'; then
27585 OPENEXR_DELEGATE_TRUE=
27586 OPENEXR_DELEGATE_FALSE='#'
27587else
27588 OPENEXR_DELEGATE_TRUE='#'
27589 OPENEXR_DELEGATE_FALSE=
27590fi
27591
27592
27593
27594
27595
27596#
27597# Check for PNG delegate library.
27598#
27599
27600# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000027601if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027602 withval=$with_png; with_png=$withval
27603else
27604 with_png='yes'
27605fi
27606
27607
27608if test "$with_png" != 'yes'; then
27609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
27610fi
27611
27612have_png='no'
27613PNG_LIBS=''
27614if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027616$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027618$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo "" >&6; }
27621 failed=0
27622 passed=0
cristy8b350f62009-11-15 23:12:43 +000027623 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
27624if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027625 passed=`expr $passed + 1`
27626else
27627 failed=`expr $failed + 1`
27628fi
27629
27630
cristy8b350f62009-11-15 23:12:43 +000027631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000027632$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027633if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027634 $as_echo_n "(cached) " >&6
27635else
27636 ac_check_lib_save_LIBS=$LIBS
27637LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027639/* end confdefs.h. */
27640
27641/* Override any GCC internal prototype to avoid an error.
27642 Use char because int might match the return type of a GCC
27643 builtin and then its argument prototype would still apply. */
27644#ifdef __cplusplus
27645extern "C"
27646#endif
27647char png_get_io_ptr ();
27648int
27649main ()
27650{
27651return png_get_io_ptr ();
27652 ;
27653 return 0;
27654}
27655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027656if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027657 ac_cv_lib_png_png_get_io_ptr=yes
27658else
cristy8b350f62009-11-15 23:12:43 +000027659 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000027660fi
cristy8b350f62009-11-15 23:12:43 +000027661rm -f core conftest.err conftest.$ac_objext \
27662 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027663LIBS=$ac_check_lib_save_LIBS
27664fi
cristy8b350f62009-11-15 23:12:43 +000027665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000027666$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027667if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027668 passed=`expr $passed + 1`
27669else
27670 failed=`expr $failed + 1`
27671fi
27672
cristy8b350f62009-11-15 23:12:43 +000027673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027674$as_echo_n "checking if PNG package is complete... " >&6; }
27675 if test $passed -gt 0; then
27676 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027678$as_echo "no -- some components failed test" >&6; }
27679 have_png='no (failed tests)'
27680 else
27681 PNG_LIBS='-lpng'
27682 LIBS="$PNG_LIBS $LIBS"
27683
cristy8b350f62009-11-15 23:12:43 +000027684$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027685
cristy8b350f62009-11-15 23:12:43 +000027686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo "yes" >&6; }
27688 have_png='yes'
27689 fi
27690 else
cristy8b350f62009-11-15 23:12:43 +000027691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo "no" >&6; }
27693 fi
27694fi
27695 if test "$have_png" = 'yes'; then
27696 PNG_DELEGATE_TRUE=
27697 PNG_DELEGATE_FALSE='#'
27698else
27699 PNG_DELEGATE_TRUE='#'
27700 PNG_DELEGATE_FALSE=
27701fi
27702
27703
27704
27705
27706#
27707# Check for RSVG delegate library.
27708#
27709
27710# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027711if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027712 withval=$with_rsvg; with_rsvg=$withval
27713else
27714 with_rsvg=$have_x
27715fi
27716
27717
27718if test "$with_rsvg" != 'yes'; then
27719 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27720fi
27721
27722have_rsvg='no'
27723have_cairo='no'
27724RSVG_CFLAGS=""
27725RSVG_LIBS=""
27726RSVG_PKG=""
27727if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo "-------------------------------------------------------------" >&6; }
27730
27731pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027733$as_echo_n "checking for RSVG... " >&6; }
27734
27735if test -n "$RSVG_CFLAGS"; then
27736 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27737 elif test -n "$PKG_CONFIG"; then
27738 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027739 { { $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 +000027740 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27741 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27743 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027744 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27745else
27746 pkg_failed=yes
27747fi
27748 else
27749 pkg_failed=untried
27750fi
27751if test -n "$RSVG_LIBS"; then
27752 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27753 elif test -n "$PKG_CONFIG"; then
27754 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027755 { { $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 +000027756 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27757 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27759 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027760 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27761else
27762 pkg_failed=yes
27763fi
27764 else
27765 pkg_failed=untried
27766fi
27767
27768
27769
27770if test $pkg_failed = yes; then
27771
27772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27773 _pkg_short_errors_supported=yes
27774else
27775 _pkg_short_errors_supported=no
27776fi
27777 if test $_pkg_short_errors_supported = yes; then
27778 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27779 else
27780 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27781 fi
27782 # Put the nasty error message in config.log where it belongs
27783 echo "$RSVG_PKG_ERRORS" >&5
27784
cristy8b350f62009-11-15 23:12:43 +000027785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027786$as_echo "no" >&6; }
27787 have_rsvg=no
27788elif test $pkg_failed = untried; then
27789 have_rsvg=no
27790else
27791 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27792 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027794$as_echo "yes" >&6; }
27795 have_rsvg=yes
27796fi
cristy8b350f62009-11-15 23:12:43 +000027797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027798$as_echo "" >&6; }
27799
27800pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027802$as_echo_n "checking for CAIRO_SVG... " >&6; }
27803
27804if test -n "$CAIRO_SVG_CFLAGS"; then
27805 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27806 elif test -n "$PKG_CONFIG"; then
27807 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027809 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27810 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27812 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027813 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27814else
27815 pkg_failed=yes
27816fi
27817 else
27818 pkg_failed=untried
27819fi
27820if test -n "$CAIRO_SVG_LIBS"; then
27821 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27822 elif test -n "$PKG_CONFIG"; then
27823 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027825 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27826 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27828 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027829 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27830else
27831 pkg_failed=yes
27832fi
27833 else
27834 pkg_failed=untried
27835fi
27836
27837
27838
27839if test $pkg_failed = yes; then
27840
27841if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27842 _pkg_short_errors_supported=yes
27843else
27844 _pkg_short_errors_supported=no
27845fi
27846 if test $_pkg_short_errors_supported = yes; then
27847 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27848 else
27849 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27850 fi
27851 # Put the nasty error message in config.log where it belongs
27852 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27853
cristy8b350f62009-11-15 23:12:43 +000027854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027855$as_echo "no" >&6; }
27856 have_cairo=no
27857elif test $pkg_failed = untried; then
27858 have_cairo=no
27859else
27860 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27861 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027863$as_echo "yes" >&6; }
27864 have_cairo=yes
27865fi
cristy8b350f62009-11-15 23:12:43 +000027866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027867$as_echo "" >&6; }
27868fi
27869
27870if test "$have_rsvg" = 'yes'; then
27871
cristy8b350f62009-11-15 23:12:43 +000027872$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027873
27874 if test "$with_modules" = 'no'; then
27875 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27876 fi
27877fi
27878
27879if test "$have_cairo" = 'yes'; then
27880
cristy8b350f62009-11-15 23:12:43 +000027881$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027882
27883 if test "$with_modules" = 'no'; then
27884 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27885 fi
27886fi
27887
27888 if test "$have_rsvg" = 'yes'; then
27889 RSVG_DELEGATE_TRUE=
27890 RSVG_DELEGATE_FALSE='#'
27891else
27892 RSVG_DELEGATE_TRUE='#'
27893 RSVG_DELEGATE_FALSE=
27894fi
27895
27896 if test "$have_cairo" = 'yes'; then
27897 CAIRO_DELEGATE_TRUE=
27898 CAIRO_DELEGATE_FALSE='#'
27899else
27900 CAIRO_DELEGATE_TRUE='#'
27901 CAIRO_DELEGATE_FALSE=
27902fi
27903
27904
27905
27906
27907
27908#
27909# Check for TIFF delegate library.
27910#
27911
27912# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027913if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027914 withval=$with_tiff; with_tiff=$withval
27915else
27916 with_tiff='yes'
27917fi
27918
27919
27920if test "$with_tiff" != 'yes'; then
27921 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27922fi
27923
27924have_tiff='no'
27925TIFF_LIBS=''
27926if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027928$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027930$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027932$as_echo "" >&6; }
27933 failed=0
27934 passed=0
cristy8b350f62009-11-15 23:12:43 +000027935 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27936if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027937 passed=`expr $passed + 1`
27938else
27939 failed=`expr $failed + 1`
27940fi
27941
27942
cristy8b350f62009-11-15 23:12:43 +000027943 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27944if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027945 passed=`expr $passed + 1`
27946else
27947 failed=`expr $failed + 1`
27948fi
27949
27950
cristy8b350f62009-11-15 23:12:43 +000027951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027952$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027953if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027954 $as_echo_n "(cached) " >&6
27955else
27956 ac_check_lib_save_LIBS=$LIBS
27957LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027959/* end confdefs.h. */
27960
27961/* Override any GCC internal prototype to avoid an error.
27962 Use char because int might match the return type of a GCC
27963 builtin and then its argument prototype would still apply. */
27964#ifdef __cplusplus
27965extern "C"
27966#endif
27967char TIFFOpen ();
27968int
27969main ()
27970{
27971return TIFFOpen ();
27972 ;
27973 return 0;
27974}
27975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027976if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027977 ac_cv_lib_tiff_TIFFOpen=yes
27978else
cristy8b350f62009-11-15 23:12:43 +000027979 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027980fi
cristy8b350f62009-11-15 23:12:43 +000027981rm -f core conftest.err conftest.$ac_objext \
27982 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027983LIBS=$ac_check_lib_save_LIBS
27984fi
cristy8b350f62009-11-15 23:12:43 +000027985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027986$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027987if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027988 passed=`expr $passed + 1`
27989else
27990 failed=`expr $failed + 1`
27991fi
27992
cristy8b350f62009-11-15 23:12:43 +000027993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027994$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027995if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027996 $as_echo_n "(cached) " >&6
27997else
27998 ac_check_lib_save_LIBS=$LIBS
27999LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028001/* end confdefs.h. */
28002
28003/* Override any GCC internal prototype to avoid an error.
28004 Use char because int might match the return type of a GCC
28005 builtin and then its argument prototype would still apply. */
28006#ifdef __cplusplus
28007extern "C"
28008#endif
28009char TIFFClientOpen ();
28010int
28011main ()
28012{
28013return TIFFClientOpen ();
28014 ;
28015 return 0;
28016}
28017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028018if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028019 ac_cv_lib_tiff_TIFFClientOpen=yes
28020else
cristy8b350f62009-11-15 23:12:43 +000028021 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028022fi
cristy8b350f62009-11-15 23:12:43 +000028023rm -f core conftest.err conftest.$ac_objext \
28024 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028025LIBS=$ac_check_lib_save_LIBS
28026fi
cristy8b350f62009-11-15 23:12:43 +000028027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028028$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028029if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028030 passed=`expr $passed + 1`
28031else
28032 failed=`expr $failed + 1`
28033fi
28034
cristy8b350f62009-11-15 23:12:43 +000028035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028036$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028037if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028038 $as_echo_n "(cached) " >&6
28039else
28040 ac_check_lib_save_LIBS=$LIBS
28041LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028043/* end confdefs.h. */
28044
28045/* Override any GCC internal prototype to avoid an error.
28046 Use char because int might match the return type of a GCC
28047 builtin and then its argument prototype would still apply. */
28048#ifdef __cplusplus
28049extern "C"
28050#endif
28051char TIFFIsByteSwapped ();
28052int
28053main ()
28054{
28055return TIFFIsByteSwapped ();
28056 ;
28057 return 0;
28058}
28059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028060if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028061 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28062else
cristy8b350f62009-11-15 23:12:43 +000028063 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028064fi
cristy8b350f62009-11-15 23:12:43 +000028065rm -f core conftest.err conftest.$ac_objext \
28066 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028067LIBS=$ac_check_lib_save_LIBS
28068fi
cristy8b350f62009-11-15 23:12:43 +000028069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028070$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028071if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028072 passed=`expr $passed + 1`
28073else
28074 failed=`expr $failed + 1`
28075fi
28076
cristy8b350f62009-11-15 23:12:43 +000028077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028078$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028079if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028080 $as_echo_n "(cached) " >&6
28081else
28082 ac_check_lib_save_LIBS=$LIBS
28083LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028085/* end confdefs.h. */
28086
28087/* Override any GCC internal prototype to avoid an error.
28088 Use char because int might match the return type of a GCC
28089 builtin and then its argument prototype would still apply. */
28090#ifdef __cplusplus
28091extern "C"
28092#endif
28093char TIFFReadRGBATile ();
28094int
28095main ()
28096{
28097return TIFFReadRGBATile ();
28098 ;
28099 return 0;
28100}
28101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028103 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28104else
cristy8b350f62009-11-15 23:12:43 +000028105 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028106fi
cristy8b350f62009-11-15 23:12:43 +000028107rm -f core conftest.err conftest.$ac_objext \
28108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028109LIBS=$ac_check_lib_save_LIBS
28110fi
cristy8b350f62009-11-15 23:12:43 +000028111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028112$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028113if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 passed=`expr $passed + 1`
28115else
28116 failed=`expr $failed + 1`
28117fi
28118
cristy8b350f62009-11-15 23:12:43 +000028119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028120$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028121if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028122 $as_echo_n "(cached) " >&6
28123else
28124 ac_check_lib_save_LIBS=$LIBS
28125LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028127/* end confdefs.h. */
28128
28129/* Override any GCC internal prototype to avoid an error.
28130 Use char because int might match the return type of a GCC
28131 builtin and then its argument prototype would still apply. */
28132#ifdef __cplusplus
28133extern "C"
28134#endif
28135char TIFFReadRGBAStrip ();
28136int
28137main ()
28138{
28139return TIFFReadRGBAStrip ();
28140 ;
28141 return 0;
28142}
28143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028144if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28146else
cristy8b350f62009-11-15 23:12:43 +000028147 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028148fi
cristy8b350f62009-11-15 23:12:43 +000028149rm -f core conftest.err conftest.$ac_objext \
28150 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028151LIBS=$ac_check_lib_save_LIBS
28152fi
cristy8b350f62009-11-15 23:12:43 +000028153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028154$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028155if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 passed=`expr $passed + 1`
28157else
28158 failed=`expr $failed + 1`
28159fi
28160
cristy8b350f62009-11-15 23:12:43 +000028161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028162$as_echo_n "checking if TIFF package is complete... " >&6; }
28163 if test $passed -gt 0; then
28164 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028166$as_echo "no -- some components failed test" >&6; }
28167 have_tiff='no (failed tests)'
28168 else
28169 TIFF_LIBS='-ltiff'
28170 LIBS="$TIFF_LIBS $LIBS"
28171
cristy8b350f62009-11-15 23:12:43 +000028172$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028173
cristy8b350f62009-11-15 23:12:43 +000028174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028175$as_echo "yes" >&6; }
28176 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028177 for ac_header in tiffconf.h
28178do :
28179 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28180if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028181 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028182#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028183_ACEOF
28184
28185fi
28186
28187done
28188
cristy8b350f62009-11-15 23:12:43 +000028189 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028190 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28191 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028192do :
28193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28195eval as_val=\$$as_ac_var
28196 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028197 cat >>confdefs.h <<_ACEOF
28198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28199_ACEOF
28200
28201fi
28202done
28203
28204 fi
28205 else
cristy8b350f62009-11-15 23:12:43 +000028206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028207$as_echo "no" >&6; }
28208 fi
28209fi
28210 if test "$have_tiff" = 'yes'; then
28211 TIFF_DELEGATE_TRUE=
28212 TIFF_DELEGATE_FALSE='#'
28213else
28214 TIFF_DELEGATE_TRUE='#'
28215 TIFF_DELEGATE_FALSE=
28216fi
28217
28218
28219
28220
28221#
28222# Set Windows font directory.
28223#
28224
28225# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028226if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028227 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28228else
28229 with_windows_font_dir=''
28230fi
28231
28232if test "$with_windows_font_dir" != '' ; then
28233 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28234fi
28235
28236
28237#
28238# Check for WMF delegate library.
28239#
28240
28241# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028242if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028243 withval=$with_wmf; with_wmf=$withval
28244else
cristy8d63d1d2010-01-06 20:38:37 +000028245 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028246fi
28247
28248
28249if test "$with_wmf" != 'yes'; then
28250 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28251fi
28252
28253have_wmf='no'
28254WMF_LIBS=''
28255WMF_LIBS_DEPS=''
28256OLIBS="$LIBS"
28257if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028261$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028263$as_echo "" >&6; }
28264 have_libwmf='no'
28265 have_libwmflite='no'
28266 have_libwmf_ipa_h='no'
28267
cristy8b350f62009-11-15 23:12:43 +000028268 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
28269"
28270if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028271 have_libwmf_ipa_h='yes'
28272fi
28273
28274
28275 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000028277$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028278if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 $as_echo_n "(cached) " >&6
28280else
28281 ac_check_lib_save_LIBS=$LIBS
28282LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028284/* end confdefs.h. */
28285
28286/* Override any GCC internal prototype to avoid an error.
28287 Use char because int might match the return type of a GCC
28288 builtin and then its argument prototype would still apply. */
28289#ifdef __cplusplus
28290extern "C"
28291#endif
28292char wmf_lite_create ();
28293int
28294main ()
28295{
28296return wmf_lite_create ();
28297 ;
28298 return 0;
28299}
28300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 ac_cv_lib_wmflite_wmf_lite_create=yes
28303else
cristy8b350f62009-11-15 23:12:43 +000028304 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000028305fi
cristy8b350f62009-11-15 23:12:43 +000028306rm -f core conftest.err conftest.$ac_objext \
28307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028308LIBS=$ac_check_lib_save_LIBS
28309fi
cristy8b350f62009-11-15 23:12:43 +000028310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028312if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 have_libwmflite='yes'
28314fi
28315
28316 if test "$have_libwmflite" = 'yes'; then
28317
cristy8b350f62009-11-15 23:12:43 +000028318$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028319
28320 WMF_LIBS='-lwmflite'
28321 LIBS="$WMF_LIBS $LIBS"
28322 have_wmf='yes'
28323 else
28324 WMF_LIBS_DEPS=''
28325 WMF_CONFIG_LIBS=`libwmf-config --libs`
28326 for lib in xml2 expat freetype jpeg png z; do
28327 testlib="-l${lib}"
28328 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
28329 done
cristy8b350f62009-11-15 23:12:43 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000028331$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028332if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 $as_echo_n "(cached) " >&6
28334else
28335 ac_check_lib_save_LIBS=$LIBS
28336LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028338/* end confdefs.h. */
28339
28340/* Override any GCC internal prototype to avoid an error.
28341 Use char because int might match the return type of a GCC
28342 builtin and then its argument prototype would still apply. */
28343#ifdef __cplusplus
28344extern "C"
28345#endif
28346char wmf_api_create ();
28347int
28348main ()
28349{
28350return wmf_api_create ();
28351 ;
28352 return 0;
28353}
28354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028356 ac_cv_lib_wmf_wmf_api_create=yes
28357else
cristy8b350f62009-11-15 23:12:43 +000028358 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000028359fi
cristy8b350f62009-11-15 23:12:43 +000028360rm -f core conftest.err conftest.$ac_objext \
28361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028362LIBS=$ac_check_lib_save_LIBS
28363fi
cristy8b350f62009-11-15 23:12:43 +000028364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028366if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028367 have_libwmf='yes'
28368fi
28369
28370 if test "$have_libwmf" = 'yes'; then
28371
cristy8b350f62009-11-15 23:12:43 +000028372$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028373
28374 WMF_LIBS='-lwmf'
28375 LIBS="$WMF_LIBS $LIBS"
28376 have_wmf='yes'
28377 else
cristy8b350f62009-11-15 23:12:43 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028379$as_echo "no -- some components failed test" >&6; }
28380 have_wmf='no (failed tests)'
28381 have_wmflite='no (failed tests)'
28382 LIBS="$OLIBS"
28383 WMF_LIBS=''
28384 fi
28385 fi
28386 fi
cristy8b350f62009-11-15 23:12:43 +000028387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028388$as_echo_n "checking if WMF package is complete... " >&6; }
28389 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo "yes" >&6; }
28392 else
cristy8b350f62009-11-15 23:12:43 +000028393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028394$as_echo "no" >&6; }
28395 fi
28396fi
28397 if test "$have_wmf" = 'yes'; then
28398 WMF_DELEGATE_TRUE=
28399 WMF_DELEGATE_FALSE='#'
28400else
28401 WMF_DELEGATE_TRUE='#'
28402 WMF_DELEGATE_FALSE=
28403fi
28404
28405
28406
28407
28408
28409#
28410# Check for XML delegate library.
28411#
28412
28413# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000028414if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028415 withval=$with_xml; with_xml=$withval
28416else
28417 with_xml=$have_x
28418fi
28419
28420
28421if test "$with_xml" != 'yes' ; then
28422 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28423fi
28424
28425have_xml='no'
28426XML_LIBS=''
28427if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028429$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000028431$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028433$as_echo "" >&6; }
28434 PERSIST_LDFLAGS=$LDFLAGS
28435 PERSIST_CPPFLAGS=$CPPFLAGS
28436 xml2_config=''
28437 for ac_prog in xml2-config
28438do
28439 # Extract the first word of "$ac_prog", so it can be a program name with args.
28440set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028442$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028443if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028444 $as_echo_n "(cached) " >&6
28445else
28446 if test -n "$xml2_config"; then
28447 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28448else
28449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28450for as_dir in $PATH
28451do
28452 IFS=$as_save_IFS
28453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28456 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028458 break 2
28459 fi
28460done
cristy8b350f62009-11-15 23:12:43 +000028461 done
cristy3ed852e2009-09-05 21:47:34 +000028462IFS=$as_save_IFS
28463
28464fi
28465fi
28466xml2_config=$ac_cv_prog_xml2_config
28467if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000028468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028469$as_echo "$xml2_config" >&6; }
28470else
cristy8b350f62009-11-15 23:12:43 +000028471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028472$as_echo "no" >&6; }
28473fi
28474
28475
28476 test -n "$xml2_config" && break
28477done
28478 if test -n "$xml2_config"; then
28479 # Debian installs libxml headers under /usr/include/libxml2/libxml with
28480 # the shared library installed under /usr/lib, whereas the package
28481 # installs itself under $prefix/libxml and $prefix/lib.
28482 xml2_prefix=`xml2-config --prefix`
28483 if test -d "${xml2_prefix}/include/libxml2"; then
28484 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28485 fi
28486 if test "${xml2_prefix}" != '/usr'; then
28487 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28488 fi
28489 fi
28490 failed=0
28491 passed=0
cristy8b350f62009-11-15 23:12:43 +000028492 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28493if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028494 passed=`expr $passed + 1`
28495else
28496 failed=`expr $failed + 1`
28497fi
28498
28499
cristy8b350f62009-11-15 23:12:43 +000028500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028501$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028502if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028503 $as_echo_n "(cached) " >&6
28504else
28505 ac_check_lib_save_LIBS=$LIBS
28506LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028508/* end confdefs.h. */
28509
28510/* Override any GCC internal prototype to avoid an error.
28511 Use char because int might match the return type of a GCC
28512 builtin and then its argument prototype would still apply. */
28513#ifdef __cplusplus
28514extern "C"
28515#endif
28516char xmlParseExternalEntity ();
28517int
28518main ()
28519{
28520return xmlParseExternalEntity ();
28521 ;
28522 return 0;
28523}
28524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028526 ac_cv_lib_xml2_xmlParseExternalEntity=yes
28527else
cristy8b350f62009-11-15 23:12:43 +000028528 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000028529fi
cristy8b350f62009-11-15 23:12:43 +000028530rm -f core conftest.err conftest.$ac_objext \
28531 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028532LIBS=$ac_check_lib_save_LIBS
28533fi
cristy8b350f62009-11-15 23:12:43 +000028534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000028535$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028536if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028537 passed=`expr $passed + 1`
28538else
28539 failed=`expr $failed + 1`
28540fi
28541
cristy8b350f62009-11-15 23:12:43 +000028542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028543$as_echo_n "checking if XML package is complete... " >&6; }
28544 if test $passed -gt 0; then
28545 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo "no -- some components failed test" >&6; }
28548 have_xml='no (failed tests)'
28549 LDFLAGS="$PERSIST_LDFLAGS"
28550 CPPFLAGS="$PERSIST_CPPFLAGS"
28551 else
28552 XML_LIBS='-lxml2'
28553 LIBS="$XML_LIBS $LIBS"
28554
cristy8b350f62009-11-15 23:12:43 +000028555$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028556
cristy8b350f62009-11-15 23:12:43 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo "yes" >&6; }
28559 have_xml='yes'
28560 fi
28561 else
cristy8b350f62009-11-15 23:12:43 +000028562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028563$as_echo "no" >&6; }
28564 fi
28565fi
28566 if test "$have_xml" = 'yes'; then
28567 XML_DELEGATE_TRUE=
28568 XML_DELEGATE_FALSE='#'
28569else
28570 XML_DELEGATE_TRUE='#'
28571 XML_DELEGATE_FALSE=
28572fi
28573
28574
28575
28576
28577# Substitute compiler name to build/link PerlMagick
28578#
28579
28580
28581#
28582# Configure install Paths
28583#
28584
28585# Subdirectory under lib to place ImageMagick lib files
28586LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28587
28588cat >>confdefs.h <<_ACEOF
28589#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28590_ACEOF
28591
28592
28593# Path to ImageMagick bin directory
28594EXECUTABLE_PATH="${BIN_DIR}"
28595DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28596case "${build_os}" in
28597 mingw* )
28598 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28599 ;;
28600esac
28601
28602cat >>confdefs.h <<_ACEOF
28603#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28604_ACEOF
28605
28606
28607
28608# Path to ImageMagick lib
28609LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28610DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28611case "${build_os}" in
28612 mingw* )
28613 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28614 ;;
28615esac
28616
28617cat >>confdefs.h <<_ACEOF
28618#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28619_ACEOF
28620
28621
28622
28623# Subdirectory under lib to place ImageMagick configuration files
28624CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28625
28626cat >>confdefs.h <<_ACEOF
28627#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
28628_ACEOF
28629
28630CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28631DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28632case "${build_os}" in
28633 mingw* )
28634 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
28635 ;;
28636esac
28637
28638cat >>confdefs.h <<_ACEOF
28639#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
28640_ACEOF
28641
28642
28643
28644#
28645# Subdirectory under lib to place ImageMagick coder module files
28646CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
28647
28648cat >>confdefs.h <<_ACEOF
28649#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
28650_ACEOF
28651
28652CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
28653DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
28654case "${build_os}" in
28655 mingw* )
28656 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
28657 ;;
28658esac
28659
28660cat >>confdefs.h <<_ACEOF
28661#define CODER_PATH "$DEFINE_CODER_PATH"
28662_ACEOF
28663
28664
28665
28666#
28667# Subdirectory under lib to place ImageMagick filter module files
28668FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
28669
28670cat >>confdefs.h <<_ACEOF
28671#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
28672_ACEOF
28673
28674FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
28675DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
28676case "${build_os}" in
28677 mingw* )
28678 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28679 ;;
28680esac
28681
28682cat >>confdefs.h <<_ACEOF
28683#define FILTER_PATH "$DEFINE_FILTER_PATH"
28684_ACEOF
28685
28686
28687
28688#
28689# Path to ImageMagick documentation files
28690DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28691DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28692DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28693case "${build_os}" in
28694 mingw* )
28695 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28696 ;;
28697esac
28698
28699cat >>confdefs.h <<_ACEOF
28700#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28701_ACEOF
28702
28703
28704
28705#
28706# Path to ImageMagick share files
28707SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28708SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28709DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28710case "${build_os}" in
28711 mingw* )
28712 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28713 ;;
28714esac
28715
28716cat >>confdefs.h <<_ACEOF
28717#define SHARE_PATH "$DEFINE_SHARE_PATH"
28718_ACEOF
28719
28720
28721
28722# Subdirectory under share to place ImageMagick configuration files
28723SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28724
28725cat >>confdefs.h <<_ACEOF
28726#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28727_ACEOF
28728
28729SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28730DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28731case "${build_os}" in
28732 mingw* )
28733 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28734 ;;
28735esac
28736
28737cat >>confdefs.h <<_ACEOF
28738#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28739_ACEOF
28740
28741
28742
28743#
28744# program_transform_name is formed for use in a Makefile, so create a
28745# modified version for use in a shell script.
28746configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28747
28748# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028750$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028752$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028754$as_echo "" >&6; }
28755AutotraceDecodeDelegateDefault='autotrace'
28756AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028757BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028758BZIPDelegateDefault='bzip2'
28759BrowseDelegateDefault='xdg-open'
28760CGMDecodeDelegateDefault='ralcgm'
28761CatDelegateDefault='cat'
28762DNGDecodeDelegateDefault='ufraw-batch'
28763GVCDecodeDelegateDefault='dot'
28764DVIDecodeDelegateDefault='dvips'
28765EchoDelegateDefault='echo'
28766EditorDelegateDefault='xterm'
28767FIGDecodeDelegateDefault='fig2dev'
28768ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28769DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28770MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28771GnuplotDecodeDelegateDefault='gnuplot'
28772HDRDecodeDelegateDefault='ra_pfm'
28773HPGLDecodeDelegateDefault='hp2xx'
28774HTMLDecodeDelegateDefault='html2ps'
28775ILBMDecodeDelegateDefault='ilbmtoppm'
28776ILBMEncodeDelegateDefault='ppmtoilbm'
28777LPDelegateDefault='lp'
28778LPRDelegateDefault='lpr'
28779LZWDecodeDelegateDefault='uncompress'
28780LZWEncodeDelegateDefault='compress'
28781LaunchDelegateDefault='gimp'
28782MANDelegateDefault='groff'
28783MPEGDecodeDelegateDefault='ffmpeg'
28784MPEGEncodeDelegateDefault='ffmpeg'
28785MVDelegateDefault='mv'
28786PCLDelegateDefault='pcl6'
28787PGPDecodeDelegateDefault='pgpv'
28788POVDelegateDefault='povray'
28789if test "$native_win32_build" = 'yes'; then
28790 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028791elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028792 PSDelegateDefault='gsc'
28793else
28794 PSDelegateDefault='gs'
28795fi
28796RLEEncodeDelegateDefault='rawtorle'
28797RMDelegateDefault='rm'
28798SCANDecodeDelegateDefault='scanimage'
28799TXTDelegateDefault='enscript'
28800WMFDecodeDelegateDefault='wmf2eps'
28801WWWDecodeDelegateDefault='curl'
28802XPSDelegateDefault='gxps'
28803ZipDelegateDefault='gzip'
28804
28805# Search for delegates
28806# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28807set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028809$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028810if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028811 $as_echo_n "(cached) " >&6
28812else
28813 case $AutotraceDecodeDelegate in
28814 [\\/]* | ?:[\\/]*)
28815 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28816 ;;
28817 *)
28818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28819for as_dir in $PATH
28820do
28821 IFS=$as_save_IFS
28822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28825 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028827 break 2
28828 fi
28829done
cristy8b350f62009-11-15 23:12:43 +000028830 done
cristy3ed852e2009-09-05 21:47:34 +000028831IFS=$as_save_IFS
28832
28833 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28834 ;;
28835esac
28836fi
28837AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28838if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028840$as_echo "$AutotraceDecodeDelegate" >&6; }
28841else
cristy8b350f62009-11-15 23:12:43 +000028842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028843$as_echo "no" >&6; }
28844fi
28845
28846
28847# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28848set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028850$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028851if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028852 $as_echo_n "(cached) " >&6
28853else
28854 case $AVIDecodeDelegate in
28855 [\\/]* | ?:[\\/]*)
28856 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28857 ;;
28858 *)
28859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28860for as_dir in $PATH
28861do
28862 IFS=$as_save_IFS
28863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28866 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028868 break 2
28869 fi
28870done
cristy8b350f62009-11-15 23:12:43 +000028871 done
cristy3ed852e2009-09-05 21:47:34 +000028872IFS=$as_save_IFS
28873
28874 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28875 ;;
28876esac
28877fi
28878AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28879if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028881$as_echo "$AVIDecodeDelegate" >&6; }
28882else
cristy8b350f62009-11-15 23:12:43 +000028883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028884$as_echo "no" >&6; }
28885fi
28886
28887
28888# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28889set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028891$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028892if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028893 $as_echo_n "(cached) " >&6
28894else
28895 case $BlenderDecodeDelegate in
28896 [\\/]* | ?:[\\/]*)
28897 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28898 ;;
28899 *)
28900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28901for as_dir in $PATH
28902do
28903 IFS=$as_save_IFS
28904 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28907 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028909 break 2
28910 fi
28911done
cristy8b350f62009-11-15 23:12:43 +000028912 done
cristy3ed852e2009-09-05 21:47:34 +000028913IFS=$as_save_IFS
28914
28915 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28916 ;;
28917esac
28918fi
28919BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28920if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028922$as_echo "$BlenderDecodeDelegate" >&6; }
28923else
cristy8b350f62009-11-15 23:12:43 +000028924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028925$as_echo "no" >&6; }
28926fi
28927
28928
28929# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28930set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028932$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028933if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028934 $as_echo_n "(cached) " >&6
28935else
28936 case $BZIPDelegate in
28937 [\\/]* | ?:[\\/]*)
28938 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28939 ;;
28940 *)
28941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28942for as_dir in $PATH
28943do
28944 IFS=$as_save_IFS
28945 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028946 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28948 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028950 break 2
28951 fi
28952done
cristy8b350f62009-11-15 23:12:43 +000028953 done
cristy3ed852e2009-09-05 21:47:34 +000028954IFS=$as_save_IFS
28955
28956 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28957 ;;
28958esac
28959fi
28960BZIPDelegate=$ac_cv_path_BZIPDelegate
28961if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028963$as_echo "$BZIPDelegate" >&6; }
28964else
cristy8b350f62009-11-15 23:12:43 +000028965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028966$as_echo "no" >&6; }
28967fi
28968
28969
28970# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28971set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028973$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028974if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028975 $as_echo_n "(cached) " >&6
28976else
28977 case $BrowseDelegate in
28978 [\\/]* | ?:[\\/]*)
28979 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28980 ;;
28981 *)
28982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28983for as_dir in $PATH
28984do
28985 IFS=$as_save_IFS
28986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28989 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028991 break 2
28992 fi
28993done
cristy8b350f62009-11-15 23:12:43 +000028994 done
cristy3ed852e2009-09-05 21:47:34 +000028995IFS=$as_save_IFS
28996
28997 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28998 ;;
28999esac
29000fi
29001BrowseDelegate=$ac_cv_path_BrowseDelegate
29002if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029004$as_echo "$BrowseDelegate" >&6; }
29005else
cristy8b350f62009-11-15 23:12:43 +000029006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029007$as_echo "no" >&6; }
29008fi
29009
29010
29011# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29012set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029014$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029015if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029016 $as_echo_n "(cached) " >&6
29017else
29018 case $CGMDecodeDelegate in
29019 [\\/]* | ?:[\\/]*)
29020 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29021 ;;
29022 *)
29023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29024for as_dir in $PATH
29025do
29026 IFS=$as_save_IFS
29027 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29030 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029032 break 2
29033 fi
29034done
cristy8b350f62009-11-15 23:12:43 +000029035 done
cristy3ed852e2009-09-05 21:47:34 +000029036IFS=$as_save_IFS
29037
29038 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29039 ;;
29040esac
29041fi
29042CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29043if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029045$as_echo "$CGMDecodeDelegate" >&6; }
29046else
cristy8b350f62009-11-15 23:12:43 +000029047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029048$as_echo "no" >&6; }
29049fi
29050
29051
29052# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29053set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029055$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029056if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029057 $as_echo_n "(cached) " >&6
29058else
29059 case $CatDelegate in
29060 [\\/]* | ?:[\\/]*)
29061 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29062 ;;
29063 *)
29064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29065for as_dir in $PATH
29066do
29067 IFS=$as_save_IFS
29068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29071 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029073 break 2
29074 fi
29075done
cristy8b350f62009-11-15 23:12:43 +000029076 done
cristy3ed852e2009-09-05 21:47:34 +000029077IFS=$as_save_IFS
29078
29079 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29080 ;;
29081esac
29082fi
29083CatDelegate=$ac_cv_path_CatDelegate
29084if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029086$as_echo "$CatDelegate" >&6; }
29087else
cristy8b350f62009-11-15 23:12:43 +000029088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029089$as_echo "no" >&6; }
29090fi
29091
29092
29093# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29094set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029096$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029097if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029098 $as_echo_n "(cached) " >&6
29099else
29100 case $DNGDecodeDelegate in
29101 [\\/]* | ?:[\\/]*)
29102 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29103 ;;
29104 *)
29105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29106for as_dir in $PATH
29107do
29108 IFS=$as_save_IFS
29109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29112 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029114 break 2
29115 fi
29116done
cristy8b350f62009-11-15 23:12:43 +000029117 done
cristy3ed852e2009-09-05 21:47:34 +000029118IFS=$as_save_IFS
29119
29120 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29121 ;;
29122esac
29123fi
29124DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29125if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029127$as_echo "$DNGDecodeDelegate" >&6; }
29128else
cristy8b350f62009-11-15 23:12:43 +000029129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029130$as_echo "no" >&6; }
29131fi
29132
29133
29134# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29135set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029137$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029138if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029139 $as_echo_n "(cached) " >&6
29140else
29141 case $GVCDecodeDelegate in
29142 [\\/]* | ?:[\\/]*)
29143 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29144 ;;
29145 *)
29146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29147for as_dir in $PATH
29148do
29149 IFS=$as_save_IFS
29150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29153 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029155 break 2
29156 fi
29157done
cristy8b350f62009-11-15 23:12:43 +000029158 done
cristy3ed852e2009-09-05 21:47:34 +000029159IFS=$as_save_IFS
29160
29161 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29162 ;;
29163esac
29164fi
29165GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29166if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029168$as_echo "$GVCDecodeDelegate" >&6; }
29169else
cristy8b350f62009-11-15 23:12:43 +000029170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029171$as_echo "no" >&6; }
29172fi
29173
29174
29175# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29176set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029178$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029179if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029180 $as_echo_n "(cached) " >&6
29181else
29182 case $DVIDecodeDelegate in
29183 [\\/]* | ?:[\\/]*)
29184 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29185 ;;
29186 *)
29187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29188for as_dir in $PATH
29189do
29190 IFS=$as_save_IFS
29191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29194 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029196 break 2
29197 fi
29198done
cristy8b350f62009-11-15 23:12:43 +000029199 done
cristy3ed852e2009-09-05 21:47:34 +000029200IFS=$as_save_IFS
29201
29202 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29203 ;;
29204esac
29205fi
29206DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29207if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029209$as_echo "$DVIDecodeDelegate" >&6; }
29210else
cristy8b350f62009-11-15 23:12:43 +000029211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029212$as_echo "no" >&6; }
29213fi
29214
29215
29216# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29217set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029219$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029220if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029221 $as_echo_n "(cached) " >&6
29222else
29223 case $EchoDelegate in
29224 [\\/]* | ?:[\\/]*)
29225 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29226 ;;
29227 *)
29228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29229for as_dir in $PATH
29230do
29231 IFS=$as_save_IFS
29232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29235 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029237 break 2
29238 fi
29239done
cristy8b350f62009-11-15 23:12:43 +000029240 done
cristy3ed852e2009-09-05 21:47:34 +000029241IFS=$as_save_IFS
29242
29243 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29244 ;;
29245esac
29246fi
29247EchoDelegate=$ac_cv_path_EchoDelegate
29248if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029250$as_echo "$EchoDelegate" >&6; }
29251else
cristy8b350f62009-11-15 23:12:43 +000029252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029253$as_echo "no" >&6; }
29254fi
29255
29256
29257# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29258set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029260$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029261if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029262 $as_echo_n "(cached) " >&6
29263else
29264 case $EditorDelegate in
29265 [\\/]* | ?:[\\/]*)
29266 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29267 ;;
29268 *)
29269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29270for as_dir in $PATH
29271do
29272 IFS=$as_save_IFS
29273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29276 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029278 break 2
29279 fi
29280done
cristy8b350f62009-11-15 23:12:43 +000029281 done
cristy3ed852e2009-09-05 21:47:34 +000029282IFS=$as_save_IFS
29283
29284 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29285 ;;
29286esac
29287fi
29288EditorDelegate=$ac_cv_path_EditorDelegate
29289if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo "$EditorDelegate" >&6; }
29292else
cristy8b350f62009-11-15 23:12:43 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029294$as_echo "no" >&6; }
29295fi
29296
29297
29298# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29299set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029301$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029302if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029303 $as_echo_n "(cached) " >&6
29304else
29305 case $FIGDecodeDelegate in
29306 [\\/]* | ?:[\\/]*)
29307 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29308 ;;
29309 *)
29310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29311for as_dir in $PATH
29312do
29313 IFS=$as_save_IFS
29314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29317 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029319 break 2
29320 fi
29321done
cristy8b350f62009-11-15 23:12:43 +000029322 done
cristy3ed852e2009-09-05 21:47:34 +000029323IFS=$as_save_IFS
29324
29325 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29326 ;;
29327esac
29328fi
29329FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29330if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029332$as_echo "$FIGDecodeDelegate" >&6; }
29333else
cristy8b350f62009-11-15 23:12:43 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo "no" >&6; }
29336fi
29337
29338
29339# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29340set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029343if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029344 $as_echo_n "(cached) " >&6
29345else
29346 case $ConvertDelegate in
29347 [\\/]* | ?:[\\/]*)
29348 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29349 ;;
29350 *)
29351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29352for as_dir in $PATH
29353do
29354 IFS=$as_save_IFS
29355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29358 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029360 break 2
29361 fi
29362done
cristy8b350f62009-11-15 23:12:43 +000029363 done
cristy3ed852e2009-09-05 21:47:34 +000029364IFS=$as_save_IFS
29365
29366 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29367 ;;
29368esac
29369fi
29370ConvertDelegate=$ac_cv_path_ConvertDelegate
29371if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029373$as_echo "$ConvertDelegate" >&6; }
29374else
cristy8b350f62009-11-15 23:12:43 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376$as_echo "no" >&6; }
29377fi
29378
29379
29380# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29381set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029383$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029384if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029385 $as_echo_n "(cached) " >&6
29386else
29387 case $DisplayDelegate in
29388 [\\/]* | ?:[\\/]*)
29389 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29390 ;;
29391 *)
29392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29393for as_dir in $PATH
29394do
29395 IFS=$as_save_IFS
29396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29399 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029401 break 2
29402 fi
29403done
cristy8b350f62009-11-15 23:12:43 +000029404 done
cristy3ed852e2009-09-05 21:47:34 +000029405IFS=$as_save_IFS
29406
29407 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29408 ;;
29409esac
29410fi
29411DisplayDelegate=$ac_cv_path_DisplayDelegate
29412if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029414$as_echo "$DisplayDelegate" >&6; }
29415else
cristy8b350f62009-11-15 23:12:43 +000029416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029417$as_echo "no" >&6; }
29418fi
29419
29420
29421# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29422set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029424$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029425if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029426 $as_echo_n "(cached) " >&6
29427else
29428 case $MogrifyDelegate in
29429 [\\/]* | ?:[\\/]*)
29430 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29431 ;;
29432 *)
29433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29434for as_dir in $PATH
29435do
29436 IFS=$as_save_IFS
29437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29440 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029442 break 2
29443 fi
29444done
cristy8b350f62009-11-15 23:12:43 +000029445 done
cristy3ed852e2009-09-05 21:47:34 +000029446IFS=$as_save_IFS
29447
29448 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29449 ;;
29450esac
29451fi
29452MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29453if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029455$as_echo "$MogrifyDelegate" >&6; }
29456else
cristy8b350f62009-11-15 23:12:43 +000029457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029458$as_echo "no" >&6; }
29459fi
29460
29461
29462# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29463set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029466if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029467 $as_echo_n "(cached) " >&6
29468else
29469 case $GnuplotDecodeDelegate in
29470 [\\/]* | ?:[\\/]*)
29471 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29472 ;;
29473 *)
29474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29475for as_dir in $PATH
29476do
29477 IFS=$as_save_IFS
29478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29481 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029483 break 2
29484 fi
29485done
cristy8b350f62009-11-15 23:12:43 +000029486 done
cristy3ed852e2009-09-05 21:47:34 +000029487IFS=$as_save_IFS
29488
29489 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29490 ;;
29491esac
29492fi
29493GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29494if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029496$as_echo "$GnuplotDecodeDelegate" >&6; }
29497else
cristy8b350f62009-11-15 23:12:43 +000029498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029499$as_echo "no" >&6; }
29500fi
29501
29502
29503# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29504set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029506$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029507if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029508 $as_echo_n "(cached) " >&6
29509else
29510 case $HDRDecodeDelegate in
29511 [\\/]* | ?:[\\/]*)
29512 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29513 ;;
29514 *)
29515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29516for as_dir in $PATH
29517do
29518 IFS=$as_save_IFS
29519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29522 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029524 break 2
29525 fi
29526done
cristy8b350f62009-11-15 23:12:43 +000029527 done
cristy3ed852e2009-09-05 21:47:34 +000029528IFS=$as_save_IFS
29529
29530 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29531 ;;
29532esac
29533fi
29534HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29535if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029537$as_echo "$HDRDecodeDelegate" >&6; }
29538else
cristy8b350f62009-11-15 23:12:43 +000029539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540$as_echo "no" >&6; }
29541fi
29542
29543
29544# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29545set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029547$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029548if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029549 $as_echo_n "(cached) " >&6
29550else
29551 case $HPGLDecodeDelegate in
29552 [\\/]* | ?:[\\/]*)
29553 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29554 ;;
29555 *)
29556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29557for as_dir in $PATH
29558do
29559 IFS=$as_save_IFS
29560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29563 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029565 break 2
29566 fi
29567done
cristy8b350f62009-11-15 23:12:43 +000029568 done
cristy3ed852e2009-09-05 21:47:34 +000029569IFS=$as_save_IFS
29570
29571 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29572 ;;
29573esac
29574fi
29575HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29576if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo "$HPGLDecodeDelegate" >&6; }
29579else
cristy8b350f62009-11-15 23:12:43 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029581$as_echo "no" >&6; }
29582fi
29583
29584
29585# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29586set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029589if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029590 $as_echo_n "(cached) " >&6
29591else
29592 case $HTMLDecodeDelegate in
29593 [\\/]* | ?:[\\/]*)
29594 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29595 ;;
29596 *)
29597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29598for as_dir in $PATH
29599do
29600 IFS=$as_save_IFS
29601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29604 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029606 break 2
29607 fi
29608done
cristy8b350f62009-11-15 23:12:43 +000029609 done
cristy3ed852e2009-09-05 21:47:34 +000029610IFS=$as_save_IFS
29611
29612 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29613 ;;
29614esac
29615fi
29616HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29617if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029619$as_echo "$HTMLDecodeDelegate" >&6; }
29620else
cristy8b350f62009-11-15 23:12:43 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo "no" >&6; }
29623fi
29624
29625
29626# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
29627set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029630if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029631 $as_echo_n "(cached) " >&6
29632else
29633 case $ILBMDecodeDelegate in
29634 [\\/]* | ?:[\\/]*)
29635 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
29636 ;;
29637 *)
29638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29639for as_dir in $PATH
29640do
29641 IFS=$as_save_IFS
29642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29645 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029647 break 2
29648 fi
29649done
cristy8b350f62009-11-15 23:12:43 +000029650 done
cristy3ed852e2009-09-05 21:47:34 +000029651IFS=$as_save_IFS
29652
29653 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
29654 ;;
29655esac
29656fi
29657ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
29658if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029660$as_echo "$ILBMDecodeDelegate" >&6; }
29661else
cristy8b350f62009-11-15 23:12:43 +000029662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029663$as_echo "no" >&6; }
29664fi
29665
29666
29667# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
29668set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029670$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029671if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029672 $as_echo_n "(cached) " >&6
29673else
29674 case $ILBMEncodeDelegate in
29675 [\\/]* | ?:[\\/]*)
29676 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
29677 ;;
29678 *)
29679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29680for as_dir in $PATH
29681do
29682 IFS=$as_save_IFS
29683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29686 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029688 break 2
29689 fi
29690done
cristy8b350f62009-11-15 23:12:43 +000029691 done
cristy3ed852e2009-09-05 21:47:34 +000029692IFS=$as_save_IFS
29693
29694 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29695 ;;
29696esac
29697fi
29698ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29699if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029701$as_echo "$ILBMEncodeDelegate" >&6; }
29702else
cristy8b350f62009-11-15 23:12:43 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704$as_echo "no" >&6; }
29705fi
29706
29707
29708# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29709set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029711$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029712if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029713 $as_echo_n "(cached) " >&6
29714else
29715 case $LPDelegate in
29716 [\\/]* | ?:[\\/]*)
29717 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29718 ;;
29719 *)
29720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29721for as_dir in $PATH
29722do
29723 IFS=$as_save_IFS
29724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29727 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029729 break 2
29730 fi
29731done
cristy8b350f62009-11-15 23:12:43 +000029732 done
cristy3ed852e2009-09-05 21:47:34 +000029733IFS=$as_save_IFS
29734
29735 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29736 ;;
29737esac
29738fi
29739LPDelegate=$ac_cv_path_LPDelegate
29740if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029742$as_echo "$LPDelegate" >&6; }
29743else
cristy8b350f62009-11-15 23:12:43 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029745$as_echo "no" >&6; }
29746fi
29747
29748
29749# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29750set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029752$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029753if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029754 $as_echo_n "(cached) " >&6
29755else
29756 case $LPRDelegate in
29757 [\\/]* | ?:[\\/]*)
29758 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29759 ;;
29760 *)
29761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29762for as_dir in $PATH
29763do
29764 IFS=$as_save_IFS
29765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29768 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029770 break 2
29771 fi
29772done
cristy8b350f62009-11-15 23:12:43 +000029773 done
cristy3ed852e2009-09-05 21:47:34 +000029774IFS=$as_save_IFS
29775
29776 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29777 ;;
29778esac
29779fi
29780LPRDelegate=$ac_cv_path_LPRDelegate
29781if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029783$as_echo "$LPRDelegate" >&6; }
29784else
cristy8b350f62009-11-15 23:12:43 +000029785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029786$as_echo "no" >&6; }
29787fi
29788
29789
29790# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29791set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029794if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029795 $as_echo_n "(cached) " >&6
29796else
29797 case $LZWDecodeDelegate in
29798 [\\/]* | ?:[\\/]*)
29799 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29800 ;;
29801 *)
29802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29803for as_dir in $PATH
29804do
29805 IFS=$as_save_IFS
29806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29809 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029811 break 2
29812 fi
29813done
cristy8b350f62009-11-15 23:12:43 +000029814 done
cristy3ed852e2009-09-05 21:47:34 +000029815IFS=$as_save_IFS
29816
29817 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29818 ;;
29819esac
29820fi
29821LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29822if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029824$as_echo "$LZWDecodeDelegate" >&6; }
29825else
cristy8b350f62009-11-15 23:12:43 +000029826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029827$as_echo "no" >&6; }
29828fi
29829
29830
29831# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29832set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029834$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029835if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029836 $as_echo_n "(cached) " >&6
29837else
29838 case $LZWEncodeDelegate in
29839 [\\/]* | ?:[\\/]*)
29840 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29841 ;;
29842 *)
29843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29844for as_dir in $PATH
29845do
29846 IFS=$as_save_IFS
29847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29850 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029852 break 2
29853 fi
29854done
cristy8b350f62009-11-15 23:12:43 +000029855 done
cristy3ed852e2009-09-05 21:47:34 +000029856IFS=$as_save_IFS
29857
29858 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29859 ;;
29860esac
29861fi
29862LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29863if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029865$as_echo "$LZWEncodeDelegate" >&6; }
29866else
cristy8b350f62009-11-15 23:12:43 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029868$as_echo "no" >&6; }
29869fi
29870
29871
29872# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29873set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029875$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029876if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029877 $as_echo_n "(cached) " >&6
29878else
29879 case $LaunchDelegate in
29880 [\\/]* | ?:[\\/]*)
29881 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29882 ;;
29883 *)
29884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29885for as_dir in $PATH
29886do
29887 IFS=$as_save_IFS
29888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29891 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893 break 2
29894 fi
29895done
cristy8b350f62009-11-15 23:12:43 +000029896 done
cristy3ed852e2009-09-05 21:47:34 +000029897IFS=$as_save_IFS
29898
29899 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29900 ;;
29901esac
29902fi
29903LaunchDelegate=$ac_cv_path_LaunchDelegate
29904if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029906$as_echo "$LaunchDelegate" >&6; }
29907else
cristy8b350f62009-11-15 23:12:43 +000029908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029909$as_echo "no" >&6; }
29910fi
29911
29912
29913# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29914set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029916$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029917if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029918 $as_echo_n "(cached) " >&6
29919else
29920 case $MANDelegate in
29921 [\\/]* | ?:[\\/]*)
29922 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29923 ;;
29924 *)
29925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29926for as_dir in $PATH
29927do
29928 IFS=$as_save_IFS
29929 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29932 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029934 break 2
29935 fi
29936done
cristy8b350f62009-11-15 23:12:43 +000029937 done
cristy3ed852e2009-09-05 21:47:34 +000029938IFS=$as_save_IFS
29939
29940 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29941 ;;
29942esac
29943fi
29944MANDelegate=$ac_cv_path_MANDelegate
29945if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029947$as_echo "$MANDelegate" >&6; }
29948else
cristy8b350f62009-11-15 23:12:43 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029950$as_echo "no" >&6; }
29951fi
29952
29953
29954# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29955set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029957$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029958if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029959 $as_echo_n "(cached) " >&6
29960else
29961 case $MPEGDecodeDelegate in
29962 [\\/]* | ?:[\\/]*)
29963 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29964 ;;
29965 *)
29966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29967for as_dir in $PATH
29968do
29969 IFS=$as_save_IFS
29970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29973 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029975 break 2
29976 fi
29977done
cristy8b350f62009-11-15 23:12:43 +000029978 done
cristy3ed852e2009-09-05 21:47:34 +000029979IFS=$as_save_IFS
29980
29981 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29982 ;;
29983esac
29984fi
29985MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29986if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029988$as_echo "$MPEGDecodeDelegate" >&6; }
29989else
cristy8b350f62009-11-15 23:12:43 +000029990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029991$as_echo "no" >&6; }
29992fi
29993
29994
29995# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29996set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029998$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029999if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030000 $as_echo_n "(cached) " >&6
30001else
30002 case $MPEGEncodeDelegate in
30003 [\\/]* | ?:[\\/]*)
30004 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30005 ;;
30006 *)
30007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30008for as_dir in $PATH
30009do
30010 IFS=$as_save_IFS
30011 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30014 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030016 break 2
30017 fi
30018done
cristy8b350f62009-11-15 23:12:43 +000030019 done
cristy3ed852e2009-09-05 21:47:34 +000030020IFS=$as_save_IFS
30021
30022 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30023 ;;
30024esac
30025fi
30026MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30027if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030029$as_echo "$MPEGEncodeDelegate" >&6; }
30030else
cristy8b350f62009-11-15 23:12:43 +000030031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030032$as_echo "no" >&6; }
30033fi
30034
30035
30036# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30037set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030039$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030040if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030041 $as_echo_n "(cached) " >&6
30042else
30043 case $MVDelegate in
30044 [\\/]* | ?:[\\/]*)
30045 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30046 ;;
30047 *)
30048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30049for as_dir in $PATH
30050do
30051 IFS=$as_save_IFS
30052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30055 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030057 break 2
30058 fi
30059done
cristy8b350f62009-11-15 23:12:43 +000030060 done
cristy3ed852e2009-09-05 21:47:34 +000030061IFS=$as_save_IFS
30062
30063 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30064 ;;
30065esac
30066fi
30067MVDelegate=$ac_cv_path_MVDelegate
30068if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030070$as_echo "$MVDelegate" >&6; }
30071else
cristy8b350f62009-11-15 23:12:43 +000030072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030073$as_echo "no" >&6; }
30074fi
30075
30076
30077# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30078set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030080$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030081if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030082 $as_echo_n "(cached) " >&6
30083else
30084 case $PCLDelegate in
30085 [\\/]* | ?:[\\/]*)
30086 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30087 ;;
30088 *)
30089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30090for as_dir in $PATH
30091do
30092 IFS=$as_save_IFS
30093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30096 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030098 break 2
30099 fi
30100done
cristy8b350f62009-11-15 23:12:43 +000030101 done
cristy3ed852e2009-09-05 21:47:34 +000030102IFS=$as_save_IFS
30103
30104 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30105 ;;
30106esac
30107fi
30108PCLDelegate=$ac_cv_path_PCLDelegate
30109if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030111$as_echo "$PCLDelegate" >&6; }
30112else
cristy8b350f62009-11-15 23:12:43 +000030113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030114$as_echo "no" >&6; }
30115fi
30116
30117
30118# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30119set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030121$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030122if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030123 $as_echo_n "(cached) " >&6
30124else
30125 case $PGPDecodeDelegate in
30126 [\\/]* | ?:[\\/]*)
30127 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30128 ;;
30129 *)
30130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30131for as_dir in $PATH
30132do
30133 IFS=$as_save_IFS
30134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30137 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030139 break 2
30140 fi
30141done
cristy8b350f62009-11-15 23:12:43 +000030142 done
cristy3ed852e2009-09-05 21:47:34 +000030143IFS=$as_save_IFS
30144
30145 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30146 ;;
30147esac
30148fi
30149PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30150if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030152$as_echo "$PGPDecodeDelegate" >&6; }
30153else
cristy8b350f62009-11-15 23:12:43 +000030154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030155$as_echo "no" >&6; }
30156fi
30157
30158
30159# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30160set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030162$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030163if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030164 $as_echo_n "(cached) " >&6
30165else
30166 case $POVDelegate in
30167 [\\/]* | ?:[\\/]*)
30168 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30169 ;;
30170 *)
30171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30172for as_dir in $PATH
30173do
30174 IFS=$as_save_IFS
30175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30178 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030180 break 2
30181 fi
30182done
cristy8b350f62009-11-15 23:12:43 +000030183 done
cristy3ed852e2009-09-05 21:47:34 +000030184IFS=$as_save_IFS
30185
30186 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30187 ;;
30188esac
30189fi
30190POVDelegate=$ac_cv_path_POVDelegate
30191if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030193$as_echo "$POVDelegate" >&6; }
30194else
cristy8b350f62009-11-15 23:12:43 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030196$as_echo "no" >&6; }
30197fi
30198
30199
30200for ac_prog in gsx gsc "$PSDelegateDefault"
30201do
30202 # Extract the first word of "$ac_prog", so it can be a program name with args.
30203set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030205$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030206if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030207 $as_echo_n "(cached) " >&6
30208else
30209 case $PSDelegate in
30210 [\\/]* | ?:[\\/]*)
30211 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30212 ;;
30213 *)
30214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30215for as_dir in $PATH
30216do
30217 IFS=$as_save_IFS
30218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30221 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030223 break 2
30224 fi
30225done
cristy8b350f62009-11-15 23:12:43 +000030226 done
cristy3ed852e2009-09-05 21:47:34 +000030227IFS=$as_save_IFS
30228
30229 ;;
30230esac
30231fi
30232PSDelegate=$ac_cv_path_PSDelegate
30233if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo "$PSDelegate" >&6; }
30236else
cristy8b350f62009-11-15 23:12:43 +000030237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030238$as_echo "no" >&6; }
30239fi
30240
30241
30242 test -n "$PSDelegate" && break
30243done
30244test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30245
30246# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30247set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030249$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030250if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030251 $as_echo_n "(cached) " >&6
30252else
30253 case $RLEEncodeDelegate in
30254 [\\/]* | ?:[\\/]*)
30255 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30256 ;;
30257 *)
30258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30259for as_dir in $PATH
30260do
30261 IFS=$as_save_IFS
30262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30265 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030267 break 2
30268 fi
30269done
cristy8b350f62009-11-15 23:12:43 +000030270 done
cristy3ed852e2009-09-05 21:47:34 +000030271IFS=$as_save_IFS
30272
30273 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30274 ;;
30275esac
30276fi
30277RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30278if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030280$as_echo "$RLEEncodeDelegate" >&6; }
30281else
cristy8b350f62009-11-15 23:12:43 +000030282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030283$as_echo "no" >&6; }
30284fi
30285
30286
30287# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30288set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030291if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030292 $as_echo_n "(cached) " >&6
30293else
30294 case $RMDelegate in
30295 [\\/]* | ?:[\\/]*)
30296 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30297 ;;
30298 *)
30299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30300for as_dir in $PATH
30301do
30302 IFS=$as_save_IFS
30303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30306 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030308 break 2
30309 fi
30310done
cristy8b350f62009-11-15 23:12:43 +000030311 done
cristy3ed852e2009-09-05 21:47:34 +000030312IFS=$as_save_IFS
30313
30314 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30315 ;;
30316esac
30317fi
30318RMDelegate=$ac_cv_path_RMDelegate
30319if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030321$as_echo "$RMDelegate" >&6; }
30322else
cristy8b350f62009-11-15 23:12:43 +000030323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030324$as_echo "no" >&6; }
30325fi
30326
30327
30328# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30329set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030331$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030332if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030333 $as_echo_n "(cached) " >&6
30334else
30335 case $SCANDecodeDelegate in
30336 [\\/]* | ?:[\\/]*)
30337 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30338 ;;
30339 *)
30340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30341for as_dir in $PATH
30342do
30343 IFS=$as_save_IFS
30344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30347 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030349 break 2
30350 fi
30351done
cristy8b350f62009-11-15 23:12:43 +000030352 done
cristy3ed852e2009-09-05 21:47:34 +000030353IFS=$as_save_IFS
30354
30355 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30356 ;;
30357esac
30358fi
30359SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30360if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030362$as_echo "$SCANDecodeDelegate" >&6; }
30363else
cristy8b350f62009-11-15 23:12:43 +000030364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030365$as_echo "no" >&6; }
30366fi
30367
30368
30369# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30370set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030372$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030373if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030374 $as_echo_n "(cached) " >&6
30375else
30376 case $TXTDelegate in
30377 [\\/]* | ?:[\\/]*)
30378 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30379 ;;
30380 *)
30381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30382for as_dir in $PATH
30383do
30384 IFS=$as_save_IFS
30385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30388 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030390 break 2
30391 fi
30392done
cristy8b350f62009-11-15 23:12:43 +000030393 done
cristy3ed852e2009-09-05 21:47:34 +000030394IFS=$as_save_IFS
30395
30396 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30397 ;;
30398esac
30399fi
30400TXTDelegate=$ac_cv_path_TXTDelegate
30401if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030403$as_echo "$TXTDelegate" >&6; }
30404else
cristy8b350f62009-11-15 23:12:43 +000030405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030406$as_echo "no" >&6; }
30407fi
30408
30409
30410# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30411set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030413$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030414if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030415 $as_echo_n "(cached) " >&6
30416else
30417 case $WMFDecodeDelegate in
30418 [\\/]* | ?:[\\/]*)
30419 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30420 ;;
30421 *)
30422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30423for as_dir in $PATH
30424do
30425 IFS=$as_save_IFS
30426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30429 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431 break 2
30432 fi
30433done
cristy8b350f62009-11-15 23:12:43 +000030434 done
cristy3ed852e2009-09-05 21:47:34 +000030435IFS=$as_save_IFS
30436
30437 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30438 ;;
30439esac
30440fi
30441WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30442if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030444$as_echo "$WMFDecodeDelegate" >&6; }
30445else
cristy8b350f62009-11-15 23:12:43 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030447$as_echo "no" >&6; }
30448fi
30449
30450
30451# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30452set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030454$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030455if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030456 $as_echo_n "(cached) " >&6
30457else
30458 case $WWWDecodeDelegate in
30459 [\\/]* | ?:[\\/]*)
30460 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30461 ;;
30462 *)
30463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30464for as_dir in $PATH
30465do
30466 IFS=$as_save_IFS
30467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30470 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030472 break 2
30473 fi
30474done
cristy8b350f62009-11-15 23:12:43 +000030475 done
cristy3ed852e2009-09-05 21:47:34 +000030476IFS=$as_save_IFS
30477
30478 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30479 ;;
30480esac
30481fi
30482WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30483if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030485$as_echo "$WWWDecodeDelegate" >&6; }
30486else
cristy8b350f62009-11-15 23:12:43 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030488$as_echo "no" >&6; }
30489fi
30490
30491
30492# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30493set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030495$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030496if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030497 $as_echo_n "(cached) " >&6
30498else
30499 case $XPSDelegate in
30500 [\\/]* | ?:[\\/]*)
30501 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
30502 ;;
30503 *)
30504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30505for as_dir in $PATH
30506do
30507 IFS=$as_save_IFS
30508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30511 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513 break 2
30514 fi
30515done
cristy8b350f62009-11-15 23:12:43 +000030516 done
cristy3ed852e2009-09-05 21:47:34 +000030517IFS=$as_save_IFS
30518
30519 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
30520 ;;
30521esac
30522fi
30523XPSDelegate=$ac_cv_path_XPSDelegate
30524if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030526$as_echo "$XPSDelegate" >&6; }
30527else
cristy8b350f62009-11-15 23:12:43 +000030528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030529$as_echo "no" >&6; }
30530fi
30531
30532
30533# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
30534set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030536$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030537if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030538 $as_echo_n "(cached) " >&6
30539else
30540 case $ZipDelegate in
30541 [\\/]* | ?:[\\/]*)
30542 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
30543 ;;
30544 *)
30545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30546for as_dir in $PATH
30547do
30548 IFS=$as_save_IFS
30549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30552 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554 break 2
30555 fi
30556done
cristy8b350f62009-11-15 23:12:43 +000030557 done
cristy3ed852e2009-09-05 21:47:34 +000030558IFS=$as_save_IFS
30559
30560 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
30561 ;;
30562esac
30563fi
30564ZipDelegate=$ac_cv_path_ZipDelegate
30565if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030567$as_echo "$ZipDelegate" >&6; }
30568else
cristy8b350f62009-11-15 23:12:43 +000030569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030570$as_echo "no" >&6; }
30571fi
30572
30573
30574
30575# Prefer lpr to lp; lp needs options tacked on.
30576if test "$LPRDelegate" != no; then
30577 PrintDelegate="$LPRDelegate"
30578else
30579 PrintDelegate="$LPDelegate -c -s"
30580fi
30581
30582
30583# Installed ImageMagick utiltity paths
30584ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
30585DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
30586MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
30587
30588# Set delegate booleans
30589have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
30590have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
30591have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
30592have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
30593have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
30594have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
30595have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
30596have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
30597have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
30598have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
30599have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
30600
30601#
30602# Test for font directories
30603#
30604type_include_files=''
30605
cristy430a7312010-01-21 20:44:04 +000030606# Dejavu fonts.
30607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
30608$as_echo_n "checking for Dejavu fonts directory... " >&6; }
30609dejavu_font_dir=''
30610if test "${with_dejavu_font_dir}" != 'default'; then
30611 dejavu_font_dir="${with_dejavu_font_dir}/"
30612else
30613 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
30614 if test -f "${font_dir}DejaVuSerif.ttf"; then
30615 dejavu_font_dir="${font_dir}"
30616 break 1
30617 fi
30618 done
30619fi
30620if test "${dejavu_font_dir}x" != 'x'; then
30621 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
30623$as_echo "$dejavu_font_dir" >&6; }
30624else
30625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30626$as_echo "not found!" >&6; };
30627fi
30628
30629
cristy3ed852e2009-09-05 21:47:34 +000030630# Windows
30631windows_font_dir=''
30632if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
30633 windows_font_dir="${with_windows_font_dir}/"
30634fi
cristy430a7312010-01-21 20:44:04 +000030635if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030636 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
30637 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
30638 fi
30639 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
30640 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
30641 fi
30642 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
30643 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
30644 fi
30645fi
cristy430a7312010-01-21 20:44:04 +000030646if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030647 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
30648fi
30649
30650
30651# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000030652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000030653$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
30654ghostscript_font_dir=''
30655if test "${with_gs_font_dir}" != 'default'; then
30656 ghostscript_font_dir="${with_gs_font_dir}/"
30657else
30658 if test "${native_win32_build}" = 'yes'; then
30659 # Native Windows Build
30660 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
30661 if test -f "${font_dir}a010013l.pfb"; then
30662 ghostscript_font_dir="$font_dir"
30663 break 1
30664 fi
30665 done
30666 if test "${PSDelegate}" != 'gswin32c'; then
30667 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
30668 fi
30669 else
30670 # Linux / Mac OS X / Unix Build
30671 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
30672 if test -f "${font_dir}a010013l.pfb"; then
30673 ghostscript_font_dir="${font_dir}"
30674 break 1
30675 fi
30676 done
30677 if test "${ghostscript_font_dir}x" = 'x'; then
30678 if test "$PSDelegate" != 'gs'; then
30679 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
30680 fi
30681 fi
30682 fi
30683fi
30684if test "${ghostscript_font_dir}x" != 'x'; then
30685 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000030686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000030687$as_echo "$ghostscript_font_dir" >&6; }
30688else
cristy8b350f62009-11-15 23:12:43 +000030689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000030690$as_echo "not found!" >&6; };
30691fi
30692
30693case "${build_os}" in
30694 mingw* )
30695 PSDelegate=`$WinPathScript "$PSDelegate" 1`
30696 ;;
30697esac
30698
30699
30700
30701#
30702# Handle case where user doesn't want frozen paths
30703#
30704if test "$with_frozenpaths" != 'yes'; then
30705 # Re-set delegate definitions to default (no paths)
30706 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30707 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30708 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30709 BZIPDelegate="$BZIPDelegateDefault"
30710 BrowseDelegate="$BrowseDelegateDefault"
30711 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30712 CatDelegate="$CatDelegateDefault"
30713 ConvertDelegate="$ConvertDelegateDefault"
30714 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30715 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30716 EchoDelegate="$EchoDelegateDefault"
30717 EditorDelegate="$EditorDelegateDefault"
30718 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30719 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30720 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30721 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30722 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30723 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30724 LPDelegate="$LPDelegateDefault"
30725 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30726 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30727 LaunchDelegate="$LaunchDelegateDefault"
30728 MANDelegate="$MANDelegateDefault"
30729 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30730 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30731 MVDelegate="$MVDelegateDefault"
30732 MogrifyDelegate="$MogrifyDelegateDefault"
30733 PCLDelegate="$PCLDelegateDefault"
30734 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30735 POVDelegate="$POVDelegateDefault"
30736 PSDelegate="$PSDelegateDefault"
30737 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30738 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30739 RMDelegate="$RMDelegateDefault"
30740 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30741 ShowImageDelegate="$ShowImageDelegateDefault"
30742 TXTDelegate="$TXTDelegateDefault"
30743 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30744 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30745 XPSDelegate="$XPSDelegateDefault"
30746 ZipDelegate="$ZipDelegateDefault"
30747fi
30748
30749# Delegate substitutions
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
30788
30789
30790
30791
30792#
30793# RPM support.
30794#
30795RPM=''
30796for ac_prog in gnutar gtar tar
30797do
30798 # Extract the first word of "$ac_prog", so it can be a program name with args.
30799set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030801$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030802if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030803 $as_echo_n "(cached) " >&6
30804else
30805 if test -n "$TAR"; then
30806 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30807else
30808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30809for as_dir in $PATH
30810do
30811 IFS=$as_save_IFS
30812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30815 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030817 break 2
30818 fi
30819done
cristy8b350f62009-11-15 23:12:43 +000030820 done
cristy3ed852e2009-09-05 21:47:34 +000030821IFS=$as_save_IFS
30822
30823fi
30824fi
30825TAR=$ac_cv_prog_TAR
30826if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030828$as_echo "$TAR" >&6; }
30829else
cristy8b350f62009-11-15 23:12:43 +000030830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030831$as_echo "no" >&6; }
30832fi
30833
30834
30835 test -n "$TAR" && break
30836done
30837
30838for ac_prog in perl
30839do
30840 # Extract the first word of "$ac_prog", so it can be a program name with args.
30841set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030843$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030844if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030845 $as_echo_n "(cached) " >&6
30846else
30847 if test -n "$PERL"; then
30848 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30849else
30850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30851for as_dir in $PATH
30852do
30853 IFS=$as_save_IFS
30854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30857 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030859 break 2
30860 fi
30861done
cristy8b350f62009-11-15 23:12:43 +000030862 done
cristy3ed852e2009-09-05 21:47:34 +000030863IFS=$as_save_IFS
30864
30865fi
30866fi
30867PERL=$ac_cv_prog_PERL
30868if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030870$as_echo "$PERL" >&6; }
30871else
cristy8b350f62009-11-15 23:12:43 +000030872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030873$as_echo "no" >&6; }
30874fi
30875
30876
30877 test -n "$PERL" && break
30878done
30879
30880for ac_prog in rpmbuild rpm
30881do
30882 # Extract the first word of "$ac_prog", so it can be a program name with args.
30883set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030885$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030886if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030887 $as_echo_n "(cached) " >&6
30888else
30889 if test -n "$RPM"; then
30890 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30891else
30892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30893for as_dir in $PATH
30894do
30895 IFS=$as_save_IFS
30896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30899 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030901 break 2
30902 fi
30903done
cristy8b350f62009-11-15 23:12:43 +000030904 done
cristy3ed852e2009-09-05 21:47:34 +000030905IFS=$as_save_IFS
30906
30907fi
30908fi
30909RPM=$ac_cv_prog_RPM
30910if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030912$as_echo "$RPM" >&6; }
30913else
cristy8b350f62009-11-15 23:12:43 +000030914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030915$as_echo "no" >&6; }
30916fi
30917
30918
30919 test -n "$RPM" && break
30920done
30921
30922
30923ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30924
30925
30926AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30927
30928
30929AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30930
30931
30932AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30933
30934
30935 if test "x$RPM" != "x" ; then
30936 RPM_DELEGATE_TRUE=
30937 RPM_DELEGATE_FALSE='#'
30938else
30939 RPM_DELEGATE_TRUE='#'
30940 RPM_DELEGATE_FALSE=
30941fi
30942
30943
30944#
30945# 7ZIP support (http://p7zip.sourceforge.net/)
30946#
30947P7ZIP=''
30948for ac_prog in 7za
30949do
30950 # Extract the first word of "$ac_prog", so it can be a program name with args.
30951set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030953$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030954if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030955 $as_echo_n "(cached) " >&6
30956else
30957 if test -n "$P7ZIP"; then
30958 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30959else
30960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30961for as_dir in $PATH
30962do
30963 IFS=$as_save_IFS
30964 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30967 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030969 break 2
30970 fi
30971done
cristy8b350f62009-11-15 23:12:43 +000030972 done
cristy3ed852e2009-09-05 21:47:34 +000030973IFS=$as_save_IFS
30974
30975fi
30976fi
30977P7ZIP=$ac_cv_prog_P7ZIP
30978if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030980$as_echo "$P7ZIP" >&6; }
30981else
cristy8b350f62009-11-15 23:12:43 +000030982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030983$as_echo "no" >&6; }
30984fi
30985
30986
30987 test -n "$P7ZIP" && break
30988done
30989
30990
30991 if test "x$P7ZIP" != "x" ; then
30992 P7ZIP_DELEGATE_TRUE=
30993 P7ZIP_DELEGATE_FALSE='#'
30994else
30995 P7ZIP_DELEGATE_TRUE='#'
30996 P7ZIP_DELEGATE_FALSE=
30997fi
30998
30999
31000#
31001# ZIP support (http://www.info-zip.org/Zip.html)
31002#
31003ZIP=''
31004for ac_prog in zip
31005do
31006 # Extract the first word of "$ac_prog", so it can be a program name with args.
31007set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031009$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031010if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031011 $as_echo_n "(cached) " >&6
31012else
31013 if test -n "$ZIP"; then
31014 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31015else
31016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31017for as_dir in $PATH
31018do
31019 IFS=$as_save_IFS
31020 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31023 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031025 break 2
31026 fi
31027done
cristy8b350f62009-11-15 23:12:43 +000031028 done
cristy3ed852e2009-09-05 21:47:34 +000031029IFS=$as_save_IFS
31030
31031fi
31032fi
31033ZIP=$ac_cv_prog_ZIP
31034if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031036$as_echo "$ZIP" >&6; }
31037else
cristy8b350f62009-11-15 23:12:43 +000031038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031039$as_echo "no" >&6; }
31040fi
31041
31042
31043 test -n "$ZIP" && break
31044done
31045
31046
31047 if test "x$ZIP" != "x" ; then
31048 ZIP_DELEGATE_TRUE=
31049 ZIP_DELEGATE_FALSE='#'
31050else
31051 ZIP_DELEGATE_TRUE='#'
31052 ZIP_DELEGATE_FALSE=
31053fi
31054
31055
31056#
31057# GhostPCL related configuration.
31058#
31059PCLColorDevice=ppmraw
31060PCLCMYKDevice=bmpsep8
31061PCLMonoDevice=pbmraw
31062if test -z "$PCLVersion"; then
31063 PCLVersion='unknown'
31064fi
31065if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031069$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031071$as_echo "" >&6; }
31072 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031074$as_echo_n "checking for pcl color device... " >&6; }
31075 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31076 :
31077 else
31078 PCLColorDevice=ppmraw
31079 fi
cristy8b350f62009-11-15 23:12:43 +000031080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031081$as_echo "$PCLColorDevice" >&6; }
31082
31083 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031085$as_echo_n "checking for pcl CMYK device... " >&6; }
31086 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31087 :
31088 else
31089 PCLCMYKDevice=$PCLColorDevice
31090 fi
cristy8b350f62009-11-15 23:12:43 +000031091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031092$as_echo "$PCLCMYKDevice" >&6; }
31093
31094 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031096$as_echo_n "checking for pcl mono device... " >&6; }
31097 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31098 :
31099 else
31100 PCLMonoDevice=$PCLColorDevice
31101 fi
cristy8b350f62009-11-15 23:12:43 +000031102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031103$as_echo "$PCLMonoDevice" >&6; }
31104fi
31105
31106
31107
31108
31109
31110
31111#
31112# GhostXPS related configuration.
31113#
31114XPSColorDevice=ppmraw
31115XPSCMYKDevice=bmpsep8
31116XPSMonoDevice=pbmraw
31117if test -z "$XPSVersion"; then
31118 XPSVersion='unknown'
31119fi
31120if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031122$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031124$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031126$as_echo "" >&6; }
31127 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031129$as_echo_n "checking for xps color device... " >&6; }
31130 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31131 :
31132 else
31133 XPSColorDevice=ppmraw
31134 fi
cristy8b350f62009-11-15 23:12:43 +000031135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031136$as_echo "$XPSColorDevice" >&6; }
31137
31138 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo_n "checking for xps CMYK device... " >&6; }
31141 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31142 :
31143 else
31144 XPSCMYKDevice=$XPSColorDevice
31145 fi
cristy8b350f62009-11-15 23:12:43 +000031146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147$as_echo "$XPSCMYKDevice" >&6; }
31148
31149 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031151$as_echo_n "checking for xps mono device... " >&6; }
31152 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31153 :
31154 else
31155 XPSMonoDevice=$XPSColorDevice
31156 fi
cristy8b350f62009-11-15 23:12:43 +000031157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031158$as_echo "$XPSMonoDevice" >&6; }
31159fi
31160
31161
31162
31163
31164
31165
31166#
31167# Ghostscript related configuration.
31168#
31169if test "$have_png" = 'yes'; then
31170 GSAlphaDevice=pngalpha
31171else
31172 GSAlphaDevice=pnmraw
31173fi
31174GSColorDevice=pnmraw
31175GSCMYKDevice=pam
31176GSMonoDevice=pbmraw
31177GSPDFDevice=pdfwrite
31178GSPSDevice=pswrite
31179GSEPSDevice=epswrite
31180GSVersion='unknown'
31181if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031185$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031187$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031189$as_echo_n "checking for Ghostscript version... " >&6; }
31190 if GSVersion=`$PSDelegate --version`; then
31191 :
31192 else
31193 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31194 fi
cristy8b350f62009-11-15 23:12:43 +000031195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031196$as_echo "$GSVersion" >&6; }
31197
31198 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031200$as_echo_n "checking for gs alpha device... " >&6; }
31201 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31202 :
31203 else
31204 GSAlphaDevice=pnmraw
31205 fi
cristy8b350f62009-11-15 23:12:43 +000031206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031207$as_echo "$GSAlphaDevice" >&6; }
31208
31209 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211$as_echo_n "checking for gs color device... " >&6; }
31212 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31213 :
31214 else
31215 GSColorDevice=pnmraw
31216 fi
cristy8b350f62009-11-15 23:12:43 +000031217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031218$as_echo "$GSColorDevice" >&6; }
31219
31220 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031222$as_echo_n "checking for gs CMYK device... " >&6; }
31223 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31224 :
31225 else
31226 GSCMYKDevice=bmpsep8
31227 fi
cristy8b350f62009-11-15 23:12:43 +000031228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031229$as_echo "$GSCMYKDevice" >&6; }
31230
31231 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo_n "checking for gs mono device... " >&6; }
31234 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31235 :
31236 else
31237 GSMonoDevice=$GSColorDevice
31238 fi
cristy8b350f62009-11-15 23:12:43 +000031239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031240$as_echo "$GSMonoDevice" >&6; }
31241
31242 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000031243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031244$as_echo_n "checking for gs PDF writing device... " >&6; }
31245 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31246 :
31247 else
31248 GSPDFDevice=nodevice
31249 fi
cristy8b350f62009-11-15 23:12:43 +000031250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031251$as_echo "$GSPDFDevice" >&6; }
31252
31253 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000031254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031255$as_echo_n "checking for gs PS writing device... " >&6; }
31256 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31257 :
31258 else
31259 GSPSDevice=nodevice
31260 fi
cristy8b350f62009-11-15 23:12:43 +000031261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262$as_echo "$GSPSDevice" >&6; }
31263
31264 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000031265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031266$as_echo_n "checking for gs EPS writing device... " >&6; }
31267 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31268 :
31269 else
31270 GSEPSDevice=nodevice
31271 fi
cristy8b350f62009-11-15 23:12:43 +000031272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031273$as_echo "$GSEPSDevice" >&6; }
31274fi
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285#
31286# PerlMagick-related configuration
31287#
31288
31289# Look for PERL if PerlMagick requested
31290# If name/path of desired PERL interpreter is specified, look for that one first
31291have_perl='no'
31292if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031294$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031296$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031298$as_echo "" >&6; }
31299 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031301$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031302if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031303 $as_echo_n "(cached) " >&6
31304else
31305 ac_cv_path_PERL="$with_perl"
31306fi
cristy8b350f62009-11-15 23:12:43 +000031307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031308$as_echo "$ac_cv_path_PERL" >&6; };
31309 PERL=$ac_cv_path_PERL
31310 have_perl="$ac_cv_path_PERL"
31311 else
31312 for ac_prog in perl perl5
31313do
31314 # Extract the first word of "$ac_prog", so it can be a program name with args.
31315set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031317$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031318if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031319 $as_echo_n "(cached) " >&6
31320else
31321 case $PERL in
31322 [\\/]* | ?:[\\/]*)
31323 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31324 ;;
31325 *)
31326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31327for as_dir in $PATH
31328do
31329 IFS=$as_save_IFS
31330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31333 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031335 break 2
31336 fi
31337done
cristy8b350f62009-11-15 23:12:43 +000031338 done
cristy3ed852e2009-09-05 21:47:34 +000031339IFS=$as_save_IFS
31340
31341 ;;
31342esac
31343fi
31344PERL=$ac_cv_path_PERL
31345if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "$PERL" >&6; }
31348else
cristy8b350f62009-11-15 23:12:43 +000031349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031350$as_echo "no" >&6; }
31351fi
31352
31353
31354 test -n "$PERL" && break
31355done
31356 if test "$ac_cv_path_PERL"; then
31357 have_perl="$ac_cv_path_PERL"
31358 fi
31359 fi
31360fi
31361
cristy949301e2010-01-06 01:38:40 +000031362if test "$with_perl" != 'yes' ; then
31363 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31364fi
31365
31366PERL_SUPPORTS_DESTDIR='no'
31367
cristy3ed852e2009-09-05 21:47:34 +000031368with_perl_static='no'
31369with_perl_dynamic='no'
31370if test "$have_perl" != 'no'; then
31371 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31372 with_perl_static='yes'
31373 fi
31374 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31375 with_perl_dynamic='yes'
31376 fi
31377 # Is PERL's MakeMaker new enough to support DESTDIR?
31378 # Make sure we have perl
31379if test -z "$PERL"; then
31380# Extract the first word of "perl", so it can be a program name with args.
31381set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031383$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031384if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031385 $as_echo_n "(cached) " >&6
31386else
31387 if test -n "$PERL"; then
31388 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31389else
31390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31391for as_dir in $PATH
31392do
31393 IFS=$as_save_IFS
31394 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31397 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000031398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031399 break 2
31400 fi
31401done
cristy8b350f62009-11-15 23:12:43 +000031402 done
cristy3ed852e2009-09-05 21:47:34 +000031403IFS=$as_save_IFS
31404
31405fi
31406fi
31407PERL=$ac_cv_prog_PERL
31408if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031410$as_echo "$PERL" >&6; }
31411else
cristy8b350f62009-11-15 23:12:43 +000031412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413$as_echo "no" >&6; }
31414fi
31415
31416
31417fi
31418
31419# Check if version of Perl is sufficient
31420ac_perl_version="5.8.1"
31421
31422if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000031423 { $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 +000031424$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31425 # NB: It would be nice to log the error if there is one, but we cannot rely
31426 # on autoconf internals
31427 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31428 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000031429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031430$as_echo "no" >&6; };
31431 PERL_SUPPORTS_DESTDIR='no'
31432 else
cristy8b350f62009-11-15 23:12:43 +000031433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000031434$as_echo "ok" >&6; };
31435 PERL_SUPPORTS_DESTDIR='yes'
31436 fi
31437else
cristy8b350f62009-11-15 23:12:43 +000031438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031439$as_echo "$as_me: WARNING: could not find perl" >&2;}
31440fi
31441
31442fi
31443 if test "$have_perl" != 'no'; then
31444 WITH_PERL_TRUE=
31445 WITH_PERL_FALSE='#'
31446else
31447 WITH_PERL_TRUE='#'
31448 WITH_PERL_FALSE=
31449fi
31450
31451 if test $with_perl_static = 'yes'; then
31452 WITH_PERL_STATIC_TRUE=
31453 WITH_PERL_STATIC_FALSE='#'
31454else
31455 WITH_PERL_STATIC_TRUE='#'
31456 WITH_PERL_STATIC_FALSE=
31457fi
31458
31459 if test $with_perl_dynamic = 'yes'; then
31460 WITH_PERL_DYNAMIC_TRUE=
31461 WITH_PERL_DYNAMIC_FALSE='#'
31462else
31463 WITH_PERL_DYNAMIC_TRUE='#'
31464 WITH_PERL_DYNAMIC_FALSE=
31465fi
31466
31467
31468
31469# Determine path to pick up MagickCore library from for use with building PerlMagick
31470MAGICKCORE_PATH="${LIB_DIR}"
31471if test $with_perl_static = 'yes'; then
31472 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31473 libtool_objdir=$objdir
31474
31475 # Linker search path to library, followed by -lMagickCore
31476 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31477fi
31478
31479
31480# Create a simple string containing format names for all delegate libraries
31481DELEGATES=''
31482if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31483if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
31484if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
31485if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
31486if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
31487if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
31488if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
31489if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
31490if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
31491if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
31492if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
31493if test "$have_jpeg" = 'yes'; then
31494 DELEGATES="$DELEGATES jpeg";
31495 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
31496fi
31497if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
31498if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
31499if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
31500if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
31501if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
31502if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
31503if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
31504if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
31505if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
31506if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
31507if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
31508if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
31509
31510
31511
31512#
31513# Handle special compiler flags
31514#
31515
31516# Add '-p' if prof source profiling support enabled
31517if test "$enable_prof" = 'yes'; then
31518 CFLAGS="-p $CFLAGS"
31519 CXXFLAGS="-p $CXXFLAGS"
31520 LDFLAGS="-p $LDFLAGS"
31521fi
31522
31523# Add '-pg' if gprof source profiling support enabled
31524if test "$enable_gprof" = 'yes'; then
31525 CFLAGS="-pg $CFLAGS"
31526 CXXFLAGS="-pg $CXXFLAGS"
31527 LDFLAGS="-pg $LDFLAGS"
31528fi
31529
31530# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
31531# This is a gcc-specific feature
31532if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031534$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031535if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031536 $as_echo_n "(cached) " >&6
31537else
31538 ac_check_lib_save_LIBS=$LIBS
31539LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031541/* end confdefs.h. */
31542
31543/* Override any GCC internal prototype to avoid an error.
31544 Use char because int might match the return type of a GCC
31545 builtin and then its argument prototype would still apply. */
31546#ifdef __cplusplus
31547extern "C"
31548#endif
31549char _gcov_init ();
31550int
31551main ()
31552{
31553return _gcov_init ();
31554 ;
31555 return 0;
31556}
31557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031559 ac_cv_lib_gcov__gcov_init=yes
31560else
cristy8b350f62009-11-15 23:12:43 +000031561 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031562fi
cristy8b350f62009-11-15 23:12:43 +000031563rm -f core conftest.err conftest.$ac_objext \
31564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031565LIBS=$ac_check_lib_save_LIBS
31566fi
cristy8b350f62009-11-15 23:12:43 +000031567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031568$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031569if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031570 cat >>confdefs.h <<_ACEOF
31571#define HAVE_LIBGCOV 1
31572_ACEOF
31573
31574 LIBS="-lgcov $LIBS"
31575
31576fi
31577
cristy8b350f62009-11-15 23:12:43 +000031578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031579$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031580if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031581 $as_echo_n "(cached) " >&6
31582else
31583 ac_check_lib_save_LIBS=$LIBS
31584LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031586/* end confdefs.h. */
31587
31588/* Override any GCC internal prototype to avoid an error.
31589 Use char because int might match the return type of a GCC
31590 builtin and then its argument prototype would still apply. */
31591#ifdef __cplusplus
31592extern "C"
31593#endif
31594char __gcov_init ();
31595int
31596main ()
31597{
31598return __gcov_init ();
31599 ;
31600 return 0;
31601}
31602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031603if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031604 ac_cv_lib_gcov___gcov_init=yes
31605else
cristy8b350f62009-11-15 23:12:43 +000031606 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031607fi
cristy8b350f62009-11-15 23:12:43 +000031608rm -f core conftest.err conftest.$ac_objext \
31609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031610LIBS=$ac_check_lib_save_LIBS
31611fi
cristy8b350f62009-11-15 23:12:43 +000031612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031613$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031614if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031615 cat >>confdefs.h <<_ACEOF
31616#define HAVE_LIBGCOV 1
31617_ACEOF
31618
31619 LIBS="-lgcov $LIBS"
31620
31621fi
31622
31623 case "$target_os" in
31624 darwin*)
31625 OSX_GCOV_LDFLAG="-Wl,-single_module"
31626 ;;
31627 *)
31628 OSX_GCOV_LDFLAG=""
31629 ;;
31630 esac
31631
31632 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
31633 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
31634 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
31635fi
31636
31637#
31638# Build library dependency list for libMagickCore
31639#
31640
31641MAGICK_LIBLTDL='' # Libltdl for build
31642MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
31643MAGICK_LTDLDEPS='' # extra libltdl dependencies
31644if test "$with_ltdl" != 'no'
31645then
31646 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
31647 MAGICK_API_LIBLTDL='-lltdl'
31648 fi
31649 MAGICK_LIBLTDL=${LIBLTDL}
31650 MAGICK_LTDLDEPS=${LTDLDEPS}
31651fi
31652
31653
31654
31655if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000031656 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 +000031657else
cristy2e8b51d2009-10-17 18:26:15 +000031658 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 +000031659fi
31660
31661
31662#
31663# Remove extraneous spaces from output variables (asthetic)
31664#
31665X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
31666X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
31667X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
31668X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
31669
31670CC=`echo $CC | sed -e 's/ */ /g'`
31671CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
31672CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
31673CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
31674DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
31675DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
31676LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
31677TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31678MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
31679#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31680
31681# Pass only user-provided LIBS as "global" libraries
31682LIBS=$USER_LIBS
31683
31684#AC_SUBST(CPPFLAGS)
31685
31686#AC_SUBST(LDFLAGS)
31687#AC_SUBST(X_PRE_LIBS)
31688#AC_SUBST(X_LIBS)
31689#AC_SUBST(X_EXTRA_LIBS)
31690
31691MAGICK_CFLAGS=$CFLAGS
31692MAGICK_CXXFLAGS="$CXXFLAGS"
31693MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
31694MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
31695MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
31696MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
31697
31698
31699
31700
31701
31702
31703
31704
31705# Set configured scripts to executable.
31706ac_config_commands="$ac_config_commands default"
31707
31708ac_config_commands="$ac_config_commands MagickCore-config.in"
31709
31710ac_config_commands="$ac_config_commands Magick-config.in"
31711
31712ac_config_commands="$ac_config_commands MagickWand-config.in"
31713
31714ac_config_commands="$ac_config_commands Wand-config.in"
31715
31716ac_config_commands="$ac_config_commands Magick++-config.in"
31717
31718ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31719
31720
cristy8b350f62009-11-15 23:12:43 +000031721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031722$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000031724$as_echo "Update ImageMagick configuration" >&6; }
31725cat >confcache <<\_ACEOF
31726# This file is a shell script that caches the results of configure
31727# tests run on this system so they can be shared between configure
31728# scripts and configure runs, see configure's option --config-cache.
31729# It is not useful on other systems. If it contains results you don't
31730# want to keep, you may remove or edit it.
31731#
31732# config.status only pays attention to the cache file if you give it
31733# the --recheck option to rerun configure.
31734#
31735# `ac_cv_env_foo' variables (set or unset) will be overridden when
31736# loading this file, other *unset* `ac_cv_foo' will be assigned the
31737# following values.
31738
31739_ACEOF
31740
31741# The following way of writing the cache mishandles newlines in values,
31742# but we know of no workaround that is simple, portable, and efficient.
31743# So, we kill variables containing newlines.
31744# Ultrix sh set writes to stderr and can't be redirected directly,
31745# and sets the high bit in the cache file unless we assign to the vars.
31746(
31747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31748 eval ac_val=\$$ac_var
31749 case $ac_val in #(
31750 *${as_nl}*)
31751 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000031752 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000031753$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31754 esac
31755 case $ac_var in #(
31756 _ | IFS | as_nl) ;; #(
31757 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000031758 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000031759 esac ;;
31760 esac
31761 done
31762
31763 (set) 2>&1 |
31764 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31765 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000031766 # `set' does not quote correctly, so add quotes: double-quote
31767 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000031768 sed -n \
31769 "s/'/'\\\\''/g;
31770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31771 ;; #(
31772 *)
31773 # `set' quotes correctly as required by POSIX, so do not add quotes.
31774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31775 ;;
31776 esac |
31777 sort
31778) |
31779 sed '
31780 /^ac_cv_env_/b end
31781 t clear
31782 :clear
31783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31784 t end
31785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31786 :end' >>confcache
31787if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31788 if test -w "$cache_file"; then
31789 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031790 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031791$as_echo "$as_me: updating cache $cache_file" >&6;}
31792 cat confcache >$cache_file
31793 else
cristy8b350f62009-11-15 23:12:43 +000031794 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031795$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31796 fi
31797fi
31798rm -f confcache
31799
31800test "x$prefix" = xNONE && prefix=$ac_default_prefix
31801# Let make expand exec_prefix.
31802test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31803
31804DEFS=-DHAVE_CONFIG_H
31805
31806ac_libobjs=
31807ac_ltlibobjs=
31808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31809 # 1. Remove the extension, and $U if already installed.
31810 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31811 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31812 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31813 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031814 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31815 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031816done
31817LIBOBJS=$ac_libobjs
31818
31819LTLIBOBJS=$ac_ltlibobjs
31820
31821
31822 if test -n "$EXEEXT"; then
31823 am__EXEEXT_TRUE=
31824 am__EXEEXT_FALSE='#'
31825else
31826 am__EXEEXT_TRUE='#'
31827 am__EXEEXT_FALSE=
31828fi
31829
31830if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031831 as_fn_error "conditional \"AMDEP\" was never defined.
31832Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031833fi
31834if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031835 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31836Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031837fi
cristya0b81c32010-01-22 02:54:33 +000031838if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31839 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31840Usually this means the macro was only invoked conditionally." "$LINENO" 5
31841fi
cristy3ed852e2009-09-05 21:47:34 +000031842if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031843 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31844Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031845fi
31846if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031847 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31848Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031849fi
31850if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031851 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31852Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031853fi
31854if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031855 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31856Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031857fi
31858if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031859 as_fn_error "conditional \"USING_CL\" was never defined.
31860Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031861fi
cristy18304f92009-11-22 15:48:26 +000031862if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31863 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31864Usually this means the macro was only invoked conditionally." "$LINENO" 5
31865fi
cristy3ed852e2009-09-05 21:47:34 +000031866if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031867 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31868Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031869fi
31870if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031871 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31872Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031873fi
31874LT_CONFIG_H=config/config.h
31875
31876 _ltdl_libobjs=
31877 _ltdl_ltlibobjs=
31878 if test -n "$_LT_LIBOBJS"; then
31879 # Remove the extension.
31880 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31881 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31882 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31883 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31884 done
31885 fi
31886 ltdl_LIBOBJS=$_ltdl_libobjs
31887
31888 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31889
31890
cristyfa112112010-01-04 17:48:07 +000031891if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
31892 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
31893Usually this means the macro was only invoked conditionally." "$LINENO" 5
31894fi
cristy3ed852e2009-09-05 21:47:34 +000031895if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031896 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31897Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031898fi
31899if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031900 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31901Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031902fi
31903if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031904 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31905Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031906fi
31907
31908if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031909 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31910Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031911fi
31912if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031913 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31914Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031915fi
31916if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031917 as_fn_error "conditional \"HasUMEM\" was never defined.
31918Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031919fi
31920if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031921 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31922Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031923fi
31924if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031925 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31926Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031927fi
31928if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031929 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31930Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031931fi
31932if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031933 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31934Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031935fi
31936if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031937 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31938Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031939fi
31940if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031941 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31942Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031943fi
31944if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031945 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31946Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031947fi
31948if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031949 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31950Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031951fi
31952if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031953 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31954Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031955fi
31956if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031957 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31958Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031959fi
31960if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031961 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31962Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031963fi
31964if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031965 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31966Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031967fi
31968if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031969 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31970Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031971fi
31972if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031973 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31974Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031975fi
31976if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031977 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31978Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031979fi
31980if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031981 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31982Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031983fi
31984if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031985 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31986Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031987fi
31988if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031989 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31990Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031991fi
31992if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031993 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31994Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031995fi
31996if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031997 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31998Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031999fi
32000if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032001 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32002Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032003fi
32004if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032005 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32006Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032007fi
32008if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032009 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32010Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032011fi
32012if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032013 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32014Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032015fi
32016if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032017 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32018Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032019fi
32020if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032021 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32022Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032023fi
32024if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032025 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32026Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032027fi
32028if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032029 as_fn_error "conditional \"WITH_PERL\" was never defined.
32030Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032031fi
32032if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032033 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32034Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032035fi
32036if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032037 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32038Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032039fi
32040
32041: ${CONFIG_STATUS=./config.status}
32042ac_write_fail=0
32043ac_clean_files_save=$ac_clean_files
32044ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032045{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032046$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032047as_write_fail=0
32048cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032049#! $SHELL
32050# Generated by $as_me.
32051# Run this file to recreate the current configuration.
32052# Compiler output produced by configure, useful for debugging
32053# configure, is in config.log if it exists.
32054
32055debug=false
32056ac_cs_recheck=false
32057ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032058
cristy8b350f62009-11-15 23:12:43 +000032059SHELL=\${CONFIG_SHELL-$SHELL}
32060export SHELL
32061_ASEOF
32062cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32063## -------------------- ##
32064## M4sh Initialization. ##
32065## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032066
32067# Be more Bourne compatible
32068DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032069if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032070 emulate sh
32071 NULLCMD=:
32072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32073 # is contrary to our usage. Disable this feature.
32074 alias -g '${1+"$@"}'='"$@"'
32075 setopt NO_GLOB_SUBST
32076else
cristy8b350f62009-11-15 23:12:43 +000032077 case `(set -o) 2>/dev/null` in #(
32078 *posix*) :
32079 set -o posix ;; #(
32080 *) :
32081 ;;
cristy3ed852e2009-09-05 21:47:34 +000032082esac
cristy3ed852e2009-09-05 21:47:34 +000032083fi
32084
32085
cristy3ed852e2009-09-05 21:47:34 +000032086as_nl='
32087'
32088export as_nl
32089# Printing a long string crashes Solaris 7 /usr/bin/printf.
32090as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032093# Prefer a ksh shell builtin over an external printf program on Solaris,
32094# but without wasting forks for bash or zsh.
32095if test -z "$BASH_VERSION$ZSH_VERSION" \
32096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32097 as_echo='print -r --'
32098 as_echo_n='print -rn --'
32099elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032100 as_echo='printf %s\n'
32101 as_echo_n='printf %s'
32102else
32103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32104 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32105 as_echo_n='/usr/ucb/echo -n'
32106 else
32107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32108 as_echo_n_body='eval
32109 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032110 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032111 *"$as_nl"*)
32112 expr "X$arg" : "X\\(.*\\)$as_nl";
32113 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32114 esac;
32115 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32116 '
32117 export as_echo_n_body
32118 as_echo_n='sh -c $as_echo_n_body as_echo'
32119 fi
32120 export as_echo_body
32121 as_echo='sh -c $as_echo_body as_echo'
32122fi
32123
32124# The user is always right.
32125if test "${PATH_SEPARATOR+set}" != set; then
32126 PATH_SEPARATOR=:
32127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32128 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32129 PATH_SEPARATOR=';'
32130 }
32131fi
32132
cristy3ed852e2009-09-05 21:47:34 +000032133
32134# IFS
32135# We need space, tab and new line, in precisely that order. Quoting is
32136# there to prevent editors from complaining about space-tab.
32137# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32138# splitting by setting IFS to empty value.)
32139IFS=" "" $as_nl"
32140
32141# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032142case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032143 *[\\/]* ) as_myself=$0 ;;
32144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32145for as_dir in $PATH
32146do
32147 IFS=$as_save_IFS
32148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32150 done
cristy3ed852e2009-09-05 21:47:34 +000032151IFS=$as_save_IFS
32152
32153 ;;
32154esac
32155# We did not find ourselves, most probably we were run as `sh COMMAND'
32156# in which case we are not to be found in the path.
32157if test "x$as_myself" = x; then
32158 as_myself=$0
32159fi
32160if test ! -f "$as_myself"; then
32161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032162 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032163fi
32164
cristy8b350f62009-11-15 23:12:43 +000032165# Unset variables that we do not need and which cause bugs (e.g. in
32166# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32167# suppresses any "Segmentation fault" message there. '((' could
32168# trigger a bug in pdksh 5.2.14.
32169for as_var in BASH_ENV ENV MAIL MAILPATH
32170do eval test x\${$as_var+set} = xset \
32171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032172done
32173PS1='$ '
32174PS2='> '
32175PS4='+ '
32176
32177# NLS nuisances.
32178LC_ALL=C
32179export LC_ALL
32180LANGUAGE=C
32181export LANGUAGE
32182
cristy8b350f62009-11-15 23:12:43 +000032183# CDPATH.
32184(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32185
32186
32187# as_fn_error ERROR [LINENO LOG_FD]
32188# ---------------------------------
32189# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32190# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32191# script with status $?, using 1 if that was 0.
32192as_fn_error ()
32193{
32194 as_status=$?; test $as_status -eq 0 && as_status=1
32195 if test "$3"; then
32196 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32198 fi
32199 $as_echo "$as_me: error: $1" >&2
32200 as_fn_exit $as_status
32201} # as_fn_error
32202
32203
32204# as_fn_set_status STATUS
32205# -----------------------
32206# Set $? to STATUS, without forking.
32207as_fn_set_status ()
32208{
32209 return $1
32210} # as_fn_set_status
32211
32212# as_fn_exit STATUS
32213# -----------------
32214# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32215as_fn_exit ()
32216{
32217 set +e
32218 as_fn_set_status $1
32219 exit $1
32220} # as_fn_exit
32221
32222# as_fn_unset VAR
32223# ---------------
32224# Portably unset VAR.
32225as_fn_unset ()
32226{
32227 { eval $1=; unset $1;}
32228}
32229as_unset=as_fn_unset
32230# as_fn_append VAR VALUE
32231# ----------------------
32232# Append the text in VALUE to the end of the definition contained in VAR. Take
32233# advantage of any shell optimizations that allow amortized linear growth over
32234# repeated appends, instead of the typical quadratic growth present in naive
32235# implementations.
32236if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32237 eval 'as_fn_append ()
32238 {
32239 eval $1+=\$2
32240 }'
32241else
32242 as_fn_append ()
32243 {
32244 eval $1=\$$1\$2
32245 }
32246fi # as_fn_append
32247
32248# as_fn_arith ARG...
32249# ------------------
32250# Perform arithmetic evaluation on the ARGs, and store the result in the
32251# global $as_val. Take advantage of shells that can avoid forks. The arguments
32252# must be portable across $(()) and expr.
32253if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32254 eval 'as_fn_arith ()
32255 {
32256 as_val=$(( $* ))
32257 }'
32258else
32259 as_fn_arith ()
32260 {
32261 as_val=`expr "$@" || test $? -eq 1`
32262 }
32263fi # as_fn_arith
32264
32265
cristy3ed852e2009-09-05 21:47:34 +000032266if expr a : '\(a\)' >/dev/null 2>&1 &&
32267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32268 as_expr=expr
32269else
32270 as_expr=false
32271fi
32272
32273if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32274 as_basename=basename
32275else
32276 as_basename=false
32277fi
32278
cristy8b350f62009-11-15 23:12:43 +000032279if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32280 as_dirname=dirname
32281else
32282 as_dirname=false
32283fi
cristy3ed852e2009-09-05 21:47:34 +000032284
cristy3ed852e2009-09-05 21:47:34 +000032285as_me=`$as_basename -- "$0" ||
32286$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32287 X"$0" : 'X\(//\)$' \| \
32288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32289$as_echo X/"$0" |
32290 sed '/^.*\/\([^/][^/]*\)\/*$/{
32291 s//\1/
32292 q
32293 }
32294 /^X\/\(\/\/\)$/{
32295 s//\1/
32296 q
32297 }
32298 /^X\/\(\/\).*/{
32299 s//\1/
32300 q
32301 }
32302 s/.*/./; q'`
32303
cristy8b350f62009-11-15 23:12:43 +000032304# Avoid depending upon Character Ranges.
32305as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32307as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32308as_cr_digits='0123456789'
32309as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000032310
32311ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000032312case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000032313-n*)
cristy8b350f62009-11-15 23:12:43 +000032314 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000032315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000032316 xy) ECHO_C='\c';;
32317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32318 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000032319 esac;;
32320*)
32321 ECHO_N='-n';;
32322esac
cristy3ed852e2009-09-05 21:47:34 +000032323
32324rm -f conf$$ conf$$.exe conf$$.file
32325if test -d conf$$.dir; then
32326 rm -f conf$$.dir/conf$$.file
32327else
32328 rm -f conf$$.dir
32329 mkdir conf$$.dir 2>/dev/null
32330fi
32331if (echo >conf$$.file) 2>/dev/null; then
32332 if ln -s conf$$.file conf$$ 2>/dev/null; then
32333 as_ln_s='ln -s'
32334 # ... but there are two gotchas:
32335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32337 # In both cases, we have to default to `cp -p'.
32338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32339 as_ln_s='cp -p'
32340 elif ln conf$$.file conf$$ 2>/dev/null; then
32341 as_ln_s=ln
32342 else
32343 as_ln_s='cp -p'
32344 fi
32345else
32346 as_ln_s='cp -p'
32347fi
32348rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32349rmdir conf$$.dir 2>/dev/null
32350
cristy8b350f62009-11-15 23:12:43 +000032351
32352# as_fn_mkdir_p
32353# -------------
32354# Create "$as_dir" as a directory, including parents if necessary.
32355as_fn_mkdir_p ()
32356{
32357
32358 case $as_dir in #(
32359 -*) as_dir=./$as_dir;;
32360 esac
32361 test -d "$as_dir" || eval $as_mkdir_p || {
32362 as_dirs=
32363 while :; do
32364 case $as_dir in #(
32365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32366 *) as_qdir=$as_dir;;
32367 esac
32368 as_dirs="'$as_qdir' $as_dirs"
32369 as_dir=`$as_dirname -- "$as_dir" ||
32370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32371 X"$as_dir" : 'X\(//\)[^/]' \| \
32372 X"$as_dir" : 'X\(//\)$' \| \
32373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32374$as_echo X"$as_dir" |
32375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32376 s//\1/
32377 q
32378 }
32379 /^X\(\/\/\)[^/].*/{
32380 s//\1/
32381 q
32382 }
32383 /^X\(\/\/\)$/{
32384 s//\1/
32385 q
32386 }
32387 /^X\(\/\).*/{
32388 s//\1/
32389 q
32390 }
32391 s/.*/./; q'`
32392 test -d "$as_dir" && break
32393 done
32394 test -z "$as_dirs" || eval "mkdir $as_dirs"
32395 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32396
32397
32398} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032399if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032400 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000032401else
32402 test -d ./-p && rmdir ./-p
32403 as_mkdir_p=false
32404fi
32405
32406if test -x / >/dev/null 2>&1; then
32407 as_test_x='test -x'
32408else
32409 if ls -dL / >/dev/null 2>&1; then
32410 as_ls_L_option=L
32411 else
32412 as_ls_L_option=
32413 fi
32414 as_test_x='
32415 eval sh -c '\''
32416 if test -d "$1"; then
32417 test -d "$1/.";
32418 else
cristy8b350f62009-11-15 23:12:43 +000032419 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000032420 -*)set "./$1";;
32421 esac;
cristy8b350f62009-11-15 23:12:43 +000032422 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000032423 ???[sx]*):;;*)false;;esac;fi
32424 '\'' sh
32425 '
32426fi
32427as_executable_p=$as_test_x
32428
32429# Sed expression to map a string onto a valid CPP name.
32430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32431
32432# Sed expression to map a string onto a valid variable name.
32433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32434
32435
32436exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000032437## ----------------------------------- ##
32438## Main body of $CONFIG_STATUS script. ##
32439## ----------------------------------- ##
32440_ASEOF
32441test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032442
cristy8b350f62009-11-15 23:12:43 +000032443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32444# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000032445# report actual input values of CONFIG_FILES etc. instead of their
32446# values after options handling.
32447ac_log="
cristydc0f0892009-12-29 02:21:55 +000032448This file was extended by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +000032449generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000032450
32451 CONFIG_FILES = $CONFIG_FILES
32452 CONFIG_HEADERS = $CONFIG_HEADERS
32453 CONFIG_LINKS = $CONFIG_LINKS
32454 CONFIG_COMMANDS = $CONFIG_COMMANDS
32455 $ $0 $@
32456
32457on `(hostname || uname -n) 2>/dev/null | sed 1q`
32458"
32459
32460_ACEOF
32461
32462case $ac_config_files in *"
32463"*) set x $ac_config_files; shift; ac_config_files=$*;;
32464esac
32465
32466case $ac_config_headers in *"
32467"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32468esac
32469
32470
32471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32472# Files that config.status was made for.
32473config_files="$ac_config_files"
32474config_headers="$ac_config_headers"
32475config_commands="$ac_config_commands"
32476
32477_ACEOF
32478
32479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32480ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000032481\`$as_me' instantiates files and other configuration actions
32482from templates according to the current configuration. Unless the files
32483and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000032484
cristy8b350f62009-11-15 23:12:43 +000032485Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000032486
32487 -h, --help print this help, then exit
32488 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000032489 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000032490 -q, --quiet, --silent
32491 do not print progress messages
32492 -d, --debug don't remove temporary files
32493 --recheck update $as_me by reconfiguring in the same conditions
32494 --file=FILE[:TEMPLATE]
32495 instantiate the configuration file FILE
32496 --header=FILE[:TEMPLATE]
32497 instantiate the configuration header FILE
32498
32499Configuration files:
32500$config_files
32501
32502Configuration headers:
32503$config_headers
32504
32505Configuration commands:
32506$config_commands
32507
cristy8b350f62009-11-15 23:12:43 +000032508Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000032509
32510_ACEOF
32511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000032512ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000032513ac_cs_version="\\
cristydc0f0892009-12-29 02:21:55 +000032514ImageMagick config.status 6.5.9
cristycd4c5312009-11-22 01:19:08 +000032515configured by $0, generated by GNU Autoconf 2.65,
32516 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000032517
cristy8b350f62009-11-15 23:12:43 +000032518Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000032519This config.status script is free software; the Free Software Foundation
32520gives unlimited permission to copy, distribute and modify it."
32521
32522ac_pwd='$ac_pwd'
32523srcdir='$srcdir'
32524INSTALL='$INSTALL'
32525MKDIR_P='$MKDIR_P'
32526AWK='$AWK'
32527test -n "\$AWK" || AWK=awk
32528_ACEOF
32529
32530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32531# The default lists apply if the user does not specify any file.
32532ac_need_defaults=:
32533while test $# != 0
32534do
32535 case $1 in
32536 --*=*)
32537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32539 ac_shift=:
32540 ;;
32541 *)
32542 ac_option=$1
32543 ac_optarg=$2
32544 ac_shift=shift
32545 ;;
32546 esac
32547
32548 case $ac_option in
32549 # Handling of the options.
32550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32551 ac_cs_recheck=: ;;
32552 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32553 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000032554 --config | --confi | --conf | --con | --co | --c )
32555 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000032556 --debug | --debu | --deb | --de | --d | -d )
32557 debug=: ;;
32558 --file | --fil | --fi | --f )
32559 $ac_shift
32560 case $ac_optarg in
32561 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32562 esac
cristy8b350f62009-11-15 23:12:43 +000032563 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032564 ac_need_defaults=false;;
32565 --header | --heade | --head | --hea )
32566 $ac_shift
32567 case $ac_optarg in
32568 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32569 esac
cristy8b350f62009-11-15 23:12:43 +000032570 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032571 ac_need_defaults=false;;
32572 --he | --h)
32573 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000032574 as_fn_error "ambiguous option: \`$1'
32575Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000032576 --help | --hel | -h )
32577 $as_echo "$ac_cs_usage"; exit ;;
32578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32580 ac_cs_silent=: ;;
32581
32582 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000032583 -*) as_fn_error "unrecognized option: \`$1'
32584Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000032585
cristy8b350f62009-11-15 23:12:43 +000032586 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000032587 ac_need_defaults=false ;;
32588
32589 esac
32590 shift
32591done
32592
32593ac_configure_extra_args=
32594
32595if $ac_cs_silent; then
32596 exec 6>/dev/null
32597 ac_configure_extra_args="$ac_configure_extra_args --silent"
32598fi
32599
32600_ACEOF
32601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32602if \$ac_cs_recheck; then
32603 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32604 shift
32605 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32606 CONFIG_SHELL='$SHELL'
32607 export CONFIG_SHELL
32608 exec "\$@"
32609fi
32610
32611_ACEOF
32612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32613exec 5>>config.log
32614{
32615 echo
32616 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32617## Running $as_me. ##
32618_ASBOX
32619 $as_echo "$ac_log"
32620} >&5
32621
32622_ACEOF
32623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32624#
32625# INIT-COMMANDS
32626#
32627PACKAGE="$PACKAGE"
32628AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32629
32630
32631# The HP-UX ksh and POSIX shell print the target directory to stdout
32632# if CDPATH is set.
32633(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32634
32635sed_quote_subst='$sed_quote_subst'
32636double_quote_subst='$double_quote_subst'
32637delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000032638SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32639Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32640GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32641EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32642FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32643LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32644macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32645macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32646AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32647DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32648OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32649enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32650enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32651pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32652enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32653host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32654host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32655host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32656build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32657build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32658build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32659NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32660LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32661max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32662ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32663exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32664lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32665lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32666lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32667reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32668reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32669deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32670file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
32671AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
32672AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32673STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
32674RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
32675old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32676old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32677old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32678CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
32679CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32680compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
32681GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
32682lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
32683lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
32684lt_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"`'
32685lt_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"`'
32686objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
32687SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
32688ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
32689MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
32690lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
32691lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
32692lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
32693lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
32694lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
32695need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
32696DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
32697NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
32698LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
32699OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32700OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
32701libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
32702shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32703extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32704archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
32705enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
32706export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32707whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32708compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
32709old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32710old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32711archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32712archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32713module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32714module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32715with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
32716allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32717no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32718hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32719hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32720hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32721hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32722hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32723hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32724hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32725hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32726inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32727link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32728fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32729always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32730export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32731exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32732include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32733prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32734file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32735variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32736need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32737need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32738version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32739runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32740shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32741shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32742libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32743library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32744soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32745postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32746postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32747finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32748finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32749hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32750sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32751sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32752hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32753enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32754enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32755enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32756old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32757striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32758compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32759predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32760postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32761predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32762postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32763compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32764LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32765old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32766compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32767GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32768lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32769lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32770lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32771lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32772lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32773archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32774enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32775export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32776whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32777compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32778old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32779old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32780archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32781archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32782module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32783module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32784with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32785allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32786no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32787hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32788hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32789hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32790hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32791hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32792hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32793hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32794hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32795inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32796link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32797fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32798always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32799export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32800exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32801include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32802prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32803file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32804hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32805compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32806predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32807postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32808predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32809postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32810compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032811
32812LTCC='$LTCC'
32813LTCFLAGS='$LTCFLAGS'
32814compiler='$compiler_DEFAULT'
32815
32816# Quote evaled strings.
32817for var in SED \
32818GREP \
32819EGREP \
32820FGREP \
32821LD \
32822NM \
32823LN_S \
32824lt_SP2NL \
32825lt_NL2SP \
32826reload_flag \
32827deplibs_check_method \
32828file_magic_cmd \
32829AR \
32830AR_FLAGS \
32831STRIP \
32832RANLIB \
32833CC \
32834CFLAGS \
32835compiler \
32836lt_cv_sys_global_symbol_pipe \
32837lt_cv_sys_global_symbol_to_cdecl \
32838lt_cv_sys_global_symbol_to_c_name_address \
32839lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032840SHELL \
32841ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032842lt_prog_compiler_no_builtin_flag \
32843lt_prog_compiler_wl \
32844lt_prog_compiler_pic \
32845lt_prog_compiler_static \
32846lt_cv_prog_compiler_c_o \
32847need_locks \
32848DSYMUTIL \
32849NMEDIT \
32850LIPO \
32851OTOOL \
32852OTOOL64 \
32853shrext_cmds \
32854export_dynamic_flag_spec \
32855whole_archive_flag_spec \
32856compiler_needs_object \
32857with_gnu_ld \
32858allow_undefined_flag \
32859no_undefined_flag \
32860hardcode_libdir_flag_spec \
32861hardcode_libdir_flag_spec_ld \
32862hardcode_libdir_separator \
32863fix_srcfile_path \
32864exclude_expsyms \
32865include_expsyms \
32866file_list_spec \
32867variables_saved_for_relink \
32868libname_spec \
32869library_names_spec \
32870soname_spec \
32871finish_eval \
32872old_striplib \
32873striplib \
32874compiler_lib_search_dirs \
32875predep_objects \
32876postdep_objects \
32877predeps \
32878postdeps \
32879compiler_lib_search_path \
32880LD_CXX \
32881compiler_CXX \
32882lt_prog_compiler_no_builtin_flag_CXX \
32883lt_prog_compiler_wl_CXX \
32884lt_prog_compiler_pic_CXX \
32885lt_prog_compiler_static_CXX \
32886lt_cv_prog_compiler_c_o_CXX \
32887export_dynamic_flag_spec_CXX \
32888whole_archive_flag_spec_CXX \
32889compiler_needs_object_CXX \
32890with_gnu_ld_CXX \
32891allow_undefined_flag_CXX \
32892no_undefined_flag_CXX \
32893hardcode_libdir_flag_spec_CXX \
32894hardcode_libdir_flag_spec_ld_CXX \
32895hardcode_libdir_separator_CXX \
32896fix_srcfile_path_CXX \
32897exclude_expsyms_CXX \
32898include_expsyms_CXX \
32899file_list_spec_CXX \
32900compiler_lib_search_dirs_CXX \
32901predep_objects_CXX \
32902postdep_objects_CXX \
32903predeps_CXX \
32904postdeps_CXX \
32905compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032906 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032907 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032908 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032909 ;;
32910 *)
32911 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32912 ;;
32913 esac
32914done
32915
32916# Double-quote double-evaled strings.
32917for var in reload_cmds \
32918old_postinstall_cmds \
32919old_postuninstall_cmds \
32920old_archive_cmds \
32921extract_expsyms_cmds \
32922old_archive_from_new_cmds \
32923old_archive_from_expsyms_cmds \
32924archive_cmds \
32925archive_expsym_cmds \
32926module_cmds \
32927module_expsym_cmds \
32928export_symbols_cmds \
32929prelink_cmds \
32930postinstall_cmds \
32931postuninstall_cmds \
32932finish_cmds \
32933sys_lib_search_path_spec \
32934sys_lib_dlsearch_path_spec \
32935old_archive_cmds_CXX \
32936old_archive_from_new_cmds_CXX \
32937old_archive_from_expsyms_cmds_CXX \
32938archive_cmds_CXX \
32939archive_expsym_cmds_CXX \
32940module_cmds_CXX \
32941module_expsym_cmds_CXX \
32942export_symbols_cmds_CXX \
32943prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032944 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032945 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032946 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 +000032947 ;;
32948 *)
32949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32950 ;;
32951 esac
32952done
32953
cristy18304f92009-11-22 15:48:26 +000032954# Fix-up fallback echo if it was mangled by the above quoting rules.
32955case \$lt_ECHO in
32956*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32957 ;;
32958esac
32959
cristy3ed852e2009-09-05 21:47:34 +000032960ac_aux_dir='$ac_aux_dir'
32961xsi_shell='$xsi_shell'
32962lt_shell_append='$lt_shell_append'
32963
32964# See if we are running on zsh, and set the options which allow our
32965# commands through without removal of \ escapes INIT.
32966if test -n "\${ZSH_VERSION+set}" ; then
32967 setopt NO_GLOB_SUBST
32968fi
32969
32970
32971 PACKAGE='$PACKAGE'
32972 VERSION='$VERSION'
32973 TIMESTAMP='$TIMESTAMP'
32974 RM='$RM'
32975 ofile='$ofile'
32976
32977
32978
32979
32980
32981
32982_ACEOF
32983
32984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32985
32986# Handling of arguments.
32987for ac_config_target in $ac_config_targets
32988do
32989 case $ac_config_target in
32990 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32991 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32992 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32993 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32994 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32995 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32996 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000032997 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000032998 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32999 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33000 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33001 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33002 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33003 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33004 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33005 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33006 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33007 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33008 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33009 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33010 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33011 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33012 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33013 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33014 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33015 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33016 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33017 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33018 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33019 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33020 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33021 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33022 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33023 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33024 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33025 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33026 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33027 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33028 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33029 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33030 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33031 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33032 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33033 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33034 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33035 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33036 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33037 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33038 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33039 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33040
cristy8b350f62009-11-15 23:12:43 +000033041 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033042 esac
33043done
33044
33045
33046# If the user did not use the arguments to specify the items to instantiate,
33047# then the envvar interface is used. Set only those that are not.
33048# We use the long form for the default assignment because of an extremely
33049# bizarre bug on SunOS 4.1.3.
33050if $ac_need_defaults; then
33051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33054fi
33055
33056# Have a temporary directory for convenience. Make it in the build tree
33057# simply because there is no reason against having it here, and in addition,
33058# creating and moving files from /tmp can sometimes cause problems.
33059# Hook for its removal unless debugging.
33060# Note that there is a small window in which the directory will not be cleaned:
33061# after its creation but before its name has been assigned to `$tmp'.
33062$debug ||
33063{
33064 tmp=
33065 trap 'exit_status=$?
33066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33067' 0
cristy8b350f62009-11-15 23:12:43 +000033068 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033069}
33070# Create a (secure) tmp directory for tmp files.
33071
33072{
33073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33074 test -n "$tmp" && test -d "$tmp"
33075} ||
33076{
33077 tmp=./conf$$-$RANDOM
33078 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033079} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033080
33081# Set up the scripts for CONFIG_FILES section.
33082# No need to generate them if there are no CONFIG_FILES.
33083# This happens for instance with `./config.status config.h'.
33084if test -n "$CONFIG_FILES"; then
33085
33086
cristy8b350f62009-11-15 23:12:43 +000033087ac_cr=`echo X | tr X '\015'`
33088# On cygwin, bash can eat \r inside `` if the user requested igncr.
33089# But we know of no other shell where ac_cr would be empty at this
33090# point, so we can use a bashism as a fallback.
33091if test "x$ac_cr" = x; then
33092 eval ac_cr=\$\'\\r\'
33093fi
cristy3ed852e2009-09-05 21:47:34 +000033094ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33095if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033096 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033097else
33098 ac_cs_awk_cr=$ac_cr
33099fi
33100
33101echo 'BEGIN {' >"$tmp/subs1.awk" &&
33102_ACEOF
33103
33104
33105{
33106 echo "cat >conf$$subs.awk <<_ACEOF" &&
33107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33108 echo "_ACEOF"
33109} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033110 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033111ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33112ac_delim='%!_!# '
33113for ac_last_try in false false false false false :; do
33114 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033115 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033116
33117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33118 if test $ac_delim_n = $ac_delim_num; then
33119 break
33120 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033121 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033122 else
33123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33124 fi
33125done
33126rm -f conf$$subs.sh
33127
33128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33129cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33130_ACEOF
33131sed -n '
33132h
33133s/^/S["/; s/!.*/"]=/
33134p
33135g
33136s/^[^!]*!//
33137:repl
33138t repl
33139s/'"$ac_delim"'$//
33140t delim
33141:nl
33142h
cristycd4c5312009-11-22 01:19:08 +000033143s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033144t more1
33145s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33146p
33147n
33148b repl
33149:more1
33150s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33151p
33152g
33153s/.\{148\}//
33154t nl
33155:delim
33156h
cristycd4c5312009-11-22 01:19:08 +000033157s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033158t more2
33159s/["\\]/\\&/g; s/^/"/; s/$/"/
33160p
33161b
33162:more2
33163s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33164p
33165g
33166s/.\{148\}//
33167t delim
33168' <conf$$subs.awk | sed '
33169/^[^""]/{
33170 N
33171 s/\n//
33172}
33173' >>$CONFIG_STATUS || ac_write_fail=1
33174rm -f conf$$subs.awk
33175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33176_ACAWK
33177cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33178 for (key in S) S_is_set[key] = 1
33179 FS = ""
33180
33181}
33182{
33183 line = $ 0
33184 nfields = split(line, field, "@")
33185 substed = 0
33186 len = length(field[1])
33187 for (i = 2; i < nfields; i++) {
33188 key = field[i]
33189 keylen = length(key)
33190 if (S_is_set[key]) {
33191 value = S[key]
33192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33193 len += length(value) + length(field[++i])
33194 substed = 1
33195 } else
33196 len += 1 + keylen
33197 }
33198
33199 print line
33200}
33201
33202_ACAWK
33203_ACEOF
33204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33205if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33207else
33208 cat
33209fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000033210 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033211_ACEOF
33212
33213# VPATH may cause trouble with some makes, so we remove $(srcdir),
33214# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33215# trailing colons and then remove the whole line if VPATH becomes empty
33216# (actually we leave an empty line to preserve line numbers).
33217if test "x$srcdir" = x.; then
33218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33219s/:*\$(srcdir):*/:/
33220s/:*\${srcdir}:*/:/
33221s/:*@srcdir@:*/:/
33222s/^\([^=]*=[ ]*\):*/\1/
33223s/:*$//
33224s/^[^=]*=[ ]*$//
33225}'
33226fi
33227
33228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33229fi # test -n "$CONFIG_FILES"
33230
33231# Set up the scripts for CONFIG_HEADERS section.
33232# No need to generate them if there are no CONFIG_HEADERS.
33233# This happens for instance with `./config.status Makefile'.
33234if test -n "$CONFIG_HEADERS"; then
33235cat >"$tmp/defines.awk" <<\_ACAWK ||
33236BEGIN {
33237_ACEOF
33238
33239# Transform confdefs.h into an awk script `defines.awk', embedded as
33240# here-document in config.status, that substitutes the proper values into
33241# config.h.in to produce config.h.
33242
33243# Create a delimiter string that does not exist in confdefs.h, to ease
33244# handling of long lines.
33245ac_delim='%!_!# '
33246for ac_last_try in false false :; do
33247 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33248 if test -z "$ac_t"; then
33249 break
33250 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033251 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033252 else
33253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33254 fi
33255done
33256
33257# For the awk script, D is an array of macro values keyed by name,
33258# likewise P contains macro parameters if any. Preserve backslash
33259# newline sequences.
33260
33261ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33262sed -n '
33263s/.\{148\}/&'"$ac_delim"'/g
33264t rset
33265:rset
33266s/^[ ]*#[ ]*define[ ][ ]*/ /
33267t def
33268d
33269:def
33270s/\\$//
33271t bsnl
33272s/["\\]/\\&/g
33273s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33274D["\1"]=" \3"/p
33275s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33276d
33277:bsnl
33278s/["\\]/\\&/g
33279s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33280D["\1"]=" \3\\\\\\n"\\/p
33281t cont
33282s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33283t cont
33284d
33285:cont
33286n
33287s/.\{148\}/&'"$ac_delim"'/g
33288t clear
33289:clear
33290s/\\$//
33291t bsnlc
33292s/["\\]/\\&/g; s/^/"/; s/$/"/p
33293d
33294:bsnlc
33295s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33296b cont
33297' <confdefs.h | sed '
33298s/'"$ac_delim"'/"\\\
33299"/g' >>$CONFIG_STATUS || ac_write_fail=1
33300
33301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33302 for (key in D) D_is_set[key] = 1
33303 FS = ""
33304}
33305/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33306 line = \$ 0
33307 split(line, arg, " ")
33308 if (arg[1] == "#") {
33309 defundef = arg[2]
33310 mac1 = arg[3]
33311 } else {
33312 defundef = substr(arg[1], 2)
33313 mac1 = arg[2]
33314 }
33315 split(mac1, mac2, "(") #)
33316 macro = mac2[1]
33317 prefix = substr(line, 1, index(line, defundef) - 1)
33318 if (D_is_set[macro]) {
33319 # Preserve the white space surrounding the "#".
33320 print prefix "define", macro P[macro] D[macro]
33321 next
33322 } else {
33323 # Replace #undef with comments. This is necessary, for example,
33324 # in the case of _POSIX_SOURCE, which is predefined and required
33325 # on some systems where configure will not decide to define it.
33326 if (defundef == "undef") {
33327 print "/*", prefix defundef, macro, "*/"
33328 next
33329 }
33330 }
33331}
33332{ print }
33333_ACAWK
33334_ACEOF
33335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000033336 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033337fi # test -n "$CONFIG_HEADERS"
33338
33339
33340eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33341shift
33342for ac_tag
33343do
33344 case $ac_tag in
33345 :[FHLC]) ac_mode=$ac_tag; continue;;
33346 esac
33347 case $ac_mode$ac_tag in
33348 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000033349 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033350 :[FH]-) ac_tag=-:-;;
33351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33352 esac
33353 ac_save_IFS=$IFS
33354 IFS=:
33355 set x $ac_tag
33356 IFS=$ac_save_IFS
33357 shift
33358 ac_file=$1
33359 shift
33360
33361 case $ac_mode in
33362 :L) ac_source=$1;;
33363 :[FH])
33364 ac_file_inputs=
33365 for ac_f
33366 do
33367 case $ac_f in
33368 -) ac_f="$tmp/stdin";;
33369 *) # Look for the file first in the build tree, then in the source tree
33370 # (if the path is not absolute). The absolute path cannot be DOS-style,
33371 # because $ac_f cannot contain `:'.
33372 test -f "$ac_f" ||
33373 case $ac_f in
33374 [\\/$]*) false;;
33375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33376 esac ||
cristy8b350f62009-11-15 23:12:43 +000033377 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033378 esac
33379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000033380 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000033381 done
33382
33383 # Let's still pretend it is `configure' which instantiates (i.e., don't
33384 # use $as_me), people would be surprised to read:
33385 # /* config.h. Generated by config.status. */
33386 configure_input='Generated from '`
33387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33388 `' by configure.'
33389 if test x"$ac_file" != x-; then
33390 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000033391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo "$as_me: creating $ac_file" >&6;}
33393 fi
33394 # Neutralize special characters interpreted by sed in replacement strings.
33395 case $configure_input in #(
33396 *\&* | *\|* | *\\* )
33397 ac_sed_conf_input=`$as_echo "$configure_input" |
33398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33399 *) ac_sed_conf_input=$configure_input;;
33400 esac
33401
33402 case $ac_tag in
33403 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000033404 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000033405 esac
33406 ;;
33407 esac
33408
33409 ac_dir=`$as_dirname -- "$ac_file" ||
33410$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33411 X"$ac_file" : 'X\(//\)[^/]' \| \
33412 X"$ac_file" : 'X\(//\)$' \| \
33413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33414$as_echo X"$ac_file" |
33415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33416 s//\1/
33417 q
33418 }
33419 /^X\(\/\/\)[^/].*/{
33420 s//\1/
33421 q
33422 }
33423 /^X\(\/\/\)$/{
33424 s//\1/
33425 q
33426 }
33427 /^X\(\/\).*/{
33428 s//\1/
33429 q
33430 }
33431 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033432 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033433 ac_builddir=.
33434
33435case "$ac_dir" in
33436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33437*)
33438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33439 # A ".." for each directory in $ac_dir_suffix.
33440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33441 case $ac_top_builddir_sub in
33442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33444 esac ;;
33445esac
33446ac_abs_top_builddir=$ac_pwd
33447ac_abs_builddir=$ac_pwd$ac_dir_suffix
33448# for backward compatibility:
33449ac_top_builddir=$ac_top_build_prefix
33450
33451case $srcdir in
33452 .) # We are building in place.
33453 ac_srcdir=.
33454 ac_top_srcdir=$ac_top_builddir_sub
33455 ac_abs_top_srcdir=$ac_pwd ;;
33456 [\\/]* | ?:[\\/]* ) # Absolute name.
33457 ac_srcdir=$srcdir$ac_dir_suffix;
33458 ac_top_srcdir=$srcdir
33459 ac_abs_top_srcdir=$srcdir ;;
33460 *) # Relative name.
33461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33462 ac_top_srcdir=$ac_top_build_prefix$srcdir
33463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33464esac
33465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33466
33467
33468 case $ac_mode in
33469 :F)
33470 #
33471 # CONFIG_FILE
33472 #
33473
33474 case $INSTALL in
33475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33477 esac
33478 ac_MKDIR_P=$MKDIR_P
33479 case $MKDIR_P in
33480 [\\/$]* | ?:[\\/]* ) ;;
33481 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33482 esac
33483_ACEOF
33484
33485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33486# If the template does not know about datarootdir, expand it.
33487# FIXME: This hack should be removed a few years after 2.60.
33488ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000033489ac_sed_dataroot='
33490/datarootdir/ {
33491 p
33492 q
33493}
33494/@datadir@/p
33495/@docdir@/p
33496/@infodir@/p
33497/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000033498/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000033499case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33500*datarootdir*) ac_datarootdir_seen=yes;;
33501*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33504_ACEOF
33505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33506 ac_datarootdir_hack='
33507 s&@datadir@&$datadir&g
33508 s&@docdir@&$docdir&g
33509 s&@infodir@&$infodir&g
33510 s&@localedir@&$localedir&g
33511 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000033512 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000033513esac
33514_ACEOF
33515
33516# Neutralize VPATH when `$srcdir' = `.'.
33517# Shell code in configure.ac might set extrasub.
33518# FIXME: do we really want to maintain this feature?
33519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33520ac_sed_extra="$ac_vpsub
33521$extrasub
33522_ACEOF
33523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33524:t
33525/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33526s|@configure_input@|$ac_sed_conf_input|;t t
33527s&@top_builddir@&$ac_top_builddir_sub&;t t
33528s&@top_build_prefix@&$ac_top_build_prefix&;t t
33529s&@srcdir@&$ac_srcdir&;t t
33530s&@abs_srcdir@&$ac_abs_srcdir&;t t
33531s&@top_srcdir@&$ac_top_srcdir&;t t
33532s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33533s&@builddir@&$ac_builddir&;t t
33534s&@abs_builddir@&$ac_abs_builddir&;t t
33535s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33536s&@INSTALL@&$ac_INSTALL&;t t
33537s&@MKDIR_P@&$ac_MKDIR_P&;t t
33538$ac_datarootdir_hack
33539"
33540eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000033541 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033542
33543test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000033546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000033547which seems to be undefined. Please make sure it is defined." >&5
33548$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33549which seems to be undefined. Please make sure it is defined." >&2;}
33550
33551 rm -f "$tmp/stdin"
33552 case $ac_file in
33553 -) cat "$tmp/out" && rm -f "$tmp/out";;
33554 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33555 esac \
cristy8b350f62009-11-15 23:12:43 +000033556 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033557 ;;
33558 :H)
33559 #
33560 # CONFIG_HEADER
33561 #
33562 if test x"$ac_file" != x-; then
33563 {
33564 $as_echo "/* $configure_input */" \
33565 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33566 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000033567 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033568 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000033569 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033570$as_echo "$as_me: $ac_file is unchanged" >&6;}
33571 else
33572 rm -f "$ac_file"
33573 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000033574 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033575 fi
33576 else
33577 $as_echo "/* $configure_input */" \
33578 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000033579 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033580 fi
33581# Compute "$ac_file"'s index in $config_headers.
33582_am_arg="$ac_file"
33583_am_stamp_count=1
33584for _am_header in $config_headers :; do
33585 case $_am_header in
33586 $_am_arg | $_am_arg:* )
33587 break ;;
33588 * )
33589 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33590 esac
33591done
33592echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33593$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33594 X"$_am_arg" : 'X\(//\)[^/]' \| \
33595 X"$_am_arg" : 'X\(//\)$' \| \
33596 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33597$as_echo X"$_am_arg" |
33598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33599 s//\1/
33600 q
33601 }
33602 /^X\(\/\/\)[^/].*/{
33603 s//\1/
33604 q
33605 }
33606 /^X\(\/\/\)$/{
33607 s//\1/
33608 q
33609 }
33610 /^X\(\/\).*/{
33611 s//\1/
33612 q
33613 }
33614 s/.*/./; q'`/stamp-h$_am_stamp_count
33615 ;;
33616
cristy8b350f62009-11-15 23:12:43 +000033617 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo "$as_me: executing $ac_file commands" >&6;}
33619 ;;
33620 esac
33621
33622
33623 case $ac_file$ac_mode in
33624 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
33625ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
33626ac_prefix_conf_PKG=`echo MagickCore`
33627ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
33628ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
33629ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
33630if test ".$ac_prefix_conf_INP" = "."; then
33631 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
33632 case "$ac_file" in
33633 *.h) ac_prefix_conf_INP=$ac_file ;;
33634 *)
33635 esac
33636 test ".$ac_prefix_conf_INP" != "." && break
33637 done
33638fi
33639if test ".$ac_prefix_conf_INP" = "."; then
33640 case "$ac_prefix_conf_OUT" in
33641 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
33642 ;;
33643 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
33644 ;;
33645 *) ac_prefix_conf_INP=config.h
33646 ;;
33647 esac
33648fi
33649if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000033650 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033651else
33652 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
33653 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
33654 fi fi
cristy8b350f62009-11-15 23:12:43 +000033655 { $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 +000033656$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
33657 if test -f $ac_prefix_conf_INP ; then
33658 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
33659 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
33660 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
33661 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
33662 echo "#endif/" >>conftest.prefix
33663 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
33664 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
33665 echo "#endif/" >> conftest.prefix
33666 # now executing _script on _DEF input to create _OUT output file
33667 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
33668 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
33669 echo ' ' >>$tmp/pconfig.h
33670 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
33671
33672 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
33673 echo ' ' >>$tmp/pconfig.h
33674 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
33675 echo "#endif" >>$tmp/pconfig.h
33676 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033677 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033678$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
33679 else
33680 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
33681$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33682 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
33683 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
33684 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
33685$as_echo X"$ac_prefix_conf_OUT" |
33686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33687 s//\1/
33688 q
33689 }
33690 /^X\(\/\/\)[^/].*/{
33691 s//\1/
33692 q
33693 }
33694 /^X\(\/\/\)$/{
33695 s//\1/
33696 q
33697 }
33698 /^X\(\/\).*/{
33699 s//\1/
33700 q
33701 }
33702 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033703 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033704 rm -f "$ac_prefix_conf_OUT"
33705 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
33706 fi
33707 cp conftest.prefix _configs.sed
33708 else
cristy8b350f62009-11-15 23:12:43 +000033709 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 +000033710 fi
33711 rm -f conftest.*
33712fi
33713 ;;
33714 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33715 # Autoconf 2.62 quotes --file arguments for eval, but not when files
33716 # are listed without --file. Let's play safe and only enable the eval
33717 # if we detect the quoting.
33718 case $CONFIG_FILES in
33719 *\'*) eval set x "$CONFIG_FILES" ;;
33720 *) set x $CONFIG_FILES ;;
33721 esac
33722 shift
33723 for mf
33724 do
33725 # Strip MF so we end up with the name of the file.
33726 mf=`echo "$mf" | sed -e 's/:.*$//'`
33727 # Check whether this is an Automake generated Makefile or not.
33728 # We used to match only the files named `Makefile.in', but
33729 # some people rename them; so instead we look at the file content.
33730 # Grep'ing the first line is not enough: some people post-process
33731 # each Makefile.in and add a new line on top of each file to say so.
33732 # Grep'ing the whole file is not good either: AIX grep has a line
33733 # limit of 2048, but all sed's we know have understand at least 4000.
33734 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33735 dirpart=`$as_dirname -- "$mf" ||
33736$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33737 X"$mf" : 'X\(//\)[^/]' \| \
33738 X"$mf" : 'X\(//\)$' \| \
33739 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33740$as_echo X"$mf" |
33741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33742 s//\1/
33743 q
33744 }
33745 /^X\(\/\/\)[^/].*/{
33746 s//\1/
33747 q
33748 }
33749 /^X\(\/\/\)$/{
33750 s//\1/
33751 q
33752 }
33753 /^X\(\/\).*/{
33754 s//\1/
33755 q
33756 }
33757 s/.*/./; q'`
33758 else
33759 continue
33760 fi
33761 # Extract the definition of DEPDIR, am__include, and am__quote
33762 # from the Makefile without running `make'.
33763 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33764 test -z "$DEPDIR" && continue
33765 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33766 test -z "am__include" && continue
33767 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33768 # When using ansi2knr, U may be empty or an underscore; expand it
33769 U=`sed -n 's/^U = //p' < "$mf"`
33770 # Find all dependency output files, they are included files with
33771 # $(DEPDIR) in their names. We invoke sed twice because it is the
33772 # simplest approach to changing $(DEPDIR) to its actual value in the
33773 # expansion.
33774 for file in `sed -n "
33775 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33776 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33777 # Make sure the directory exists.
33778 test -f "$dirpart/$file" && continue
33779 fdir=`$as_dirname -- "$file" ||
33780$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33781 X"$file" : 'X\(//\)[^/]' \| \
33782 X"$file" : 'X\(//\)$' \| \
33783 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33784$as_echo X"$file" |
33785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33786 s//\1/
33787 q
33788 }
33789 /^X\(\/\/\)[^/].*/{
33790 s//\1/
33791 q
33792 }
33793 /^X\(\/\/\)$/{
33794 s//\1/
33795 q
33796 }
33797 /^X\(\/\).*/{
33798 s//\1/
33799 q
33800 }
33801 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033802 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033803 # echo "creating $dirpart/$file"
33804 echo '# dummy' > "$dirpart/$file"
33805 done
33806 done
33807}
33808 ;;
33809 "libtool":C)
33810
33811 # See if we are running on zsh, and set the options which allow our
33812 # commands through without removal of \ escapes.
33813 if test -n "${ZSH_VERSION+set}" ; then
33814 setopt NO_GLOB_SUBST
33815 fi
33816
33817 cfgfile="${ofile}T"
33818 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33819 $RM "$cfgfile"
33820
33821 cat <<_LT_EOF >> "$cfgfile"
33822#! $SHELL
33823
33824# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33825# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33826# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33827# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33828#
33829# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033830# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033831# Written by Gordon Matzigkeit, 1996
33832#
33833# This file is part of GNU Libtool.
33834#
33835# GNU Libtool is free software; you can redistribute it and/or
33836# modify it under the terms of the GNU General Public License as
33837# published by the Free Software Foundation; either version 2 of
33838# the License, or (at your option) any later version.
33839#
33840# As a special exception to the GNU General Public License,
33841# if you distribute this file as part of a program or library that
33842# is built using GNU Libtool, you may include this file under the
33843# same distribution terms that you use for the rest of that program.
33844#
33845# GNU Libtool is distributed in the hope that it will be useful,
33846# but WITHOUT ANY WARRANTY; without even the implied warranty of
33847# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33848# GNU General Public License for more details.
33849#
33850# You should have received a copy of the GNU General Public License
33851# along with GNU Libtool; see the file COPYING. If not, a copy
33852# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33853# obtained by writing to the Free Software Foundation, Inc.,
33854# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33855
33856
33857# The names of the tagged configurations supported by this script.
33858available_tags="CXX "
33859
33860# ### BEGIN LIBTOOL CONFIG
33861
33862# A sed program that does not truncate output.
33863SED=$lt_SED
33864
33865# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33866Xsed="\$SED -e 1s/^X//"
33867
33868# A grep program that handles long lines.
33869GREP=$lt_GREP
33870
33871# An ERE matcher.
33872EGREP=$lt_EGREP
33873
33874# A literal string matcher.
33875FGREP=$lt_FGREP
33876
33877# Which release of libtool.m4 was used?
33878macro_version=$macro_version
33879macro_revision=$macro_revision
33880
33881# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033882AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033883
33884# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033885DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033886
33887# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033888OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033889
33890# Whether or not to build shared libraries.
33891build_libtool_libs=$enable_shared
33892
33893# Whether or not to build static libraries.
33894build_old_libs=$enable_static
33895
33896# What type of objects to build.
33897pic_mode=$pic_mode
33898
33899# Whether or not to optimize for fast installation.
33900fast_install=$enable_fast_install
33901
33902# The host system.
33903host_alias=$host_alias
33904host=$host
33905host_os=$host_os
33906
33907# The build system.
33908build_alias=$build_alias
33909build=$build
33910build_os=$build_os
33911
33912# A BSD- or MS-compatible name lister.
33913NM=$lt_NM
33914
33915# Whether we need soft or hard links.
33916LN_S=$lt_LN_S
33917
33918# What is the maximum length of a command?
33919max_cmd_len=$max_cmd_len
33920
33921# Object file suffix (normally "o").
33922objext=$ac_objext
33923
33924# Executable file suffix (normally "").
33925exeext=$exeext
33926
33927# whether the shell understands "unset".
33928lt_unset=$lt_unset
33929
33930# turn spaces into newlines.
33931SP2NL=$lt_lt_SP2NL
33932
33933# turn newlines into spaces.
33934NL2SP=$lt_lt_NL2SP
33935
cristy18304f92009-11-22 15:48:26 +000033936# How to create reloadable object files.
33937reload_flag=$lt_reload_flag
33938reload_cmds=$lt_reload_cmds
33939
cristy3ed852e2009-09-05 21:47:34 +000033940# Method to check whether dependent libraries are shared objects.
33941deplibs_check_method=$lt_deplibs_check_method
33942
33943# Command to use when deplibs_check_method == "file_magic".
33944file_magic_cmd=$lt_file_magic_cmd
33945
33946# The archiver.
33947AR=$lt_AR
33948AR_FLAGS=$lt_AR_FLAGS
33949
33950# A symbol stripping program.
33951STRIP=$lt_STRIP
33952
33953# Commands used to install an old-style archive.
33954RANLIB=$lt_RANLIB
33955old_postinstall_cmds=$lt_old_postinstall_cmds
33956old_postuninstall_cmds=$lt_old_postuninstall_cmds
33957
33958# A C compiler.
33959LTCC=$lt_CC
33960
33961# LTCC compiler flags.
33962LTCFLAGS=$lt_CFLAGS
33963
33964# Take the output of nm and produce a listing of raw symbols and C names.
33965global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33966
33967# Transform the output of nm in a proper C declaration.
33968global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33969
33970# Transform the output of nm in a C name address pair.
33971global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33972
33973# Transform the output of nm in a C name address pair when lib prefix is needed.
33974global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33975
33976# The name of the directory that contains temporary libtool files.
33977objdir=$objdir
33978
cristy18304f92009-11-22 15:48:26 +000033979# Shell to use when invoking shell scripts.
33980SHELL=$lt_SHELL
33981
33982# An echo program that does not interpret backslashes.
33983ECHO=$lt_ECHO
33984
cristy3ed852e2009-09-05 21:47:34 +000033985# Used to examine libraries when file_magic_cmd begins with "file".
33986MAGIC_CMD=$MAGIC_CMD
33987
33988# Must we lock files when doing compilation?
33989need_locks=$lt_need_locks
33990
33991# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33992DSYMUTIL=$lt_DSYMUTIL
33993
33994# Tool to change global to local symbols on Mac OS X.
33995NMEDIT=$lt_NMEDIT
33996
33997# Tool to manipulate fat objects and archives on Mac OS X.
33998LIPO=$lt_LIPO
33999
34000# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34001OTOOL=$lt_OTOOL
34002
34003# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34004OTOOL64=$lt_OTOOL64
34005
34006# Old archive suffix (normally "a").
34007libext=$libext
34008
34009# Shared library suffix (normally ".so").
34010shrext_cmds=$lt_shrext_cmds
34011
34012# The commands to extract the exported symbol list from a shared archive.
34013extract_expsyms_cmds=$lt_extract_expsyms_cmds
34014
34015# Variables whose values should be saved in libtool wrapper scripts and
34016# restored at link time.
34017variables_saved_for_relink=$lt_variables_saved_for_relink
34018
34019# Do we need the "lib" prefix for modules?
34020need_lib_prefix=$need_lib_prefix
34021
34022# Do we need a version for libraries?
34023need_version=$need_version
34024
34025# Library versioning type.
34026version_type=$version_type
34027
34028# Shared library runtime path variable.
34029runpath_var=$runpath_var
34030
34031# Shared library path variable.
34032shlibpath_var=$shlibpath_var
34033
34034# Is shlibpath searched before the hard-coded library search path?
34035shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34036
34037# Format of library name prefix.
34038libname_spec=$lt_libname_spec
34039
34040# List of archive names. First name is the real one, the rest are links.
34041# The last name is the one that the linker finds with -lNAME
34042library_names_spec=$lt_library_names_spec
34043
34044# The coded name of the library, if different from the real name.
34045soname_spec=$lt_soname_spec
34046
34047# Command to use after installation of a shared archive.
34048postinstall_cmds=$lt_postinstall_cmds
34049
34050# Command to use after uninstallation of a shared archive.
34051postuninstall_cmds=$lt_postuninstall_cmds
34052
34053# Commands used to finish a libtool library installation in a directory.
34054finish_cmds=$lt_finish_cmds
34055
34056# As "finish_cmds", except a single script fragment to be evaled but
34057# not shown.
34058finish_eval=$lt_finish_eval
34059
34060# Whether we should hardcode library paths into libraries.
34061hardcode_into_libs=$hardcode_into_libs
34062
34063# Compile-time system search path for libraries.
34064sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34065
34066# Run-time system search path for libraries.
34067sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34068
34069# Whether dlopen is supported.
34070dlopen_support=$enable_dlopen
34071
34072# Whether dlopen of programs is supported.
34073dlopen_self=$enable_dlopen_self
34074
34075# Whether dlopen of statically linked programs is supported.
34076dlopen_self_static=$enable_dlopen_self_static
34077
34078# Commands to strip libraries.
34079old_striplib=$lt_old_striplib
34080striplib=$lt_striplib
34081
34082
34083# The linker used to build libraries.
34084LD=$lt_LD
34085
34086# Commands used to build an old-style archive.
34087old_archive_cmds=$lt_old_archive_cmds
34088
34089# A language specific compiler.
34090CC=$lt_compiler
34091
34092# Is the compiler the GNU compiler?
34093with_gcc=$GCC
34094
34095# Compiler flag to turn off builtin functions.
34096no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34097
34098# How to pass a linker flag through the compiler.
34099wl=$lt_lt_prog_compiler_wl
34100
34101# Additional compiler flags for building library objects.
34102pic_flag=$lt_lt_prog_compiler_pic
34103
34104# Compiler flag to prevent dynamic linking.
34105link_static_flag=$lt_lt_prog_compiler_static
34106
34107# Does compiler simultaneously support -c and -o options?
34108compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34109
34110# Whether or not to add -lc for building shared libraries.
34111build_libtool_need_lc=$archive_cmds_need_lc
34112
34113# Whether or not to disallow shared libs when runtime libs are static.
34114allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34115
34116# Compiler flag to allow reflexive dlopens.
34117export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34118
34119# Compiler flag to generate shared objects directly from archives.
34120whole_archive_flag_spec=$lt_whole_archive_flag_spec
34121
34122# Whether the compiler copes with passing no objects directly.
34123compiler_needs_object=$lt_compiler_needs_object
34124
34125# Create an old-style archive from a shared archive.
34126old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34127
34128# Create a temporary old-style archive to link instead of a shared archive.
34129old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34130
34131# Commands used to build a shared archive.
34132archive_cmds=$lt_archive_cmds
34133archive_expsym_cmds=$lt_archive_expsym_cmds
34134
34135# Commands used to build a loadable module if different from building
34136# a shared archive.
34137module_cmds=$lt_module_cmds
34138module_expsym_cmds=$lt_module_expsym_cmds
34139
34140# Whether we are building with GNU ld or not.
34141with_gnu_ld=$lt_with_gnu_ld
34142
34143# Flag that allows shared libraries with undefined symbols to be built.
34144allow_undefined_flag=$lt_allow_undefined_flag
34145
34146# Flag that enforces no undefined symbols.
34147no_undefined_flag=$lt_no_undefined_flag
34148
34149# Flag to hardcode \$libdir into a binary during linking.
34150# This must work even if \$libdir does not exist
34151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34152
34153# If ld is used when linking, flag to hardcode \$libdir into a binary
34154# during linking. This must work even if \$libdir does not exist.
34155hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34156
34157# Whether we need a single "-rpath" flag with a separated argument.
34158hardcode_libdir_separator=$lt_hardcode_libdir_separator
34159
34160# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34161# DIR into the resulting binary.
34162hardcode_direct=$hardcode_direct
34163
34164# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34165# DIR into the resulting binary and the resulting library dependency is
34166# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34167# library is relocated.
34168hardcode_direct_absolute=$hardcode_direct_absolute
34169
34170# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34171# into the resulting binary.
34172hardcode_minus_L=$hardcode_minus_L
34173
34174# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34175# into the resulting binary.
34176hardcode_shlibpath_var=$hardcode_shlibpath_var
34177
34178# Set to "yes" if building a shared library automatically hardcodes DIR
34179# into the library and all subsequent libraries and executables linked
34180# against it.
34181hardcode_automatic=$hardcode_automatic
34182
34183# Set to yes if linker adds runtime paths of dependent libraries
34184# to runtime path list.
34185inherit_rpath=$inherit_rpath
34186
34187# Whether libtool must link a program against all its dependency libraries.
34188link_all_deplibs=$link_all_deplibs
34189
34190# Fix the shell variable \$srcfile for the compiler.
34191fix_srcfile_path=$lt_fix_srcfile_path
34192
34193# Set to "yes" if exported symbols are required.
34194always_export_symbols=$always_export_symbols
34195
34196# The commands to list exported symbols.
34197export_symbols_cmds=$lt_export_symbols_cmds
34198
34199# Symbols that should not be listed in the preloaded symbols.
34200exclude_expsyms=$lt_exclude_expsyms
34201
34202# Symbols that must always be exported.
34203include_expsyms=$lt_include_expsyms
34204
34205# Commands necessary for linking programs (against libraries) with templates.
34206prelink_cmds=$lt_prelink_cmds
34207
34208# Specify filename containing input files.
34209file_list_spec=$lt_file_list_spec
34210
34211# How to hardcode a shared library path into an executable.
34212hardcode_action=$hardcode_action
34213
34214# The directories searched by this compiler when creating a shared library.
34215compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34216
34217# Dependencies to place before and after the objects being linked to
34218# create a shared library.
34219predep_objects=$lt_predep_objects
34220postdep_objects=$lt_postdep_objects
34221predeps=$lt_predeps
34222postdeps=$lt_postdeps
34223
34224# The library search path used internally by the compiler when linking
34225# a shared library.
34226compiler_lib_search_path=$lt_compiler_lib_search_path
34227
34228# ### END LIBTOOL CONFIG
34229
34230_LT_EOF
34231
34232 case $host_os in
34233 aix3*)
34234 cat <<\_LT_EOF >> "$cfgfile"
34235# AIX sometimes has problems with the GCC collect2 program. For some
34236# reason, if we set the COLLECT_NAMES environment variable, the problems
34237# vanish in a puff of smoke.
34238if test "X${COLLECT_NAMES+set}" != Xset; then
34239 COLLECT_NAMES=
34240 export COLLECT_NAMES
34241fi
34242_LT_EOF
34243 ;;
34244 esac
34245
34246
34247ltmain="$ac_aux_dir/ltmain.sh"
34248
34249
34250 # We use sed instead of cat because bash on DJGPP gets confused if
34251 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34252 # text mode, it properly converts lines to CR/LF. This bash problem
34253 # is reportedly fixed, but why not run on old versions too?
34254 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34255 || (rm -f "$cfgfile"; exit 1)
34256
34257 case $xsi_shell in
34258 yes)
34259 cat << \_LT_EOF >> "$cfgfile"
34260
34261# func_dirname file append nondir_replacement
34262# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34263# otherwise set result to NONDIR_REPLACEMENT.
34264func_dirname ()
34265{
34266 case ${1} in
34267 */*) func_dirname_result="${1%/*}${2}" ;;
34268 * ) func_dirname_result="${3}" ;;
34269 esac
34270}
34271
34272# func_basename file
34273func_basename ()
34274{
34275 func_basename_result="${1##*/}"
34276}
34277
34278# func_dirname_and_basename file append nondir_replacement
34279# perform func_basename and func_dirname in a single function
34280# call:
34281# dirname: Compute the dirname of FILE. If nonempty,
34282# add APPEND to the result, otherwise set result
34283# to NONDIR_REPLACEMENT.
34284# value returned in "$func_dirname_result"
34285# basename: Compute filename of FILE.
34286# value retuned in "$func_basename_result"
34287# Implementation must be kept synchronized with func_dirname
34288# and func_basename. For efficiency, we do not delegate to
34289# those functions but instead duplicate the functionality here.
34290func_dirname_and_basename ()
34291{
34292 case ${1} in
34293 */*) func_dirname_result="${1%/*}${2}" ;;
34294 * ) func_dirname_result="${3}" ;;
34295 esac
34296 func_basename_result="${1##*/}"
34297}
34298
34299# func_stripname prefix suffix name
34300# strip PREFIX and SUFFIX off of NAME.
34301# PREFIX and SUFFIX must not contain globbing or regex special
34302# characters, hashes, percent signs, but SUFFIX may contain a leading
34303# dot (in which case that matches only a dot).
34304func_stripname ()
34305{
34306 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34307 # positional parameters, so assign one to ordinary parameter first.
34308 func_stripname_result=${3}
34309 func_stripname_result=${func_stripname_result#"${1}"}
34310 func_stripname_result=${func_stripname_result%"${2}"}
34311}
34312
34313# func_opt_split
34314func_opt_split ()
34315{
34316 func_opt_split_opt=${1%%=*}
34317 func_opt_split_arg=${1#*=}
34318}
34319
34320# func_lo2o object
34321func_lo2o ()
34322{
34323 case ${1} in
34324 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34325 *) func_lo2o_result=${1} ;;
34326 esac
34327}
34328
34329# func_xform libobj-or-source
34330func_xform ()
34331{
34332 func_xform_result=${1%.*}.lo
34333}
34334
34335# func_arith arithmetic-term...
34336func_arith ()
34337{
34338 func_arith_result=$(( $* ))
34339}
34340
34341# func_len string
34342# STRING may not start with a hyphen.
34343func_len ()
34344{
34345 func_len_result=${#1}
34346}
34347
34348_LT_EOF
34349 ;;
34350 *) # Bourne compatible functions.
34351 cat << \_LT_EOF >> "$cfgfile"
34352
34353# func_dirname file append nondir_replacement
34354# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34355# otherwise set result to NONDIR_REPLACEMENT.
34356func_dirname ()
34357{
34358 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000034359 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000034360 if test "X$func_dirname_result" = "X${1}"; then
34361 func_dirname_result="${3}"
34362 else
34363 func_dirname_result="$func_dirname_result${2}"
34364 fi
34365}
34366
34367# func_basename file
34368func_basename ()
34369{
cristy18304f92009-11-22 15:48:26 +000034370 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000034371}
34372
34373
34374# func_stripname prefix suffix name
34375# strip PREFIX and SUFFIX off of NAME.
34376# PREFIX and SUFFIX must not contain globbing or regex special
34377# characters, hashes, percent signs, but SUFFIX may contain a leading
34378# dot (in which case that matches only a dot).
34379# func_strip_suffix prefix name
34380func_stripname ()
34381{
34382 case ${2} in
cristy18304f92009-11-22 15:48:26 +000034383 .*) func_stripname_result=`$ECHO "X${3}" \
34384 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34385 *) func_stripname_result=`$ECHO "X${3}" \
34386 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000034387 esac
34388}
34389
34390# sed scripts:
34391my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34392my_sed_long_arg='1s/^-[^=]*=//'
34393
34394# func_opt_split
34395func_opt_split ()
34396{
cristy18304f92009-11-22 15:48:26 +000034397 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34398 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000034399}
34400
34401# func_lo2o object
34402func_lo2o ()
34403{
cristy18304f92009-11-22 15:48:26 +000034404 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000034405}
34406
34407# func_xform libobj-or-source
34408func_xform ()
34409{
cristy18304f92009-11-22 15:48:26 +000034410 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000034411}
34412
34413# func_arith arithmetic-term...
34414func_arith ()
34415{
34416 func_arith_result=`expr "$@"`
34417}
34418
34419# func_len string
34420# STRING may not start with a hyphen.
34421func_len ()
34422{
34423 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34424}
34425
34426_LT_EOF
34427esac
34428
34429case $lt_shell_append in
34430 yes)
34431 cat << \_LT_EOF >> "$cfgfile"
34432
34433# func_append var value
34434# Append VALUE to the end of shell variable VAR.
34435func_append ()
34436{
34437 eval "$1+=\$2"
34438}
34439_LT_EOF
34440 ;;
34441 *)
34442 cat << \_LT_EOF >> "$cfgfile"
34443
34444# func_append var value
34445# Append VALUE to the end of shell variable VAR.
34446func_append ()
34447{
34448 eval "$1=\$$1\$2"
34449}
34450
34451_LT_EOF
34452 ;;
34453 esac
34454
34455
34456 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34457 || (rm -f "$cfgfile"; exit 1)
34458
34459 mv -f "$cfgfile" "$ofile" ||
34460 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34461 chmod +x "$ofile"
34462
34463
34464 cat <<_LT_EOF >> "$ofile"
34465
34466# ### BEGIN LIBTOOL TAG CONFIG: CXX
34467
34468# The linker used to build libraries.
34469LD=$lt_LD_CXX
34470
34471# Commands used to build an old-style archive.
34472old_archive_cmds=$lt_old_archive_cmds_CXX
34473
34474# A language specific compiler.
34475CC=$lt_compiler_CXX
34476
34477# Is the compiler the GNU compiler?
34478with_gcc=$GCC_CXX
34479
34480# Compiler flag to turn off builtin functions.
34481no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34482
34483# How to pass a linker flag through the compiler.
34484wl=$lt_lt_prog_compiler_wl_CXX
34485
34486# Additional compiler flags for building library objects.
34487pic_flag=$lt_lt_prog_compiler_pic_CXX
34488
34489# Compiler flag to prevent dynamic linking.
34490link_static_flag=$lt_lt_prog_compiler_static_CXX
34491
34492# Does compiler simultaneously support -c and -o options?
34493compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34494
34495# Whether or not to add -lc for building shared libraries.
34496build_libtool_need_lc=$archive_cmds_need_lc_CXX
34497
34498# Whether or not to disallow shared libs when runtime libs are static.
34499allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34500
34501# Compiler flag to allow reflexive dlopens.
34502export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34503
34504# Compiler flag to generate shared objects directly from archives.
34505whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34506
34507# Whether the compiler copes with passing no objects directly.
34508compiler_needs_object=$lt_compiler_needs_object_CXX
34509
34510# Create an old-style archive from a shared archive.
34511old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34512
34513# Create a temporary old-style archive to link instead of a shared archive.
34514old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34515
34516# Commands used to build a shared archive.
34517archive_cmds=$lt_archive_cmds_CXX
34518archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34519
34520# Commands used to build a loadable module if different from building
34521# a shared archive.
34522module_cmds=$lt_module_cmds_CXX
34523module_expsym_cmds=$lt_module_expsym_cmds_CXX
34524
34525# Whether we are building with GNU ld or not.
34526with_gnu_ld=$lt_with_gnu_ld_CXX
34527
34528# Flag that allows shared libraries with undefined symbols to be built.
34529allow_undefined_flag=$lt_allow_undefined_flag_CXX
34530
34531# Flag that enforces no undefined symbols.
34532no_undefined_flag=$lt_no_undefined_flag_CXX
34533
34534# Flag to hardcode \$libdir into a binary during linking.
34535# This must work even if \$libdir does not exist
34536hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34537
34538# If ld is used when linking, flag to hardcode \$libdir into a binary
34539# during linking. This must work even if \$libdir does not exist.
34540hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34541
34542# Whether we need a single "-rpath" flag with a separated argument.
34543hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34544
34545# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34546# DIR into the resulting binary.
34547hardcode_direct=$hardcode_direct_CXX
34548
34549# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34550# DIR into the resulting binary and the resulting library dependency is
34551# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34552# library is relocated.
34553hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34554
34555# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34556# into the resulting binary.
34557hardcode_minus_L=$hardcode_minus_L_CXX
34558
34559# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34560# into the resulting binary.
34561hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34562
34563# Set to "yes" if building a shared library automatically hardcodes DIR
34564# into the library and all subsequent libraries and executables linked
34565# against it.
34566hardcode_automatic=$hardcode_automatic_CXX
34567
34568# Set to yes if linker adds runtime paths of dependent libraries
34569# to runtime path list.
34570inherit_rpath=$inherit_rpath_CXX
34571
34572# Whether libtool must link a program against all its dependency libraries.
34573link_all_deplibs=$link_all_deplibs_CXX
34574
34575# Fix the shell variable \$srcfile for the compiler.
34576fix_srcfile_path=$lt_fix_srcfile_path_CXX
34577
34578# Set to "yes" if exported symbols are required.
34579always_export_symbols=$always_export_symbols_CXX
34580
34581# The commands to list exported symbols.
34582export_symbols_cmds=$lt_export_symbols_cmds_CXX
34583
34584# Symbols that should not be listed in the preloaded symbols.
34585exclude_expsyms=$lt_exclude_expsyms_CXX
34586
34587# Symbols that must always be exported.
34588include_expsyms=$lt_include_expsyms_CXX
34589
34590# Commands necessary for linking programs (against libraries) with templates.
34591prelink_cmds=$lt_prelink_cmds_CXX
34592
34593# Specify filename containing input files.
34594file_list_spec=$lt_file_list_spec_CXX
34595
34596# How to hardcode a shared library path into an executable.
34597hardcode_action=$hardcode_action_CXX
34598
34599# The directories searched by this compiler when creating a shared library.
34600compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34601
34602# Dependencies to place before and after the objects being linked to
34603# create a shared library.
34604predep_objects=$lt_predep_objects_CXX
34605postdep_objects=$lt_postdep_objects_CXX
34606predeps=$lt_predeps_CXX
34607postdeps=$lt_postdeps_CXX
34608
34609# The library search path used internally by the compiler when linking
34610# a shared library.
34611compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34612
34613# ### END LIBTOOL TAG CONFIG: CXX
34614_LT_EOF
34615
34616 ;;
34617 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
34618 "Magick-config.in":C) chmod +x magick/Magick-config ;;
34619 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
34620 "Wand-config.in":C) chmod +x wand/Wand-config ;;
34621 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
34622 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
34623
34624 esac
34625done # for ac_tag
34626
34627
cristy8b350f62009-11-15 23:12:43 +000034628as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000034629_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000034630ac_clean_files=$ac_clean_files_save
34631
34632test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000034633 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034634
34635
34636# configure is writing to config.log, and then calls config.status.
34637# config.status does its own redirection, appending to config.log.
34638# Unfortunately, on DOS this fails, as config.log is still kept open
34639# by configure, so config.status won't be able to write to it; its
34640# output is simply discarded. So we exec the FD to /dev/null,
34641# effectively closing config.log, so it can be properly (re)opened and
34642# appended to by config.status. When coming back to configure, we
34643# need to make the FD available again.
34644if test "$no_create" != yes; then
34645 ac_cs_success=:
34646 ac_config_status_args=
34647 test "$silent" = yes &&
34648 ac_config_status_args="$ac_config_status_args --quiet"
34649 exec 5>/dev/null
34650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34651 exec 5>>config.log
34652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34653 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000034654 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000034655fi
34656if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000034657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000034658$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34659fi
34660
34661
34662rm -f magick-version
34663
cristy430a7312010-01-21 20:44:04 +000034664result_dejavu_font_dir='none'
34665if test "${dejavu_font_dir}x" != 'x'; then
34666 result_dejavu_font_dir=$dejavu_font_dir
34667fi
34668
cristy3ed852e2009-09-05 21:47:34 +000034669result_ghostscript_font_dir='none'
34670if test "${ghostscript_font_dir}x" != 'x'; then
34671 result_ghostscript_font_dir=$ghostscript_font_dir
34672fi
34673
34674result_windows_font_dir='none'
34675if test "${windows_font_dir}x" != 'x'; then
34676 result_windows_font_dir=${windows_font_dir}
34677fi
34678
cristy8b350f62009-11-15 23:12:43 +000034679{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000034680ImageMagick is configured as follows. Please verify that this configuration
34681matches your expectations.
34682
34683Host system type: $host
34684Build system type: $build
34685
34686 Option Value
34687-------------------------------------------------------------------------------
34688Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34689Static libraries --enable-static=$enable_static $libtool_build_static_libs
34690Module support --with-modules=$with_modules $with_modules
34691GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34692Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34693High Dynamic Range Imagery
34694 --enable-hdri=$enable_hdri $enable_hdri
34695
34696Delegate Configuration:
34697BZLIB --with-bzlib=$with_bzlib $have_bzlib
34698Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000034699Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000034700DJVU --with-djvu=$with_djvu $have_djvu
34701DPS --with-dps=$with_dps $have_dps
34702FFTW --with-fftw=$with_fftw $have_fftw
34703FlashPIX --with-fpx=$with_fpx $have_fpx
34704FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34705FreeType --with-freetype=$with_freetype $have_freetype
34706GhostPCL None $PCLDelegate ($PCLVersion)
34707GhostXPS None $XPSDelegate ($XPSVersion)
34708Ghostscript None $PSDelegate ($GSVersion)
34709Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34710Ghostscript lib --with-gslib=$with_gslib $have_gslib
34711Graphviz --with-gvc=$with_gvc $have_gvc
34712JBIG --with-jbig=$with_jbig $have_jbig
34713JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34714JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34715LCMS --with-lcms=$with_lcms $have_lcms
34716LQR --with-lqr=$with_lqr $have_lqr
34717Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34718OpenEXR --with-openexr=$with_openexr $have_openexr
34719PERL --with-perl=$with_perl $have_perl
34720PNG --with-png=$with_png $have_png
34721RSVG --with-rsvg=$with_rsvg $have_rsvg
34722TIFF --with-tiff=$with_tiff $have_tiff
34723Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34724WMF --with-wmf=$with_wmf $have_wmf
34725X11 --with-x=$with_x $have_x
34726XML --with-xml=$with_xml $have_xml
34727ZLIB --with-zlib=$with_zlib $have_zlib
34728
34729X11 Configuration:
34730 X_CFLAGS = $X_CFLAGS
34731 X_PRE_LIBS = $X_PRE_LIBS
34732 X_LIBS = $X_LIBS
34733 X_EXTRA_LIBS = $X_EXTRA_LIBS
34734
34735Options used to compile and link:
34736 PREFIX = $PREFIX_DIR
34737 EXEC-PREFIX = $EXEC_PREFIX_DIR
34738 VERSION = $PACKAGE_VERSION
34739 CC = $CC
34740 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034741 CPPFLAGS = $MAGICK_CPPFLAGS
34742 PCFLAGS = $MAGICK_PCFLAGS
34743 DEFS = $DEFS
34744 LDFLAGS = $LDFLAGS
34745 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34746 LIBS = $MAGICK_LIBS
34747 CXX = $CXX
34748 CXXFLAGS = $CXXFLAGS
34749" >&5
34750$as_echo "
34751ImageMagick is configured as follows. Please verify that this configuration
34752matches your expectations.
34753
34754Host system type: $host
34755Build system type: $build
34756
34757 Option Value
34758-------------------------------------------------------------------------------
34759Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34760Static libraries --enable-static=$enable_static $libtool_build_static_libs
34761Module support --with-modules=$with_modules $with_modules
34762GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34763Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34764High Dynamic Range Imagery
34765 --enable-hdri=$enable_hdri $enable_hdri
34766
34767Delegate Configuration:
34768BZLIB --with-bzlib=$with_bzlib $have_bzlib
34769Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000034770Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000034771DJVU --with-djvu=$with_djvu $have_djvu
34772DPS --with-dps=$with_dps $have_dps
34773FFTW --with-fftw=$with_fftw $have_fftw
34774FlashPIX --with-fpx=$with_fpx $have_fpx
34775FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34776FreeType --with-freetype=$with_freetype $have_freetype
34777GhostPCL None $PCLDelegate ($PCLVersion)
34778GhostXPS None $XPSDelegate ($XPSVersion)
34779Ghostscript None $PSDelegate ($GSVersion)
34780Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34781Ghostscript lib --with-gslib=$with_gslib $have_gslib
34782Graphviz --with-gvc=$with_gvc $have_gvc
34783JBIG --with-jbig=$with_jbig $have_jbig
34784JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34785JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34786LCMS --with-lcms=$with_lcms $have_lcms
34787LQR --with-lqr=$with_lqr $have_lqr
34788Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34789OpenEXR --with-openexr=$with_openexr $have_openexr
34790PERL --with-perl=$with_perl $have_perl
34791PNG --with-png=$with_png $have_png
34792RSVG --with-rsvg=$with_rsvg $have_rsvg
34793TIFF --with-tiff=$with_tiff $have_tiff
34794Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34795WMF --with-wmf=$with_wmf $have_wmf
34796X11 --with-x=$with_x $have_x
34797XML --with-xml=$with_xml $have_xml
34798ZLIB --with-zlib=$with_zlib $have_zlib
34799
34800X11 Configuration:
34801 X_CFLAGS = $X_CFLAGS
34802 X_PRE_LIBS = $X_PRE_LIBS
34803 X_LIBS = $X_LIBS
34804 X_EXTRA_LIBS = $X_EXTRA_LIBS
34805
34806Options used to compile and link:
34807 PREFIX = $PREFIX_DIR
34808 EXEC-PREFIX = $EXEC_PREFIX_DIR
34809 VERSION = $PACKAGE_VERSION
34810 CC = $CC
34811 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034812 CPPFLAGS = $MAGICK_CPPFLAGS
34813 PCFLAGS = $MAGICK_PCFLAGS
34814 DEFS = $DEFS
34815 LDFLAGS = $LDFLAGS
34816 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34817 LIBS = $MAGICK_LIBS
34818 CXX = $CXX
34819 CXXFLAGS = $CXXFLAGS
34820" >&6; }