blob: b21ce0475a0f8078cc2715a6e7ff34d5a5bd9dac [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy89effd22009-11-24 20:56:45 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.5.8.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy18304f92009-11-22 15:48:26 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +0000536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
cristy3ed852e2009-09-05 21:47:34 +0000681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristy89effd22009-11-24 20:56:45 +0000708PACKAGE_VERSION='6.5.8'
709PACKAGE_STRING='ImageMagick 6.5.8'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
776GSVersion
777GSPSDevice
778GSPDFDevice
779GSMonoDevice
780GSEPSDevice
781GSColorDevice
782GSCMYKDevice
783GSAlphaDevice
784XPSVersion
785XPSCMYKDevice
786XPSColorDevice
787XPSMonoDevice
788PCLVersion
789PCLCMYKDevice
790PCLColorDevice
791PCLMonoDevice
792ZIP_DELEGATE_FALSE
793ZIP_DELEGATE_TRUE
794ZIP
795P7ZIP_DELEGATE_FALSE
796P7ZIP_DELEGATE_TRUE
797P7ZIP
798RPM_DELEGATE_FALSE
799RPM_DELEGATE_TRUE
800RPM
801PERL
802TAR
803ShowImageDelegate
804type_include_files
805ghostscript_font_dir
806windows_font_dir
807PrintDelegate
808ZipDelegate
809XPSDelegate
810WWWDecodeDelegate
811WMFDecodeDelegate
812TXTDelegate
813SCANDecodeDelegate
814RMDelegate
815RLEEncodeDelegate
816PSDelegate
817POVDelegate
818PGPDecodeDelegate
819PCLDelegate
820MVDelegate
821MPEGEncodeDelegate
822MPEGDecodeDelegate
823MANDelegate
824LaunchDelegate
825LZWEncodeDelegate
826LZWDecodeDelegate
827LPRDelegate
828LPDelegate
829ILBMEncodeDelegate
830ILBMDecodeDelegate
831HTMLDecodeDelegate
832HPGLDecodeDelegate
833HDRDecodeDelegate
834GnuplotDecodeDelegate
835MogrifyDelegate
836DisplayDelegate
837ConvertDelegate
838FIGDecodeDelegate
839EditorDelegate
840EchoDelegate
841DVIDecodeDelegate
842GVCDecodeDelegate
843DNGDecodeDelegate
844CatDelegate
845CGMDecodeDelegate
846BrowseDelegate
847BZIPDelegate
848BlenderDecodeDelegate
849AVIDecodeDelegate
850AutotraceDecodeDelegate
851SHARE_CONFIGURE_PATH
852SHARE_PATH
853DOCUMENTATION_PATH
854FILTER_PATH
855CODER_PATH
856CONFIGURE_PATH
857LIBRARY_PATH
858EXECUTABLE_PATH
859PERLMAINCC
860XML_LIBS
861XML_DELEGATE_FALSE
862XML_DELEGATE_TRUE
863xml2_config
864WMF_LIBS_DEPS
865WMF_LIBS
866WMF_DELEGATE_FALSE
867WMF_DELEGATE_TRUE
868TIFF_LIBS
869TIFF_DELEGATE_FALSE
870TIFF_DELEGATE_TRUE
871CAIRO_DELEGATE_FALSE
872CAIRO_DELEGATE_TRUE
873RSVG_DELEGATE_FALSE
874RSVG_DELEGATE_TRUE
875CAIRO_SVG_LIBS
876CAIRO_SVG_CFLAGS
877RSVG_LIBS
878RSVG_CFLAGS
879PNG_LIBS
880PNG_DELEGATE_FALSE
881PNG_DELEGATE_TRUE
882OPENEXR_DELEGATE_FALSE
883OPENEXR_DELEGATE_TRUE
884OPENEXR_LIBS
885OPENEXR_CFLAGS
886LQR_DELEGATE_FALSE
887LQR_DELEGATE_TRUE
888LQR_LIBS
889LQR_CFLAGS
890LCMS_LIBS
891LCMS_DELEGATE_FALSE
892LCMS_DELEGATE_TRUE
893JP2_LIBS
894JP2_DELEGATE_FALSE
895JP2_DELEGATE_TRUE
896JPEG_LIBS
897JPEG_DELEGATE_FALSE
898JPEG_DELEGATE_TRUE
899JBIG_LIBS
900JBIG_DELEGATE_FALSE
901JBIG_DELEGATE_TRUE
902GVC_DELEGATE_FALSE
903GVC_DELEGATE_TRUE
904GVC_LIBS
905GVC_CFLAGS
906GS_LIBS
907GS_DELEGATE_FALSE
908GS_DELEGATE_TRUE
909FREETYPE_LIBS
910FREETYPE_DELEGATE_FALSE
911FREETYPE_DELEGATE_TRUE
912freetype_config
913FONTCONFIG_DELEGATE_FALSE
914FONTCONFIG_DELEGATE_TRUE
915FONTCONFIG_LIBS
916FONTCONFIG_CFLAGS
917FPX_LIBS
918FPX_DELEGATE_FALSE
919FPX_DELEGATE_TRUE
920FFTW_LIBS
921FFTW_DELEGATE_FALSE
922FFTW_DELEGATE_TRUE
923DJVU_LIBS
924DJVU_DELEGATE_FALSE
925DJVU_DELEGATE_TRUE
926DPS_LIBS
927DPS_DELEGATE_FALSE
928DPS_DELEGATE_TRUE
929AUTOTRACE_DELEGATE_FALSE
930AUTOTRACE_DELEGATE_TRUE
931AUTOTRACE_LIBS
932AUTOTRACE_CFLAGS
933LIB_DL
934ZLIB_LIBS
935ZLIB_DELEGATE_FALSE
936ZLIB_DELEGATE_TRUE
937XEXT_LIBS
938X11_LIBS
939X11_DELEGATE_FALSE
940X11_DELEGATE_TRUE
941X_EXTRA_LIBS
942X_LIBS
943X_PRE_LIBS
944X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000945XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000946BZLIB_LIBS
947BZLIB_DELEGATE_FALSE
948BZLIB_DELEGATE_TRUE
949MATH_LIBS
950CCMALLOCDelegate
951UMEM_LIBS
952HasUMEM_FALSE
953HasUMEM_TRUE
954THREAD_LIBS
955GOMP_LIBS
956WITH_MAGICK_PLUS_PLUS_FALSE
957WITH_MAGICK_PLUS_PLUS_TRUE
958OPENMP_CXXFLAGS
959POW_LIB
960LIBOBJS
961UINTPTR_T
962UINTMAX_T
963UINT64_T
964INT64_T
965UINT32_T
966INT32_T
967UINT16_T
968INT16_T
969UINT8_T
970INT8_T
971LIBRARY_EXTRA_CPPFLAGS
972MODULE_EXTRA_CPPFLAGS
973LIBSTDCLDFLAGS
974PERL_MAKE_OPTIONS
975QUANTUM_DEPTH
976MAINT
977MAINTAINER_MODE_FALSE
978MAINTAINER_MODE_TRUE
979MAGICK_HDRI
980DLLDFLAGS
981WITH_LTDL_FALSE
982WITH_LTDL_TRUE
983WITH_MODULES_FALSE
984WITH_MODULES_TRUE
985LTCXXLIBOPTS
986LTDLOPEN
987LT_CONFIG_H
988CONVENIENCE_LTDL_FALSE
989CONVENIENCE_LTDL_TRUE
990INSTALL_LTDL_FALSE
991INSTALL_LTDL_TRUE
992ARGZ_H
993sys_symbol_underscore
994LIBADD_DL
995LT_DLPREOPEN
996LIBADD_DLD_LINK
997LIBADD_SHL_LOAD
998LIBADD_DLOPEN
999LT_DLLOADERS
1000INCLTDL
1001LTDLINCL
1002LTDLDEPS
1003LIBLTDL
1004LIBTOOL_DEPS
1005CXXCPP
1006OTOOL64
1007OTOOL
1008LIPO
1009NMEDIT
1010DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001011lt_ECHO
cristy3ed852e2009-09-05 21:47:34 +00001012AR
1013NM
1014ac_ct_DUMPBIN
1015DUMPBIN
1016LIBTOOL
1017OBJDUMP
1018DLLTOOL
1019AS
1020LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001021CL_LIBS
1022CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001023OPENMP_CFLAGS
1024PTHREAD_CFLAGS
1025PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001026PTHREAD_CC
1027acx_pthread_config
1028WinPathScript
1029USING_CL_FALSE
1030USING_CL_TRUE
1031CYGWIN_BUILD_FALSE
1032CYGWIN_BUILD_TRUE
1033WIN32_NATIVE_BUILD_FALSE
1034WIN32_NATIVE_BUILD_TRUE
1035WINGDI32_DELEGATE_FALSE
1036WINGDI32_DELEGATE_TRUE
1037GDI32_LIBS
1038PKG_CONFIG
1039LN_S
cristy3ed852e2009-09-05 21:47:34 +00001040RANLIB
1041LD
1042FGREP
1043EGREP
1044GREP
1045SED
1046CPP
cristy95646052009-11-28 23:05:30 +00001047am__fastdepCXX_FALSE
1048am__fastdepCXX_TRUE
1049CXXDEPMODE
1050ac_ct_CXX
1051CXXFLAGS
1052CXX
cristy3ed852e2009-09-05 21:47:34 +00001053am__fastdepCC_FALSE
1054am__fastdepCC_TRUE
1055CCDEPMODE
1056AMDEPBACKSLASH
1057AMDEP_FALSE
1058AMDEP_TRUE
1059am__quote
1060am__include
1061DEPDIR
1062OBJEXT
1063EXEEXT
1064ac_ct_CC
1065CPPFLAGS
1066LDFLAGS
1067CFLAGS
1068CC
1069DIRSEP
1070MAGICK_FILTER_MODULE_PATH
1071MAGICK_CONFIGURE_BUILD_PATH
1072MAGICK_CONFIGURE_SRC_PATH
1073MAGICK_CODER_MODULE_PATH
1074MAN_DIR
1075INFO_DIR
1076PERSISTINCLUDE_DIR
1077INCLUDE_DIR
1078LIB_DIR
1079LOCALSTATE_DIR
1080SHAREDSTATE_DIR
1081SYSCONF_DIR
1082DATA_DIR
1083LIBEXEC_DIR
1084SBIN_DIR
1085BIN_DIR
1086EXEC_PREFIX_DIR
1087PREFIX_DIR
1088CONFIG_STATUS_DEPENDENCIES
1089MAGICK_LIB_VERSION_NUMBER
1090MAGICK_LIB_VERSION_TEXT
1091MAGICK_LIB_VERSION
1092AM_BACKSLASH
1093AM_DEFAULT_VERBOSITY
1094am__untar
1095am__tar
1096AMTAR
1097am__leading_dot
1098SET_MAKE
1099AWK
1100mkdir_p
1101MKDIR_P
1102INSTALL_STRIP_PROGRAM
1103STRIP
1104install_sh
1105MAKEINFO
1106AUTOHEADER
1107AUTOMAKE
1108AUTOCONF
1109ACLOCAL
1110VERSION
1111PACKAGE
1112CYGPATH_W
1113am__isrc
1114INSTALL_DATA
1115INSTALL_SCRIPT
1116INSTALL_PROGRAM
1117PACKAGE_LIB_SUBVERSION
1118PACKAGE_RELEASE_DATE
1119PACKAGE_LIB_VERSION_NUMBER
1120PACKAGE_LIB_VERSION
1121PACKAGE_CHANGE_DATE
1122PACKAGE_RELEASE
1123MAGICK_LIBRARY_AGE
1124MAGICK_LIBRARY_REVISION
1125MAGICK_LIBRARY_CURRENT
1126target_os
1127target_vendor
1128target_cpu
1129target
1130host_os
1131host_vendor
1132host_cpu
1133host
1134build_os
1135build_vendor
1136build_cpu
1137build
1138CONFIGURE_ARGS
1139DISTCHECK_CONFIG_FLAGS
1140target_alias
1141host_alias
1142build_alias
1143LIBS
1144ECHO_T
1145ECHO_N
1146ECHO_C
1147DEFS
1148mandir
1149localedir
1150libdir
1151psdir
1152pdfdir
1153dvidir
1154htmldir
1155infodir
1156docdir
1157oldincludedir
1158includedir
1159localstatedir
1160sharedstatedir
1161sysconfdir
1162datadir
1163datarootdir
1164libexecdir
1165sbindir
1166bindir
1167program_transform_name
1168prefix
1169exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001170PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001171PACKAGE_BUGREPORT
1172PACKAGE_STRING
1173PACKAGE_VERSION
1174PACKAGE_TARNAME
1175PACKAGE_NAME
1176PATH_SEPARATOR
1177SHELL'
1178ac_subst_files=''
1179ac_user_opts='
1180enable_option_checking
1181enable_silent_rules
1182enable_dependency_tracking
1183with_gnu_ld
1184with_maximum_compile_warnings
1185with_dmalloc
1186enable_bounds_checking
1187enable_osx_universal_binary
1188with_threads
1189enable_openmp
1190enable_largefile
1191enable_shared
1192enable_static
1193with_pic
1194enable_fast_install
1195enable_libtool_lock
1196with_included_ltdl
1197with_ltdl_include
1198with_ltdl_lib
1199enable_ltdl_install
1200with_modules
1201enable_delegate_build
1202enable_deprecated
1203enable_installed
1204enable_cipher
1205enable_embeddable
1206enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001207enable_assert
1208enable_maintainer_mode
1209enable_ccmalloc
1210enable_efence
1211enable_prof
1212enable_gprof
1213enable_gcov
1214with_method_prefix
1215with_quantum_depth
1216with_cache
1217with_frozenpaths
1218with_magick_plus_plus
1219with_perl
1220with_perl_options
1221with_umem
1222with_libstdc
1223with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001224with_x
cristy3ed852e2009-09-05 21:47:34 +00001225with_zlib
1226with_autotrace
1227with_dps
1228with_djvu
1229with_fftw
1230with_fpx
1231with_fontconfig
1232with_freetype
1233with_gslib
1234with_fontpath
1235with_gs_font_dir
1236with_gvc
1237with_jbig
1238with_jpeg
1239with_jp2
1240with_lcms
1241with_lqr
1242with_openexr
1243with_png
1244with_rsvg
1245with_tiff
1246with_windows_font_dir
1247with_wmf
1248with_xml
1249'
1250 ac_precious_vars='build_alias
1251host_alias
1252target_alias
1253CC
1254CFLAGS
1255LDFLAGS
1256LIBS
1257CPPFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001258CXX
1259CXXFLAGS
1260CCC
cristy95646052009-11-28 23:05:30 +00001261CPP
cristy3ed852e2009-09-05 21:47:34 +00001262PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001263CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001264XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001265AUTOTRACE_CFLAGS
1266AUTOTRACE_LIBS
1267FONTCONFIG_CFLAGS
1268FONTCONFIG_LIBS
1269GVC_CFLAGS
1270GVC_LIBS
1271LQR_CFLAGS
1272LQR_LIBS
1273OPENEXR_CFLAGS
1274OPENEXR_LIBS
1275RSVG_CFLAGS
1276RSVG_LIBS
1277CAIRO_SVG_CFLAGS
1278CAIRO_SVG_LIBS'
1279
1280
1281# Initialize some variables set by options.
1282ac_init_help=
1283ac_init_version=false
1284ac_unrecognized_opts=
1285ac_unrecognized_sep=
1286# The variables have the same names as the options, with
1287# dashes changed to underlines.
1288cache_file=/dev/null
1289exec_prefix=NONE
1290no_create=
1291no_recursion=
1292prefix=NONE
1293program_prefix=NONE
1294program_suffix=NONE
1295program_transform_name=s,x,x,
1296silent=
1297site=
1298srcdir=
1299verbose=
1300x_includes=NONE
1301x_libraries=NONE
1302
1303# Installation directory options.
1304# These are left unexpanded so users can "make install exec_prefix=/foo"
1305# and all the variables that are supposed to be based on exec_prefix
1306# by default will actually change.
1307# Use braces instead of parens because sh, perl, etc. also accept them.
1308# (The list follows the same order as the GNU Coding Standards.)
1309bindir='${exec_prefix}/bin'
1310sbindir='${exec_prefix}/sbin'
1311libexecdir='${exec_prefix}/libexec'
1312datarootdir='${prefix}/share'
1313datadir='${datarootdir}'
1314sysconfdir='${prefix}/etc'
1315sharedstatedir='${prefix}/com'
1316localstatedir='${prefix}/var'
1317includedir='${prefix}/include'
1318oldincludedir='/usr/include'
1319docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1320infodir='${datarootdir}/info'
1321htmldir='${docdir}'
1322dvidir='${docdir}'
1323pdfdir='${docdir}'
1324psdir='${docdir}'
1325libdir='${exec_prefix}/lib'
1326localedir='${datarootdir}/locale'
1327mandir='${datarootdir}/man'
1328
1329ac_prev=
1330ac_dashdash=
1331for ac_option
1332do
1333 # If the previous option needs an argument, assign it.
1334 if test -n "$ac_prev"; then
1335 eval $ac_prev=\$ac_option
1336 ac_prev=
1337 continue
1338 fi
1339
1340 case $ac_option in
1341 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1342 *) ac_optarg=yes ;;
1343 esac
1344
1345 # Accept the important Cygnus configure options, so we can diagnose typos.
1346
1347 case $ac_dashdash$ac_option in
1348 --)
1349 ac_dashdash=yes ;;
1350
1351 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1352 ac_prev=bindir ;;
1353 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1354 bindir=$ac_optarg ;;
1355
1356 -build | --build | --buil | --bui | --bu)
1357 ac_prev=build_alias ;;
1358 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1359 build_alias=$ac_optarg ;;
1360
1361 -cache-file | --cache-file | --cache-fil | --cache-fi \
1362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1363 ac_prev=cache_file ;;
1364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1366 cache_file=$ac_optarg ;;
1367
1368 --config-cache | -C)
1369 cache_file=config.cache ;;
1370
1371 -datadir | --datadir | --datadi | --datad)
1372 ac_prev=datadir ;;
1373 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1374 datadir=$ac_optarg ;;
1375
1376 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1377 | --dataroo | --dataro | --datar)
1378 ac_prev=datarootdir ;;
1379 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1380 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1381 datarootdir=$ac_optarg ;;
1382
1383 -disable-* | --disable-*)
1384 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001387 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001388 ac_useropt_orig=$ac_useropt
1389 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390 case $ac_user_opts in
1391 *"
1392"enable_$ac_useropt"
1393"*) ;;
1394 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1395 ac_unrecognized_sep=', ';;
1396 esac
1397 eval enable_$ac_useropt=no ;;
1398
1399 -docdir | --docdir | --docdi | --doc | --do)
1400 ac_prev=docdir ;;
1401 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1402 docdir=$ac_optarg ;;
1403
1404 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1405 ac_prev=dvidir ;;
1406 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1407 dvidir=$ac_optarg ;;
1408
1409 -enable-* | --enable-*)
1410 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001413 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001414 ac_useropt_orig=$ac_useropt
1415 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1417 *"
1418"enable_$ac_useropt"
1419"*) ;;
1420 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1421 ac_unrecognized_sep=', ';;
1422 esac
1423 eval enable_$ac_useropt=\$ac_optarg ;;
1424
1425 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1426 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1427 | --exec | --exe | --ex)
1428 ac_prev=exec_prefix ;;
1429 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1430 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1431 | --exec=* | --exe=* | --ex=*)
1432 exec_prefix=$ac_optarg ;;
1433
1434 -gas | --gas | --ga | --g)
1435 # Obsolete; use --with-gas.
1436 with_gas=yes ;;
1437
1438 -help | --help | --hel | --he | -h)
1439 ac_init_help=long ;;
1440 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1441 ac_init_help=recursive ;;
1442 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1443 ac_init_help=short ;;
1444
1445 -host | --host | --hos | --ho)
1446 ac_prev=host_alias ;;
1447 -host=* | --host=* | --hos=* | --ho=*)
1448 host_alias=$ac_optarg ;;
1449
1450 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1451 ac_prev=htmldir ;;
1452 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1453 | --ht=*)
1454 htmldir=$ac_optarg ;;
1455
1456 -includedir | --includedir | --includedi | --included | --include \
1457 | --includ | --inclu | --incl | --inc)
1458 ac_prev=includedir ;;
1459 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1460 | --includ=* | --inclu=* | --incl=* | --inc=*)
1461 includedir=$ac_optarg ;;
1462
1463 -infodir | --infodir | --infodi | --infod | --info | --inf)
1464 ac_prev=infodir ;;
1465 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1466 infodir=$ac_optarg ;;
1467
1468 -libdir | --libdir | --libdi | --libd)
1469 ac_prev=libdir ;;
1470 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1471 libdir=$ac_optarg ;;
1472
1473 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1474 | --libexe | --libex | --libe)
1475 ac_prev=libexecdir ;;
1476 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1477 | --libexe=* | --libex=* | --libe=*)
1478 libexecdir=$ac_optarg ;;
1479
1480 -localedir | --localedir | --localedi | --localed | --locale)
1481 ac_prev=localedir ;;
1482 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1483 localedir=$ac_optarg ;;
1484
1485 -localstatedir | --localstatedir | --localstatedi | --localstated \
1486 | --localstate | --localstat | --localsta | --localst | --locals)
1487 ac_prev=localstatedir ;;
1488 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1489 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1490 localstatedir=$ac_optarg ;;
1491
1492 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1493 ac_prev=mandir ;;
1494 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1495 mandir=$ac_optarg ;;
1496
1497 -nfp | --nfp | --nf)
1498 # Obsolete; use --without-fp.
1499 with_fp=no ;;
1500
1501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1502 | --no-cr | --no-c | -n)
1503 no_create=yes ;;
1504
1505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1507 no_recursion=yes ;;
1508
1509 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1510 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1511 | --oldin | --oldi | --old | --ol | --o)
1512 ac_prev=oldincludedir ;;
1513 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1514 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1515 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1516 oldincludedir=$ac_optarg ;;
1517
1518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1519 ac_prev=prefix ;;
1520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1521 prefix=$ac_optarg ;;
1522
1523 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1524 | --program-pre | --program-pr | --program-p)
1525 ac_prev=program_prefix ;;
1526 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1527 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1528 program_prefix=$ac_optarg ;;
1529
1530 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1531 | --program-suf | --program-su | --program-s)
1532 ac_prev=program_suffix ;;
1533 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1534 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1535 program_suffix=$ac_optarg ;;
1536
1537 -program-transform-name | --program-transform-name \
1538 | --program-transform-nam | --program-transform-na \
1539 | --program-transform-n | --program-transform- \
1540 | --program-transform | --program-transfor \
1541 | --program-transfo | --program-transf \
1542 | --program-trans | --program-tran \
1543 | --progr-tra | --program-tr | --program-t)
1544 ac_prev=program_transform_name ;;
1545 -program-transform-name=* | --program-transform-name=* \
1546 | --program-transform-nam=* | --program-transform-na=* \
1547 | --program-transform-n=* | --program-transform-=* \
1548 | --program-transform=* | --program-transfor=* \
1549 | --program-transfo=* | --program-transf=* \
1550 | --program-trans=* | --program-tran=* \
1551 | --progr-tra=* | --program-tr=* | --program-t=*)
1552 program_transform_name=$ac_optarg ;;
1553
1554 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1555 ac_prev=pdfdir ;;
1556 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1557 pdfdir=$ac_optarg ;;
1558
1559 -psdir | --psdir | --psdi | --psd | --ps)
1560 ac_prev=psdir ;;
1561 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1562 psdir=$ac_optarg ;;
1563
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1566 silent=yes ;;
1567
1568 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1569 ac_prev=sbindir ;;
1570 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1571 | --sbi=* | --sb=*)
1572 sbindir=$ac_optarg ;;
1573
1574 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1575 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1576 | --sharedst | --shareds | --shared | --share | --shar \
1577 | --sha | --sh)
1578 ac_prev=sharedstatedir ;;
1579 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1580 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1581 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1582 | --sha=* | --sh=*)
1583 sharedstatedir=$ac_optarg ;;
1584
1585 -site | --site | --sit)
1586 ac_prev=site ;;
1587 -site=* | --site=* | --sit=*)
1588 site=$ac_optarg ;;
1589
1590 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1591 ac_prev=srcdir ;;
1592 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1593 srcdir=$ac_optarg ;;
1594
1595 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1596 | --syscon | --sysco | --sysc | --sys | --sy)
1597 ac_prev=sysconfdir ;;
1598 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1599 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1600 sysconfdir=$ac_optarg ;;
1601
1602 -target | --target | --targe | --targ | --tar | --ta | --t)
1603 ac_prev=target_alias ;;
1604 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1605 target_alias=$ac_optarg ;;
1606
1607 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1608 verbose=yes ;;
1609
1610 -version | --version | --versio | --versi | --vers | -V)
1611 ac_init_version=: ;;
1612
1613 -with-* | --with-*)
1614 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1615 # Reject names that are not valid shell variable names.
1616 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001617 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001618 ac_useropt_orig=$ac_useropt
1619 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1620 case $ac_user_opts in
1621 *"
1622"with_$ac_useropt"
1623"*) ;;
1624 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1625 ac_unrecognized_sep=', ';;
1626 esac
1627 eval with_$ac_useropt=\$ac_optarg ;;
1628
1629 -without-* | --without-*)
1630 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1631 # Reject names that are not valid shell variable names.
1632 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001633 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001634 ac_useropt_orig=$ac_useropt
1635 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1636 case $ac_user_opts in
1637 *"
1638"with_$ac_useropt"
1639"*) ;;
1640 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1641 ac_unrecognized_sep=', ';;
1642 esac
1643 eval with_$ac_useropt=no ;;
1644
1645 --x)
1646 # Obsolete; use --with-x.
1647 with_x=yes ;;
1648
1649 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1650 | --x-incl | --x-inc | --x-in | --x-i)
1651 ac_prev=x_includes ;;
1652 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1653 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1654 x_includes=$ac_optarg ;;
1655
1656 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1657 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1658 ac_prev=x_libraries ;;
1659 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1660 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1661 x_libraries=$ac_optarg ;;
1662
cristy8b350f62009-11-15 23:12:43 +00001663 -*) as_fn_error "unrecognized option: \`$ac_option'
1664Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001665 ;;
1666
1667 *=*)
1668 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1669 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001670 case $ac_envvar in #(
1671 '' | [0-9]* | *[!_$as_cr_alnum]* )
1672 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1673 esac
cristy3ed852e2009-09-05 21:47:34 +00001674 eval $ac_envvar=\$ac_optarg
1675 export $ac_envvar ;;
1676
1677 *)
1678 # FIXME: should be removed in autoconf 3.0.
1679 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1680 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1681 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1682 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1683 ;;
1684
1685 esac
1686done
1687
1688if test -n "$ac_prev"; then
1689 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001690 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001691fi
1692
1693if test -n "$ac_unrecognized_opts"; then
1694 case $enable_option_checking in
1695 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001696 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001697 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1698 esac
1699fi
1700
1701# Check all directory arguments for consistency.
1702for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1703 datadir sysconfdir sharedstatedir localstatedir includedir \
1704 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1705 libdir localedir mandir
1706do
1707 eval ac_val=\$$ac_var
1708 # Remove trailing slashes.
1709 case $ac_val in
1710 */ )
1711 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1712 eval $ac_var=\$ac_val;;
1713 esac
1714 # Be sure to have absolute directory names.
1715 case $ac_val in
1716 [\\/$]* | ?:[\\/]* ) continue;;
1717 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1718 esac
cristy8b350f62009-11-15 23:12:43 +00001719 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001720done
1721
1722# There might be people who depend on the old broken behavior: `$host'
1723# used to hold the argument of --host etc.
1724# FIXME: To remove some day.
1725build=$build_alias
1726host=$host_alias
1727target=$target_alias
1728
1729# FIXME: To remove some day.
1730if test "x$host_alias" != x; then
1731 if test "x$build_alias" = x; then
1732 cross_compiling=maybe
1733 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1734 If a cross compiler is detected then cross compile mode will be used." >&2
1735 elif test "x$build_alias" != "x$host_alias"; then
1736 cross_compiling=yes
1737 fi
1738fi
1739
1740ac_tool_prefix=
1741test -n "$host_alias" && ac_tool_prefix=$host_alias-
1742
1743test "$silent" = yes && exec 6>/dev/null
1744
1745
1746ac_pwd=`pwd` && test -n "$ac_pwd" &&
1747ac_ls_di=`ls -di .` &&
1748ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001749 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001750test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001751 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001752
1753
1754# Find the source files, if location was not specified.
1755if test -z "$srcdir"; then
1756 ac_srcdir_defaulted=yes
1757 # Try the directory containing this script, then the parent directory.
1758 ac_confdir=`$as_dirname -- "$as_myself" ||
1759$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760 X"$as_myself" : 'X\(//\)[^/]' \| \
1761 X"$as_myself" : 'X\(//\)$' \| \
1762 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1763$as_echo X"$as_myself" |
1764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\/\)[^/].*/{
1769 s//\1/
1770 q
1771 }
1772 /^X\(\/\/\)$/{
1773 s//\1/
1774 q
1775 }
1776 /^X\(\/\).*/{
1777 s//\1/
1778 q
1779 }
1780 s/.*/./; q'`
1781 srcdir=$ac_confdir
1782 if test ! -r "$srcdir/$ac_unique_file"; then
1783 srcdir=..
1784 fi
1785else
1786 ac_srcdir_defaulted=no
1787fi
1788if test ! -r "$srcdir/$ac_unique_file"; then
1789 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001790 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001791fi
1792ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1793ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001794 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001795 pwd)`
1796# When building in place, set srcdir=.
1797if test "$ac_abs_confdir" = "$ac_pwd"; then
1798 srcdir=.
1799fi
1800# Remove unnecessary trailing slashes from srcdir.
1801# Double slashes in file names in object file debugging info
1802# mess up M-x gdb in Emacs.
1803case $srcdir in
1804*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1805esac
1806for ac_var in $ac_precious_vars; do
1807 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1808 eval ac_env_${ac_var}_value=\$${ac_var}
1809 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1810 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1811done
1812
1813#
1814# Report the --help message.
1815#
1816if test "$ac_init_help" = "long"; then
1817 # Omit some internal or obsolete options to make the list less imposing.
1818 # This message is too long to be a string in the A/UX 3.1 sh.
1819 cat <<_ACEOF
cristy89effd22009-11-24 20:56:45 +00001820\`configure' configures ImageMagick 6.5.8 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001821
1822Usage: $0 [OPTION]... [VAR=VALUE]...
1823
1824To assign environment variables (e.g., CC, CFLAGS...), specify them as
1825VAR=VALUE. See below for descriptions of some of the useful variables.
1826
1827Defaults for the options are specified in brackets.
1828
1829Configuration:
1830 -h, --help display this help and exit
1831 --help=short display options specific to this package
1832 --help=recursive display the short help of all the included packages
1833 -V, --version display version information and exit
1834 -q, --quiet, --silent do not print \`checking...' messages
1835 --cache-file=FILE cache test results in FILE [disabled]
1836 -C, --config-cache alias for \`--cache-file=config.cache'
1837 -n, --no-create do not create output files
1838 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1839
1840Installation directories:
1841 --prefix=PREFIX install architecture-independent files in PREFIX
1842 [$ac_default_prefix]
1843 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1844 [PREFIX]
1845
1846By default, \`make install' will install all the files in
1847\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1848an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1849for instance \`--prefix=\$HOME'.
1850
1851For better control, use the options below.
1852
1853Fine tuning of the installation directories:
1854 --bindir=DIR user executables [EPREFIX/bin]
1855 --sbindir=DIR system admin executables [EPREFIX/sbin]
1856 --libexecdir=DIR program executables [EPREFIX/libexec]
1857 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1858 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1859 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1860 --libdir=DIR object code libraries [EPREFIX/lib]
1861 --includedir=DIR C header files [PREFIX/include]
1862 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1863 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1864 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1865 --infodir=DIR info documentation [DATAROOTDIR/info]
1866 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1867 --mandir=DIR man documentation [DATAROOTDIR/man]
1868 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1869 --htmldir=DIR html documentation [DOCDIR]
1870 --dvidir=DIR dvi documentation [DOCDIR]
1871 --pdfdir=DIR pdf documentation [DOCDIR]
1872 --psdir=DIR ps documentation [DOCDIR]
1873_ACEOF
1874
1875 cat <<\_ACEOF
1876
1877Program names:
1878 --program-prefix=PREFIX prepend PREFIX to installed program names
1879 --program-suffix=SUFFIX append SUFFIX to installed program names
1880 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1881
1882X features:
1883 --x-includes=DIR X include files are in DIR
1884 --x-libraries=DIR X library files are in DIR
1885
1886System types:
1887 --build=BUILD configure for building on BUILD [guessed]
1888 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1889 --target=TARGET configure for building compilers for TARGET [HOST]
1890_ACEOF
1891fi
1892
1893if test -n "$ac_init_help"; then
1894 case $ac_init_help in
cristy89effd22009-11-24 20:56:45 +00001895 short | recursive ) echo "Configuration of ImageMagick 6.5.8:";;
cristy3ed852e2009-09-05 21:47:34 +00001896 esac
1897 cat <<\_ACEOF
1898
1899Optional Features:
1900 --disable-option-checking ignore unrecognized --enable/--with options
1901 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1902 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1903 --enable-silent-rules less verbose build output (undo: `make V=1')
1904 --disable-silent-rules verbose build output (undo: `make V=0')
1905 --disable-dependency-tracking speeds up one-time build
1906 --enable-dependency-tracking do not reject slow dependency extractors
1907 --bounds-checking enable run-time bounds-checking
1908 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001909 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001910 --disable-openmp do not use OpenMP
1911 --disable-largefile omit support for large files
1912 --enable-shared[=PKGS] build shared libraries [default=yes]
1913 --enable-static[=PKGS] build static libraries [default=yes]
1914 --enable-fast-install[=PKGS]
1915 optimize for fast installation [default=yes]
1916 --disable-libtool-lock avoid locking (might break parallel builds)
1917 --enable-ltdl-install install libltdl
1918 --enable-delegate-build look for delegate libraries in build directory
1919 --disable-deprecated exclude deprecated methods in MagickCore and
1920 MagickWand API's
1921 --disable-installed Formally install ImageMagick under PREFIX
1922 --disable-cipher disable enciphering and deciphering image pixels
1923 --enable-embeddable enable self-contained, embeddable,
1924 zero-configuration ImageMagick
1925 --enable-hdri accurately represent the wide range of intensity
1926 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001927 --disable-assert disable assert() statements in build
1928 --enable-maintainer-mode enable make rules and dependencies not useful
1929 (and sometimes confusing) to the casual installer
1930 --enable-ccmalloc enable 'ccmalloc' memory debug support
1931 --enable-efence enable 'efence' memory debug support
1932 --enable-prof enable 'prof' profiling support
1933 --enable-gprof enable 'gprof' profiling support
1934 --enable-gcov enable 'gcov' profiling support
1935
1936Optional Packages:
1937 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1938 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1939 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1940 --without-maximum-compile-warnings
1941 Disable maximum warning verbosity
1942 --with-dmalloc use dmalloc, as in
1943 http://www.dmalloc.com/dmalloc.tar.gz
1944 --without-threads disable threads support
1945 --with-pic try to use only PIC/non-PIC objects [default=use
1946 both]
1947 --with-included-ltdl use the GNU ltdl sources included here
1948 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1949 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1950 --with-modules enable building dynamically loadable modules
1951 --with-method-prefix=PREFIX
1952 prefix MagickCore API methods
1953 --with-quantum-depth=DEPTH
1954 number of bits in a pixel quantum (default 16)
1955 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1956 memory)
1957 --with-frozenpaths freeze delegate paths
1958 --without-magick-plus-plus
1959 disable build/install of Magick++
1960 --with-perl enable build/install of PerlMagick
1961 --with-perl-options=OPTIONS
1962 options to pass on command-line when generating
1963 PerlMagick's build file
1964 --with-umem enable umem memory allocation library support
1965 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1966 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001967 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001968 --without-zlib disable ZLIB support
1969 --with-autotrace enable autotrace support
1970 --without-dps disable Display Postscript support
1971 --without-djvu disable DjVu support
1972 --without-fftw disable FFTW support
1973 --without-fpx disable FlashPIX support
1974 --without-fontconfig disable fontconfig support
1975 --without-freetype disable Freetype support
1976 --without-gslib enable Ghostscript library support
1977 --with-fontpath=DIR prepend to default font search path
1978 --with-gs-font-dir=DIR Ghostscript font directory
1979 --without-gvc disable GVC support
1980 --without-jbig disable JBIG support
1981 --without-jpeg disable JPEG support
1982 --without-jp2 disable JPEG-2000 support
1983 --without-lcms disable LCMS support
1984 --without-lqr disable Liquid Rescale support (experimental)
1985 --without-openexr disable OpenEXR support
1986 --without-png disable PNG support
1987 --without-rsvg disable RSVG support
1988 --without-tiff disable TIFF support
1989 --with-windows-font-dir=DIR
1990 directory containing MS-Windows fonts
1991 --without-wmf disable WMF support
1992 --without-xml disable XML support
1993
1994Some influential environment variables:
1995 CC C compiler command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1998 nonstandard directory <lib dir>
1999 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002000 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002001 you have headers in a nonstandard directory <include dir>
cristy3ed852e2009-09-05 21:47:34 +00002002 CXX C++ compiler command
2003 CXXFLAGS C++ compiler flags
cristy95646052009-11-28 23:05:30 +00002004 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002005 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002006 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002007 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002008 AUTOTRACE_CFLAGS
2009 C compiler flags for AUTOTRACE, overriding pkg-config
2010 AUTOTRACE_LIBS
2011 linker flags for AUTOTRACE, overriding pkg-config
2012 FONTCONFIG_CFLAGS
2013 C compiler flags for FONTCONFIG, overriding pkg-config
2014 FONTCONFIG_LIBS
2015 linker flags for FONTCONFIG, overriding pkg-config
2016 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2017 GVC_LIBS linker flags for GVC, overriding pkg-config
2018 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2019 LQR_LIBS linker flags for LQR, overriding pkg-config
2020 OPENEXR_CFLAGS
2021 C compiler flags for OPENEXR, overriding pkg-config
2022 OPENEXR_LIBS
2023 linker flags for OPENEXR, overriding pkg-config
2024 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2025 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2026 CAIRO_SVG_CFLAGS
2027 C compiler flags for CAIRO_SVG, overriding pkg-config
2028 CAIRO_SVG_LIBS
2029 linker flags for CAIRO_SVG, overriding pkg-config
2030
2031Use these variables to override the choices made by `configure' or to help
2032it to find libraries and programs with nonstandard names/locations.
2033
2034Report bugs to <http://www.imagemagick.org>.
2035_ACEOF
2036ac_status=$?
2037fi
2038
2039if test "$ac_init_help" = "recursive"; then
2040 # If there are subdirs, report their specific --help.
2041 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042 test -d "$ac_dir" ||
2043 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2044 continue
2045 ac_builddir=.
2046
2047case "$ac_dir" in
2048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2049*)
2050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2051 # A ".." for each directory in $ac_dir_suffix.
2052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2053 case $ac_top_builddir_sub in
2054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2056 esac ;;
2057esac
2058ac_abs_top_builddir=$ac_pwd
2059ac_abs_builddir=$ac_pwd$ac_dir_suffix
2060# for backward compatibility:
2061ac_top_builddir=$ac_top_build_prefix
2062
2063case $srcdir in
2064 .) # We are building in place.
2065 ac_srcdir=.
2066 ac_top_srcdir=$ac_top_builddir_sub
2067 ac_abs_top_srcdir=$ac_pwd ;;
2068 [\\/]* | ?:[\\/]* ) # Absolute name.
2069 ac_srcdir=$srcdir$ac_dir_suffix;
2070 ac_top_srcdir=$srcdir
2071 ac_abs_top_srcdir=$srcdir ;;
2072 *) # Relative name.
2073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2074 ac_top_srcdir=$ac_top_build_prefix$srcdir
2075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2076esac
2077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2078
2079 cd "$ac_dir" || { ac_status=$?; continue; }
2080 # Check for guested configure.
2081 if test -f "$ac_srcdir/configure.gnu"; then
2082 echo &&
2083 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2084 elif test -f "$ac_srcdir/configure"; then
2085 echo &&
2086 $SHELL "$ac_srcdir/configure" --help=recursive
2087 else
2088 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2089 fi || ac_status=$?
2090 cd "$ac_pwd" || { ac_status=$?; break; }
2091 done
2092fi
2093
2094test -n "$ac_init_help" && exit $ac_status
2095if $ac_init_version; then
2096 cat <<\_ACEOF
cristy89effd22009-11-24 20:56:45 +00002097ImageMagick configure 6.5.8
cristycd4c5312009-11-22 01:19:08 +00002098generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002099
cristy8b350f62009-11-15 23:12:43 +00002100Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002101This configure script is free software; the Free Software Foundation
2102gives unlimited permission to copy, distribute and modify it.
2103_ACEOF
2104 exit
2105fi
cristy8b350f62009-11-15 23:12:43 +00002106
2107## ------------------------ ##
2108## Autoconf initialization. ##
2109## ------------------------ ##
2110
2111# ac_fn_c_try_compile LINENO
2112# --------------------------
2113# Try to compile conftest.$ac_ext, and return whether this succeeded.
2114ac_fn_c_try_compile ()
2115{
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 rm -f conftest.$ac_objext
2118 if { { ac_try="$ac_compile"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124$as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_compile") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2131 fi
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } && {
2134 test -z "$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 } && test -s conftest.$ac_objext; then :
2137 ac_retval=0
2138else
2139 $as_echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143fi
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002145 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002146
2147} # ac_fn_c_try_compile
2148
cristy8b350f62009-11-15 23:12:43 +00002149# ac_fn_cxx_try_compile LINENO
2150# ----------------------------
2151# Try to compile conftest.$ac_ext, and return whether this succeeded.
2152ac_fn_cxx_try_compile ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 rm -f conftest.$ac_objext
2156 if { { ac_try="$ac_compile"
2157case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160esac
2161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162$as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_compile") 2>conftest.err
2164 ac_status=$?
2165 if test -s conftest.err; then
2166 grep -v '^ *+' conftest.err >conftest.er1
2167 cat conftest.er1 >&5
2168 mv -f conftest.er1 conftest.err
2169 fi
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && {
2172 test -z "$ac_cxx_werror_flag" ||
2173 test ! -s conftest.err
2174 } && test -s conftest.$ac_objext; then :
2175 ac_retval=0
2176else
2177 $as_echo "$as_me: failed program was:" >&5
2178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180 ac_retval=1
2181fi
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002183 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002184
2185} # ac_fn_cxx_try_compile
2186
cristy95646052009-11-28 23:05:30 +00002187# ac_fn_c_try_cpp LINENO
2188# ----------------------
2189# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2190ac_fn_c_try_cpp ()
2191{
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if { { ac_try="$ac_cpp conftest.$ac_ext"
2194case "(($ac_try" in
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2197esac
2198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199$as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2201 ac_status=$?
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2206 fi
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } >/dev/null && {
2209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2211 }; then :
2212 ac_retval=0
2213else
2214 $as_echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 ac_retval=1
2218fi
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 as_fn_set_status $ac_retval
2221
2222} # ac_fn_c_try_cpp
2223
cristy8b350f62009-11-15 23:12:43 +00002224# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2225# -------------------------------------------------------
2226# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227# the include files in INCLUDES and setting the cache variable VAR
2228# accordingly.
2229ac_fn_c_check_header_mongrel ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234$as_echo_n "checking for $2... " >&6; }
2235if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241else
2242 # Is the header compilable?
2243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244$as_echo_n "checking $2 usability... " >&6; }
2245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h. */
2247$4
2248#include <$2>
2249_ACEOF
2250if ac_fn_c_try_compile "$LINENO"; then :
2251 ac_header_compiler=yes
2252else
2253 ac_header_compiler=no
2254fi
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257$as_echo "$ac_header_compiler" >&6; }
2258
2259# Is the header present?
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261$as_echo_n "checking $2 presence... " >&6; }
2262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h. */
2264#include <$2>
2265_ACEOF
2266if ac_fn_c_try_cpp "$LINENO"; then :
2267 ac_header_preproc=yes
2268else
2269 ac_header_preproc=no
2270fi
2271rm -f conftest.err conftest.$ac_ext
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273$as_echo "$ac_header_preproc" >&6; }
2274
2275# So? What about this header?
2276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2277 yes:no: )
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2282 ;;
2283 no:yes:* )
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294( cat <<\_ASBOX
2295## ----------------------------------------- ##
2296## Report this to http://www.imagemagick.org ##
2297## ----------------------------------------- ##
2298_ASBOX
2299 ) | sed "s/^/$as_me: WARNING: /" >&2
2300 ;;
2301esac
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303$as_echo_n "checking for $2... " >&6; }
2304if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2306else
2307 eval "$3=\$ac_header_compiler"
2308fi
2309eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
2312fi
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314
2315} # ac_fn_c_check_header_mongrel
2316
2317# ac_fn_c_try_run LINENO
2318# ----------------------
2319# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2320# that executables *can* be run.
2321ac_fn_c_try_run ()
2322{
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 if { { ac_try="$ac_link"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330$as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_link") 2>&5
2332 ac_status=$?
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2335 { { case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338esac
2339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340$as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_try") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; }; }; then :
2345 ac_retval=0
2346else
2347 $as_echo "$as_me: program exited with status $ac_status" >&5
2348 $as_echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 ac_retval=$ac_status
2352fi
2353 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002355 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002356
2357} # ac_fn_c_try_run
2358
2359# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2360# -------------------------------------------------------
2361# Tests whether HEADER exists and can be compiled using the include files in
2362# INCLUDES, setting the cache variable VAR accordingly.
2363ac_fn_c_check_header_compile ()
2364{
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367$as_echo_n "checking for $2... " >&6; }
2368if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2369 $as_echo_n "(cached) " >&6
2370else
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372/* end confdefs.h. */
2373$4
2374#include <$2>
2375_ACEOF
2376if ac_fn_c_try_compile "$LINENO"; then :
2377 eval "$3=yes"
2378else
2379 eval "$3=no"
2380fi
2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382fi
2383eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385$as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387
2388} # ac_fn_c_check_header_compile
2389
2390# ac_fn_c_try_link LINENO
2391# -----------------------
2392# Try to link conftest.$ac_ext, and return whether this succeeded.
2393ac_fn_c_try_link ()
2394{
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { { ac_try="$ac_link"
2398case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401esac
2402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2403$as_echo "$ac_try_echo"; } >&5
2404 (eval "$ac_link") 2>conftest.err
2405 ac_status=$?
2406 if test -s conftest.err; then
2407 grep -v '^ *+' conftest.err >conftest.er1
2408 cat conftest.er1 >&5
2409 mv -f conftest.er1 conftest.err
2410 fi
2411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2412 test $ac_status = 0; } && {
2413 test -z "$ac_c_werror_flag" ||
2414 test ! -s conftest.err
2415 } && test -s conftest$ac_exeext && {
2416 test "$cross_compiling" = yes ||
2417 $as_test_x conftest$ac_exeext
2418 }; then :
2419 ac_retval=0
2420else
2421 $as_echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 ac_retval=1
2425fi
2426 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2427 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2428 # interfere with the next link command; also delete a directory that is
2429 # left behind by Apple's compiler. We do this before executing the actions.
2430 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002432 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002433
2434} # ac_fn_c_try_link
2435
2436# ac_fn_c_check_func LINENO FUNC VAR
2437# ----------------------------------
2438# Tests whether FUNC exists, setting the cache variable VAR accordingly
2439ac_fn_c_check_func ()
2440{
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443$as_echo_n "checking for $2... " >&6; }
2444if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2446else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448/* end confdefs.h. */
2449/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2451#define $2 innocuous_$2
2452
2453/* System header to define __stub macros and hopefully few prototypes,
2454 which can conflict with char $2 (); below.
2455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2456 <limits.h> exists even on freestanding compilers. */
2457
2458#ifdef __STDC__
2459# include <limits.h>
2460#else
2461# include <assert.h>
2462#endif
2463
2464#undef $2
2465
2466/* Override any GCC internal prototype to avoid an error.
2467 Use char because int might match the return type of a GCC
2468 builtin and then its argument prototype would still apply. */
2469#ifdef __cplusplus
2470extern "C"
2471#endif
2472char $2 ();
2473/* The GNU C library defines this for functions which it implements
2474 to always fail with ENOSYS. Some functions are actually named
2475 something starting with __ and the normal name is an alias. */
2476#if defined __stub_$2 || defined __stub___$2
2477choke me
2478#endif
2479
2480int
2481main ()
2482{
2483return $2 ();
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488if ac_fn_c_try_link "$LINENO"; then :
2489 eval "$3=yes"
2490else
2491 eval "$3=no"
2492fi
2493rm -f core conftest.err conftest.$ac_objext \
2494 conftest$ac_exeext conftest.$ac_ext
2495fi
2496eval ac_res=\$$3
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498$as_echo "$ac_res" >&6; }
2499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500
2501} # ac_fn_c_check_func
2502
2503# ac_fn_cxx_try_cpp LINENO
2504# ------------------------
2505# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2506ac_fn_cxx_try_cpp ()
2507{
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 if { { ac_try="$ac_cpp conftest.$ac_ext"
2510case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513esac
2514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515$as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2517 ac_status=$?
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2522 fi
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } >/dev/null && {
2525 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2526 test ! -s conftest.err
2527 }; then :
2528 ac_retval=0
2529else
2530 $as_echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_retval=1
2534fi
2535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002536 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002537
2538} # ac_fn_cxx_try_cpp
2539
2540# ac_fn_cxx_try_link LINENO
2541# -------------------------
2542# Try to link conftest.$ac_ext, and return whether this succeeded.
2543ac_fn_cxx_try_link ()
2544{
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 rm -f conftest.$ac_objext conftest$ac_exeext
2547 if { { ac_try="$ac_link"
2548case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551esac
2552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553$as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_link") 2>conftest.err
2555 ac_status=$?
2556 if test -s conftest.err; then
2557 grep -v '^ *+' conftest.err >conftest.er1
2558 cat conftest.er1 >&5
2559 mv -f conftest.er1 conftest.err
2560 fi
2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562 test $ac_status = 0; } && {
2563 test -z "$ac_cxx_werror_flag" ||
2564 test ! -s conftest.err
2565 } && test -s conftest$ac_exeext && {
2566 test "$cross_compiling" = yes ||
2567 $as_test_x conftest$ac_exeext
2568 }; then :
2569 ac_retval=0
2570else
2571 $as_echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 ac_retval=1
2575fi
2576 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2577 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2578 # interfere with the next link command; also delete a directory that is
2579 # left behind by Apple's compiler. We do this before executing the actions.
2580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002582 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002583
2584} # ac_fn_cxx_try_link
2585
2586# ac_fn_c_check_decl LINENO SYMBOL VAR
2587# ------------------------------------
2588# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2589ac_fn_c_check_decl ()
2590{
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2593$as_echo_n "checking whether $2 is declared... " >&6; }
2594if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2596else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598/* end confdefs.h. */
2599$4
2600int
2601main ()
2602{
2603#ifndef $2
2604 (void) $2;
2605#endif
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611if ac_fn_c_try_compile "$LINENO"; then :
2612 eval "$3=yes"
2613else
2614 eval "$3=no"
2615fi
2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617fi
2618eval ac_res=\$$3
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620$as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2622
2623} # ac_fn_c_check_decl
2624
2625# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2626# -------------------------------------------
2627# Tests whether TYPE exists after having included INCLUDES, setting cache
2628# variable VAR accordingly.
2629ac_fn_c_check_type ()
2630{
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633$as_echo_n "checking for $2... " >&6; }
2634if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2636else
2637 eval "$3=no"
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h. */
2640$4
2641int
2642main ()
2643{
2644if (sizeof ($2))
2645 return 0;
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650if ac_fn_c_try_compile "$LINENO"; then :
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */
2653$4
2654int
2655main ()
2656{
2657if (sizeof (($2)))
2658 return 0;
2659 ;
2660 return 0;
2661}
2662_ACEOF
2663if ac_fn_c_try_compile "$LINENO"; then :
2664
2665else
2666 eval "$3=yes"
2667fi
2668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672eval ac_res=\$$3
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674$as_echo "$ac_res" >&6; }
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676
2677} # ac_fn_c_check_type
2678
2679# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2680# --------------------------------------------
2681# Tries to find the compile-time value of EXPR in a program that includes
2682# INCLUDES, setting VAR accordingly. Returns whether the value could be
2683# computed
2684ac_fn_c_compute_int ()
2685{
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 if test "$cross_compiling" = yes; then
2688 # Depending upon the size, compute the lo and hi bounds.
2689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690/* end confdefs.h. */
2691$4
2692int
2693main ()
2694{
2695static int test_array [1 - 2 * !(($2) >= 0)];
2696test_array [0] = 0
2697
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702if ac_fn_c_try_compile "$LINENO"; then :
2703 ac_lo=0 ac_mid=0
2704 while :; do
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706/* end confdefs.h. */
2707$4
2708int
2709main ()
2710{
2711static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2712test_array [0] = 0
2713
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718if ac_fn_c_try_compile "$LINENO"; then :
2719 ac_hi=$ac_mid; break
2720else
2721 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2722 if test $ac_lo -le $ac_mid; then
2723 ac_lo= ac_hi=
2724 break
2725 fi
2726 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2727fi
2728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 done
2730else
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732/* end confdefs.h. */
2733$4
2734int
2735main ()
2736{
2737static int test_array [1 - 2 * !(($2) < 0)];
2738test_array [0] = 0
2739
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744if ac_fn_c_try_compile "$LINENO"; then :
2745 ac_hi=-1 ac_mid=-1
2746 while :; do
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748/* end confdefs.h. */
2749$4
2750int
2751main ()
2752{
2753static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2754test_array [0] = 0
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_lo=$ac_mid; break
2762else
2763 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2764 if test $ac_mid -le $ac_hi; then
2765 ac_lo= ac_hi=
2766 break
2767 fi
2768 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772else
2773 ac_lo= ac_hi=
2774fi
2775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776fi
2777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778# Binary search between lo and hi bounds.
2779while test "x$ac_lo" != "x$ac_hi"; do
2780 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782/* end confdefs.h. */
2783$4
2784int
2785main ()
2786{
2787static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2788test_array [0] = 0
2789
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_compile "$LINENO"; then :
2795 ac_hi=$ac_mid
2796else
2797 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2798fi
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800done
2801case $ac_lo in #((
2802?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2803'') ac_retval=1 ;;
2804esac
2805 else
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$4
2809static long int longval () { return $2; }
2810static unsigned long int ulongval () { return $2; }
2811#include <stdio.h>
2812#include <stdlib.h>
2813int
2814main ()
2815{
2816
2817 FILE *f = fopen ("conftest.val", "w");
2818 if (! f)
2819 return 1;
2820 if (($2) < 0)
2821 {
2822 long int i = longval ();
2823 if (i != ($2))
2824 return 1;
2825 fprintf (f, "%ld", i);
2826 }
2827 else
2828 {
2829 unsigned long int i = ulongval ();
2830 if (i != ($2))
2831 return 1;
2832 fprintf (f, "%lu", i);
2833 }
2834 /* Do not output a trailing newline, as this causes \r\n confusion
2835 on some platforms. */
2836 return ferror (f) || fclose (f) != 0;
2837
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_run "$LINENO"; then :
2843 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2844else
2845 ac_retval=1
2846fi
2847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2848 conftest.$ac_objext conftest.beam conftest.$ac_ext
2849rm -f conftest.val
2850
2851 fi
2852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002853 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002854
2855} # ac_fn_c_compute_int
2856
2857# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2858# ---------------------------------------------------------
2859# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2860# the include files in INCLUDES and setting the cache variable VAR
2861# accordingly.
2862ac_fn_cxx_check_header_mongrel ()
2863{
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867$as_echo_n "checking for $2... " >&6; }
2868if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2870fi
2871eval ac_res=\$$3
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873$as_echo "$ac_res" >&6; }
2874else
2875 # Is the header compilable?
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2877$as_echo_n "checking $2 usability... " >&6; }
2878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h. */
2880$4
2881#include <$2>
2882_ACEOF
2883if ac_fn_cxx_try_compile "$LINENO"; then :
2884 ac_header_compiler=yes
2885else
2886 ac_header_compiler=no
2887fi
2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2890$as_echo "$ac_header_compiler" >&6; }
2891
2892# Is the header present?
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2894$as_echo_n "checking $2 presence... " >&6; }
2895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896/* end confdefs.h. */
2897#include <$2>
2898_ACEOF
2899if ac_fn_cxx_try_cpp "$LINENO"; then :
2900 ac_header_preproc=yes
2901else
2902 ac_header_preproc=no
2903fi
2904rm -f conftest.err conftest.$ac_ext
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2906$as_echo "$ac_header_preproc" >&6; }
2907
2908# So? What about this header?
2909case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2910 yes:no: )
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2912$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2914$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2915 ;;
2916 no:yes:* )
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2918$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2920$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2922$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2924$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2926$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2927( cat <<\_ASBOX
2928## ----------------------------------------- ##
2929## Report this to http://www.imagemagick.org ##
2930## ----------------------------------------- ##
2931_ASBOX
2932 ) | sed "s/^/$as_me: WARNING: /" >&2
2933 ;;
2934esac
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936$as_echo_n "checking for $2... " >&6; }
2937if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2938 $as_echo_n "(cached) " >&6
2939else
2940 eval "$3=\$ac_header_compiler"
2941fi
2942eval ac_res=\$$3
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944$as_echo "$ac_res" >&6; }
2945fi
2946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2947
2948} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002949cat >config.log <<_ACEOF
2950This file contains any messages produced by compilers while
2951running configure, to aid debugging if configure makes a mistake.
2952
cristy89effd22009-11-24 20:56:45 +00002953It was created by ImageMagick $as_me 6.5.8, which was
cristycd4c5312009-11-22 01:19:08 +00002954generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002955
2956 $ $0 $@
2957
2958_ACEOF
2959exec 5>>config.log
2960{
2961cat <<_ASUNAME
2962## --------- ##
2963## Platform. ##
2964## --------- ##
2965
2966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970uname -v = `(uname -v) 2>/dev/null || echo unknown`
2971
2972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2974
2975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2982
2983_ASUNAME
2984
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002990 $as_echo "PATH: $as_dir"
2991 done
cristy3ed852e2009-09-05 21:47:34 +00002992IFS=$as_save_IFS
2993
2994} >&5
2995
2996cat >&5 <<_ACEOF
2997
2998
2999## ----------- ##
3000## Core tests. ##
3001## ----------- ##
3002
3003_ACEOF
3004
3005
3006# Keep a trace of the command line.
3007# Strip out --no-create and --no-recursion so they do not pile up.
3008# Strip out --silent because we don't want to record it for future runs.
3009# Also quote any args containing shell meta-characters.
3010# Make two passes to allow for proper duplicate-argument suppression.
3011ac_configure_args=
3012ac_configure_args0=
3013ac_configure_args1=
3014ac_must_keep_next=false
3015for ac_pass in 1 2
3016do
3017 for ac_arg
3018 do
3019 case $ac_arg in
3020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022 | -silent | --silent | --silen | --sile | --sil)
3023 continue ;;
3024 *\'*)
3025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3026 esac
3027 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003029 2)
cristy8b350f62009-11-15 23:12:43 +00003030 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003031 if test $ac_must_keep_next = true; then
3032 ac_must_keep_next=false # Got value, back to normal.
3033 else
3034 case $ac_arg in
3035 *=* | --config-cache | -C | -disable-* | --disable-* \
3036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038 | -with-* | --with-* | -without-* | --without-* | --x)
3039 case "$ac_configure_args0 " in
3040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3041 esac
3042 ;;
3043 -* ) ac_must_keep_next=true ;;
3044 esac
3045 fi
cristy8b350f62009-11-15 23:12:43 +00003046 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003047 ;;
3048 esac
3049 done
3050done
cristy8b350f62009-11-15 23:12:43 +00003051{ ac_configure_args0=; unset ac_configure_args0;}
3052{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003053
3054# When interrupted or exit'd, cleanup temporary files, and complete
3055# config.log. We remove comments because anyway the quotes in there
3056# would cause problems or look ugly.
3057# WARNING: Use '\'' to represent an apostrophe within the trap.
3058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059trap 'exit_status=$?
3060 # Save into config.log some information that might help in debugging.
3061 {
3062 echo
3063
3064 cat <<\_ASBOX
3065## ---------------- ##
3066## Cache variables. ##
3067## ---------------- ##
3068_ASBOX
3069 echo
3070 # The following way of writing the cache mishandles newlines in values,
3071(
3072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3073 eval ac_val=\$$ac_var
3074 case $ac_val in #(
3075 *${as_nl}*)
3076 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3079 esac
3080 case $ac_var in #(
3081 _ | IFS | as_nl) ;; #(
3082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003083 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003084 esac ;;
3085 esac
3086 done
3087 (set) 2>&1 |
3088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3089 *${as_nl}ac_space=\ *)
3090 sed -n \
3091 "s/'\''/'\''\\\\'\'''\''/g;
3092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3093 ;; #(
3094 *)
3095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3096 ;;
3097 esac |
3098 sort
3099)
3100 echo
3101
3102 cat <<\_ASBOX
3103## ----------------- ##
3104## Output variables. ##
3105## ----------------- ##
3106_ASBOX
3107 echo
3108 for ac_var in $ac_subst_vars
3109 do
3110 eval ac_val=\$$ac_var
3111 case $ac_val in
3112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3113 esac
3114 $as_echo "$ac_var='\''$ac_val'\''"
3115 done | sort
3116 echo
3117
3118 if test -n "$ac_subst_files"; then
3119 cat <<\_ASBOX
3120## ------------------- ##
3121## File substitutions. ##
3122## ------------------- ##
3123_ASBOX
3124 echo
3125 for ac_var in $ac_subst_files
3126 do
3127 eval ac_val=\$$ac_var
3128 case $ac_val in
3129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3130 esac
3131 $as_echo "$ac_var='\''$ac_val'\''"
3132 done | sort
3133 echo
3134 fi
3135
3136 if test -s confdefs.h; then
3137 cat <<\_ASBOX
3138## ----------- ##
3139## confdefs.h. ##
3140## ----------- ##
3141_ASBOX
3142 echo
3143 cat confdefs.h
3144 echo
3145 fi
3146 test "$ac_signal" != 0 &&
3147 $as_echo "$as_me: caught signal $ac_signal"
3148 $as_echo "$as_me: exit $exit_status"
3149 } >&5
3150 rm -f core *.core core.conftest.* &&
3151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3152 exit $exit_status
3153' 0
3154for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003156done
3157ac_signal=0
3158
3159# confdefs.h avoids OS command line length limits that DEFS can exceed.
3160rm -f -r conftest* confdefs.h
3161
cristy8b350f62009-11-15 23:12:43 +00003162$as_echo "/* confdefs.h */" > confdefs.h
3163
cristy3ed852e2009-09-05 21:47:34 +00003164# Predefined preprocessor variables.
3165
3166cat >>confdefs.h <<_ACEOF
3167#define PACKAGE_NAME "$PACKAGE_NAME"
3168_ACEOF
3169
cristy3ed852e2009-09-05 21:47:34 +00003170cat >>confdefs.h <<_ACEOF
3171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3172_ACEOF
3173
cristy3ed852e2009-09-05 21:47:34 +00003174cat >>confdefs.h <<_ACEOF
3175#define PACKAGE_VERSION "$PACKAGE_VERSION"
3176_ACEOF
3177
cristy3ed852e2009-09-05 21:47:34 +00003178cat >>confdefs.h <<_ACEOF
3179#define PACKAGE_STRING "$PACKAGE_STRING"
3180_ACEOF
3181
cristy3ed852e2009-09-05 21:47:34 +00003182cat >>confdefs.h <<_ACEOF
3183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3184_ACEOF
3185
cristy8b350f62009-11-15 23:12:43 +00003186cat >>confdefs.h <<_ACEOF
3187#define PACKAGE_URL "$PACKAGE_URL"
3188_ACEOF
3189
cristy3ed852e2009-09-05 21:47:34 +00003190
3191# Let the site file select an alternate cache file if it wants to.
3192# Prefer an explicitly selected file to automatically selected ones.
3193ac_site_file1=NONE
3194ac_site_file2=NONE
3195if test -n "$CONFIG_SITE"; then
3196 ac_site_file1=$CONFIG_SITE
3197elif test "x$prefix" != xNONE; then
3198 ac_site_file1=$prefix/share/config.site
3199 ac_site_file2=$prefix/etc/config.site
3200else
3201 ac_site_file1=$ac_default_prefix/share/config.site
3202 ac_site_file2=$ac_default_prefix/etc/config.site
3203fi
3204for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3205do
3206 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003209$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3210 sed 's/^/| /' "$ac_site_file" >&5
3211 . "$ac_site_file"
3212 fi
3213done
3214
3215if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003216 # Some versions of bash will fail to source /dev/null (special files
3217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003220$as_echo "$as_me: loading cache $cache_file" >&6;}
3221 case $cache_file in
3222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3223 *) . "./$cache_file";;
3224 esac
3225 fi
3226else
cristy8b350f62009-11-15 23:12:43 +00003227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003228$as_echo "$as_me: creating cache $cache_file" >&6;}
3229 >$cache_file
3230fi
3231
cristycd4c5312009-11-22 01:19:08 +00003232as_fn_append ac_header_list " stdlib.h"
3233as_fn_append ac_header_list " unistd.h"
3234as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003235# Check that the precious variables saved in the cache have kept the same
3236# value.
3237ac_cache_corrupted=false
3238for ac_var in $ac_precious_vars; do
3239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3240 eval ac_new_set=\$ac_env_${ac_var}_set
3241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3242 eval ac_new_val=\$ac_env_${ac_var}_value
3243 case $ac_old_set,$ac_new_set in
3244 set,)
cristy8b350f62009-11-15 23:12:43 +00003245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003246$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247 ac_cache_corrupted=: ;;
3248 ,set)
cristy8b350f62009-11-15 23:12:43 +00003249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251 ac_cache_corrupted=: ;;
3252 ,);;
3253 *)
3254 if test "x$ac_old_val" != "x$ac_new_val"; then
3255 # differences in whitespace do not lead to failure.
3256 ac_old_val_w=`echo x $ac_old_val`
3257 ac_new_val_w=`echo x $ac_new_val`
3258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003260$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261 ac_cache_corrupted=:
3262 else
cristy8b350f62009-11-15 23:12:43 +00003263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003264$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265 eval $ac_var=\$ac_old_val
3266 fi
cristy8b350f62009-11-15 23:12:43 +00003267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003268$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003270$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3271 fi;;
3272 esac
3273 # Pass precious variables to config.status.
3274 if test "$ac_new_set" = set; then
3275 case $ac_new_val in
3276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277 *) ac_arg=$ac_var=$ac_new_val ;;
3278 esac
3279 case " $ac_configure_args " in
3280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003282 esac
3283 fi
3284done
3285if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003289$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003290 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003291fi
cristy8b350f62009-11-15 23:12:43 +00003292## -------------------- ##
3293## Main body of script. ##
3294## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302
3303
3304ac_aux_dir=
3305for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003306 for ac_t in install-sh install.sh shtool; do
3307 if test -f "$ac_dir/$ac_t"; then
3308 ac_aux_dir=$ac_dir
3309 ac_install_sh="$ac_aux_dir/$ac_t -c"
3310 break 2
3311 fi
3312 done
cristy3ed852e2009-09-05 21:47:34 +00003313done
3314if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003315 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003316fi
3317
3318# These three variables are undocumented and unsupported,
3319# and are intended to be withdrawn in a future Autoconf release.
3320# They can cause serious problems if a builder's source tree is in a directory
3321# whose full name contains unusual characters.
3322ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3323ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3324ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3325
3326
3327
3328
3329ac_config_headers="$ac_config_headers config/config.h"
3330
3331ac_config_commands="$ac_config_commands magick/magick-config.h"
3332
3333ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3334
3335
3336#
3337# Save initial user-tunable values
3338#
3339USER_LIBS=$LIBS
3340for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3341 eval isset=\${$var+set}
3342 if test "$isset" = 'set'; then
3343 eval val=$`echo $var`
3344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3345 fi
3346done
3347
3348
3349CONFIGURE_ARGS="$0 ${ac_configure_args}"
3350
3351
3352# Source file containing package/library versioning information.
3353. ${srcdir}/version.sh
3354
3355echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3356# Make sure we can run config.sub.
3357$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003359
cristy8b350f62009-11-15 23:12:43 +00003360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003362if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003363 $as_echo_n "(cached) " >&6
3364else
3365 ac_build_alias=$build_alias
3366test "x$ac_build_alias" = x &&
3367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3368test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003370ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003372
3373fi
cristy8b350f62009-11-15 23:12:43 +00003374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003375$as_echo "$ac_cv_build" >&6; }
3376case $ac_cv_build in
3377*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003378*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003379esac
3380build=$ac_cv_build
3381ac_save_IFS=$IFS; IFS='-'
3382set x $ac_cv_build
3383shift
3384build_cpu=$1
3385build_vendor=$2
3386shift; shift
3387# Remember, the first character of IFS is used to create $*,
3388# except with old shells:
3389build_os=$*
3390IFS=$ac_save_IFS
3391case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3392
3393
cristy8b350f62009-11-15 23:12:43 +00003394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003396if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003397 $as_echo_n "(cached) " >&6
3398else
3399 if test "x$host_alias" = x; then
3400 ac_cv_host=$ac_cv_build
3401else
3402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003404fi
3405
3406fi
cristy8b350f62009-11-15 23:12:43 +00003407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003408$as_echo "$ac_cv_host" >&6; }
3409case $ac_cv_host in
3410*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003411*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003412esac
3413host=$ac_cv_host
3414ac_save_IFS=$IFS; IFS='-'
3415set x $ac_cv_host
3416shift
3417host_cpu=$1
3418host_vendor=$2
3419shift; shift
3420# Remember, the first character of IFS is used to create $*,
3421# except with old shells:
3422host_os=$*
3423IFS=$ac_save_IFS
3424case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3425
3426
cristy8b350f62009-11-15 23:12:43 +00003427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003428$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003429if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003430 $as_echo_n "(cached) " >&6
3431else
3432 if test "x$target_alias" = x; then
3433 ac_cv_target=$ac_cv_host
3434else
3435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003437fi
3438
3439fi
cristy8b350f62009-11-15 23:12:43 +00003440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003441$as_echo "$ac_cv_target" >&6; }
3442case $ac_cv_target in
3443*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003444*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003445esac
3446target=$ac_cv_target
3447ac_save_IFS=$IFS; IFS='-'
3448set x $ac_cv_target
3449shift
3450target_cpu=$1
3451target_vendor=$2
3452shift; shift
3453# Remember, the first character of IFS is used to create $*,
3454# except with old shells:
3455target_os=$*
3456IFS=$ac_save_IFS
3457case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3458
3459
3460# The aliases save the names the user supplied, while $host etc.
3461# will get canonicalized.
3462test -n "$target_alias" &&
3463 test "$program_prefix$program_suffix$program_transform_name" = \
3464 NONENONEs,x,x, &&
3465 program_prefix=${target_alias}-
3466
3467# Substitute library versioning
3468
3469
3470# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003472$as_echo_n "checking whether build environment is sane... " >&6; }
3473# Just in case
3474sleep 1
3475echo timestamp > conftest.file
3476# Reject unsafe characters in $srcdir or the absolute working directory
3477# name. Accept space and tab only in the latter.
3478am_lf='
3479'
3480case `pwd` in
3481 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003482 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003483esac
3484case $srcdir in
3485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003486 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003487esac
3488
3489# Do `set' in a subshell so we don't clobber the current shell's
3490# arguments. Must try -L first in case configure is actually a
3491# symlink; some systems play weird games with the mod time of symlinks
3492# (eg FreeBSD returns the mod time of the symlink's containing
3493# directory).
3494if (
3495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3496 if test "$*" = "X"; then
3497 # -L didn't work.
3498 set X `ls -t "$srcdir/configure" conftest.file`
3499 fi
3500 rm -f conftest.file
3501 if test "$*" != "X $srcdir/configure conftest.file" \
3502 && test "$*" != "X conftest.file $srcdir/configure"; then
3503
3504 # If neither matched, then we have a broken ls. This can happen
3505 # if, for instance, CONFIG_SHELL is bash and it inherits a
3506 # broken ls alias from the environment. This has actually
3507 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003508 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3509alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003510 fi
3511
3512 test "$2" = conftest.file
3513 )
3514then
3515 # Ok.
3516 :
3517else
cristy8b350f62009-11-15 23:12:43 +00003518 as_fn_error "newly created file is older than distributed files!
3519Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003520fi
cristy8b350f62009-11-15 23:12:43 +00003521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003522$as_echo "yes" >&6; }
3523
3524am__api_version='1.11'
3525
3526# Find a good install program. We prefer a C program (faster),
3527# so one script is as good as another. But avoid the broken or
3528# incompatible versions:
3529# SysV /etc/install, /usr/sbin/install
3530# SunOS /usr/etc/install
3531# IRIX /sbin/install
3532# AIX /bin/install
3533# AmigaOS /C/install, which installs bootblocks on floppy discs
3534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537# OS/2's system install, which has a completely different semantic
3538# ./install, which can be erroneously created by make from ./install.sh.
3539# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003541$as_echo_n "checking for a BSD-compatible install... " >&6; }
3542if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003543if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003544 $as_echo_n "(cached) " >&6
3545else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003551 # Account for people who put trailing slashes in PATH elements.
3552case $as_dir/ in #((
3553 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003556 /usr/ucb/* ) ;;
3557 *)
3558 # OSF1 and SCO ODT 3.0 have their own names for install.
3559 # Don't use installbsd from OSF since it installs stuff as root
3560 # by default.
3561 for ac_prog in ginstall scoinst install; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564 if test $ac_prog = install &&
3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # AIX install. It has an incompatible calling convention.
3567 :
3568 elif test $ac_prog = install &&
3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570 # program-specific install script used by HP pwplus--don't use.
3571 :
3572 else
3573 rm -rf conftest.one conftest.two conftest.dir
3574 echo one > conftest.one
3575 echo two > conftest.two
3576 mkdir conftest.dir
3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578 test -s conftest.one && test -s conftest.two &&
3579 test -s conftest.dir/conftest.one &&
3580 test -s conftest.dir/conftest.two
3581 then
3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3583 break 3
3584 fi
3585 fi
3586 fi
3587 done
3588 done
3589 ;;
3590esac
3591
cristy8b350f62009-11-15 23:12:43 +00003592 done
cristy3ed852e2009-09-05 21:47:34 +00003593IFS=$as_save_IFS
3594
3595rm -rf conftest.one conftest.two conftest.dir
3596
3597fi
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL=$ac_cv_path_install
3600 else
3601 # As a last resort, use the slow shell script. Don't cache a
3602 # value for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the value is a relative name.
3605 INSTALL=$ac_install_sh
3606 fi
3607fi
cristy8b350f62009-11-15 23:12:43 +00003608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003609$as_echo "$INSTALL" >&6; }
3610
3611# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612# It thinks the first close brace ends the variable substitution.
3613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3614
3615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3616
3617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3618
3619test "$program_prefix" != NONE &&
3620 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3621# Use a double $ so make ignores it.
3622test "$program_suffix" != NONE &&
3623 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3624# Double any \ or $.
3625# By default was `s,x,x', remove it if useless.
3626ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3627program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3628
3629# expand $ac_aux_dir to an absolute path
3630am_aux_dir=`cd $ac_aux_dir && pwd`
3631
3632if test x"${MISSING+set}" != xset; then
3633 case $am_aux_dir in
3634 *\ * | *\ *)
3635 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3636 *)
3637 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3638 esac
3639fi
3640# Use eval to expand $SHELL
3641if eval "$MISSING --run true"; then
3642 am_missing_run="$MISSING --run "
3643else
3644 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003646$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3647fi
3648
3649if test x"${install_sh}" != xset; then
3650 case $am_aux_dir in
3651 *\ * | *\ *)
3652 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3653 *)
3654 install_sh="\${SHELL} $am_aux_dir/install-sh"
3655 esac
3656fi
3657
3658# Installed binaries are usually stripped using `strip' when the user
3659# run `make install-strip'. However `strip' might not be the right
3660# tool to use in cross-compilation environments, therefore Automake
3661# will honor the `STRIP' environment variable to overrule this program.
3662if test "$cross_compiling" != no; then
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3665set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003668if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003669 $as_echo_n "(cached) " >&6
3670else
3671 if test -n "$STRIP"; then
3672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003683 break 2
3684 fi
3685done
cristy8b350f62009-11-15 23:12:43 +00003686 done
cristy3ed852e2009-09-05 21:47:34 +00003687IFS=$as_save_IFS
3688
3689fi
3690fi
3691STRIP=$ac_cv_prog_STRIP
3692if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$STRIP" >&6; }
3695else
cristy8b350f62009-11-15 23:12:43 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "no" >&6; }
3698fi
3699
3700
3701fi
3702if test -z "$ac_cv_prog_STRIP"; then
3703 ac_ct_STRIP=$STRIP
3704 # Extract the first word of "strip", so it can be a program name with args.
3705set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003707$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003708if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003709 $as_echo_n "(cached) " >&6
3710else
3711 if test -n "$ac_ct_STRIP"; then
3712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3713else
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003723 break 2
3724 fi
3725done
cristy8b350f62009-11-15 23:12:43 +00003726 done
cristy3ed852e2009-09-05 21:47:34 +00003727IFS=$as_save_IFS
3728
3729fi
3730fi
3731ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3732if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003734$as_echo "$ac_ct_STRIP" >&6; }
3735else
cristy8b350f62009-11-15 23:12:43 +00003736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003737$as_echo "no" >&6; }
3738fi
3739
3740 if test "x$ac_ct_STRIP" = x; then
3741 STRIP=":"
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744yes:)
cristy8b350f62009-11-15 23:12:43 +00003745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747ac_tool_warned=yes ;;
3748esac
3749 STRIP=$ac_ct_STRIP
3750 fi
3751else
3752 STRIP="$ac_cv_prog_STRIP"
3753fi
3754
3755fi
3756INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3757
cristy8b350f62009-11-15 23:12:43 +00003758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003759$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3760if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003761 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003762 $as_echo_n "(cached) " >&6
3763else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003769 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3772 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3773 'mkdir (GNU coreutils) '* | \
3774 'mkdir (coreutils) '* | \
3775 'mkdir (fileutils) '4.1*)
3776 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3777 break 3;;
3778 esac
3779 done
3780 done
cristy8b350f62009-11-15 23:12:43 +00003781 done
cristy3ed852e2009-09-05 21:47:34 +00003782IFS=$as_save_IFS
3783
3784fi
3785
cristycd4c5312009-11-22 01:19:08 +00003786 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003787 if test "${ac_cv_path_mkdir+set}" = set; then
3788 MKDIR_P="$ac_cv_path_mkdir -p"
3789 else
3790 # As a last resort, use the slow shell script. Don't cache a
3791 # value for MKDIR_P within a source directory, because that will
3792 # break other packages using the cache if that directory is
3793 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003794 MKDIR_P="$ac_install_sh -d"
3795 fi
3796fi
cristy8b350f62009-11-15 23:12:43 +00003797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003798$as_echo "$MKDIR_P" >&6; }
3799
3800mkdir_p="$MKDIR_P"
3801case $mkdir_p in
3802 [\\/$]* | ?:[\\/]*) ;;
3803 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3804esac
3805
3806for ac_prog in gawk mawk nawk awk
3807do
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003811$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003812if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003813 $as_echo_n "(cached) " >&6
3814else
3815 if test -n "$AWK"; then
3816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003827 break 2
3828 fi
3829done
cristy8b350f62009-11-15 23:12:43 +00003830 done
cristy3ed852e2009-09-05 21:47:34 +00003831IFS=$as_save_IFS
3832
3833fi
3834fi
3835AWK=$ac_cv_prog_AWK
3836if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003838$as_echo "$AWK" >&6; }
3839else
cristy8b350f62009-11-15 23:12:43 +00003840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003841$as_echo "no" >&6; }
3842fi
3843
3844
3845 test -n "$AWK" && break
3846done
3847
cristy8b350f62009-11-15 23:12:43 +00003848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003849$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3850set x ${MAKE-make}
3851ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003852if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003853 $as_echo_n "(cached) " >&6
3854else
3855 cat >conftest.make <<\_ACEOF
3856SHELL = /bin/sh
3857all:
3858 @echo '@@@%%%=$(MAKE)=@@@%%%'
3859_ACEOF
3860# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861case `${MAKE-make} -f conftest.make 2>/dev/null` in
3862 *@@@%%%=?*=@@@%%%*)
3863 eval ac_cv_prog_make_${ac_make}_set=yes;;
3864 *)
3865 eval ac_cv_prog_make_${ac_make}_set=no;;
3866esac
3867rm -f conftest.make
3868fi
3869if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003871$as_echo "yes" >&6; }
3872 SET_MAKE=
3873else
cristy8b350f62009-11-15 23:12:43 +00003874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003875$as_echo "no" >&6; }
3876 SET_MAKE="MAKE=${MAKE-make}"
3877fi
3878
3879rm -rf .tst 2>/dev/null
3880mkdir .tst 2>/dev/null
3881if test -d .tst; then
3882 am__leading_dot=.
3883else
3884 am__leading_dot=_
3885fi
3886rmdir .tst 2>/dev/null
3887
3888if test "`cd $srcdir && pwd`" != "`pwd`"; then
3889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3890 # is not polluted with repeated "-I."
3891 am__isrc=' -I$(srcdir)'
3892 # test to see if srcdir already configured
3893 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003894 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003895 fi
3896fi
3897
3898# test whether we have cygpath
3899if test -z "$CYGPATH_W"; then
3900 if (cygpath --version) >/dev/null 2>/dev/null; then
3901 CYGPATH_W='cygpath -w'
3902 else
3903 CYGPATH_W=echo
3904 fi
3905fi
3906
3907
3908# Define the identity of the package.
3909 PACKAGE=$PACKAGE_NAME
3910 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3911
3912
3913# Some tools Automake needs.
3914
3915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3916
3917
3918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3919
3920
3921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3922
3923
3924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3925
3926
3927MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3928
3929# We need awk for the "check" target. The system "awk" is bad on
3930# some platforms.
3931# Always define AMTAR for backward compatibility.
3932
3933AMTAR=${AMTAR-"${am_missing_run}tar"}
3934
3935am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3936
3937
3938
3939
3940
3941
3942# Enable support for silent build rules
3943# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003944if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003945 enableval=$enable_silent_rules;
3946fi
3947
3948case $enable_silent_rules in
3949yes) AM_DEFAULT_VERBOSITY=0;;
3950no) AM_DEFAULT_VERBOSITY=1;;
3951*) AM_DEFAULT_VERBOSITY=0;;
3952esac
3953AM_BACKSLASH='\'
3954
3955
3956MAGICK_LIB_VERSION="0x"
3957if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3958 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3959fi
3960MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3961if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3962 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3963fi
3964MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3965if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3966 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3967fi
3968MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3969
3970
3971# Definition used to define MagickLibVersionText in version.h
3972MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3973
3974
3975# Definition used to define MagickLibVersionNumber in version.h
3976MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3977
3978
3979# Regenerate config.status if ChangeLog or version.sh is updated.
3980CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3981
3982
3983PERLMAINCC=$CC
3984
3985MAGICK_CFLAGS=''
3986MAGICK_CPPFLAGS=$CPPFLAGS_USER
3987MAGICK_PCFLAGS=$CPPFLAGS_USER
3988MAGICK_LDFLAGS=''
3989MAGICK_LIBS=''
3990
3991#
3992# Evaluate shell variable equivalents to Makefile directory variables
3993#
3994if test "x$prefix" = xNONE; then
3995 prefix=$ac_default_prefix
3996fi
3997# Let make expand exec_prefix.
3998if test "x$exec_prefix" = xNONE; then
3999 exec_prefix='${prefix}'
4000fi
4001
4002#
4003eval "eval PREFIX_DIR=${prefix}"
4004
4005eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4006
4007eval "eval BIN_DIR=$bindir"
4008
4009eval "eval SBIN_DIR=$sbindir"
4010
4011eval "eval LIBEXEC_DIR=$libexecdir"
4012
4013eval "eval DATA_DIR=$datadir"
4014
4015eval "eval SYSCONF_DIR=$sysconfdir"
4016
4017eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4018
4019eval "eval LOCALSTATE_DIR=$localstatedir"
4020
4021eval "eval LIB_DIR=$libdir"
4022
4023eval "eval INCLUDE_DIR=$includedir"
4024
4025eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4026
4027eval "eval INFO_DIR=$infodir"
4028
4029eval "eval MAN_DIR=$mandir"
4030
4031
4032# Get full paths to source and build directories
4033srcdirfull="`cd $srcdir && pwd`"
4034builddir="`pwd`"
4035
4036#
4037# Compute variables useful for running uninstalled software.
4038#
4039MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4040MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4041MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4042MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4043DIRSEP=':'
4044case "${build_os}" in
4045 mingw* )
4046 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4047 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4048 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4049 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4050 DIRSEP=';'
4051 ;;
4052esac
4053case "${host_os}" in
4054 mingw* )
4055 DIRSEP=';'
4056 ;;
4057esac
4058
4059
4060
4061
4062
4063
4064# Check for programs
4065ac_ext=c
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004074$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004075if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004076 $as_echo_n "(cached) " >&6
4077else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080else
4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004090 break 2
4091 fi
4092done
cristy8b350f62009-11-15 23:12:43 +00004093 done
cristy3ed852e2009-09-05 21:47:34 +00004094IFS=$as_save_IFS
4095
4096fi
4097fi
4098CC=$ac_cv_prog_CC
4099if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004101$as_echo "$CC" >&6; }
4102else
cristy8b350f62009-11-15 23:12:43 +00004103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004104$as_echo "no" >&6; }
4105fi
4106
4107
4108fi
4109if test -z "$ac_cv_prog_CC"; then
4110 ac_ct_CC=$CC
4111 # Extract the first word of "gcc", so it can be a program name with args.
4112set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004114$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004116 $as_echo_n "(cached) " >&6
4117else
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130 break 2
4131 fi
4132done
cristy8b350f62009-11-15 23:12:43 +00004133 done
cristy3ed852e2009-09-05 21:47:34 +00004134IFS=$as_save_IFS
4135
4136fi
4137fi
4138ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004141$as_echo "$ac_ct_CC" >&6; }
4142else
cristy8b350f62009-11-15 23:12:43 +00004143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004144$as_echo "no" >&6; }
4145fi
4146
4147 if test "x$ac_ct_CC" = x; then
4148 CC=""
4149 else
4150 case $cross_compiling:$ac_tool_warned in
4151yes:)
cristy8b350f62009-11-15 23:12:43 +00004152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154ac_tool_warned=yes ;;
4155esac
4156 CC=$ac_ct_CC
4157 fi
4158else
4159 CC="$ac_cv_prog_CC"
4160fi
4161
4162if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004168if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004169 $as_echo_n "(cached) " >&6
4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004183 break 2
4184 fi
4185done
cristy8b350f62009-11-15 23:12:43 +00004186 done
cristy3ed852e2009-09-05 21:47:34 +00004187IFS=$as_save_IFS
4188
4189fi
4190fi
4191CC=$ac_cv_prog_CC
4192if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004194$as_echo "$CC" >&6; }
4195else
cristy8b350f62009-11-15 23:12:43 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo "no" >&6; }
4198fi
4199
4200
4201 fi
4202fi
4203if test -z "$CC"; then
4204 # Extract the first word of "cc", so it can be a program name with args.
4205set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004207$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004208if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004209 $as_echo_n "(cached) " >&6
4210else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213else
4214 ac_prog_rejected=no
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223 ac_prog_rejected=yes
4224 continue
4225 fi
4226 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004228 break 2
4229 fi
4230done
cristy8b350f62009-11-15 23:12:43 +00004231 done
cristy3ed852e2009-09-05 21:47:34 +00004232IFS=$as_save_IFS
4233
4234if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy $ac_cv_prog_CC
4237 shift
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set CC to just the basename; use the full file name.
4242 shift
4243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4244 fi
4245fi
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004251$as_echo "$CC" >&6; }
4252else
cristy8b350f62009-11-15 23:12:43 +00004253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254$as_echo "no" >&6; }
4255fi
4256
4257
4258fi
4259if test -z "$CC"; then
4260 if test -n "$ac_tool_prefix"; then
4261 for ac_prog in cl.exe
4262 do
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004266$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004267if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004268 $as_echo_n "(cached) " >&6
4269else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004282 break 2
4283 fi
4284done
cristy8b350f62009-11-15 23:12:43 +00004285 done
cristy3ed852e2009-09-05 21:47:34 +00004286IFS=$as_save_IFS
4287
4288fi
4289fi
4290CC=$ac_cv_prog_CC
4291if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004293$as_echo "$CC" >&6; }
4294else
cristy8b350f62009-11-15 23:12:43 +00004295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004296$as_echo "no" >&6; }
4297fi
4298
4299
4300 test -n "$CC" && break
4301 done
4302fi
4303if test -z "$CC"; then
4304 ac_ct_CC=$CC
4305 for ac_prog in cl.exe
4306do
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004310$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004312 $as_echo_n "(cached) " >&6
4313else
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004326 break 2
4327 fi
4328done
cristy8b350f62009-11-15 23:12:43 +00004329 done
cristy3ed852e2009-09-05 21:47:34 +00004330IFS=$as_save_IFS
4331
4332fi
4333fi
4334ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo "$ac_ct_CC" >&6; }
4338else
cristy8b350f62009-11-15 23:12:43 +00004339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340$as_echo "no" >&6; }
4341fi
4342
4343
4344 test -n "$ac_ct_CC" && break
4345done
4346
4347 if test "x$ac_ct_CC" = x; then
4348 CC=""
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351yes:)
cristy8b350f62009-11-15 23:12:43 +00004352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354ac_tool_warned=yes ;;
4355esac
4356 CC=$ac_ct_CC
4357 fi
4358fi
4359
4360fi
4361
4362
cristy8b350f62009-11-15 23:12:43 +00004363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004365as_fn_error "no acceptable C compiler found in \$PATH
4366See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004367
4368# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004370set X $ac_compile
4371ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004372for ac_option in --version -v -V -qversion; do
4373 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004374case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
cristy8b350f62009-11-15 23:12:43 +00004378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379$as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004381 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004382 if test -s conftest.err; then
4383 sed '10a\
4384... rest of stderr output deleted ...
4385 10q' conftest.err >conftest.er1
4386 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004387 fi
cristycd4c5312009-11-22 01:19:08 +00004388 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391done
cristy3ed852e2009-09-05 21:47:34 +00004392
cristy8b350f62009-11-15 23:12:43 +00004393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004394/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004395
cristy3ed852e2009-09-05 21:47:34 +00004396int
4397main ()
4398{
4399
4400 ;
4401 return 0;
4402}
4403_ACEOF
4404ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004406# Try to create an executable without -o first, disregard a.out.
4407# It will help us diagnose broken compilers, and finding out an intuition
4408# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4410$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4412
4413# The possible output files:
4414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4415
4416ac_rmfiles=
4417for ac_file in $ac_files
4418do
4419 case $ac_file in
4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4422 esac
4423done
4424rm -f $ac_rmfiles
4425
cristy8b350f62009-11-15 23:12:43 +00004426if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
cristy8b350f62009-11-15 23:12:43 +00004431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004433 (eval "$ac_link_default") 2>&5
4434 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439# in a Makefile. We should not override ac_cv_exeext if it was cached,
4440# so that the user can short-circuit this test for compilers unknown to
4441# Autoconf.
4442for ac_file in $ac_files ''
4443do
4444 test -f "$ac_file" || continue
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4447 ;;
4448 [ab].out )
4449 # We found the default executable, but exeext='' is most
4450 # certainly right.
4451 break;;
4452 *.* )
cristy8b350f62009-11-15 23:12:43 +00004453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004454 then :; else
4455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456 fi
4457 # We set ac_cv_exeext here because the later test for it is not
4458 # safe: cross compilers may not add the suffix if given an `-o'
4459 # argument, so we may need to know it at that point already.
4460 # Even if this section looks crufty: it has the advantage of
4461 # actually working.
4462 break;;
4463 * )
4464 break;;
4465 esac
4466done
4467test "$ac_cv_exeext" = no && ac_cv_exeext=
4468
4469else
4470 ac_file=''
4471fi
cristy8b350f62009-11-15 23:12:43 +00004472if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476sed 's/^/| /' conftest.$ac_ext >&5
4477
cristy8b350f62009-11-15 23:12:43 +00004478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004480{ as_fn_set_status 77
4481as_fn_error "C compiler cannot create executables
4482See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004483else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004486fi
cristycd4c5312009-11-22 01:19:08 +00004487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4488$as_echo_n "checking for C compiler default output file name... " >&6; }
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4490$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004491ac_exeext=$ac_cv_exeext
4492
cristycd4c5312009-11-22 01:19:08 +00004493rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004494ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004497if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004498case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
cristy8b350f62009-11-15 23:12:43 +00004502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004504 (eval "$ac_link") 2>&5
4505 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004508 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4509# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4510# work properly (i.e., refer to `conftest.exe'), while it won't with
4511# `rm'.
4512for ac_file in conftest.exe conftest conftest.*; do
4513 test -f "$ac_file" || continue
4514 case $ac_file in
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517 break;;
4518 * ) break;;
4519 esac
4520done
4521else
cristy8b350f62009-11-15 23:12:43 +00004522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004524as_fn_error "cannot compute suffix of executables: cannot compile and link
4525See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004526fi
cristycd4c5312009-11-22 01:19:08 +00004527rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo "$ac_cv_exeext" >&6; }
4530
4531rm -f conftest.$ac_ext
4532EXEEXT=$ac_cv_exeext
4533ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536#include <stdio.h>
4537int
4538main ()
4539{
4540FILE *f = fopen ("conftest.out", "w");
4541 return ferror (f) || fclose (f) != 0;
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547ac_clean_files="$ac_clean_files conftest.out"
4548# Check that the compiler produces executables we can run. If not, either
4549# the compiler is broken, or we cross compile.
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4551$as_echo_n "checking whether we are cross compiling... " >&6; }
4552if test "$cross_compiling" != yes; then
4553 { { ac_try="$ac_link"
4554case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559$as_echo "$ac_try_echo"; } >&5
4560 (eval "$ac_link") 2>&5
4561 ac_status=$?
4562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }
4564 if { ac_try='./conftest$ac_cv_exeext'
4565 { { case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_try") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; }; then
4575 cross_compiling=no
4576 else
4577 if test "$cross_compiling" = maybe; then
4578 cross_compiling=yes
4579 else
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582as_fn_error "cannot run C compiled programs.
4583If you meant to cross compile, use \`--host'.
4584See \`config.log' for more details." "$LINENO" 5; }
4585 fi
4586 fi
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4589$as_echo "$cross_compiling" >&6; }
4590
4591rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4592ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004594$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004595if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004596 $as_echo_n "(cached) " >&6
4597else
cristy8b350f62009-11-15 23:12:43 +00004598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004599/* end confdefs.h. */
4600
4601int
4602main ()
4603{
4604
4605 ;
4606 return 0;
4607}
4608_ACEOF
4609rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004610if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
cristy8b350f62009-11-15 23:12:43 +00004615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004617 (eval "$ac_compile") 2>&5
4618 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004621 for ac_file in conftest.o conftest.obj conftest.*; do
4622 test -f "$ac_file" || continue;
4623 case $ac_file in
4624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4625 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4626 break;;
4627 esac
4628done
4629else
4630 $as_echo "$as_me: failed program was:" >&5
4631sed 's/^/| /' conftest.$ac_ext >&5
4632
cristy8b350f62009-11-15 23:12:43 +00004633{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004635as_fn_error "cannot compute suffix of object files: cannot compile
4636See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004637fi
cristy3ed852e2009-09-05 21:47:34 +00004638rm -f conftest.$ac_cv_objext conftest.$ac_ext
4639fi
cristy8b350f62009-11-15 23:12:43 +00004640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004641$as_echo "$ac_cv_objext" >&6; }
4642OBJEXT=$ac_cv_objext
4643ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004645$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004646if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004647 $as_echo_n "(cached) " >&6
4648else
cristy8b350f62009-11-15 23:12:43 +00004649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004650/* end confdefs.h. */
4651
4652int
4653main ()
4654{
4655#ifndef __GNUC__
4656 choke me
4657#endif
4658
4659 ;
4660 return 0;
4661}
4662_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004663if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 ac_compiler_gnu=yes
4665else
cristy8b350f62009-11-15 23:12:43 +00004666 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004667fi
cristy3ed852e2009-09-05 21:47:34 +00004668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669ac_cv_c_compiler_gnu=$ac_compiler_gnu
4670
4671fi
cristy8b350f62009-11-15 23:12:43 +00004672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4674if test $ac_compiler_gnu = yes; then
4675 GCC=yes
4676else
4677 GCC=
4678fi
4679ac_test_CFLAGS=${CFLAGS+set}
4680ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004683if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004684 $as_echo_n "(cached) " >&6
4685else
4686 ac_save_c_werror_flag=$ac_c_werror_flag
4687 ac_c_werror_flag=yes
4688 ac_cv_prog_cc_g=no
4689 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004691/* end confdefs.h. */
4692
4693int
4694main ()
4695{
4696
4697 ;
4698 return 0;
4699}
4700_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004701if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004702 ac_cv_prog_cc_g=yes
4703else
cristy8b350f62009-11-15 23:12:43 +00004704 CFLAGS=""
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004706/* end confdefs.h. */
4707
4708int
4709main ()
4710{
4711
4712 ;
4713 return 0;
4714}
4715_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004716if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004717
cristy8b350f62009-11-15 23:12:43 +00004718else
4719 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004720 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004722/* end confdefs.h. */
4723
4724int
4725main ()
4726{
4727
4728 ;
4729 return 0;
4730}
4731_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004733 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004734fi
cristy3ed852e2009-09-05 21:47:34 +00004735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736fi
cristy3ed852e2009-09-05 21:47:34 +00004737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738fi
cristy3ed852e2009-09-05 21:47:34 +00004739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_c_werror_flag=$ac_save_c_werror_flag
4741fi
cristy8b350f62009-11-15 23:12:43 +00004742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004743$as_echo "$ac_cv_prog_cc_g" >&6; }
4744if test "$ac_test_CFLAGS" = set; then
4745 CFLAGS=$ac_save_CFLAGS
4746elif test $ac_cv_prog_cc_g = yes; then
4747 if test "$GCC" = yes; then
4748 CFLAGS="-g -O2"
4749 else
4750 CFLAGS="-g"
4751 fi
4752else
4753 if test "$GCC" = yes; then
4754 CFLAGS="-O2"
4755 else
4756 CFLAGS=
4757 fi
4758fi
cristy8b350f62009-11-15 23:12:43 +00004759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004760$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004761if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004762 $as_echo_n "(cached) " >&6
4763else
4764 ac_cv_prog_cc_c89=no
4765ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004767/* end confdefs.h. */
4768#include <stdarg.h>
4769#include <stdio.h>
4770#include <sys/types.h>
4771#include <sys/stat.h>
4772/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4773struct buf { int x; };
4774FILE * (*rcsopen) (struct buf *, struct stat *, int);
4775static char *e (p, i)
4776 char **p;
4777 int i;
4778{
4779 return p[i];
4780}
4781static char *f (char * (*g) (char **, int), char **p, ...)
4782{
4783 char *s;
4784 va_list v;
4785 va_start (v,p);
4786 s = g (p, va_arg (v,int));
4787 va_end (v);
4788 return s;
4789}
4790
4791/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4792 function prototypes and stuff, but not '\xHH' hex character constants.
4793 These don't provoke an error unfortunately, instead are silently treated
4794 as 'x'. The following induces an error, until -std is added to get
4795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4796 array size at least. It's necessary to write '\x00'==0 to get something
4797 that's true only with -std. */
4798int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4799
4800/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4801 inside strings and character constants. */
4802#define FOO(x) 'x'
4803int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4804
4805int test (int i, double x);
4806struct s1 {int (*f) (int a);};
4807struct s2 {int (*f) (double a);};
4808int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4809int argc;
4810char **argv;
4811int
4812main ()
4813{
4814return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4815 ;
4816 return 0;
4817}
4818_ACEOF
4819for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4821do
4822 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004823 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004824 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004825fi
cristy3ed852e2009-09-05 21:47:34 +00004826rm -f core conftest.err conftest.$ac_objext
4827 test "x$ac_cv_prog_cc_c89" != "xno" && break
4828done
4829rm -f conftest.$ac_ext
4830CC=$ac_save_CC
4831
4832fi
4833# AC_CACHE_VAL
4834case "x$ac_cv_prog_cc_c89" in
4835 x)
cristy8b350f62009-11-15 23:12:43 +00004836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004837$as_echo "none needed" >&6; } ;;
4838 xno)
cristy8b350f62009-11-15 23:12:43 +00004839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo "unsupported" >&6; } ;;
4841 *)
4842 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4845esac
cristy8b350f62009-11-15 23:12:43 +00004846if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004847
cristy8b350f62009-11-15 23:12:43 +00004848fi
cristy3ed852e2009-09-05 21:47:34 +00004849
4850ac_ext=c
4851ac_cpp='$CPP $CPPFLAGS'
4852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855DEPDIR="${am__leading_dot}deps"
4856
4857ac_config_commands="$ac_config_commands depfiles"
4858
4859
4860am_make=${MAKE-make}
4861cat > confinc << 'END'
4862am__doit:
4863 @echo this is the am__doit target
4864.PHONY: am__doit
4865END
4866# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004868$as_echo_n "checking for style of include used by $am_make... " >&6; }
4869am__include="#"
4870am__quote=
4871_am_result=none
4872# First try GNU make style include.
4873echo "include confinc" > confmf
4874# Ignore all kinds of additional output from `make'.
4875case `$am_make -s -f confmf 2> /dev/null` in #(
4876*the\ am__doit\ target*)
4877 am__include=include
4878 am__quote=
4879 _am_result=GNU
4880 ;;
4881esac
4882# Now try BSD make style include.
4883if test "$am__include" = "#"; then
4884 echo '.include "confinc"' > confmf
4885 case `$am_make -s -f confmf 2> /dev/null` in #(
4886 *the\ am__doit\ target*)
4887 am__include=.include
4888 am__quote="\""
4889 _am_result=BSD
4890 ;;
4891 esac
4892fi
4893
4894
cristy8b350f62009-11-15 23:12:43 +00004895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004896$as_echo "$_am_result" >&6; }
4897rm -f confinc confmf
4898
4899# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004900if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004901 enableval=$enable_dependency_tracking;
4902fi
4903
4904if test "x$enable_dependency_tracking" != xno; then
4905 am_depcomp="$ac_aux_dir/depcomp"
4906 AMDEPBACKSLASH='\'
4907fi
4908 if test "x$enable_dependency_tracking" != xno; then
4909 AMDEP_TRUE=
4910 AMDEP_FALSE='#'
4911else
4912 AMDEP_TRUE='#'
4913 AMDEP_FALSE=
4914fi
4915
4916
4917
4918depcc="$CC" am_compiler_list=
4919
cristy8b350f62009-11-15 23:12:43 +00004920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004921$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004922if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004923 $as_echo_n "(cached) " >&6
4924else
4925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4926 # We make a subdir and do the tests there. Otherwise we can end up
4927 # making bogus files that we don't know about and never remove. For
4928 # instance it was reported that on HP-UX the gcc test will end up
4929 # making a dummy file named `D' -- because `-MD' means `put the output
4930 # in D'.
4931 mkdir conftest.dir
4932 # Copy depcomp to subdir because otherwise we won't find it if we're
4933 # using a relative directory.
4934 cp "$am_depcomp" conftest.dir
4935 cd conftest.dir
4936 # We will build objects and dependencies in a subdirectory because
4937 # it helps to detect inapplicable dependency modes. For instance
4938 # both Tru64's cc and ICC support -MD to output dependencies as a
4939 # side effect of compilation, but ICC will put the dependencies in
4940 # the current directory while Tru64 will put them in the object
4941 # directory.
4942 mkdir sub
4943
4944 am_cv_CC_dependencies_compiler_type=none
4945 if test "$am_compiler_list" = ""; then
4946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4947 fi
4948 am__universal=false
4949 case " $depcc " in #(
4950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4951 esac
4952
4953 for depmode in $am_compiler_list; do
4954 # Setup a source with many dependencies, because some compilers
4955 # like to wrap large dependency lists on column 80 (with \), and
4956 # we should not choose a depcomp mode which is confused by this.
4957 #
4958 # We need to recreate these files for each test, as the compiler may
4959 # overwrite some of them when testing with obscure command lines.
4960 # This happens at least with the AIX C compiler.
4961 : > sub/conftest.c
4962 for i in 1 2 3 4 5 6; do
4963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4964 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4965 # Solaris 8's {/usr,}/bin/sh.
4966 touch sub/conftst$i.h
4967 done
4968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4969
4970 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4971 # mode. It turns out that the SunPro C++ compiler does not properly
4972 # handle `-M -o', and we need to detect this. Also, some Intel
4973 # versions had trouble with output in subdirs
4974 am__obj=sub/conftest.${OBJEXT-o}
4975 am__minus_obj="-o $am__obj"
4976 case $depmode in
4977 gcc)
4978 # This depmode causes a compiler race in universal mode.
4979 test "$am__universal" = false || continue
4980 ;;
4981 nosideeffect)
4982 # after this tag, mechanisms are not by side-effect, so they'll
4983 # only be used when explicitly requested
4984 if test "x$enable_dependency_tracking" = xyes; then
4985 continue
4986 else
4987 break
4988 fi
4989 ;;
4990 msvisualcpp | msvcmsys)
4991 # This compiler won't grok `-c -o', but also, the minuso test has
4992 # not run yet. These depmodes are late enough in the game, and
4993 # so weak that their functioning should not be impacted.
4994 am__obj=conftest.${OBJEXT-o}
4995 am__minus_obj=
4996 ;;
4997 none) break ;;
4998 esac
4999 if depmode=$depmode \
5000 source=sub/conftest.c object=$am__obj \
5001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5003 >/dev/null 2>conftest.err &&
5004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008 # icc doesn't choke on unknown options, it will just issue warnings
5009 # or remarks (even with -Werror). So we grep stderr for any message
5010 # that says an option was ignored or not supported.
5011 # When given -MP, icc 7.0 and 7.1 complain thusly:
5012 # icc: Command line warning: ignoring option '-M'; no argument required
5013 # The diagnosis changed in icc 8.0:
5014 # icc: Command line remark: option '-MP' not supported
5015 if (grep 'ignoring option' conftest.err ||
5016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5017 am_cv_CC_dependencies_compiler_type=$depmode
5018 break
5019 fi
5020 fi
5021 done
5022
5023 cd ..
5024 rm -rf conftest.dir
5025else
5026 am_cv_CC_dependencies_compiler_type=none
5027fi
5028
5029fi
cristy8b350f62009-11-15 23:12:43 +00005030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00005031$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5032CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5033
5034 if
5035 test "x$enable_dependency_tracking" != xno \
5036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5037 am__fastdepCC_TRUE=
5038 am__fastdepCC_FALSE='#'
5039else
5040 am__fastdepCC_TRUE='#'
5041 am__fastdepCC_FALSE=
5042fi
5043
5044
cristy95646052009-11-28 23:05:30 +00005045ac_ext=cpp
5046ac_cpp='$CXXCPP $CPPFLAGS'
5047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5050if test -z "$CXX"; then
5051 if test -n "$CCC"; then
5052 CXX=$CCC
5053 else
5054 if test -n "$ac_tool_prefix"; then
5055 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5056 do
5057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if test "${ac_cv_prog_CXX+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5063else
5064 if test -n "$CXX"; then
5065 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078done
5079 done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084CXX=$ac_cv_prog_CXX
5085if test -n "$CXX"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5087$as_echo "$CXX" >&6; }
5088else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093
5094 test -n "$CXX" && break
5095 done
5096fi
5097if test -z "$CXX"; then
5098 ac_ct_CXX=$CXX
5099 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5100do
5101 # Extract the first word of "$ac_prog", so it can be a program name with args.
5102set dummy $ac_prog; ac_word=$2
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5107else
5108 if test -n "$ac_ct_CXX"; then
5109 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_prog_ac_ct_CXX="$ac_prog"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122done
5123 done
5124IFS=$as_save_IFS
5125
5126fi
5127fi
5128ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5129if test -n "$ac_ct_CXX"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5131$as_echo "$ac_ct_CXX" >&6; }
5132else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135fi
5136
5137
5138 test -n "$ac_ct_CXX" && break
5139done
5140
5141 if test "x$ac_ct_CXX" = x; then
5142 CXX="g++"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145yes:)
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148ac_tool_warned=yes ;;
5149esac
5150 CXX=$ac_ct_CXX
5151 fi
5152fi
5153
5154 fi
5155fi
5156# Provide some information about the compiler.
5157$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5158set X $ac_compile
5159ac_compiler=$2
5160for ac_option in --version -v -V -qversion; do
5161 { { ac_try="$ac_compiler $ac_option >&5"
5162case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165esac
5166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167$as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5169 ac_status=$?
5170 if test -s conftest.err; then
5171 sed '10a\
5172... rest of stderr output deleted ...
5173 10q' conftest.err >conftest.er1
5174 cat conftest.er1 >&5
5175 fi
5176 rm -f conftest.er1 conftest.err
5177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5178 test $ac_status = 0; }
5179done
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5182$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5183if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h. */
5188
5189int
5190main ()
5191{
5192#ifndef __GNUC__
5193 choke me
5194#endif
5195
5196 ;
5197 return 0;
5198}
5199_ACEOF
5200if ac_fn_cxx_try_compile "$LINENO"; then :
5201 ac_compiler_gnu=yes
5202else
5203 ac_compiler_gnu=no
5204fi
5205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5207
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5210$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5211if test $ac_compiler_gnu = yes; then
5212 GXX=yes
5213else
5214 GXX=
5215fi
5216ac_test_CXXFLAGS=${CXXFLAGS+set}
5217ac_save_CXXFLAGS=$CXXFLAGS
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5219$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5220if test "${ac_cv_prog_cxx_g+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222else
5223 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5224 ac_cxx_werror_flag=yes
5225 ac_cv_prog_cxx_g=no
5226 CXXFLAGS="-g"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h. */
5229
5230int
5231main ()
5232{
5233
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238if ac_fn_cxx_try_compile "$LINENO"; then :
5239 ac_cv_prog_cxx_g=yes
5240else
5241 CXXFLAGS=""
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h. */
5244
5245int
5246main ()
5247{
5248
5249 ;
5250 return 0;
5251}
5252_ACEOF
5253if ac_fn_cxx_try_compile "$LINENO"; then :
5254
5255else
5256 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5257 CXXFLAGS="-g"
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259/* end confdefs.h. */
5260
5261int
5262main ()
5263{
5264
5265 ;
5266 return 0;
5267}
5268_ACEOF
5269if ac_fn_cxx_try_compile "$LINENO"; then :
5270 ac_cv_prog_cxx_g=yes
5271fi
5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273fi
5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275fi
5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5278fi
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5280$as_echo "$ac_cv_prog_cxx_g" >&6; }
5281if test "$ac_test_CXXFLAGS" = set; then
5282 CXXFLAGS=$ac_save_CXXFLAGS
5283elif test $ac_cv_prog_cxx_g = yes; then
5284 if test "$GXX" = yes; then
5285 CXXFLAGS="-g -O2"
5286 else
5287 CXXFLAGS="-g"
5288 fi
5289else
5290 if test "$GXX" = yes; then
5291 CXXFLAGS="-O2"
5292 else
5293 CXXFLAGS=
5294 fi
5295fi
5296ac_ext=c
5297ac_cpp='$CPP $CPPFLAGS'
5298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301
5302depcc="$CXX" am_compiler_list=
5303
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5305$as_echo_n "checking dependency style of $depcc... " >&6; }
5306if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308else
5309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5310 # We make a subdir and do the tests there. Otherwise we can end up
5311 # making bogus files that we don't know about and never remove. For
5312 # instance it was reported that on HP-UX the gcc test will end up
5313 # making a dummy file named `D' -- because `-MD' means `put the output
5314 # in D'.
5315 mkdir conftest.dir
5316 # Copy depcomp to subdir because otherwise we won't find it if we're
5317 # using a relative directory.
5318 cp "$am_depcomp" conftest.dir
5319 cd conftest.dir
5320 # We will build objects and dependencies in a subdirectory because
5321 # it helps to detect inapplicable dependency modes. For instance
5322 # both Tru64's cc and ICC support -MD to output dependencies as a
5323 # side effect of compilation, but ICC will put the dependencies in
5324 # the current directory while Tru64 will put them in the object
5325 # directory.
5326 mkdir sub
5327
5328 am_cv_CXX_dependencies_compiler_type=none
5329 if test "$am_compiler_list" = ""; then
5330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5331 fi
5332 am__universal=false
5333 case " $depcc " in #(
5334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5335 esac
5336
5337 for depmode in $am_compiler_list; do
5338 # Setup a source with many dependencies, because some compilers
5339 # like to wrap large dependency lists on column 80 (with \), and
5340 # we should not choose a depcomp mode which is confused by this.
5341 #
5342 # We need to recreate these files for each test, as the compiler may
5343 # overwrite some of them when testing with obscure command lines.
5344 # This happens at least with the AIX C compiler.
5345 : > sub/conftest.c
5346 for i in 1 2 3 4 5 6; do
5347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349 # Solaris 8's {/usr,}/bin/sh.
5350 touch sub/conftst$i.h
5351 done
5352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5353
5354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle `-M -o', and we need to detect this. Also, some Intel
5357 # versions had trouble with output in subdirs
5358 am__obj=sub/conftest.${OBJEXT-o}
5359 am__minus_obj="-o $am__obj"
5360 case $depmode in
5361 gcc)
5362 # This depmode causes a compiler race in universal mode.
5363 test "$am__universal" = false || continue
5364 ;;
5365 nosideeffect)
5366 # after this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested
5368 if test "x$enable_dependency_tracking" = xyes; then
5369 continue
5370 else
5371 break
5372 fi
5373 ;;
5374 msvisualcpp | msvcmsys)
5375 # This compiler won't grok `-c -o', but also, the minuso test has
5376 # not run yet. These depmodes are late enough in the game, and
5377 # so weak that their functioning should not be impacted.
5378 am__obj=conftest.${OBJEXT-o}
5379 am__minus_obj=
5380 ;;
5381 none) break ;;
5382 esac
5383 if depmode=$depmode \
5384 source=sub/conftest.c object=$am__obj \
5385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387 >/dev/null 2>conftest.err &&
5388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401 am_cv_CXX_dependencies_compiler_type=$depmode
5402 break
5403 fi
5404 fi
5405 done
5406
5407 cd ..
5408 rm -rf conftest.dir
5409else
5410 am_cv_CXX_dependencies_compiler_type=none
5411fi
5412
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5415$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5416CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5417
5418 if
5419 test "x$enable_dependency_tracking" != xno \
5420 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5421 am__fastdepCXX_TRUE=
5422 am__fastdepCXX_FALSE='#'
5423else
5424 am__fastdepCXX_TRUE='#'
5425 am__fastdepCXX_FALSE=
5426fi
5427
5428
cristy8b350f62009-11-15 23:12:43 +00005429 case $ac_cv_prog_cc_stdc in #(
5430 no) :
5431 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5432 *) :
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005434$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005435if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005436 $as_echo_n "(cached) " >&6
5437else
5438 ac_cv_prog_cc_c99=no
5439ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005441/* end confdefs.h. */
5442#include <stdarg.h>
5443#include <stdbool.h>
5444#include <stdlib.h>
5445#include <wchar.h>
5446#include <stdio.h>
5447
5448// Check varargs macros. These examples are taken from C99 6.10.3.5.
5449#define debug(...) fprintf (stderr, __VA_ARGS__)
5450#define showlist(...) puts (#__VA_ARGS__)
5451#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5452static void
5453test_varargs_macros (void)
5454{
5455 int x = 1234;
5456 int y = 5678;
5457 debug ("Flag");
5458 debug ("X = %d\n", x);
5459 showlist (The first, second, and third items.);
5460 report (x>y, "x is %d but y is %d", x, y);
5461}
5462
5463// Check long long types.
5464#define BIG64 18446744073709551615ull
5465#define BIG32 4294967295ul
5466#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5467#if !BIG_OK
5468 your preprocessor is broken;
5469#endif
5470#if BIG_OK
5471#else
5472 your preprocessor is broken;
5473#endif
5474static long long int bignum = -9223372036854775807LL;
5475static unsigned long long int ubignum = BIG64;
5476
5477struct incomplete_array
5478{
5479 int datasize;
5480 double data[];
5481};
5482
5483struct named_init {
5484 int number;
5485 const wchar_t *name;
5486 double average;
5487};
5488
5489typedef const char *ccp;
5490
5491static inline int
5492test_restrict (ccp restrict text)
5493{
5494 // See if C++-style comments work.
5495 // Iterate through items via the restricted pointer.
5496 // Also check for declarations in for loops.
5497 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5498 continue;
5499 return 0;
5500}
5501
5502// Check varargs and va_copy.
5503static void
5504test_varargs (const char *format, ...)
5505{
5506 va_list args;
5507 va_start (args, format);
5508 va_list args_copy;
5509 va_copy (args_copy, args);
5510
5511 const char *str;
5512 int number;
5513 float fnumber;
5514
5515 while (*format)
5516 {
5517 switch (*format++)
5518 {
5519 case 's': // string
5520 str = va_arg (args_copy, const char *);
5521 break;
5522 case 'd': // int
5523 number = va_arg (args_copy, int);
5524 break;
5525 case 'f': // float
5526 fnumber = va_arg (args_copy, double);
5527 break;
5528 default:
5529 break;
5530 }
5531 }
5532 va_end (args_copy);
5533 va_end (args);
5534}
5535
5536int
5537main ()
5538{
5539
5540 // Check bool.
5541 _Bool success = false;
5542
5543 // Check restrict.
5544 if (test_restrict ("String literal") == 0)
5545 success = true;
5546 char *restrict newvar = "Another string";
5547
5548 // Check varargs.
5549 test_varargs ("s, d' f .", "string", 65, 34.234);
5550 test_varargs_macros ();
5551
5552 // Check flexible array members.
5553 struct incomplete_array *ia =
5554 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5555 ia->datasize = 10;
5556 for (int i = 0; i < ia->datasize; ++i)
5557 ia->data[i] = i * 1.234;
5558
5559 // Check named initializers.
5560 struct named_init ni = {
5561 .number = 34,
5562 .name = L"Test wide string",
5563 .average = 543.34343,
5564 };
5565
5566 ni.number = 58;
5567
5568 int dynamic_array[ni.number];
5569 dynamic_array[ni.number - 1] = 543;
5570
5571 // work around unused variable warnings
5572 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5573 || dynamic_array[ni.number - 1] != 543);
5574
5575 ;
5576 return 0;
5577}
5578_ACEOF
5579for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5580do
5581 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005582 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005583 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005584fi
cristy3ed852e2009-09-05 21:47:34 +00005585rm -f core conftest.err conftest.$ac_objext
5586 test "x$ac_cv_prog_cc_c99" != "xno" && break
5587done
5588rm -f conftest.$ac_ext
5589CC=$ac_save_CC
5590
5591fi
5592# AC_CACHE_VAL
5593case "x$ac_cv_prog_cc_c99" in
5594 x)
cristy8b350f62009-11-15 23:12:43 +00005595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005596$as_echo "none needed" >&6; } ;;
5597 xno)
cristy8b350f62009-11-15 23:12:43 +00005598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005599$as_echo "unsupported" >&6; } ;;
5600 *)
5601 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005603$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5604esac
cristy8b350f62009-11-15 23:12:43 +00005605if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005606 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5607else
cristy8b350f62009-11-15 23:12:43 +00005608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005609$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005610if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005611 $as_echo_n "(cached) " >&6
5612else
5613 ac_cv_prog_cc_c89=no
5614ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005616/* end confdefs.h. */
5617#include <stdarg.h>
5618#include <stdio.h>
5619#include <sys/types.h>
5620#include <sys/stat.h>
5621/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5622struct buf { int x; };
5623FILE * (*rcsopen) (struct buf *, struct stat *, int);
5624static char *e (p, i)
5625 char **p;
5626 int i;
5627{
5628 return p[i];
5629}
5630static char *f (char * (*g) (char **, int), char **p, ...)
5631{
5632 char *s;
5633 va_list v;
5634 va_start (v,p);
5635 s = g (p, va_arg (v,int));
5636 va_end (v);
5637 return s;
5638}
5639
5640/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5641 function prototypes and stuff, but not '\xHH' hex character constants.
5642 These don't provoke an error unfortunately, instead are silently treated
5643 as 'x'. The following induces an error, until -std is added to get
5644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5645 array size at least. It's necessary to write '\x00'==0 to get something
5646 that's true only with -std. */
5647int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5648
5649/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5650 inside strings and character constants. */
5651#define FOO(x) 'x'
5652int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5653
5654int test (int i, double x);
5655struct s1 {int (*f) (int a);};
5656struct s2 {int (*f) (double a);};
5657int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5658int argc;
5659char **argv;
5660int
5661main ()
5662{
5663return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5664 ;
5665 return 0;
5666}
5667_ACEOF
5668for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5670do
5671 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005672 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005673 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005674fi
cristy3ed852e2009-09-05 21:47:34 +00005675rm -f core conftest.err conftest.$ac_objext
5676 test "x$ac_cv_prog_cc_c89" != "xno" && break
5677done
5678rm -f conftest.$ac_ext
5679CC=$ac_save_CC
5680
5681fi
5682# AC_CACHE_VAL
5683case "x$ac_cv_prog_cc_c89" in
5684 x)
cristy8b350f62009-11-15 23:12:43 +00005685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005686$as_echo "none needed" >&6; } ;;
5687 xno)
cristy8b350f62009-11-15 23:12:43 +00005688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005689$as_echo "unsupported" >&6; } ;;
5690 *)
5691 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005693$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5694esac
cristy8b350f62009-11-15 23:12:43 +00005695if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5697else
5698 ac_cv_prog_cc_stdc=no
5699fi
5700
cristy3ed852e2009-09-05 21:47:34 +00005701fi
cristy3ed852e2009-09-05 21:47:34 +00005702 ;;
5703esac
cristy8b350f62009-11-15 23:12:43 +00005704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005705$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005706 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005707 $as_echo_n "(cached) " >&6
5708fi
5709
cristy8b350f62009-11-15 23:12:43 +00005710 case $ac_cv_prog_cc_stdc in #(
5711 no) :
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5713$as_echo "unsupported" >&6; } ;; #(
5714 '') :
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5716$as_echo "none needed" >&6; } ;; #(
5717 *) :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005719$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5720esac
5721
cristy3ed852e2009-09-05 21:47:34 +00005722ac_ext=c
5723ac_cpp='$CPP $CPPFLAGS'
5724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005728$as_echo_n "checking how to run the C preprocessor... " >&6; }
5729# On Suns, sometimes $CPP names a directory.
5730if test -n "$CPP" && test -d "$CPP"; then
5731 CPP=
5732fi
5733if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005734 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005735 $as_echo_n "(cached) " >&6
5736else
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5739 do
5740 ac_preproc_ok=false
5741for ac_c_preproc_warn_flag in '' yes
5742do
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005750/* end confdefs.h. */
5751#ifdef __STDC__
5752# include <limits.h>
5753#else
5754# include <assert.h>
5755#endif
5756 Syntax error
5757_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005758if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005759
cristy8b350f62009-11-15 23:12:43 +00005760else
cristy3ed852e2009-09-05 21:47:34 +00005761 # Broken: fails on valid input.
5762continue
5763fi
cristy3ed852e2009-09-05 21:47:34 +00005764rm -f conftest.err conftest.$ac_ext
5765
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005769/* end confdefs.h. */
5770#include <ac_nonexistent.h>
5771_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005772if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005773 # Broken: success on invalid input.
5774continue
5775else
cristy3ed852e2009-09-05 21:47:34 +00005776 # Passes both tests.
5777ac_preproc_ok=:
5778break
5779fi
cristy3ed852e2009-09-05 21:47:34 +00005780rm -f conftest.err conftest.$ac_ext
5781
5782done
5783# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005785if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005786 break
5787fi
5788
5789 done
5790 ac_cv_prog_CPP=$CPP
5791
5792fi
5793 CPP=$ac_cv_prog_CPP
5794else
5795 ac_cv_prog_CPP=$CPP
5796fi
cristy8b350f62009-11-15 23:12:43 +00005797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005798$as_echo "$CPP" >&6; }
5799ac_preproc_ok=false
5800for ac_c_preproc_warn_flag in '' yes
5801do
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005809/* end confdefs.h. */
5810#ifdef __STDC__
5811# include <limits.h>
5812#else
5813# include <assert.h>
5814#endif
5815 Syntax error
5816_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005817if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005818
cristy8b350f62009-11-15 23:12:43 +00005819else
cristy3ed852e2009-09-05 21:47:34 +00005820 # Broken: fails on valid input.
5821continue
5822fi
cristy3ed852e2009-09-05 21:47:34 +00005823rm -f conftest.err conftest.$ac_ext
5824
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005828/* end confdefs.h. */
5829#include <ac_nonexistent.h>
5830_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005831if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005832 # Broken: success on invalid input.
5833continue
5834else
cristy3ed852e2009-09-05 21:47:34 +00005835 # Passes both tests.
5836ac_preproc_ok=:
5837break
5838fi
cristy3ed852e2009-09-05 21:47:34 +00005839rm -f conftest.err conftest.$ac_ext
5840
5841done
5842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005844if $ac_preproc_ok; then :
5845
cristy3ed852e2009-09-05 21:47:34 +00005846else
cristy8b350f62009-11-15 23:12:43 +00005847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005849as_fn_error "C preprocessor \"$CPP\" fails sanity check
5850See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005851fi
5852
5853ac_ext=c
5854ac_cpp='$CPP $CPPFLAGS'
5855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858
cristy8b350f62009-11-15 23:12:43 +00005859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005860$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005861if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005862 $as_echo_n "(cached) " >&6
5863else
5864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5865 for ac_i in 1 2 3 4 5 6 7; do
5866 ac_script="$ac_script$as_nl$ac_script"
5867 done
5868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005869 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005870 if test -z "$SED"; then
5871 ac_path_SED_found=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005878 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5882# Check for GNU ac_path_SED and select it if it is found.
5883 # Check for GNU $ac_path_SED
5884case `"$ac_path_SED" --version 2>&1` in
5885*GNU*)
5886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5887*)
5888 ac_count=0
5889 $as_echo_n 0123456789 >"conftest.in"
5890 while :
5891 do
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo '' >> "conftest.nl"
5896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005898 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005899 if test $ac_count -gt ${ac_path_SED_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_SED="$ac_path_SED"
5902 ac_path_SED_max=$ac_count
5903 fi
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5906 done
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908esac
5909
5910 $ac_path_SED_found && break 3
5911 done
5912 done
cristy8b350f62009-11-15 23:12:43 +00005913 done
cristy3ed852e2009-09-05 21:47:34 +00005914IFS=$as_save_IFS
5915 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005916 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005917 fi
5918else
5919 ac_cv_path_SED=$SED
5920fi
5921
5922fi
cristy8b350f62009-11-15 23:12:43 +00005923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005924$as_echo "$ac_cv_path_SED" >&6; }
5925 SED="$ac_cv_path_SED"
5926 rm -f conftest.sed
5927
5928test -z "$SED" && SED=sed
5929Xsed="$SED -e 1s/^X//"
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
cristy8b350f62009-11-15 23:12:43 +00005941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005942$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005943if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005944 $as_echo_n "(cached) " >&6
5945else
5946 if test -z "$GREP"; then
5947 ac_path_GREP_found=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5951do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005954 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5957 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5958# Check for GNU ac_path_GREP and select it if it is found.
5959 # Check for GNU $ac_path_GREP
5960case `"$ac_path_GREP" --version 2>&1` in
5961*GNU*)
5962 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5963*)
5964 ac_count=0
5965 $as_echo_n 0123456789 >"conftest.in"
5966 while :
5967 do
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
5969 mv "conftest.tmp" "conftest.in"
5970 cp "conftest.in" "conftest.nl"
5971 $as_echo 'GREP' >> "conftest.nl"
5972 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005974 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005975 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5976 # Best one so far, save it but keep looking for a better one
5977 ac_cv_path_GREP="$ac_path_GREP"
5978 ac_path_GREP_max=$ac_count
5979 fi
5980 # 10*(2^10) chars as input seems more than enough
5981 test $ac_count -gt 10 && break
5982 done
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984esac
5985
5986 $ac_path_GREP_found && break 3
5987 done
5988 done
cristy8b350f62009-11-15 23:12:43 +00005989 done
cristy3ed852e2009-09-05 21:47:34 +00005990IFS=$as_save_IFS
5991 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00005992 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005993 fi
5994else
5995 ac_cv_path_GREP=$GREP
5996fi
5997
5998fi
cristy8b350f62009-11-15 23:12:43 +00005999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006000$as_echo "$ac_cv_path_GREP" >&6; }
6001 GREP="$ac_cv_path_GREP"
6002
6003
cristy8b350f62009-11-15 23:12:43 +00006004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006005$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006006if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006007 $as_echo_n "(cached) " >&6
6008else
6009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6010 then ac_cv_path_EGREP="$GREP -E"
6011 else
6012 if test -z "$EGREP"; then
6013 ac_path_EGREP_found=false
6014 # Loop through the user's path and test for each of PROGNAME-LIST
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006020 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00006021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6023 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6024# Check for GNU ac_path_EGREP and select it if it is found.
6025 # Check for GNU $ac_path_EGREP
6026case `"$ac_path_EGREP" --version 2>&1` in
6027*GNU*)
6028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6029*)
6030 ac_count=0
6031 $as_echo_n 0123456789 >"conftest.in"
6032 while :
6033 do
6034 cat "conftest.in" "conftest.in" >"conftest.tmp"
6035 mv "conftest.tmp" "conftest.in"
6036 cp "conftest.in" "conftest.nl"
6037 $as_echo 'EGREP' >> "conftest.nl"
6038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006040 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6042 # Best one so far, save it but keep looking for a better one
6043 ac_cv_path_EGREP="$ac_path_EGREP"
6044 ac_path_EGREP_max=$ac_count
6045 fi
6046 # 10*(2^10) chars as input seems more than enough
6047 test $ac_count -gt 10 && break
6048 done
6049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6050esac
6051
6052 $ac_path_EGREP_found && break 3
6053 done
6054 done
cristy8b350f62009-11-15 23:12:43 +00006055 done
cristy3ed852e2009-09-05 21:47:34 +00006056IFS=$as_save_IFS
6057 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006058 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006059 fi
6060else
6061 ac_cv_path_EGREP=$EGREP
6062fi
6063
6064 fi
6065fi
cristy8b350f62009-11-15 23:12:43 +00006066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006067$as_echo "$ac_cv_path_EGREP" >&6; }
6068 EGREP="$ac_cv_path_EGREP"
6069
6070
cristy8b350f62009-11-15 23:12:43 +00006071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006072$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006073if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006074 $as_echo_n "(cached) " >&6
6075else
6076 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6077 then ac_cv_path_FGREP="$GREP -F"
6078 else
6079 if test -z "$FGREP"; then
6080 ac_path_FGREP_found=false
6081 # Loop through the user's path and test for each of PROGNAME-LIST
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006087 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00006088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6090 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6091# Check for GNU ac_path_FGREP and select it if it is found.
6092 # Check for GNU $ac_path_FGREP
6093case `"$ac_path_FGREP" --version 2>&1` in
6094*GNU*)
6095 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6096*)
6097 ac_count=0
6098 $as_echo_n 0123456789 >"conftest.in"
6099 while :
6100 do
6101 cat "conftest.in" "conftest.in" >"conftest.tmp"
6102 mv "conftest.tmp" "conftest.in"
6103 cp "conftest.in" "conftest.nl"
6104 $as_echo 'FGREP' >> "conftest.nl"
6105 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006107 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006108 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6109 # Best one so far, save it but keep looking for a better one
6110 ac_cv_path_FGREP="$ac_path_FGREP"
6111 ac_path_FGREP_max=$ac_count
6112 fi
6113 # 10*(2^10) chars as input seems more than enough
6114 test $ac_count -gt 10 && break
6115 done
6116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6117esac
6118
6119 $ac_path_FGREP_found && break 3
6120 done
6121 done
cristy8b350f62009-11-15 23:12:43 +00006122 done
cristy3ed852e2009-09-05 21:47:34 +00006123IFS=$as_save_IFS
6124 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006125 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006126 fi
6127else
6128 ac_cv_path_FGREP=$FGREP
6129fi
6130
6131 fi
6132fi
cristy8b350f62009-11-15 23:12:43 +00006133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006134$as_echo "$ac_cv_path_FGREP" >&6; }
6135 FGREP="$ac_cv_path_FGREP"
6136
6137
6138test -z "$GREP" && GREP=grep
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00006159if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006160 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6161else
6162 with_gnu_ld=no
6163fi
6164
6165ac_prog=ld
6166if test "$GCC" = yes; then
6167 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00006168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00006169$as_echo_n "checking for ld used by $CC... " >&6; }
6170 case $host in
6171 *-*-mingw*)
6172 # gcc leaves a trailing carriage return which upsets mingw
6173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6174 *)
6175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6176 esac
6177 case $ac_prog in
6178 # Accept absolute paths.
6179 [\\/]* | ?:[\\/]*)
6180 re_direlt='/[^/][^/]*/\.\./'
6181 # Canonicalize the pathname of ld
6182 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6183 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6184 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6185 done
6186 test -z "$LD" && LD="$ac_prog"
6187 ;;
6188 "")
6189 # If it fails, then pretend we aren't using GCC.
6190 ac_prog=ld
6191 ;;
6192 *)
6193 # If it is relative, then search for the first ld in PATH.
6194 with_gnu_ld=unknown
6195 ;;
6196 esac
6197elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006199$as_echo_n "checking for GNU ld... " >&6; }
6200else
cristy8b350f62009-11-15 23:12:43 +00006201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006202$as_echo_n "checking for non-GNU ld... " >&6; }
6203fi
cristy8b350f62009-11-15 23:12:43 +00006204if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006205 $as_echo_n "(cached) " >&6
6206else
6207 if test -z "$LD"; then
6208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6209 for ac_dir in $PATH; do
6210 IFS="$lt_save_ifs"
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6213 lt_cv_path_LD="$ac_dir/$ac_prog"
6214 # Check to see if the program is GNU ld. I'd rather use --version,
6215 # but apparently some variants of GNU ld only accept -v.
6216 # Break only if it was the GNU/non-GNU ld that we prefer.
6217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6218 *GNU* | *'with BFD'*)
6219 test "$with_gnu_ld" != no && break
6220 ;;
6221 *)
6222 test "$with_gnu_ld" != yes && break
6223 ;;
6224 esac
6225 fi
6226 done
6227 IFS="$lt_save_ifs"
6228else
6229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6230fi
6231fi
6232
6233LD="$lt_cv_path_LD"
6234if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00006235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00006236$as_echo "$LD" >&6; }
6237else
cristy8b350f62009-11-15 23:12:43 +00006238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006239$as_echo "no" >&6; }
6240fi
cristy8b350f62009-11-15 23:12:43 +00006241test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006243$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006244if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006245 $as_echo_n "(cached) " >&6
6246else
6247 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6248case `$LD -v 2>&1 </dev/null` in
6249*GNU* | *'with BFD'*)
6250 lt_cv_prog_gnu_ld=yes
6251 ;;
6252*)
6253 lt_cv_prog_gnu_ld=no
6254 ;;
6255esac
6256fi
cristy8b350f62009-11-15 23:12:43 +00006257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006258$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6259with_gnu_ld=$lt_cv_prog_gnu_ld
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6271set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006274if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006275 $as_echo_n "(cached) " >&6
6276else
6277 if test -n "$RANLIB"; then
6278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6279else
6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00006288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006289 break 2
6290 fi
6291done
cristy8b350f62009-11-15 23:12:43 +00006292 done
cristy3ed852e2009-09-05 21:47:34 +00006293IFS=$as_save_IFS
6294
6295fi
6296fi
6297RANLIB=$ac_cv_prog_RANLIB
6298if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00006299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00006300$as_echo "$RANLIB" >&6; }
6301else
cristy8b350f62009-11-15 23:12:43 +00006302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006303$as_echo "no" >&6; }
6304fi
6305
6306
6307fi
6308if test -z "$ac_cv_prog_RANLIB"; then
6309 ac_ct_RANLIB=$RANLIB
6310 # Extract the first word of "ranlib", so it can be a program name with args.
6311set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006313$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006314if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006315 $as_echo_n "(cached) " >&6
6316else
6317 if test -n "$ac_ct_RANLIB"; then
6318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00006328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006329 break 2
6330 fi
6331done
cristy8b350f62009-11-15 23:12:43 +00006332 done
cristy3ed852e2009-09-05 21:47:34 +00006333IFS=$as_save_IFS
6334
6335fi
6336fi
6337ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6338if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00006339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00006340$as_echo "$ac_ct_RANLIB" >&6; }
6341else
cristy8b350f62009-11-15 23:12:43 +00006342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006343$as_echo "no" >&6; }
6344fi
6345
6346 if test "x$ac_ct_RANLIB" = x; then
6347 RANLIB=":"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350yes:)
cristy8b350f62009-11-15 23:12:43 +00006351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353ac_tool_warned=yes ;;
6354esac
6355 RANLIB=$ac_ct_RANLIB
6356 fi
6357else
6358 RANLIB="$ac_cv_prog_RANLIB"
6359fi
6360
6361
6362if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00006363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006364$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6365else
cristy8b350f62009-11-15 23:12:43 +00006366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006367$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6368fi
6369set dummy $CC; ac_cc=`$as_echo "$2" |
6370 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00006371if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006372 $as_echo_n "(cached) " >&6
6373else
cristy8b350f62009-11-15 23:12:43 +00006374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006375/* end confdefs.h. */
6376
6377int
6378main ()
6379{
6380
6381 ;
6382 return 0;
6383}
6384_ACEOF
6385# Make sure it works both with $CC and with simple cc.
6386# We do the test twice because some compilers refuse to overwrite an
6387# existing .o file with -o, though they will create one.
6388ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6389rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006390if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393esac
cristy8b350f62009-11-15 23:12:43 +00006394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6395$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006396 (eval "$ac_try") 2>&5
6397 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; } &&
6400 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403esac
cristy8b350f62009-11-15 23:12:43 +00006404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6405$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006406 (eval "$ac_try") 2>&5
6407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006410then
6411 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6412 if test "x$CC" != xcc; then
6413 # Test first that cc exists at all.
6414 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00006415 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
cristy8b350f62009-11-15 23:12:43 +00006419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6420$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006421 (eval "$ac_try") 2>&5
6422 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00006425 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6426 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006427 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6430esac
cristy8b350f62009-11-15 23:12:43 +00006431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6432$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006433 (eval "$ac_try") 2>&5
6434 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; } &&
6437 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
cristy8b350f62009-11-15 23:12:43 +00006441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6442$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006443 (eval "$ac_try") 2>&5
6444 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006447 then
6448 # cc works too.
6449 :
6450 else
6451 # cc exists but doesn't like -o.
6452 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6453 fi
6454 fi
6455 fi
6456else
6457 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6458fi
6459rm -f core conftest*
6460
6461fi
6462if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00006463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006464$as_echo "yes" >&6; }
6465else
cristy8b350f62009-11-15 23:12:43 +00006466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006467$as_echo "no" >&6; }
6468
cristy8b350f62009-11-15 23:12:43 +00006469$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006470
6471fi
6472
6473# FIXME: we rely on the cache variable name because
6474# there is no other way.
6475set dummy $CC
6476am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6477eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6478if test "$am_t" != yes; then
6479 # Losing compiler, so override with the script.
6480 # FIXME: It is wrong to rewrite CC.
6481 # But if we don't then we get into trouble of one sort or another.
6482 # A longer-term fix would be to have automake use am__CC in this case,
6483 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6484 CC="$am_aux_dir/compile $CC"
6485fi
6486
6487
cristy3ed852e2009-09-05 21:47:34 +00006488
cristy8b350f62009-11-15 23:12:43 +00006489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006490$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6491set x ${MAKE-make}
6492ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006493if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006494 $as_echo_n "(cached) " >&6
6495else
6496 cat >conftest.make <<\_ACEOF
6497SHELL = /bin/sh
6498all:
6499 @echo '@@@%%%=$(MAKE)=@@@%%%'
6500_ACEOF
6501# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6502case `${MAKE-make} -f conftest.make 2>/dev/null` in
6503 *@@@%%%=?*=@@@%%%*)
6504 eval ac_cv_prog_make_${ac_make}_set=yes;;
6505 *)
6506 eval ac_cv_prog_make_${ac_make}_set=no;;
6507esac
6508rm -f conftest.make
6509fi
6510if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006512$as_echo "yes" >&6; }
6513 SET_MAKE=
6514else
cristy8b350f62009-11-15 23:12:43 +00006515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006516$as_echo "no" >&6; }
6517 SET_MAKE="MAKE=${MAKE-make}"
6518fi
6519
cristy3ed852e2009-09-05 21:47:34 +00006520
cristy8b350f62009-11-15 23:12:43 +00006521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006522$as_echo_n "checking maximum warning verbosity option... " >&6; }
6523
6524
6525
6526
6527# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006528if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006529 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6530else
6531 ac_compile_warnings_on=""
6532fi
6533
6534
6535 if test x"$ac_compile_warnings_on" = xno
6536 then
6537 ac_compile_warnings_msg=no
6538 else
6539 if test -n "$CXX"
6540 then
6541 if test "$GXX" = "yes"
6542 then
6543 ac_compile_warnings_opt='-Wall -W'
6544 fi
6545 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6546 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6547 fi
6548
6549 if test -n "$CC"
6550 then
6551 if test "$GCC" = "yes"
6552 then
6553 ac_compile_warnings_opt='-Wall -W'
6554 fi
6555 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6556 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6557 fi
6558 fi
cristy8b350f62009-11-15 23:12:43 +00006559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006560$as_echo "$ac_compile_warnings_msg" >&6; }
6561 unset ac_compile_warnings_msg
6562 unset ac_compile_warnings_opt
6563
cristy8b350f62009-11-15 23:12:43 +00006564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006565$as_echo_n "checking whether ln -s works... " >&6; }
6566LN_S=$as_ln_s
6567if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006569$as_echo "yes" >&6; }
6570else
cristy8b350f62009-11-15 23:12:43 +00006571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006572$as_echo "no, using $LN_S" >&6; }
6573fi
6574
cristy8b350f62009-11-15 23:12:43 +00006575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006576$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6577
6578# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006579if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006580 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006582$as_echo "yes" >&6; }
6583
cristy8b350f62009-11-15 23:12:43 +00006584$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006585
6586 LIBS="$LIBS -ldmalloc"
6587 LDFLAGS="$LDFLAGS -g"
6588else
cristy8b350f62009-11-15 23:12:43 +00006589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006590$as_echo "no" >&6; }
6591fi
6592else
cristy8b350f62009-11-15 23:12:43 +00006593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006594$as_echo "no" >&6; }
6595fi
6596
6597
6598
6599
6600if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6601 if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6603set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006605$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006606if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006607 $as_echo_n "(cached) " >&6
6608else
6609 case $PKG_CONFIG in
6610 [\\/]* | ?:[\\/]*)
6611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6612 ;;
6613 *)
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006623 break 2
6624 fi
6625done
cristy8b350f62009-11-15 23:12:43 +00006626 done
cristy3ed852e2009-09-05 21:47:34 +00006627IFS=$as_save_IFS
6628
6629 ;;
6630esac
6631fi
6632PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6633if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006635$as_echo "$PKG_CONFIG" >&6; }
6636else
cristy8b350f62009-11-15 23:12:43 +00006637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006638$as_echo "no" >&6; }
6639fi
6640
6641
6642fi
6643if test -z "$ac_cv_path_PKG_CONFIG"; then
6644 ac_pt_PKG_CONFIG=$PKG_CONFIG
6645 # Extract the first word of "pkg-config", so it can be a program name with args.
6646set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006648$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006649if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006650 $as_echo_n "(cached) " >&6
6651else
6652 case $ac_pt_PKG_CONFIG in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006666 break 2
6667 fi
6668done
cristy8b350f62009-11-15 23:12:43 +00006669 done
cristy3ed852e2009-09-05 21:47:34 +00006670IFS=$as_save_IFS
6671
6672 ;;
6673esac
6674fi
6675ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6676if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006678$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6679else
cristy8b350f62009-11-15 23:12:43 +00006680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006681$as_echo "no" >&6; }
6682fi
6683
6684 if test "x$ac_pt_PKG_CONFIG" = x; then
6685 PKG_CONFIG=""
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688yes:)
cristy8b350f62009-11-15 23:12:43 +00006689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691ac_tool_warned=yes ;;
6692esac
6693 PKG_CONFIG=$ac_pt_PKG_CONFIG
6694 fi
6695else
6696 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6697fi
6698
6699fi
6700if test -n "$PKG_CONFIG"; then
6701 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006703$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6704 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006706$as_echo "yes" >&6; }
6707 else
cristy8b350f62009-11-15 23:12:43 +00006708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006709$as_echo "no" >&6; }
6710 PKG_CONFIG=""
6711 fi
6712
6713fi
6714
6715#
6716# Enable OS features.
6717#
6718
6719
cristy8b350f62009-11-15 23:12:43 +00006720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006721$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006722if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006723 $as_echo_n "(cached) " >&6
6724else
cristy8b350f62009-11-15 23:12:43 +00006725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006726/* end confdefs.h. */
6727#include <stdlib.h>
6728#include <stdarg.h>
6729#include <string.h>
6730#include <float.h>
6731
6732int
6733main ()
6734{
6735
6736 ;
6737 return 0;
6738}
6739_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006740if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006741 ac_cv_header_stdc=yes
6742else
cristy8b350f62009-11-15 23:12:43 +00006743 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006744fi
cristy3ed852e2009-09-05 21:47:34 +00006745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746
6747if test $ac_cv_header_stdc = yes; then
6748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006750/* end confdefs.h. */
6751#include <string.h>
6752
6753_ACEOF
6754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006755 $EGREP "memchr" >/dev/null 2>&1; then :
6756
cristy3ed852e2009-09-05 21:47:34 +00006757else
6758 ac_cv_header_stdc=no
6759fi
6760rm -f conftest*
6761
6762fi
6763
6764if test $ac_cv_header_stdc = yes; then
6765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006767/* end confdefs.h. */
6768#include <stdlib.h>
6769
6770_ACEOF
6771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006772 $EGREP "free" >/dev/null 2>&1; then :
6773
cristy3ed852e2009-09-05 21:47:34 +00006774else
6775 ac_cv_header_stdc=no
6776fi
6777rm -f conftest*
6778
6779fi
6780
6781if test $ac_cv_header_stdc = yes; then
6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006783 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006784 :
6785else
cristy8b350f62009-11-15 23:12:43 +00006786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006787/* end confdefs.h. */
6788#include <ctype.h>
6789#include <stdlib.h>
6790#if ((' ' & 0x0FF) == 0x020)
6791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793#else
6794# define ISLOWER(c) \
6795 (('a' <= (c) && (c) <= 'i') \
6796 || ('j' <= (c) && (c) <= 'r') \
6797 || ('s' <= (c) && (c) <= 'z'))
6798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6799#endif
6800
6801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802int
6803main ()
6804{
6805 int i;
6806 for (i = 0; i < 256; i++)
6807 if (XOR (islower (i), ISLOWER (i))
6808 || toupper (i) != TOUPPER (i))
6809 return 2;
6810 return 0;
6811}
6812_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006813if ac_fn_c_try_run "$LINENO"; then :
6814
cristy3ed852e2009-09-05 21:47:34 +00006815else
cristy8b350f62009-11-15 23:12:43 +00006816 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006817fi
cristy8b350f62009-11-15 23:12:43 +00006818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6819 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006820fi
6821
cristy3ed852e2009-09-05 21:47:34 +00006822fi
6823fi
cristy8b350f62009-11-15 23:12:43 +00006824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006825$as_echo "$ac_cv_header_stdc" >&6; }
6826if test $ac_cv_header_stdc = yes; then
6827
cristy8b350f62009-11-15 23:12:43 +00006828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006829
6830fi
6831
6832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6834 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006835do :
6836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6838"
6839eval as_val=\$$as_ac_Header
6840 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006841 cat >>confdefs.h <<_ACEOF
6842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843_ACEOF
6844
6845fi
6846
6847done
6848
6849
6850
cristy8b350f62009-11-15 23:12:43 +00006851 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6852if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006853 MINIX=yes
6854else
6855 MINIX=
6856fi
6857
6858
6859 if test "$MINIX" = yes; then
6860
cristy8b350f62009-11-15 23:12:43 +00006861$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006862
6863
cristy8b350f62009-11-15 23:12:43 +00006864$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006865
6866
cristy8b350f62009-11-15 23:12:43 +00006867$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006868
6869 fi
6870
6871
cristy8b350f62009-11-15 23:12:43 +00006872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006873$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006874if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006875 $as_echo_n "(cached) " >&6
6876else
cristy8b350f62009-11-15 23:12:43 +00006877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006878/* end confdefs.h. */
6879
6880# define __EXTENSIONS__ 1
6881 $ac_includes_default
6882int
6883main ()
6884{
6885
6886 ;
6887 return 0;
6888}
6889_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006890if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006891 ac_cv_safe_to_define___extensions__=yes
6892else
cristy8b350f62009-11-15 23:12:43 +00006893 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006894fi
cristy3ed852e2009-09-05 21:47:34 +00006895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896fi
cristy8b350f62009-11-15 23:12:43 +00006897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006898$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6899 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006900 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006901
cristy8b350f62009-11-15 23:12:43 +00006902 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006903
cristy8b350f62009-11-15 23:12:43 +00006904 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006905
cristy8b350f62009-11-15 23:12:43 +00006906 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006907
cristy8b350f62009-11-15 23:12:43 +00006908 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6909
cristy3ed852e2009-09-05 21:47:34 +00006910
6911
6912
6913#
6914# Enable run-time checking.
6915#
6916# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006917if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006918 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6919else
6920 enable_bounds_checking='no'
6921fi
6922
6923
6924if test "$enable_bounds_checking" = yes; then
6925
cristy8b350f62009-11-15 23:12:43 +00006926$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006927
6928fi
6929
6930#
6931# Tests for Windows
6932#
6933
6934
6935
6936GDI32_LIBS=''
6937StaticCplusPlusLibraries='no'
6938native_win32_build='no'
6939cygwin_build='no'
6940case "${host_os}" in
6941 cygwin* )
6942 StaticCplusPlusLibraries='yes'
6943 cygwin_build='yes'
6944 GDI32_LIBS='-lgdi32'
6945 ;;
6946 mingw* )
6947 StaticCplusPlusLibraries='yes'
6948 native_win32_build='yes'
6949 GDI32_LIBS='-lgdi32'
6950 ;;
6951esac
6952if test "${GDI32_LIBS}x" != 'x'; then
6953
cristy8b350f62009-11-15 23:12:43 +00006954$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006955
6956fi
6957
6958 if test "${GDI32_LIBS}x" != 'x' ; then
6959 WINGDI32_DELEGATE_TRUE=
6960 WINGDI32_DELEGATE_FALSE='#'
6961else
6962 WINGDI32_DELEGATE_TRUE='#'
6963 WINGDI32_DELEGATE_FALSE=
6964fi
6965
6966 if test "${native_win32_build}" = 'yes' ; then
6967 WIN32_NATIVE_BUILD_TRUE=
6968 WIN32_NATIVE_BUILD_FALSE='#'
6969else
6970 WIN32_NATIVE_BUILD_TRUE='#'
6971 WIN32_NATIVE_BUILD_FALSE=
6972fi
6973
6974 if test "${cygwin_build}" = 'yes' ; then
6975 CYGWIN_BUILD_TRUE=
6976 CYGWIN_BUILD_FALSE='#'
6977else
6978 CYGWIN_BUILD_TRUE='#'
6979 CYGWIN_BUILD_FALSE=
6980fi
6981
6982 if test "x${CC}" = 'xcl.exe' ; then
6983 USING_CL_TRUE=
6984 USING_CL_FALSE='#'
6985else
6986 USING_CL_TRUE='#'
6987 USING_CL_FALSE=
6988fi
6989
6990
6991WinPathScript="${srcdirfull}/winpath.sh"
6992
6993
6994#
6995# Compiler flags tweaks
6996#
6997if test "${GCC}" != "yes"; then
6998 case "${host}" in
6999 *-*-hpux* )
7000 # aCC: HP ANSI C++ B3910B A.03.34
7001 CFLAGS="${CFLAGS} -Wp,-H30000"
7002 if test -n "${CXXFLAGS}"; then
7003 CXXFLAGS='-AA'
7004 else
7005 CXXFLAGS="${CXXFLAGS} -AA"
7006 fi
7007 ;;
7008 *-dec-osf5.* )
7009 # Compaq alphaev68-dec-osf5.1 compiler
7010 if test -n "${CXXFLAGS}"; then
7011 CXXFLAGS='-std strict_ansi -noimplicit_include'
7012 else
7013 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7014 fi
7015 esac
7016fi
7017
7018# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007020$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007021if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007022 $as_echo_n "(cached) " >&6
7023else
7024
7025im_cv_ld_lazyload='none'
7026case "${host}" in
7027 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7028 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7029 im_cv_ld_lazyload='-Wl,-zlazyload'
7030 fi
7031 ;;
7032esac
7033
7034fi
cristy8b350f62009-11-15 23:12:43 +00007035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007036$as_echo "$im_cv_ld_lazyload" >&6; }
7037if test "${im_cv_ld_lazyload}" != 'none' ; then
7038 if test -z "${LDFLAGS}" ; then
7039 LDFLAGS="${im_cv_ld_lazyload}"
7040 else
7041 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7042 fi
7043fi
7044
7045case "$host" in
7046*darwin* | *-macos10*)
7047 if test -d /opt/local ; then
7048 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7049 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7050 elif test -d /sw ; then
7051 CPPFLAGS="$CPPFLAGS -I/sw/include"
7052 LDFLAGS="$LDFLAGS -L/sw/lib"
7053 fi
7054 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007055if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007056 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7057else
7058 build_osxuniversal=no
7059fi
7060
7061
7062 if test "${build_osxuniversal}" != no ; then
7063 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007064 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007065Please re-run configure with these options:
7066 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007067 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007068 fi
7069 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7070 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7071 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7072 fi
7073 ;;
7074esac
7075
7076# Enable support for threads
7077
7078# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007079if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007080 withval=$with_threads; with_threads=$withval
7081else
7082 with_threads='yes'
7083fi
7084
7085
7086have_threads=no
7087if test "$with_threads" != 'no'; then
7088
7089
7090
7091ac_ext=c
7092ac_cpp='$CPP $CPPFLAGS'
7093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095ac_compiler_gnu=$ac_cv_c_compiler_gnu
7096
7097acx_pthread_ok=no
7098
7099# We used to check for pthread.h first, but this fails if pthread.h
7100# requires special compiler flags (e.g. on True64 or Sequent).
7101# It gets checked for in the link test anyway.
7102
7103# First of all, check if the user has set any of the PTHREAD_LIBS,
7104# etcetera environment variables, and if threads linking works using
7105# them:
7106if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7107 save_CFLAGS="$CFLAGS"
7108 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7109 save_LIBS="$LIBS"
7110 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007111 { $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 +00007112$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007114/* end confdefs.h. */
7115
7116/* Override any GCC internal prototype to avoid an error.
7117 Use char because int might match the return type of a GCC
7118 builtin and then its argument prototype would still apply. */
7119#ifdef __cplusplus
7120extern "C"
7121#endif
7122char pthread_join ();
7123int
7124main ()
7125{
7126return pthread_join ();
7127 ;
7128 return 0;
7129}
7130_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007132 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007133fi
cristy8b350f62009-11-15 23:12:43 +00007134rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007137$as_echo "$acx_pthread_ok" >&6; }
7138 if test x"$acx_pthread_ok" = xno; then
7139 PTHREAD_LIBS=""
7140 PTHREAD_CFLAGS=""
7141 fi
7142 LIBS="$save_LIBS"
7143 CFLAGS="$save_CFLAGS"
7144fi
7145
7146# We must check for the threads library under a number of different
7147# names; the ordering is very important because some systems
7148# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7149# libraries is broken (non-POSIX).
7150
7151# Create a list of thread flags to try. Items starting with a "-" are
7152# C compiler flags, and other items are library names, except for "none"
7153# which indicates that we try without any flags at all, and "pthread-config"
7154# which is a program returning the flags for the Pth emulation library.
7155
7156acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7157
7158# The ordering *is* (sometimes) important. Some notes on the
7159# individual items follow:
7160
7161# pthreads: AIX (must check this before -lpthread)
7162# none: in case threads are in libc; should be tried before -Kthread and
7163# other compiler flags to prevent continual compiler warnings
7164# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7165# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7166# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7167# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7168# -pthreads: Solaris/gcc
7169# -mthreads: Mingw32/gcc, Lynx/gcc
7170# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7171# doesn't hurt to check since this sometimes defines pthreads too;
7172# also defines -D_REENTRANT)
7173# ... -mt is also the pthreads flag for HP/aCC
7174# pthread: Linux, etcetera
7175# --thread-safe: KAI C++
7176# pthread-config: use pthread-config program (for GNU Pth library)
7177
7178case "${host_cpu}-${host_os}" in
7179 *solaris*)
7180
7181 # On Solaris (at least, for some versions), libc contains stubbed
7182 # (non-functional) versions of the pthreads routines, so link-based
7183 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7184 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7185 # a function called by this macro, so we could check for that, but
7186 # who knows whether they'll stub that too in a future libc.) So,
7187 # we'll just look for -pthreads and -lpthread first:
7188
7189 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7190 ;;
cristy3ed852e2009-09-05 21:47:34 +00007191esac
7192
7193if test x"$acx_pthread_ok" = xno; then
7194for flag in $acx_pthread_flags; do
7195
7196 case $flag in
7197 none)
cristy8b350f62009-11-15 23:12:43 +00007198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007199$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7200 ;;
7201
7202 -*)
cristy8b350f62009-11-15 23:12:43 +00007203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007204$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7205 PTHREAD_CFLAGS="$flag"
7206 ;;
7207
7208 pthread-config)
7209 # Extract the first word of "pthread-config", so it can be a program name with args.
7210set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007213if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007214 $as_echo_n "(cached) " >&6
7215else
7216 if test -n "$acx_pthread_config"; then
7217 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007228 break 2
7229 fi
7230done
cristy8b350f62009-11-15 23:12:43 +00007231 done
cristy3ed852e2009-09-05 21:47:34 +00007232IFS=$as_save_IFS
7233
7234 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7235fi
7236fi
7237acx_pthread_config=$ac_cv_prog_acx_pthread_config
7238if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007240$as_echo "$acx_pthread_config" >&6; }
7241else
cristy8b350f62009-11-15 23:12:43 +00007242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007243$as_echo "no" >&6; }
7244fi
7245
7246
7247 if test x"$acx_pthread_config" = xno; then continue; fi
7248 PTHREAD_CFLAGS="`pthread-config --cflags`"
7249 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7250 ;;
7251
7252 *)
cristy8b350f62009-11-15 23:12:43 +00007253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007254$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7255 PTHREAD_LIBS="-l$flag"
7256 ;;
7257 esac
7258
7259 save_LIBS="$LIBS"
7260 save_CFLAGS="$CFLAGS"
7261 LIBS="$PTHREAD_LIBS $LIBS"
7262 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7263
7264 # Check for various functions. We must include pthread.h,
7265 # since some functions may be macros. (On the Sequent, we
7266 # need a special flag -Kthread to make this header compile.)
7267 # We check for pthread_join because it is in -lpthread on IRIX
7268 # while pthread_create is in libc. We check for pthread_attr_init
7269 # due to DEC craziness with -lpthreads. We check for
7270 # pthread_cleanup_push because it is one of the few pthread
7271 # functions on Solaris that doesn't have a non-functional libc stub.
7272 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007274/* end confdefs.h. */
7275#include <pthread.h>
7276int
7277main ()
7278{
7279pthread_t th; pthread_join(th, 0);
7280 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7281 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7282 ;
7283 return 0;
7284}
7285_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007287 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007288fi
cristy8b350f62009-11-15 23:12:43 +00007289rm -f core conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007291
7292 LIBS="$save_LIBS"
7293 CFLAGS="$save_CFLAGS"
7294
cristy8b350f62009-11-15 23:12:43 +00007295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007296$as_echo "$acx_pthread_ok" >&6; }
7297 if test "x$acx_pthread_ok" = xyes; then
7298 break;
7299 fi
7300
7301 PTHREAD_LIBS=""
7302 PTHREAD_CFLAGS=""
7303done
7304fi
7305
7306# Various other checks:
7307if test "x$acx_pthread_ok" = xyes; then
7308 save_LIBS="$LIBS"
7309 LIBS="$PTHREAD_LIBS $LIBS"
7310 save_CFLAGS="$CFLAGS"
7311 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7312
7313 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007315$as_echo_n "checking for joinable pthread attribute... " >&6; }
7316 attr_name=unknown
7317 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007319/* end confdefs.h. */
7320#include <pthread.h>
7321int
7322main ()
7323{
7324int attr=$attr; return attr;
7325 ;
7326 return 0;
7327}
7328_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007330 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007331fi
cristy8b350f62009-11-15 23:12:43 +00007332rm -f core conftest.err conftest.$ac_objext \
7333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007334 done
cristy8b350f62009-11-15 23:12:43 +00007335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007336$as_echo "$attr_name" >&6; }
7337 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7338
7339cat >>confdefs.h <<_ACEOF
7340#define PTHREAD_CREATE_JOINABLE $attr_name
7341_ACEOF
7342
7343 fi
7344
cristy8b350f62009-11-15 23:12:43 +00007345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7347 flag=no
7348 case "${host_cpu}-${host_os}" in
7349 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7350 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7351 esac
cristy8b350f62009-11-15 23:12:43 +00007352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007353$as_echo "${flag}" >&6; }
7354 if test "x$flag" != xno; then
7355 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7356 fi
7357
7358 LIBS="$save_LIBS"
7359 CFLAGS="$save_CFLAGS"
7360
7361 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007362 if test x"$GCC" != xyes; then
7363 for ac_prog in xlc_r cc_r
7364do
7365 # Extract the first word of "$ac_prog", so it can be a program name with args.
7366set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007368$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007369if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007370 $as_echo_n "(cached) " >&6
7371else
7372 if test -n "$PTHREAD_CC"; then
7373 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7374else
7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007381 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 +00007382 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007384 break 2
7385 fi
7386done
cristy8b350f62009-11-15 23:12:43 +00007387 done
cristy3ed852e2009-09-05 21:47:34 +00007388IFS=$as_save_IFS
7389
cristy3ed852e2009-09-05 21:47:34 +00007390fi
7391fi
7392PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7393if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007395$as_echo "$PTHREAD_CC" >&6; }
7396else
cristy8b350f62009-11-15 23:12:43 +00007397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007398$as_echo "no" >&6; }
7399fi
7400
cristy736173a2009-09-20 21:18:22 +00007401
7402 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007403done
cristy736173a2009-09-20 21:18:22 +00007404test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007405
cristy736173a2009-09-20 21:18:22 +00007406 else
7407 PTHREAD_CC=$CC
7408 fi
cristy3ed852e2009-09-05 21:47:34 +00007409else
cristy736173a2009-09-20 21:18:22 +00007410 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007411fi
7412
cristy3ed852e2009-09-05 21:47:34 +00007413
7414
7415
7416
7417# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7418if test x"$acx_pthread_ok" = xyes; then
7419
cristy8b350f62009-11-15 23:12:43 +00007420$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007421
7422 :
7423else
7424 acx_pthread_ok=no
7425
7426fi
7427ac_ext=c
7428ac_cpp='$CPP $CPPFLAGS'
7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432
7433
7434 if test "$acx_pthread_ok" = yes; then
7435 have_threads=yes
7436 DEF_THREAD="$PTHREAD_CFLAGS"
7437 CFLAGS="$CFLAGS $DEF_THREAD"
7438 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7439 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007440 { $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 +00007441$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7442 CC="$PTHREAD_CC"
7443 fi
7444 fi
7445fi
7446
7447# Enable support for OpenMP
7448if test "$have_threads" != 'yes'; then
7449 ac_cv_prog_c_openmp=unsupported
7450fi
7451
7452 OPENMP_CFLAGS=
7453 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007454if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007455 enableval=$enable_openmp;
7456fi
7457
7458 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007460$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007461if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007462 $as_echo_n "(cached) " >&6
7463else
cristy8b350f62009-11-15 23:12:43 +00007464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007466
7467#ifndef _OPENMP
7468 choke me
7469#endif
7470#include <omp.h>
7471int main () { return omp_get_num_threads (); }
7472
7473_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007474if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007475 ac_cv_prog_c_openmp='none needed'
7476else
cristy8b350f62009-11-15 23:12:43 +00007477 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007478 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7479 ac_save_CFLAGS=$CFLAGS
7480 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007483
7484#ifndef _OPENMP
7485 choke me
7486#endif
7487#include <omp.h>
7488int main () { return omp_get_num_threads (); }
7489
7490_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007491if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007492 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007493fi
cristy8b350f62009-11-15 23:12:43 +00007494rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007496 CFLAGS=$ac_save_CFLAGS
7497 if test "$ac_cv_prog_c_openmp" != unsupported; then
7498 break
7499 fi
7500 done
7501fi
cristy8b350f62009-11-15 23:12:43 +00007502rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007504fi
cristy8b350f62009-11-15 23:12:43 +00007505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007506$as_echo "$ac_cv_prog_c_openmp" >&6; }
7507 case $ac_cv_prog_c_openmp in #(
7508 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007509 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007510 *)
cristy8b350f62009-11-15 23:12:43 +00007511 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007512 esac
7513 fi
7514
7515
7516CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7517MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7518
7519
cristy736173a2009-09-20 21:18:22 +00007520# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007521
7522ac_ext=c
7523ac_cpp='$CPP $CPPFLAGS'
7524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527
cristy8b350f62009-11-15 23:12:43 +00007528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007529$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007530if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007531 $as_echo_n "(cached) " >&6
7532else
cristy8b350f62009-11-15 23:12:43 +00007533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007534/* end confdefs.h. */
7535
7536int
7537main ()
7538{
7539#ifndef _MSC_VER
7540 choke me
7541#endif
7542
7543 ;
7544 return 0;
7545}
7546_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007547if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007548 ax_compiler_ms=yes
7549else
cristy8b350f62009-11-15 23:12:43 +00007550 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007551fi
cristy736173a2009-09-20 21:18:22 +00007552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553ax_cv_c_compiler_ms=$ax_compiler_ms
7554
7555fi
cristy8b350f62009-11-15 23:12:43 +00007556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007557$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007558if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007559 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7560fi
7561
cristy736173a2009-09-20 21:18:22 +00007562ax_save_CPPFLAGS=$CPPFLAGS
7563CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +00007564for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy8b350f62009-11-15 23:12:43 +00007565do :
7566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7567ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7568eval as_val=\$$as_ac_Header
7569 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007570 cat >>confdefs.h <<_ACEOF
7571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7572_ACEOF
7573
7574fi
7575
7576done
7577
7578CPPFLAGS=$ax_save_CPPFLAGS
7579
cristy736173a2009-09-20 21:18:22 +00007580for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007581do :
7582 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7583if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007584 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007585#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007586_ACEOF
7587
7588fi
7589
7590done
7591
7592
7593
7594
cristy8b350f62009-11-15 23:12:43 +00007595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007596$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007597if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007598 $as_echo_n "(cached) " >&6
7599else
7600 ax_cv_check_cl_libcl=no
7601case $host_cpu in
7602 x86_64) ax_check_cl_libdir=lib64 ;;
7603 *) ax_check_cl_libdir=lib ;;
7604esac
7605ax_save_CPPFLAGS=$CPPFLAGS
7606CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7607ax_save_LIBS=$LIBS
7608LIBS=""
cristya49aa422009-09-20 23:40:10 +00007609ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00007610for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007611 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007612 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7613else
7614 ax_try_lib=$ax_lib
7615fi
cristy736173a2009-09-20 21:18:22 +00007616 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007618/* end confdefs.h. */
7619
7620# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7621# include <windows.h>
7622# endif
cristya03a0852009-10-13 02:02:39 +00007623# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007624# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007625# elif defined(HAVE_OPENCL_OPENCL_H)
7626# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007627# else
cristya03a0852009-10-13 02:02:39 +00007628# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007629# endif
7630int
7631main ()
7632{
cristyc7083c12009-10-14 03:16:55 +00007633clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007634 ;
7635 return 0;
7636}
7637_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007638if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007639 ax_cv_check_cl_libcl=$ax_try_lib; break
7640else
cristy8b350f62009-11-15 23:12:43 +00007641 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"
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007643/* end confdefs.h. */
7644
7645# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7646# include <windows.h>
7647# endif
cristya03a0852009-10-13 02:02:39 +00007648# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007649# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007650# elif defined(HAVE_OPENCL_OPENCL_H)
7651# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007652# else
cristya03a0852009-10-13 02:02:39 +00007653# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007654# endif
7655int
7656main ()
7657{
cristyc7083c12009-10-14 03:16:55 +00007658clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007659 ;
7660 return 0;
7661}
7662_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007663if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007664 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7665else
cristy8b350f62009-11-15 23:12:43 +00007666 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007668/* end confdefs.h. */
7669
7670# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7671# include <windows.h>
7672# endif
cristya03a0852009-10-13 02:02:39 +00007673# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007674# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007675# elif defined(HAVE_OPENCL_OPENCL_H)
7676# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007677# else
cristya03a0852009-10-13 02:02:39 +00007678# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007679# endif
7680int
7681main ()
7682{
cristyc7083c12009-10-14 03:16:55 +00007683clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007684 ;
7685 return 0;
7686}
7687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007688if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007689 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007690fi
cristy8b350f62009-11-15 23:12:43 +00007691rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007693fi
cristy8b350f62009-11-15 23:12:43 +00007694rm -f core conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007696fi
cristy8b350f62009-11-15 23:12:43 +00007697rm -f core conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007699done
7700
cristy8b350f62009-11-15 23:12:43 +00007701if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007702 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007704/* end confdefs.h. */
7705
7706# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7707# include <windows.h>
7708# endif
cristya03a0852009-10-13 02:02:39 +00007709# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00007710# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00007711# elif defined(HAVE_OPENCL_OPENCL_H)
7712# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00007713# else
cristya03a0852009-10-13 02:02:39 +00007714# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007715# endif
7716int
7717main ()
7718{
cristyc7083c12009-10-14 03:16:55 +00007719clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007720 ;
7721 return 0;
7722}
7723_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007724if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007725 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007726fi
cristy8b350f62009-11-15 23:12:43 +00007727rm -f core conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007729fi
7730
cristy736173a2009-09-20 21:18:22 +00007731LIBS=$ax_save_LIBS
7732CPPFLAGS=$ax_save_CPPFLAGS
7733fi
cristy8b350f62009-11-15 23:12:43 +00007734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007735$as_echo "$ax_cv_check_cl_libcl" >&6; }
7736
cristy8b350f62009-11-15 23:12:43 +00007737if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007738 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7739else
7740 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7741fi
cristy736173a2009-09-20 21:18:22 +00007742ac_ext=c
7743ac_cpp='$CPP $CPPFLAGS'
7744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747
7748
7749
7750
7751
cristyc7083c12009-10-14 03:16:55 +00007752CFLAGS="$CL_CFLAGS $CFLAGS"
7753LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007754
cristy2e8b51d2009-10-17 18:26:15 +00007755
cristy3ed852e2009-09-05 21:47:34 +00007756########
7757#
7758# Check for large file support
7759#
7760########
7761# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007762if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007763 enableval=$enable_largefile;
7764fi
7765
7766if test "$enable_largefile" != no; then
7767
cristy8b350f62009-11-15 23:12:43 +00007768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007770if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007771 $as_echo_n "(cached) " >&6
7772else
7773 ac_cv_sys_largefile_CC=no
7774 if test "$GCC" != yes; then
7775 ac_save_CC=$CC
7776 while :; do
7777 # IRIX 6.2 and later do not support large files by default,
7778 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007780/* end confdefs.h. */
7781#include <sys/types.h>
7782 /* Check that off_t can represent 2**63 - 1 correctly.
7783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7784 since some C++ compilers masquerading as C compilers
7785 incorrectly reject 9223372036854775807. */
7786#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7788 && LARGE_OFF_T % 2147483647 == 1)
7789 ? 1 : -1];
7790int
7791main ()
7792{
7793
7794 ;
7795 return 0;
7796}
7797_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007798 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007799 break
cristy3ed852e2009-09-05 21:47:34 +00007800fi
cristy3ed852e2009-09-05 21:47:34 +00007801rm -f core conftest.err conftest.$ac_objext
7802 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007803 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007804 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007805fi
cristy3ed852e2009-09-05 21:47:34 +00007806rm -f core conftest.err conftest.$ac_objext
7807 break
7808 done
7809 CC=$ac_save_CC
7810 rm -f conftest.$ac_ext
7811 fi
7812fi
cristy8b350f62009-11-15 23:12:43 +00007813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007814$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7815 if test "$ac_cv_sys_largefile_CC" != no; then
7816 CC=$CC$ac_cv_sys_largefile_CC
7817 fi
7818
cristy8b350f62009-11-15 23:12:43 +00007819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007820$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007821if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007822 $as_echo_n "(cached) " >&6
7823else
7824 while :; do
cristy8b350f62009-11-15 23:12:43 +00007825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007826/* end confdefs.h. */
7827#include <sys/types.h>
7828 /* Check that off_t can represent 2**63 - 1 correctly.
7829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7830 since some C++ compilers masquerading as C compilers
7831 incorrectly reject 9223372036854775807. */
7832#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7834 && LARGE_OFF_T % 2147483647 == 1)
7835 ? 1 : -1];
7836int
7837main ()
7838{
7839
7840 ;
7841 return 0;
7842}
7843_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007844if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007845 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007846fi
cristy3ed852e2009-09-05 21:47:34 +00007847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007849/* end confdefs.h. */
7850#define _FILE_OFFSET_BITS 64
7851#include <sys/types.h>
7852 /* Check that off_t can represent 2**63 - 1 correctly.
7853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7854 since some C++ compilers masquerading as C compilers
7855 incorrectly reject 9223372036854775807. */
7856#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7858 && LARGE_OFF_T % 2147483647 == 1)
7859 ? 1 : -1];
7860int
7861main ()
7862{
7863
7864 ;
7865 return 0;
7866}
7867_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007868if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007869 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007870fi
cristy3ed852e2009-09-05 21:47:34 +00007871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 ac_cv_sys_file_offset_bits=unknown
7873 break
7874done
7875fi
cristy8b350f62009-11-15 23:12:43 +00007876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007877$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7878case $ac_cv_sys_file_offset_bits in #(
7879 no | unknown) ;;
7880 *)
7881cat >>confdefs.h <<_ACEOF
7882#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7883_ACEOF
7884;;
7885esac
7886rm -rf conftest*
7887 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007889$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007890if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007891 $as_echo_n "(cached) " >&6
7892else
7893 while :; do
cristy8b350f62009-11-15 23:12:43 +00007894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007895/* end confdefs.h. */
7896#include <sys/types.h>
7897 /* Check that off_t can represent 2**63 - 1 correctly.
7898 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7899 since some C++ compilers masquerading as C compilers
7900 incorrectly reject 9223372036854775807. */
7901#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7902 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7903 && LARGE_OFF_T % 2147483647 == 1)
7904 ? 1 : -1];
7905int
7906main ()
7907{
7908
7909 ;
7910 return 0;
7911}
7912_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007913if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007914 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007915fi
cristy3ed852e2009-09-05 21:47:34 +00007916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007918/* end confdefs.h. */
7919#define _LARGE_FILES 1
7920#include <sys/types.h>
7921 /* Check that off_t can represent 2**63 - 1 correctly.
7922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7923 since some C++ compilers masquerading as C compilers
7924 incorrectly reject 9223372036854775807. */
7925#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7927 && LARGE_OFF_T % 2147483647 == 1)
7928 ? 1 : -1];
7929int
7930main ()
7931{
7932
7933 ;
7934 return 0;
7935}
7936_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007937if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007938 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007939fi
cristy3ed852e2009-09-05 21:47:34 +00007940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 ac_cv_sys_large_files=unknown
7942 break
7943done
7944fi
cristy8b350f62009-11-15 23:12:43 +00007945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007946$as_echo "$ac_cv_sys_large_files" >&6; }
7947case $ac_cv_sys_large_files in #(
7948 no | unknown) ;;
7949 *)
7950cat >>confdefs.h <<_ACEOF
7951#define _LARGE_FILES $ac_cv_sys_large_files
7952_ACEOF
7953;;
7954esac
7955rm -rf conftest*
7956 fi
7957fi
7958
cristy8b350f62009-11-15 23:12:43 +00007959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007960$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007961if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007962 $as_echo_n "(cached) " >&6
7963else
7964 while :; do
cristy8b350f62009-11-15 23:12:43 +00007965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007966/* end confdefs.h. */
7967#include <sys/types.h> /* for off_t */
7968 #include <stdio.h>
7969int
7970main ()
7971{
7972int (*fp) (FILE *, off_t, int) = fseeko;
7973 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7974 ;
7975 return 0;
7976}
7977_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007978if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007979 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007980fi
cristy8b350f62009-11-15 23:12:43 +00007981rm -f core conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007984/* end confdefs.h. */
7985#define _LARGEFILE_SOURCE 1
7986#include <sys/types.h> /* for off_t */
7987 #include <stdio.h>
7988int
7989main ()
7990{
7991int (*fp) (FILE *, off_t, int) = fseeko;
7992 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7993 ;
7994 return 0;
7995}
7996_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007997if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007998 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00007999fi
cristy8b350f62009-11-15 23:12:43 +00008000rm -f core conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008002 ac_cv_sys_largefile_source=unknown
8003 break
8004done
8005fi
cristy8b350f62009-11-15 23:12:43 +00008006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008007$as_echo "$ac_cv_sys_largefile_source" >&6; }
8008case $ac_cv_sys_largefile_source in #(
8009 no | unknown) ;;
8010 *)
8011cat >>confdefs.h <<_ACEOF
8012#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8013_ACEOF
8014;;
8015esac
8016rm -rf conftest*
8017
8018# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8019# in glibc 2.1.3, but that breaks too many other things.
8020# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8021if test $ac_cv_sys_largefile_source != unknown; then
8022
cristy8b350f62009-11-15 23:12:43 +00008023$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008024
8025fi
8026
8027LFS_CPPFLAGS=''
8028if test "$enable_largefile" != no; then
8029 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8030 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8031 else
cristy8b350f62009-11-15 23:12:43 +00008032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008033$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008034 if test "$cross_compiling" = yes; then :
8035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008037as_fn_error "cannot run test program while cross compiling
8038See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008039else
cristy8b350f62009-11-15 23:12:43 +00008040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008042#include <unistd.h>
8043 main () {
8044 exit(!(sizeof(off_t) == 8));
8045 }
8046_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008047if ac_fn_c_try_run "$LINENO"; then :
8048 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008049
cristy8b350f62009-11-15 23:12:43 +00008050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008051$as_echo "yes" >&6; }
8052else
cristy8b350f62009-11-15 23:12:43 +00008053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008054$as_echo "no" >&6; }
8055fi
cristy8b350f62009-11-15 23:12:43 +00008056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8057 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008058fi
8059
cristy3ed852e2009-09-05 21:47:34 +00008060 fi
8061 if test "$ac_cv_sys_large_files" != 'no'; then
8062 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8063 fi
8064 if test "$ac_cv_sys_largefile_source" != 'no'; then
8065 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8066 fi
8067fi
8068
8069
8070#
8071# Configure libtool & libltdl
8072#
8073# Configure libtool
8074enable_dlopen=yes
8075
8076
8077
8078case `pwd` in
8079 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008081$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8082esac
8083
8084
8085
cristy18304f92009-11-22 15:48:26 +00008086macro_version='2.2.6b'
8087macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101ltmain="$ac_aux_dir/ltmain.sh"
8102
cristy8b350f62009-11-15 23:12:43 +00008103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008104$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008105if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008106 $as_echo_n "(cached) " >&6
8107else
8108 if test -n "$NM"; then
8109 # Let the user override the test.
8110 lt_cv_path_NM="$NM"
8111else
8112 lt_nm_to_check="${ac_tool_prefix}nm"
8113 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8114 lt_nm_to_check="$lt_nm_to_check nm"
8115 fi
8116 for lt_tmp_nm in $lt_nm_to_check; do
8117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8118 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8119 IFS="$lt_save_ifs"
8120 test -z "$ac_dir" && ac_dir=.
8121 tmp_nm="$ac_dir/$lt_tmp_nm"
8122 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8123 # Check to see if the nm accepts a BSD-compat flag.
8124 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8125 # nm: unknown option "B" ignored
8126 # Tru64's nm complains that /dev/null is an invalid object file
8127 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8128 */dev/null* | *'Invalid file or object type'*)
8129 lt_cv_path_NM="$tmp_nm -B"
8130 break
8131 ;;
8132 *)
8133 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8134 */dev/null*)
8135 lt_cv_path_NM="$tmp_nm -p"
8136 break
8137 ;;
8138 *)
8139 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8140 continue # so that we can try to find one that supports BSD flags
8141 ;;
8142 esac
8143 ;;
8144 esac
8145 fi
8146 done
8147 IFS="$lt_save_ifs"
8148 done
8149 : ${lt_cv_path_NM=no}
8150fi
8151fi
cristy8b350f62009-11-15 23:12:43 +00008152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008153$as_echo "$lt_cv_path_NM" >&6; }
8154if test "$lt_cv_path_NM" != "no"; then
8155 NM="$lt_cv_path_NM"
8156else
8157 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008158 if test -n "$ac_tool_prefix"; then
8159 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008160 do
8161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008164$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008165if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008166 $as_echo_n "(cached) " >&6
8167else
8168 if test -n "$DUMPBIN"; then
8169 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8170else
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008180 break 2
8181 fi
8182done
cristy8b350f62009-11-15 23:12:43 +00008183 done
cristy3ed852e2009-09-05 21:47:34 +00008184IFS=$as_save_IFS
8185
8186fi
8187fi
8188DUMPBIN=$ac_cv_prog_DUMPBIN
8189if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008191$as_echo "$DUMPBIN" >&6; }
8192else
cristy8b350f62009-11-15 23:12:43 +00008193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008194$as_echo "no" >&6; }
8195fi
8196
8197
8198 test -n "$DUMPBIN" && break
8199 done
8200fi
8201if test -z "$DUMPBIN"; then
8202 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008203 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008204do
8205 # Extract the first word of "$ac_prog", so it can be a program name with args.
8206set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008208$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008209if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008210 $as_echo_n "(cached) " >&6
8211else
8212 if test -n "$ac_ct_DUMPBIN"; then
8213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8214else
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008224 break 2
8225 fi
8226done
cristy8b350f62009-11-15 23:12:43 +00008227 done
cristy3ed852e2009-09-05 21:47:34 +00008228IFS=$as_save_IFS
8229
8230fi
8231fi
8232ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8233if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008235$as_echo "$ac_ct_DUMPBIN" >&6; }
8236else
cristy8b350f62009-11-15 23:12:43 +00008237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008238$as_echo "no" >&6; }
8239fi
8240
8241
8242 test -n "$ac_ct_DUMPBIN" && break
8243done
8244
8245 if test "x$ac_ct_DUMPBIN" = x; then
8246 DUMPBIN=":"
8247 else
8248 case $cross_compiling:$ac_tool_warned in
8249yes:)
cristy8b350f62009-11-15 23:12:43 +00008250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252ac_tool_warned=yes ;;
8253esac
8254 DUMPBIN=$ac_ct_DUMPBIN
8255 fi
8256fi
8257
8258
8259 if test "$DUMPBIN" != ":"; then
8260 NM="$DUMPBIN"
8261 fi
8262fi
8263test -z "$NM" && NM=nm
8264
8265
8266
8267
8268
8269
cristy8b350f62009-11-15 23:12:43 +00008270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008271$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008272if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008273 $as_echo_n "(cached) " >&6
8274else
8275 lt_cv_nm_interface="BSD nm"
8276 echo "int some_variable = 0;" > conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +00008277 (eval echo "\"\$as_me:8277: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008278 (eval "$ac_compile" 2>conftest.err)
8279 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +00008280 (eval echo "\"\$as_me:8280: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008281 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8282 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +00008283 (eval echo "\"\$as_me:8283: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008284 cat conftest.out >&5
8285 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8286 lt_cv_nm_interface="MS dumpbin"
8287 fi
8288 rm -f conftest*
8289fi
cristy8b350f62009-11-15 23:12:43 +00008290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008291$as_echo "$lt_cv_nm_interface" >&6; }
8292
8293# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008295$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008296if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008297 $as_echo_n "(cached) " >&6
8298else
8299 i=0
8300 teststring="ABCD"
8301
8302 case $build_os in
8303 msdosdjgpp*)
8304 # On DJGPP, this test can blow up pretty badly due to problems in libc
8305 # (any single argument exceeding 2000 bytes causes a buffer overrun
8306 # during glob expansion). Even if it were fixed, the result of this
8307 # check would be larger than it should be.
8308 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8309 ;;
8310
8311 gnu*)
8312 # Under GNU Hurd, this test is not required because there is
8313 # no limit to the length of command line arguments.
8314 # Libtool will interpret -1 as no limit whatsoever
8315 lt_cv_sys_max_cmd_len=-1;
8316 ;;
8317
8318 cygwin* | mingw* | cegcc*)
8319 # On Win9x/ME, this test blows up -- it succeeds, but takes
8320 # about 5 minutes as the teststring grows exponentially.
8321 # Worse, since 9x/ME are not pre-emptively multitasking,
8322 # you end up with a "frozen" computer, even though with patience
8323 # the test eventually succeeds (with a max line length of 256k).
8324 # Instead, let's just punt: use the minimum linelength reported by
8325 # all of the supported platforms: 8192 (on NT/2K/XP).
8326 lt_cv_sys_max_cmd_len=8192;
8327 ;;
8328
8329 amigaos*)
8330 # On AmigaOS with pdksh, this test takes hours, literally.
8331 # So we just punt and use a minimum line length of 8192.
8332 lt_cv_sys_max_cmd_len=8192;
8333 ;;
8334
8335 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8336 # This has been around since 386BSD, at least. Likely further.
8337 if test -x /sbin/sysctl; then
8338 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8339 elif test -x /usr/sbin/sysctl; then
8340 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8341 else
8342 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8343 fi
8344 # And add a safety zone
8345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8347 ;;
8348
8349 interix*)
8350 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8351 lt_cv_sys_max_cmd_len=196608
8352 ;;
8353
8354 osf*)
8355 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8356 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8357 # nice to cause kernel panics so lets avoid the loop below.
8358 # First set a reasonable default.
8359 lt_cv_sys_max_cmd_len=16384
8360 #
8361 if test -x /sbin/sysconfig; then
8362 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8363 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8364 esac
8365 fi
8366 ;;
8367 sco3.2v5*)
8368 lt_cv_sys_max_cmd_len=102400
8369 ;;
8370 sysv5* | sco5v6* | sysv4.2uw2*)
8371 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8372 if test -n "$kargmax"; then
8373 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8374 else
8375 lt_cv_sys_max_cmd_len=32768
8376 fi
8377 ;;
8378 *)
8379 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8380 if test -n "$lt_cv_sys_max_cmd_len"; then
8381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8383 else
8384 # Make teststring a little bigger before we do anything with it.
8385 # a 1K string should be a reasonable start.
8386 for i in 1 2 3 4 5 6 7 8 ; do
8387 teststring=$teststring$teststring
8388 done
8389 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8390 # If test is not a shell built-in, we'll probably end up computing a
8391 # maximum length that is only half of the actual maximum length, but
8392 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00008393 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8394 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008395 test $i != 17 # 1/2 MB should be enough
8396 do
8397 i=`expr $i + 1`
8398 teststring=$teststring$teststring
8399 done
8400 # Only check the string length outside the loop.
8401 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8402 teststring=
8403 # Add a significant safety factor because C++ compilers can tack on
8404 # massive amounts of additional arguments before passing them to the
8405 # linker. It appears as though 1/2 is a usable value.
8406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8407 fi
8408 ;;
8409 esac
8410
8411fi
8412
8413if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008415$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8416else
cristy8b350f62009-11-15 23:12:43 +00008417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008418$as_echo "none" >&6; }
8419fi
8420max_cmd_len=$lt_cv_sys_max_cmd_len
8421
8422
8423
8424
8425
8426
8427: ${CP="cp -f"}
8428: ${MV="mv -f"}
8429: ${RM="rm -f"}
8430
cristy8b350f62009-11-15 23:12:43 +00008431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008432$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8433# Try some XSI features
8434xsi_shell=no
8435( _lt_dummy="a/b/c"
8436 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8437 = c,a/b,, \
8438 && eval 'test $(( 1 + 1 )) -eq 2 \
8439 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8440 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008442$as_echo "$xsi_shell" >&6; }
8443
8444
cristy8b350f62009-11-15 23:12:43 +00008445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008446$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8447lt_shell_append=no
8448( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8449 >/dev/null 2>&1 \
8450 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008452$as_echo "$lt_shell_append" >&6; }
8453
8454
8455if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8456 lt_unset=unset
8457else
8458 lt_unset=false
8459fi
8460
8461
8462
8463
8464
8465# test EBCDIC or ASCII
8466case `echo X|tr X '\101'` in
8467 A) # ASCII based system
8468 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8469 lt_SP2NL='tr \040 \012'
8470 lt_NL2SP='tr \015\012 \040\040'
8471 ;;
8472 *) # EBCDIC based system
8473 lt_SP2NL='tr \100 \n'
8474 lt_NL2SP='tr \r\n \100\100'
8475 ;;
8476esac
8477
8478
8479
8480
8481
8482
8483
8484
8485
cristy8b350f62009-11-15 23:12:43 +00008486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008487$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008488if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008489 $as_echo_n "(cached) " >&6
8490else
8491 lt_cv_ld_reload_flag='-r'
8492fi
cristy8b350f62009-11-15 23:12:43 +00008493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008494$as_echo "$lt_cv_ld_reload_flag" >&6; }
8495reload_flag=$lt_cv_ld_reload_flag
8496case $reload_flag in
8497"" | " "*) ;;
8498*) reload_flag=" $reload_flag" ;;
8499esac
8500reload_cmds='$LD$reload_flag -o $output$reload_objs'
8501case $host_os in
8502 darwin*)
8503 if test "$GCC" = yes; then
8504 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8505 else
8506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8507 fi
8508 ;;
8509esac
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519if test -n "$ac_tool_prefix"; then
8520 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8521set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008523$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008524if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008525 $as_echo_n "(cached) " >&6
8526else
8527 if test -n "$OBJDUMP"; then
8528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8529else
8530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008539 break 2
8540 fi
8541done
cristy8b350f62009-11-15 23:12:43 +00008542 done
cristy3ed852e2009-09-05 21:47:34 +00008543IFS=$as_save_IFS
8544
8545fi
8546fi
8547OBJDUMP=$ac_cv_prog_OBJDUMP
8548if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008550$as_echo "$OBJDUMP" >&6; }
8551else
cristy8b350f62009-11-15 23:12:43 +00008552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008553$as_echo "no" >&6; }
8554fi
8555
8556
8557fi
8558if test -z "$ac_cv_prog_OBJDUMP"; then
8559 ac_ct_OBJDUMP=$OBJDUMP
8560 # Extract the first word of "objdump", so it can be a program name with args.
8561set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008563$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008564if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008565 $as_echo_n "(cached) " >&6
8566else
8567 if test -n "$ac_ct_OBJDUMP"; then
8568 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8577 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008579 break 2
8580 fi
8581done
cristy8b350f62009-11-15 23:12:43 +00008582 done
cristy3ed852e2009-09-05 21:47:34 +00008583IFS=$as_save_IFS
8584
8585fi
8586fi
8587ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8588if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008590$as_echo "$ac_ct_OBJDUMP" >&6; }
8591else
cristy8b350f62009-11-15 23:12:43 +00008592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008593$as_echo "no" >&6; }
8594fi
8595
8596 if test "x$ac_ct_OBJDUMP" = x; then
8597 OBJDUMP="false"
8598 else
8599 case $cross_compiling:$ac_tool_warned in
8600yes:)
cristy8b350f62009-11-15 23:12:43 +00008601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603ac_tool_warned=yes ;;
8604esac
8605 OBJDUMP=$ac_ct_OBJDUMP
8606 fi
8607else
8608 OBJDUMP="$ac_cv_prog_OBJDUMP"
8609fi
8610
8611test -z "$OBJDUMP" && OBJDUMP=objdump
8612
8613
8614
8615
8616
8617
cristy8b350f62009-11-15 23:12:43 +00008618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008619$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008620if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008621 $as_echo_n "(cached) " >&6
8622else
8623 lt_cv_file_magic_cmd='$MAGIC_CMD'
8624lt_cv_file_magic_test_file=
8625lt_cv_deplibs_check_method='unknown'
8626# Need to set the preceding variable on all platforms that support
8627# interlibrary dependencies.
8628# 'none' -- dependencies not supported.
8629# `unknown' -- same as none, but documents that we really don't know.
8630# 'pass_all' -- all dependencies passed with no checks.
8631# 'test_compile' -- check by making test program.
8632# 'file_magic [[regex]]' -- check by looking for files in library path
8633# which responds to the $file_magic_cmd with a given extended regex.
8634# If you have `file' or equivalent on your system and you're not sure
8635# whether `pass_all' will *always* work, you probably want this one.
8636
8637case $host_os in
8638aix[4-9]*)
8639 lt_cv_deplibs_check_method=pass_all
8640 ;;
8641
8642beos*)
8643 lt_cv_deplibs_check_method=pass_all
8644 ;;
8645
8646bsdi[45]*)
8647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8648 lt_cv_file_magic_cmd='/usr/bin/file -L'
8649 lt_cv_file_magic_test_file=/shlib/libc.so
8650 ;;
8651
8652cygwin*)
8653 # func_win32_libid is a shell function defined in ltmain.sh
8654 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8655 lt_cv_file_magic_cmd='func_win32_libid'
8656 ;;
8657
8658mingw* | pw32*)
8659 # Base MSYS/MinGW do not provide the 'file' command needed by
8660 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8661 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00008662 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8664 lt_cv_file_magic_cmd='func_win32_libid'
8665 else
8666 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8667 lt_cv_file_magic_cmd='$OBJDUMP -f'
8668 fi
8669 ;;
8670
cristy18304f92009-11-22 15:48:26 +00008671cegcc)
cristy3ed852e2009-09-05 21:47:34 +00008672 # use the weaker test based on 'objdump'. See mingw*.
8673 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8674 lt_cv_file_magic_cmd='$OBJDUMP -f'
8675 ;;
8676
8677darwin* | rhapsody*)
8678 lt_cv_deplibs_check_method=pass_all
8679 ;;
8680
8681freebsd* | dragonfly*)
8682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8683 case $host_cpu in
8684 i*86 )
8685 # Not sure whether the presence of OpenBSD here was a mistake.
8686 # Let's accept both of them until this is cleared up.
8687 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8688 lt_cv_file_magic_cmd=/usr/bin/file
8689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8690 ;;
8691 esac
8692 else
8693 lt_cv_deplibs_check_method=pass_all
8694 fi
8695 ;;
8696
8697gnu*)
8698 lt_cv_deplibs_check_method=pass_all
8699 ;;
8700
8701hpux10.20* | hpux11*)
8702 lt_cv_file_magic_cmd=/usr/bin/file
8703 case $host_cpu in
8704 ia64*)
8705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8706 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8707 ;;
8708 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00008709 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 +00008710 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8711 ;;
8712 *)
cristy18304f92009-11-22 15:48:26 +00008713 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 +00008714 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8715 ;;
8716 esac
8717 ;;
8718
8719interix[3-9]*)
8720 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8722 ;;
8723
8724irix5* | irix6* | nonstopux*)
8725 case $LD in
8726 *-32|*"-32 ") libmagic=32-bit;;
8727 *-n32|*"-n32 ") libmagic=N32;;
8728 *-64|*"-64 ") libmagic=64-bit;;
8729 *) libmagic=never-match;;
8730 esac
8731 lt_cv_deplibs_check_method=pass_all
8732 ;;
8733
8734# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00008735linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008736 lt_cv_deplibs_check_method=pass_all
8737 ;;
8738
8739netbsd*)
8740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8742 else
8743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8744 fi
8745 ;;
8746
8747newos6*)
8748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8749 lt_cv_file_magic_cmd=/usr/bin/file
8750 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8751 ;;
8752
8753*nto* | *qnx*)
8754 lt_cv_deplibs_check_method=pass_all
8755 ;;
8756
8757openbsd*)
8758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8760 else
8761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8762 fi
8763 ;;
8764
8765osf3* | osf4* | osf5*)
8766 lt_cv_deplibs_check_method=pass_all
8767 ;;
8768
8769rdos*)
8770 lt_cv_deplibs_check_method=pass_all
8771 ;;
8772
8773solaris*)
8774 lt_cv_deplibs_check_method=pass_all
8775 ;;
8776
8777sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8778 lt_cv_deplibs_check_method=pass_all
8779 ;;
8780
8781sysv4 | sysv4.3*)
8782 case $host_vendor in
8783 motorola)
8784 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]'
8785 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8786 ;;
8787 ncr)
8788 lt_cv_deplibs_check_method=pass_all
8789 ;;
8790 sequent)
8791 lt_cv_file_magic_cmd='/bin/file'
8792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8793 ;;
8794 sni)
8795 lt_cv_file_magic_cmd='/bin/file'
8796 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8797 lt_cv_file_magic_test_file=/lib/libc.so
8798 ;;
8799 siemens)
8800 lt_cv_deplibs_check_method=pass_all
8801 ;;
8802 pc)
8803 lt_cv_deplibs_check_method=pass_all
8804 ;;
8805 esac
8806 ;;
8807
8808tpf*)
8809 lt_cv_deplibs_check_method=pass_all
8810 ;;
8811esac
8812
8813fi
cristy8b350f62009-11-15 23:12:43 +00008814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008815$as_echo "$lt_cv_deplibs_check_method" >&6; }
8816file_magic_cmd=$lt_cv_file_magic_cmd
8817deplibs_check_method=$lt_cv_deplibs_check_method
8818test -z "$deplibs_check_method" && deplibs_check_method=unknown
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831if test -n "$ac_tool_prefix"; then
8832 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8833set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008835$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008836if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008837 $as_echo_n "(cached) " >&6
8838else
8839 if test -n "$AR"; then
8840 ac_cv_prog_AR="$AR" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008851 break 2
8852 fi
8853done
cristy8b350f62009-11-15 23:12:43 +00008854 done
cristy3ed852e2009-09-05 21:47:34 +00008855IFS=$as_save_IFS
8856
8857fi
8858fi
8859AR=$ac_cv_prog_AR
8860if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008862$as_echo "$AR" >&6; }
8863else
cristy8b350f62009-11-15 23:12:43 +00008864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008865$as_echo "no" >&6; }
8866fi
8867
8868
8869fi
8870if test -z "$ac_cv_prog_AR"; then
8871 ac_ct_AR=$AR
8872 # Extract the first word of "ar", so it can be a program name with args.
8873set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008875$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008876if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008877 $as_echo_n "(cached) " >&6
8878else
8879 if test -n "$ac_ct_AR"; then
8880 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008891 break 2
8892 fi
8893done
cristy8b350f62009-11-15 23:12:43 +00008894 done
cristy3ed852e2009-09-05 21:47:34 +00008895IFS=$as_save_IFS
8896
8897fi
8898fi
8899ac_ct_AR=$ac_cv_prog_ac_ct_AR
8900if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008902$as_echo "$ac_ct_AR" >&6; }
8903else
cristy8b350f62009-11-15 23:12:43 +00008904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008905$as_echo "no" >&6; }
8906fi
8907
8908 if test "x$ac_ct_AR" = x; then
8909 AR="false"
8910 else
8911 case $cross_compiling:$ac_tool_warned in
8912yes:)
cristy8b350f62009-11-15 23:12:43 +00008913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915ac_tool_warned=yes ;;
8916esac
8917 AR=$ac_ct_AR
8918 fi
8919else
8920 AR="$ac_cv_prog_AR"
8921fi
8922
8923test -z "$AR" && AR=ar
8924test -z "$AR_FLAGS" && AR_FLAGS=cru
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936if test -n "$ac_tool_prefix"; then
8937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8938set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008940$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008941if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008942 $as_echo_n "(cached) " >&6
8943else
8944 if test -n "$STRIP"; then
8945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8946else
8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948for as_dir in $PATH
8949do
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008956 break 2
8957 fi
8958done
cristy8b350f62009-11-15 23:12:43 +00008959 done
cristy3ed852e2009-09-05 21:47:34 +00008960IFS=$as_save_IFS
8961
8962fi
8963fi
8964STRIP=$ac_cv_prog_STRIP
8965if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008967$as_echo "$STRIP" >&6; }
8968else
cristy8b350f62009-11-15 23:12:43 +00008969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008970$as_echo "no" >&6; }
8971fi
8972
8973
8974fi
8975if test -z "$ac_cv_prog_STRIP"; then
8976 ac_ct_STRIP=$STRIP
8977 # Extract the first word of "strip", so it can be a program name with args.
8978set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008980$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008981if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008982 $as_echo_n "(cached) " >&6
8983else
8984 if test -n "$ac_ct_STRIP"; then
8985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00008995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008996 break 2
8997 fi
8998done
cristy8b350f62009-11-15 23:12:43 +00008999 done
cristy3ed852e2009-09-05 21:47:34 +00009000IFS=$as_save_IFS
9001
9002fi
9003fi
9004ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9005if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009007$as_echo "$ac_ct_STRIP" >&6; }
9008else
cristy8b350f62009-11-15 23:12:43 +00009009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009010$as_echo "no" >&6; }
9011fi
9012
9013 if test "x$ac_ct_STRIP" = x; then
9014 STRIP=":"
9015 else
9016 case $cross_compiling:$ac_tool_warned in
9017yes:)
cristy8b350f62009-11-15 23:12:43 +00009018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9020ac_tool_warned=yes ;;
9021esac
9022 STRIP=$ac_ct_STRIP
9023 fi
9024else
9025 STRIP="$ac_cv_prog_STRIP"
9026fi
9027
9028test -z "$STRIP" && STRIP=:
9029
9030
9031
9032
9033
9034
9035if test -n "$ac_tool_prefix"; then
9036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9037set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009039$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009040if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009041 $as_echo_n "(cached) " >&6
9042else
9043 if test -n "$RANLIB"; then
9044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9045else
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009055 break 2
9056 fi
9057done
cristy8b350f62009-11-15 23:12:43 +00009058 done
cristy3ed852e2009-09-05 21:47:34 +00009059IFS=$as_save_IFS
9060
9061fi
9062fi
9063RANLIB=$ac_cv_prog_RANLIB
9064if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009066$as_echo "$RANLIB" >&6; }
9067else
cristy8b350f62009-11-15 23:12:43 +00009068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009069$as_echo "no" >&6; }
9070fi
9071
9072
9073fi
9074if test -z "$ac_cv_prog_RANLIB"; then
9075 ac_ct_RANLIB=$RANLIB
9076 # Extract the first word of "ranlib", so it can be a program name with args.
9077set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009079$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009080if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009081 $as_echo_n "(cached) " >&6
9082else
9083 if test -n "$ac_ct_RANLIB"; then
9084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009095 break 2
9096 fi
9097done
cristy8b350f62009-11-15 23:12:43 +00009098 done
cristy3ed852e2009-09-05 21:47:34 +00009099IFS=$as_save_IFS
9100
9101fi
9102fi
9103ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9104if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009106$as_echo "$ac_ct_RANLIB" >&6; }
9107else
cristy8b350f62009-11-15 23:12:43 +00009108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009109$as_echo "no" >&6; }
9110fi
9111
9112 if test "x$ac_ct_RANLIB" = x; then
9113 RANLIB=":"
9114 else
9115 case $cross_compiling:$ac_tool_warned in
9116yes:)
cristy8b350f62009-11-15 23:12:43 +00009117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9119ac_tool_warned=yes ;;
9120esac
9121 RANLIB=$ac_ct_RANLIB
9122 fi
9123else
9124 RANLIB="$ac_cv_prog_RANLIB"
9125fi
9126
9127test -z "$RANLIB" && RANLIB=:
9128
9129
9130
9131
9132
9133
9134# Determine commands to create old-style static archives.
9135old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9136old_postinstall_cmds='chmod 644 $oldlib'
9137old_postuninstall_cmds=
9138
9139if test -n "$RANLIB"; then
9140 case $host_os in
9141 openbsd*)
9142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9143 ;;
9144 *)
9145 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9146 ;;
9147 esac
9148 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9149fi
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184# If no C compiler was specified, use CC.
9185LTCC=${LTCC-"$CC"}
9186
9187# If no C compiler flags were specified, use CFLAGS.
9188LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9189
9190# Allow CC to be a program name with arguments.
9191compiler=$CC
9192
9193
9194# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009196$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009197if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009198 $as_echo_n "(cached) " >&6
9199else
9200
9201# These are sane defaults that work on at least a few old systems.
9202# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9203
9204# Character class describing NM global symbol codes.
9205symcode='[BCDEGRST]'
9206
9207# Regexp to match symbols that can be accessed directly from C.
9208sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9209
9210# Define system-specific variables.
9211case $host_os in
9212aix*)
9213 symcode='[BCDT]'
9214 ;;
9215cygwin* | mingw* | pw32* | cegcc*)
9216 symcode='[ABCDGISTW]'
9217 ;;
9218hpux*)
9219 if test "$host_cpu" = ia64; then
9220 symcode='[ABCDEGRST]'
9221 fi
9222 ;;
9223irix* | nonstopux*)
9224 symcode='[BCDEGRST]'
9225 ;;
9226osf*)
9227 symcode='[BCDEGQRST]'
9228 ;;
9229solaris*)
9230 symcode='[BDRT]'
9231 ;;
9232sco3.2v5*)
9233 symcode='[DT]'
9234 ;;
9235sysv4.2uw2*)
9236 symcode='[DT]'
9237 ;;
9238sysv5* | sco5v6* | unixware* | OpenUNIX*)
9239 symcode='[ABDT]'
9240 ;;
9241sysv4)
9242 symcode='[DFNSTU]'
9243 ;;
9244esac
9245
9246# If we're using GNU nm, then use its standard symbol codes.
9247case `$NM -V 2>&1` in
9248*GNU* | *'with BFD'*)
9249 symcode='[ABCDGIRSTW]' ;;
9250esac
9251
9252# Transform an extracted symbol line into a proper C declaration.
9253# Some systems (esp. on ia64) link data and code symbols differently,
9254# so use this general approach.
9255lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9256
9257# Transform an extracted symbol line into symbol name and symbol address
9258lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9259lt_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'"
9260
9261# Handle CRLF in mingw tool chain
9262opt_cr=
9263case $build_os in
9264mingw*)
9265 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9266 ;;
9267esac
9268
9269# Try without a prefix underscore, then with it.
9270for ac_symprfx in "" "_"; do
9271
9272 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9273 symxfrm="\\1 $ac_symprfx\\2 \\2"
9274
9275 # Write the raw and C identifiers.
9276 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9277 # Fake it for dumpbin and say T for any non-static function
9278 # and D for any global variable.
9279 # Also find C++ and __fastcall symbols from MSVC++,
9280 # which start with @ or ?.
9281 lt_cv_sys_global_symbol_pipe="$AWK '"\
9282" {last_section=section; section=\$ 3};"\
9283" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9284" \$ 0!~/External *\|/{next};"\
9285" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9286" {if(hide[section]) next};"\
9287" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9288" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9289" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9290" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9291" ' prfx=^$ac_symprfx"
9292 else
9293 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9294 fi
9295
9296 # Check to see that the pipe works correctly.
9297 pipe_works=no
9298
9299 rm -f conftest*
9300 cat > conftest.$ac_ext <<_LT_EOF
9301#ifdef __cplusplus
9302extern "C" {
9303#endif
9304char nm_test_var;
9305void nm_test_func(void);
9306void nm_test_func(void){}
9307#ifdef __cplusplus
9308}
9309#endif
9310int main(){nm_test_var='a';nm_test_func();return(0);}
9311_LT_EOF
9312
cristy8b350f62009-11-15 23:12:43 +00009313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009314 (eval $ac_compile) 2>&5
9315 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9317 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009318 # Now try to grab the symbols.
9319 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +00009320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9321 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009322 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9324 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009325 # Try sorting and uniquifying the output.
9326 if sort "$nlist" | uniq > "$nlist"T; then
9327 mv -f "$nlist"T "$nlist"
9328 else
9329 rm -f "$nlist"T
9330 fi
9331
9332 # Make sure that we snagged all the symbols we need.
9333 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9334 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9335 cat <<_LT_EOF > conftest.$ac_ext
9336#ifdef __cplusplus
9337extern "C" {
9338#endif
9339
9340_LT_EOF
9341 # Now generate the symbol file.
9342 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9343
9344 cat <<_LT_EOF >> conftest.$ac_ext
9345
9346/* The mapping between symbol names and symbols. */
9347const struct {
9348 const char *name;
9349 void *address;
9350}
9351lt__PROGRAM__LTX_preloaded_symbols[] =
9352{
9353 { "@PROGRAM@", (void *) 0 },
9354_LT_EOF
9355 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9356 cat <<\_LT_EOF >> conftest.$ac_ext
9357 {0, (void *) 0}
9358};
9359
9360/* This works around a problem in FreeBSD linker */
9361#ifdef FREEBSD_WORKAROUND
9362static const void *lt_preloaded_setup() {
9363 return lt__PROGRAM__LTX_preloaded_symbols;
9364}
9365#endif
9366
9367#ifdef __cplusplus
9368}
9369#endif
9370_LT_EOF
9371 # Now try linking the two files.
9372 mv conftest.$ac_objext conftstm.$ac_objext
9373 lt_save_LIBS="$LIBS"
9374 lt_save_CFLAGS="$CFLAGS"
9375 LIBS="conftstm.$ac_objext"
9376 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009378 (eval $ac_link) 2>&5
9379 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9381 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009382 pipe_works=yes
9383 fi
9384 LIBS="$lt_save_LIBS"
9385 CFLAGS="$lt_save_CFLAGS"
9386 else
9387 echo "cannot find nm_test_func in $nlist" >&5
9388 fi
9389 else
9390 echo "cannot find nm_test_var in $nlist" >&5
9391 fi
9392 else
9393 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9394 fi
9395 else
9396 echo "$progname: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 fi
9399 rm -rf conftest* conftst*
9400
9401 # Do not use the global_symbol_pipe unless it works.
9402 if test "$pipe_works" = yes; then
9403 break
9404 else
9405 lt_cv_sys_global_symbol_pipe=
9406 fi
9407done
9408
9409fi
9410
9411if test -z "$lt_cv_sys_global_symbol_pipe"; then
9412 lt_cv_sys_global_symbol_to_cdecl=
9413fi
9414if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009416$as_echo "failed" >&6; }
9417else
cristy8b350f62009-11-15 23:12:43 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009419$as_echo "ok" >&6; }
9420fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009444if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009445 enableval=$enable_libtool_lock;
9446fi
9447
9448test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9449
9450# Some flags need to be propagated to the compiler or linker for good
9451# libtool support.
9452case $host in
9453ia64-*-hpux*)
9454 # Find out which ABI we are using.
9455 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009457 (eval $ac_compile) 2>&5
9458 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9460 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009461 case `/usr/bin/file conftest.$ac_objext` in
9462 *ELF-32*)
9463 HPUX_IA64_MODE="32"
9464 ;;
9465 *ELF-64*)
9466 HPUX_IA64_MODE="64"
9467 ;;
9468 esac
9469 fi
9470 rm -rf conftest*
9471 ;;
9472*-*-irix6*)
9473 # Find out which ABI we are using.
cristy18304f92009-11-22 15:48:26 +00009474 echo '#line 9474 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009476 (eval $ac_compile) 2>&5
9477 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9479 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009480 if test "$lt_cv_prog_gnu_ld" = yes; then
9481 case `/usr/bin/file conftest.$ac_objext` in
9482 *32-bit*)
9483 LD="${LD-ld} -melf32bsmip"
9484 ;;
9485 *N32*)
9486 LD="${LD-ld} -melf32bmipn32"
9487 ;;
9488 *64-bit*)
9489 LD="${LD-ld} -melf64bmip"
9490 ;;
9491 esac
9492 else
9493 case `/usr/bin/file conftest.$ac_objext` in
9494 *32-bit*)
9495 LD="${LD-ld} -32"
9496 ;;
9497 *N32*)
9498 LD="${LD-ld} -n32"
9499 ;;
9500 *64-bit*)
9501 LD="${LD-ld} -64"
9502 ;;
9503 esac
9504 fi
9505 fi
9506 rm -rf conftest*
9507 ;;
9508
9509x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9510s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9511 # Find out which ABI we are using.
9512 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009514 (eval $ac_compile) 2>&5
9515 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9517 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009518 case `/usr/bin/file conftest.o` in
9519 *32-bit*)
9520 case $host in
9521 x86_64-*kfreebsd*-gnu)
9522 LD="${LD-ld} -m elf_i386_fbsd"
9523 ;;
9524 x86_64-*linux*)
9525 LD="${LD-ld} -m elf_i386"
9526 ;;
9527 ppc64-*linux*|powerpc64-*linux*)
9528 LD="${LD-ld} -m elf32ppclinux"
9529 ;;
9530 s390x-*linux*)
9531 LD="${LD-ld} -m elf_s390"
9532 ;;
9533 sparc64-*linux*)
9534 LD="${LD-ld} -m elf32_sparc"
9535 ;;
9536 esac
9537 ;;
9538 *64-bit*)
9539 case $host in
9540 x86_64-*kfreebsd*-gnu)
9541 LD="${LD-ld} -m elf_x86_64_fbsd"
9542 ;;
9543 x86_64-*linux*)
9544 LD="${LD-ld} -m elf_x86_64"
9545 ;;
9546 ppc*-*linux*|powerpc*-*linux*)
9547 LD="${LD-ld} -m elf64ppc"
9548 ;;
9549 s390*-*linux*|s390*-*tpf*)
9550 LD="${LD-ld} -m elf64_s390"
9551 ;;
9552 sparc*-*linux*)
9553 LD="${LD-ld} -m elf64_sparc"
9554 ;;
9555 esac
9556 ;;
9557 esac
9558 fi
9559 rm -rf conftest*
9560 ;;
9561
9562*-*-sco3.2v5*)
9563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9564 SAVE_CFLAGS="$CFLAGS"
9565 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009567$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009568if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009569 $as_echo_n "(cached) " >&6
9570else
9571 ac_ext=c
9572ac_cpp='$CPP $CPPFLAGS'
9573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575ac_compiler_gnu=$ac_cv_c_compiler_gnu
9576
cristy8b350f62009-11-15 23:12:43 +00009577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009578/* end confdefs.h. */
9579
9580int
9581main ()
9582{
9583
9584 ;
9585 return 0;
9586}
9587_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009588if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009589 lt_cv_cc_needs_belf=yes
9590else
cristy8b350f62009-11-15 23:12:43 +00009591 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009592fi
cristy8b350f62009-11-15 23:12:43 +00009593rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009595 ac_ext=c
9596ac_cpp='$CPP $CPPFLAGS'
9597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599ac_compiler_gnu=$ac_cv_c_compiler_gnu
9600
9601fi
cristy8b350f62009-11-15 23:12:43 +00009602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009603$as_echo "$lt_cv_cc_needs_belf" >&6; }
9604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9606 CFLAGS="$SAVE_CFLAGS"
9607 fi
9608 ;;
9609sparc*-*solaris*)
9610 # Find out which ABI we are using.
9611 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009613 (eval $ac_compile) 2>&5
9614 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9616 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009617 case `/usr/bin/file conftest.o` in
9618 *64-bit*)
9619 case $lt_cv_prog_gnu_ld in
9620 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9621 *)
9622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9623 LD="${LD-ld} -64"
9624 fi
9625 ;;
9626 esac
9627 ;;
9628 esac
9629 fi
9630 rm -rf conftest*
9631 ;;
9632esac
9633
9634need_locks="$enable_libtool_lock"
9635
9636
9637 case $host_os in
9638 rhapsody* | darwin*)
9639 if test -n "$ac_tool_prefix"; then
9640 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9641set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009643$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009644if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009645 $as_echo_n "(cached) " >&6
9646else
9647 if test -n "$DSYMUTIL"; then
9648 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9649else
9650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651for as_dir in $PATH
9652do
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009659 break 2
9660 fi
9661done
cristy8b350f62009-11-15 23:12:43 +00009662 done
cristy3ed852e2009-09-05 21:47:34 +00009663IFS=$as_save_IFS
9664
9665fi
9666fi
9667DSYMUTIL=$ac_cv_prog_DSYMUTIL
9668if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo "$DSYMUTIL" >&6; }
9671else
cristy8b350f62009-11-15 23:12:43 +00009672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009673$as_echo "no" >&6; }
9674fi
9675
9676
9677fi
9678if test -z "$ac_cv_prog_DSYMUTIL"; then
9679 ac_ct_DSYMUTIL=$DSYMUTIL
9680 # Extract the first word of "dsymutil", so it can be a program name with args.
9681set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009683$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009684if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009685 $as_echo_n "(cached) " >&6
9686else
9687 if test -n "$ac_ct_DSYMUTIL"; then
9688 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9689else
9690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691for as_dir in $PATH
9692do
9693 IFS=$as_save_IFS
9694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009699 break 2
9700 fi
9701done
cristy8b350f62009-11-15 23:12:43 +00009702 done
cristy3ed852e2009-09-05 21:47:34 +00009703IFS=$as_save_IFS
9704
9705fi
9706fi
9707ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9708if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009710$as_echo "$ac_ct_DSYMUTIL" >&6; }
9711else
cristy8b350f62009-11-15 23:12:43 +00009712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009713$as_echo "no" >&6; }
9714fi
9715
9716 if test "x$ac_ct_DSYMUTIL" = x; then
9717 DSYMUTIL=":"
9718 else
9719 case $cross_compiling:$ac_tool_warned in
9720yes:)
cristy8b350f62009-11-15 23:12:43 +00009721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9723ac_tool_warned=yes ;;
9724esac
9725 DSYMUTIL=$ac_ct_DSYMUTIL
9726 fi
9727else
9728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9729fi
9730
9731 if test -n "$ac_tool_prefix"; then
9732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9733set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009735$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009736if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009737 $as_echo_n "(cached) " >&6
9738else
9739 if test -n "$NMEDIT"; then
9740 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9741else
9742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743for as_dir in $PATH
9744do
9745 IFS=$as_save_IFS
9746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009751 break 2
9752 fi
9753done
cristy8b350f62009-11-15 23:12:43 +00009754 done
cristy3ed852e2009-09-05 21:47:34 +00009755IFS=$as_save_IFS
9756
9757fi
9758fi
9759NMEDIT=$ac_cv_prog_NMEDIT
9760if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009762$as_echo "$NMEDIT" >&6; }
9763else
cristy8b350f62009-11-15 23:12:43 +00009764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009765$as_echo "no" >&6; }
9766fi
9767
9768
9769fi
9770if test -z "$ac_cv_prog_NMEDIT"; then
9771 ac_ct_NMEDIT=$NMEDIT
9772 # Extract the first word of "nmedit", so it can be a program name with args.
9773set dummy nmedit; 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_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009777 $as_echo_n "(cached) " >&6
9778else
9779 if test -n "$ac_ct_NMEDIT"; then
9780 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit"
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
9799ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9800if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009802$as_echo "$ac_ct_NMEDIT" >&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 if test "x$ac_ct_NMEDIT" = x; then
9809 NMEDIT=":"
9810 else
9811 case $cross_compiling:$ac_tool_warned in
9812yes:)
cristy8b350f62009-11-15 23:12:43 +00009813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9815ac_tool_warned=yes ;;
9816esac
9817 NMEDIT=$ac_ct_NMEDIT
9818 fi
9819else
9820 NMEDIT="$ac_cv_prog_NMEDIT"
9821fi
9822
9823 if test -n "$ac_tool_prefix"; then
9824 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9825set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009827$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009828if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009829 $as_echo_n "(cached) " >&6
9830else
9831 if test -n "$LIPO"; then
9832 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9833else
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009843 break 2
9844 fi
9845done
cristy8b350f62009-11-15 23:12:43 +00009846 done
cristy3ed852e2009-09-05 21:47:34 +00009847IFS=$as_save_IFS
9848
9849fi
9850fi
9851LIPO=$ac_cv_prog_LIPO
9852if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009854$as_echo "$LIPO" >&6; }
9855else
cristy8b350f62009-11-15 23:12:43 +00009856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009857$as_echo "no" >&6; }
9858fi
9859
9860
9861fi
9862if test -z "$ac_cv_prog_LIPO"; then
9863 ac_ct_LIPO=$LIPO
9864 # Extract the first word of "lipo", so it can be a program name with args.
9865set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009867$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009868if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009869 $as_echo_n "(cached) " >&6
9870else
9871 if test -n "$ac_ct_LIPO"; then
9872 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009883 break 2
9884 fi
9885done
cristy8b350f62009-11-15 23:12:43 +00009886 done
cristy3ed852e2009-09-05 21:47:34 +00009887IFS=$as_save_IFS
9888
9889fi
9890fi
9891ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9892if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009894$as_echo "$ac_ct_LIPO" >&6; }
9895else
cristy8b350f62009-11-15 23:12:43 +00009896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009897$as_echo "no" >&6; }
9898fi
9899
9900 if test "x$ac_ct_LIPO" = x; then
9901 LIPO=":"
9902 else
9903 case $cross_compiling:$ac_tool_warned in
9904yes:)
cristy8b350f62009-11-15 23:12:43 +00009905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9907ac_tool_warned=yes ;;
9908esac
9909 LIPO=$ac_ct_LIPO
9910 fi
9911else
9912 LIPO="$ac_cv_prog_LIPO"
9913fi
9914
9915 if test -n "$ac_tool_prefix"; then
9916 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9917set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009919$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009920if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009921 $as_echo_n "(cached) " >&6
9922else
9923 if test -n "$OTOOL"; then
9924 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9925else
9926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9933 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009935 break 2
9936 fi
9937done
cristy8b350f62009-11-15 23:12:43 +00009938 done
cristy3ed852e2009-09-05 21:47:34 +00009939IFS=$as_save_IFS
9940
9941fi
9942fi
9943OTOOL=$ac_cv_prog_OTOOL
9944if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009946$as_echo "$OTOOL" >&6; }
9947else
cristy8b350f62009-11-15 23:12:43 +00009948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009949$as_echo "no" >&6; }
9950fi
9951
9952
9953fi
9954if test -z "$ac_cv_prog_OTOOL"; then
9955 ac_ct_OTOOL=$OTOOL
9956 # Extract the first word of "otool", so it can be a program name with args.
9957set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009959$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009960if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009961 $as_echo_n "(cached) " >&6
9962else
9963 if test -n "$ac_ct_OTOOL"; then
9964 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9965else
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9973 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009975 break 2
9976 fi
9977done
cristy8b350f62009-11-15 23:12:43 +00009978 done
cristy3ed852e2009-09-05 21:47:34 +00009979IFS=$as_save_IFS
9980
9981fi
9982fi
9983ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9984if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009986$as_echo "$ac_ct_OTOOL" >&6; }
9987else
cristy8b350f62009-11-15 23:12:43 +00009988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009989$as_echo "no" >&6; }
9990fi
9991
9992 if test "x$ac_ct_OTOOL" = x; then
9993 OTOOL=":"
9994 else
9995 case $cross_compiling:$ac_tool_warned in
9996yes:)
cristy8b350f62009-11-15 23:12:43 +00009997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9999ac_tool_warned=yes ;;
10000esac
10001 OTOOL=$ac_ct_OTOOL
10002 fi
10003else
10004 OTOOL="$ac_cv_prog_OTOOL"
10005fi
10006
10007 if test -n "$ac_tool_prefix"; then
10008 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10009set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010011$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010012if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010013 $as_echo_n "(cached) " >&6
10014else
10015 if test -n "$OTOOL64"; then
10016 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10017else
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010027 break 2
10028 fi
10029done
cristy8b350f62009-11-15 23:12:43 +000010030 done
cristy3ed852e2009-09-05 21:47:34 +000010031IFS=$as_save_IFS
10032
10033fi
10034fi
10035OTOOL64=$ac_cv_prog_OTOOL64
10036if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010038$as_echo "$OTOOL64" >&6; }
10039else
cristy8b350f62009-11-15 23:12:43 +000010040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010041$as_echo "no" >&6; }
10042fi
10043
10044
10045fi
10046if test -z "$ac_cv_prog_OTOOL64"; then
10047 ac_ct_OTOOL64=$OTOOL64
10048 # Extract the first word of "otool64", so it can be a program name with args.
10049set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010051$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010052if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010053 $as_echo_n "(cached) " >&6
10054else
10055 if test -n "$ac_ct_OTOOL64"; then
10056 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010067 break 2
10068 fi
10069done
cristy8b350f62009-11-15 23:12:43 +000010070 done
cristy3ed852e2009-09-05 21:47:34 +000010071IFS=$as_save_IFS
10072
10073fi
10074fi
10075ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10076if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010078$as_echo "$ac_ct_OTOOL64" >&6; }
10079else
cristy8b350f62009-11-15 23:12:43 +000010080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010081$as_echo "no" >&6; }
10082fi
10083
10084 if test "x$ac_ct_OTOOL64" = x; then
10085 OTOOL64=":"
10086 else
10087 case $cross_compiling:$ac_tool_warned in
10088yes:)
cristy8b350f62009-11-15 23:12:43 +000010089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10091ac_tool_warned=yes ;;
10092esac
10093 OTOOL64=$ac_ct_OTOOL64
10094 fi
10095else
10096 OTOOL64="$ac_cv_prog_OTOOL64"
10097fi
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
cristy8b350f62009-11-15 23:12:43 +000010125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010126$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010127if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010128 $as_echo_n "(cached) " >&6
10129else
10130 lt_cv_apple_cc_single_mod=no
10131 if test -z "${LT_MULTI_MODULE}"; then
10132 # By default we will add the -single_module flag. You can override
10133 # by either setting the environment variable LT_MULTI_MODULE
10134 # non-empty at configure time, or by adding -multi_module to the
10135 # link flags.
10136 rm -rf libconftest.dylib*
10137 echo "int foo(void){return 1;}" > conftest.c
10138 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10139-dynamiclib -Wl,-single_module conftest.c" >&5
10140 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10141 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10142 _lt_result=$?
10143 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10144 lt_cv_apple_cc_single_mod=yes
10145 else
10146 cat conftest.err >&5
10147 fi
10148 rm -rf libconftest.dylib*
10149 rm -f conftest.*
10150 fi
10151fi
cristy8b350f62009-11-15 23:12:43 +000010152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010153$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010155$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010156if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010157 $as_echo_n "(cached) " >&6
10158else
10159 lt_cv_ld_exported_symbols_list=no
10160 save_LDFLAGS=$LDFLAGS
10161 echo "_main" > conftest.sym
10162 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010164/* end confdefs.h. */
10165
10166int
10167main ()
10168{
10169
10170 ;
10171 return 0;
10172}
10173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 lt_cv_ld_exported_symbols_list=yes
10176else
cristy8b350f62009-11-15 23:12:43 +000010177 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010178fi
cristy8b350f62009-11-15 23:12:43 +000010179rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010181 LDFLAGS="$save_LDFLAGS"
10182
10183fi
cristy8b350f62009-11-15 23:12:43 +000010184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010185$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10186 case $host_os in
10187 rhapsody* | darwin1.[012])
10188 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10189 darwin1.*)
10190 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10191 darwin*) # darwin 5.x on
10192 # if running on 10.5 or later, the deployment target defaults
10193 # to the OS version, if on x86, and 10.4, the deployment
10194 # target defaults to 10.4. Don't you love it?
10195 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10196 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10197 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10198 10.[012]*)
10199 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10200 10.*)
10201 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10202 esac
10203 ;;
10204 esac
10205 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10206 _lt_dar_single_mod='$single_module'
10207 fi
10208 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10209 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10210 else
10211 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10212 fi
cristy18304f92009-11-22 15:48:26 +000010213 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010214 _lt_dsymutil='~$DSYMUTIL $lib || :'
10215 else
10216 _lt_dsymutil=
10217 fi
10218 ;;
10219 esac
10220
cristy3ed852e2009-09-05 21:47:34 +000010221for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010222do :
10223 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10224"
10225if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010226 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010227#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010228_ACEOF
10229
10230fi
10231
10232done
10233
10234
10235
cristy18304f92009-11-22 15:48:26 +000010236ac_ext=cpp
10237ac_cpp='$CXXCPP $CPPFLAGS'
10238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10241if test -z "$CXX"; then
10242 if test -n "$CCC"; then
10243 CXX=$CCC
10244 else
10245 if test -n "$ac_tool_prefix"; then
10246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10247 do
10248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10249set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251$as_echo_n "checking for $ac_word... " >&6; }
10252if test "${ac_cv_prog_CXX+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254else
10255 if test -n "$CXX"; then
10256 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10257else
10258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10265 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269done
10270 done
10271IFS=$as_save_IFS
10272
10273fi
10274fi
10275CXX=$ac_cv_prog_CXX
10276if test -n "$CXX"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10278$as_echo "$CXX" >&6; }
10279else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
10282fi
10283
10284
10285 test -n "$CXX" && break
10286 done
10287fi
10288if test -z "$CXX"; then
10289 ac_ct_CXX=$CXX
10290 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10291do
10292 # Extract the first word of "$ac_prog", so it can be a program name with args.
10293set dummy $ac_prog; ac_word=$2
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295$as_echo_n "checking for $ac_word... " >&6; }
10296if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298else
10299 if test -n "$ac_ct_CXX"; then
10300 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10301else
10302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $PATH
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_prog_ac_ct_CXX="$ac_prog"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10312 fi
10313done
10314 done
10315IFS=$as_save_IFS
10316
10317fi
10318fi
10319ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10320if test -n "$ac_ct_CXX"; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10322$as_echo "$ac_ct_CXX" >&6; }
10323else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325$as_echo "no" >&6; }
10326fi
10327
10328
10329 test -n "$ac_ct_CXX" && break
10330done
10331
10332 if test "x$ac_ct_CXX" = x; then
10333 CXX="g++"
10334 else
10335 case $cross_compiling:$ac_tool_warned in
10336yes:)
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10339ac_tool_warned=yes ;;
10340esac
10341 CXX=$ac_ct_CXX
10342 fi
10343fi
10344
10345 fi
10346fi
10347# Provide some information about the compiler.
10348$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10349set X $ac_compile
10350ac_compiler=$2
10351for ac_option in --version -v -V -qversion; do
10352 { { ac_try="$ac_compiler $ac_option >&5"
10353case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356esac
10357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10358$as_echo "$ac_try_echo"; } >&5
10359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10360 ac_status=$?
10361 if test -s conftest.err; then
10362 sed '10a\
10363... rest of stderr output deleted ...
10364 10q' conftest.err >conftest.er1
10365 cat conftest.er1 >&5
10366 fi
10367 rm -f conftest.er1 conftest.err
10368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10369 test $ac_status = 0; }
10370done
10371
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10373$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10374if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10376else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h. */
10379
10380int
10381main ()
10382{
10383#ifndef __GNUC__
10384 choke me
10385#endif
10386
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391if ac_fn_cxx_try_compile "$LINENO"; then :
10392 ac_compiler_gnu=yes
10393else
10394 ac_compiler_gnu=no
10395fi
10396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10398
10399fi
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10401$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10402if test $ac_compiler_gnu = yes; then
10403 GXX=yes
10404else
10405 GXX=
10406fi
10407ac_test_CXXFLAGS=${CXXFLAGS+set}
10408ac_save_CXXFLAGS=$CXXFLAGS
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10410$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10411if test "${ac_cv_prog_cxx_g+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10413else
10414 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10415 ac_cxx_werror_flag=yes
10416 ac_cv_prog_cxx_g=no
10417 CXXFLAGS="-g"
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h. */
10420
10421int
10422main ()
10423{
10424
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429if ac_fn_cxx_try_compile "$LINENO"; then :
10430 ac_cv_prog_cxx_g=yes
10431else
10432 CXXFLAGS=""
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434/* end confdefs.h. */
10435
10436int
10437main ()
10438{
10439
10440 ;
10441 return 0;
10442}
10443_ACEOF
10444if ac_fn_cxx_try_compile "$LINENO"; then :
10445
10446else
10447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10448 CXXFLAGS="-g"
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h. */
10451
10452int
10453main ()
10454{
10455
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460if ac_fn_cxx_try_compile "$LINENO"; then :
10461 ac_cv_prog_cxx_g=yes
10462fi
10463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464fi
10465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466fi
10467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10468 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10469fi
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10471$as_echo "$ac_cv_prog_cxx_g" >&6; }
10472if test "$ac_test_CXXFLAGS" = set; then
10473 CXXFLAGS=$ac_save_CXXFLAGS
10474elif test $ac_cv_prog_cxx_g = yes; then
10475 if test "$GXX" = yes; then
10476 CXXFLAGS="-g -O2"
10477 else
10478 CXXFLAGS="-g"
10479 fi
10480else
10481 if test "$GXX" = yes; then
10482 CXXFLAGS="-O2"
10483 else
10484 CXXFLAGS=
10485 fi
10486fi
10487ac_ext=c
10488ac_cpp='$CPP $CPPFLAGS'
10489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491ac_compiler_gnu=$ac_cv_c_compiler_gnu
10492
10493depcc="$CXX" am_compiler_list=
10494
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10496$as_echo_n "checking dependency style of $depcc... " >&6; }
10497if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499else
10500 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10501 # We make a subdir and do the tests there. Otherwise we can end up
10502 # making bogus files that we don't know about and never remove. For
10503 # instance it was reported that on HP-UX the gcc test will end up
10504 # making a dummy file named `D' -- because `-MD' means `put the output
10505 # in D'.
10506 mkdir conftest.dir
10507 # Copy depcomp to subdir because otherwise we won't find it if we're
10508 # using a relative directory.
10509 cp "$am_depcomp" conftest.dir
10510 cd conftest.dir
10511 # We will build objects and dependencies in a subdirectory because
10512 # it helps to detect inapplicable dependency modes. For instance
10513 # both Tru64's cc and ICC support -MD to output dependencies as a
10514 # side effect of compilation, but ICC will put the dependencies in
10515 # the current directory while Tru64 will put them in the object
10516 # directory.
10517 mkdir sub
10518
10519 am_cv_CXX_dependencies_compiler_type=none
10520 if test "$am_compiler_list" = ""; then
10521 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10522 fi
10523 am__universal=false
10524 case " $depcc " in #(
10525 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10526 esac
10527
10528 for depmode in $am_compiler_list; do
10529 # Setup a source with many dependencies, because some compilers
10530 # like to wrap large dependency lists on column 80 (with \), and
10531 # we should not choose a depcomp mode which is confused by this.
10532 #
10533 # We need to recreate these files for each test, as the compiler may
10534 # overwrite some of them when testing with obscure command lines.
10535 # This happens at least with the AIX C compiler.
10536 : > sub/conftest.c
10537 for i in 1 2 3 4 5 6; do
10538 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10539 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10540 # Solaris 8's {/usr,}/bin/sh.
10541 touch sub/conftst$i.h
10542 done
10543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10544
10545 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10546 # mode. It turns out that the SunPro C++ compiler does not properly
10547 # handle `-M -o', and we need to detect this. Also, some Intel
10548 # versions had trouble with output in subdirs
10549 am__obj=sub/conftest.${OBJEXT-o}
10550 am__minus_obj="-o $am__obj"
10551 case $depmode in
10552 gcc)
10553 # This depmode causes a compiler race in universal mode.
10554 test "$am__universal" = false || continue
10555 ;;
10556 nosideeffect)
10557 # after this tag, mechanisms are not by side-effect, so they'll
10558 # only be used when explicitly requested
10559 if test "x$enable_dependency_tracking" = xyes; then
10560 continue
10561 else
10562 break
10563 fi
10564 ;;
10565 msvisualcpp | msvcmsys)
10566 # This compiler won't grok `-c -o', but also, the minuso test has
10567 # not run yet. These depmodes are late enough in the game, and
10568 # so weak that their functioning should not be impacted.
10569 am__obj=conftest.${OBJEXT-o}
10570 am__minus_obj=
10571 ;;
10572 none) break ;;
10573 esac
10574 if depmode=$depmode \
10575 source=sub/conftest.c object=$am__obj \
10576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10577 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10578 >/dev/null 2>conftest.err &&
10579 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10581 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10583 # icc doesn't choke on unknown options, it will just issue warnings
10584 # or remarks (even with -Werror). So we grep stderr for any message
10585 # that says an option was ignored or not supported.
10586 # When given -MP, icc 7.0 and 7.1 complain thusly:
10587 # icc: Command line warning: ignoring option '-M'; no argument required
10588 # The diagnosis changed in icc 8.0:
10589 # icc: Command line remark: option '-MP' not supported
10590 if (grep 'ignoring option' conftest.err ||
10591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10592 am_cv_CXX_dependencies_compiler_type=$depmode
10593 break
10594 fi
10595 fi
10596 done
10597
10598 cd ..
10599 rm -rf conftest.dir
10600else
10601 am_cv_CXX_dependencies_compiler_type=none
10602fi
10603
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10606$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10607CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10608
10609 if
10610 test "x$enable_dependency_tracking" != xno \
10611 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10612 am__fastdepCXX_TRUE=
10613 am__fastdepCXX_FALSE='#'
10614else
10615 am__fastdepCXX_TRUE='#'
10616 am__fastdepCXX_FALSE=
10617fi
10618
10619
10620if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10621 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10622 (test "X$CXX" != "Xg++"))) ; then
10623 ac_ext=cpp
10624ac_cpp='$CXXCPP $CPPFLAGS'
10625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10629$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10630if test -z "$CXXCPP"; then
10631 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633else
10634 # Double quotes because CXXCPP needs to be expanded
10635 for CXXCPP in "$CXX -E" "/lib/cpp"
10636 do
10637 ac_preproc_ok=false
10638for ac_cxx_preproc_warn_flag in '' yes
10639do
10640 # Use a header file that comes with gcc, so configuring glibc
10641 # with a fresh cross-compiler works.
10642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10643 # <limits.h> exists even on freestanding compilers.
10644 # On the NeXT, cc -E runs the code through the compiler's parser,
10645 # not just through cpp. "Syntax error" is here to catch this case.
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h. */
10648#ifdef __STDC__
10649# include <limits.h>
10650#else
10651# include <assert.h>
10652#endif
10653 Syntax error
10654_ACEOF
10655if ac_fn_cxx_try_cpp "$LINENO"; then :
10656
10657else
10658 # Broken: fails on valid input.
10659continue
10660fi
10661rm -f conftest.err conftest.$ac_ext
10662
10663 # OK, works on sane cases. Now check whether nonexistent headers
10664 # can be detected and how.
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h. */
10667#include <ac_nonexistent.h>
10668_ACEOF
10669if ac_fn_cxx_try_cpp "$LINENO"; then :
10670 # Broken: success on invalid input.
10671continue
10672else
10673 # Passes both tests.
10674ac_preproc_ok=:
10675break
10676fi
10677rm -f conftest.err conftest.$ac_ext
10678
10679done
10680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10681rm -f conftest.err conftest.$ac_ext
10682if $ac_preproc_ok; then :
10683 break
10684fi
10685
10686 done
10687 ac_cv_prog_CXXCPP=$CXXCPP
10688
10689fi
10690 CXXCPP=$ac_cv_prog_CXXCPP
10691else
10692 ac_cv_prog_CXXCPP=$CXXCPP
10693fi
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10695$as_echo "$CXXCPP" >&6; }
10696ac_preproc_ok=false
10697for ac_cxx_preproc_warn_flag in '' yes
10698do
10699 # Use a header file that comes with gcc, so configuring glibc
10700 # with a fresh cross-compiler works.
10701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10702 # <limits.h> exists even on freestanding compilers.
10703 # On the NeXT, cc -E runs the code through the compiler's parser,
10704 # not just through cpp. "Syntax error" is here to catch this case.
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706/* end confdefs.h. */
10707#ifdef __STDC__
10708# include <limits.h>
10709#else
10710# include <assert.h>
10711#endif
10712 Syntax error
10713_ACEOF
10714if ac_fn_cxx_try_cpp "$LINENO"; then :
10715
10716else
10717 # Broken: fails on valid input.
10718continue
10719fi
10720rm -f conftest.err conftest.$ac_ext
10721
10722 # OK, works on sane cases. Now check whether nonexistent headers
10723 # can be detected and how.
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725/* end confdefs.h. */
10726#include <ac_nonexistent.h>
10727_ACEOF
10728if ac_fn_cxx_try_cpp "$LINENO"; then :
10729 # Broken: success on invalid input.
10730continue
10731else
10732 # Passes both tests.
10733ac_preproc_ok=:
10734break
10735fi
10736rm -f conftest.err conftest.$ac_ext
10737
10738done
10739# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10740rm -f conftest.err conftest.$ac_ext
10741if $ac_preproc_ok; then :
10742
10743else
10744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10746_lt_caught_CXX_error=yes; }
10747fi
10748
10749ac_ext=c
10750ac_cpp='$CPP $CPPFLAGS'
10751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753ac_compiler_gnu=$ac_cv_c_compiler_gnu
10754
10755else
10756 _lt_caught_CXX_error=yes
10757fi
10758
10759
cristy3ed852e2009-09-05 21:47:34 +000010760
10761
10762
10763# Set options
10764enable_win32_dll=yes
10765
10766case $host in
cristy18304f92009-11-22 15:48:26 +000010767*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010768 if test -n "$ac_tool_prefix"; then
10769 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10770set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010772$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010773if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010774 $as_echo_n "(cached) " >&6
10775else
10776 if test -n "$AS"; then
10777 ac_cv_prog_AS="$AS" # Let the user override the test.
10778else
10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010788 break 2
10789 fi
10790done
cristy8b350f62009-11-15 23:12:43 +000010791 done
cristy3ed852e2009-09-05 21:47:34 +000010792IFS=$as_save_IFS
10793
10794fi
10795fi
10796AS=$ac_cv_prog_AS
10797if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010799$as_echo "$AS" >&6; }
10800else
cristy8b350f62009-11-15 23:12:43 +000010801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010802$as_echo "no" >&6; }
10803fi
10804
10805
10806fi
10807if test -z "$ac_cv_prog_AS"; then
10808 ac_ct_AS=$AS
10809 # Extract the first word of "as", so it can be a program name with args.
10810set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010812$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010813if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010814 $as_echo_n "(cached) " >&6
10815else
10816 if test -n "$ac_ct_AS"; then
10817 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10826 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010828 break 2
10829 fi
10830done
cristy8b350f62009-11-15 23:12:43 +000010831 done
cristy3ed852e2009-09-05 21:47:34 +000010832IFS=$as_save_IFS
10833
10834fi
10835fi
10836ac_ct_AS=$ac_cv_prog_ac_ct_AS
10837if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010839$as_echo "$ac_ct_AS" >&6; }
10840else
cristy8b350f62009-11-15 23:12:43 +000010841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010842$as_echo "no" >&6; }
10843fi
10844
10845 if test "x$ac_ct_AS" = x; then
10846 AS="false"
10847 else
10848 case $cross_compiling:$ac_tool_warned in
10849yes:)
cristy8b350f62009-11-15 23:12:43 +000010850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10852ac_tool_warned=yes ;;
10853esac
10854 AS=$ac_ct_AS
10855 fi
10856else
10857 AS="$ac_cv_prog_AS"
10858fi
10859
10860 if test -n "$ac_tool_prefix"; then
10861 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10862set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010864$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010865if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010866 $as_echo_n "(cached) " >&6
10867else
10868 if test -n "$DLLTOOL"; then
10869 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010876 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010880 break 2
10881 fi
10882done
cristy8b350f62009-11-15 23:12:43 +000010883 done
cristy3ed852e2009-09-05 21:47:34 +000010884IFS=$as_save_IFS
10885
10886fi
10887fi
10888DLLTOOL=$ac_cv_prog_DLLTOOL
10889if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010891$as_echo "$DLLTOOL" >&6; }
10892else
cristy8b350f62009-11-15 23:12:43 +000010893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010894$as_echo "no" >&6; }
10895fi
10896
10897
10898fi
10899if test -z "$ac_cv_prog_DLLTOOL"; then
10900 ac_ct_DLLTOOL=$DLLTOOL
10901 # Extract the first word of "dlltool", so it can be a program name with args.
10902set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010904$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010905if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010906 $as_echo_n "(cached) " >&6
10907else
10908 if test -n "$ac_ct_DLLTOOL"; then
10909 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10910else
10911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10918 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010920 break 2
10921 fi
10922done
cristy8b350f62009-11-15 23:12:43 +000010923 done
cristy3ed852e2009-09-05 21:47:34 +000010924IFS=$as_save_IFS
10925
10926fi
10927fi
10928ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10929if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010931$as_echo "$ac_ct_DLLTOOL" >&6; }
10932else
cristy8b350f62009-11-15 23:12:43 +000010933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010934$as_echo "no" >&6; }
10935fi
10936
10937 if test "x$ac_ct_DLLTOOL" = x; then
10938 DLLTOOL="false"
10939 else
10940 case $cross_compiling:$ac_tool_warned in
10941yes:)
cristy8b350f62009-11-15 23:12:43 +000010942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10944ac_tool_warned=yes ;;
10945esac
10946 DLLTOOL=$ac_ct_DLLTOOL
10947 fi
10948else
10949 DLLTOOL="$ac_cv_prog_DLLTOOL"
10950fi
10951
10952 if test -n "$ac_tool_prefix"; then
10953 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10954set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010956$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010957if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010958 $as_echo_n "(cached) " >&6
10959else
10960 if test -n "$OBJDUMP"; then
10961 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10962else
10963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964for as_dir in $PATH
10965do
10966 IFS=$as_save_IFS
10967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10970 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010972 break 2
10973 fi
10974done
cristy8b350f62009-11-15 23:12:43 +000010975 done
cristy3ed852e2009-09-05 21:47:34 +000010976IFS=$as_save_IFS
10977
10978fi
10979fi
10980OBJDUMP=$ac_cv_prog_OBJDUMP
10981if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010983$as_echo "$OBJDUMP" >&6; }
10984else
cristy8b350f62009-11-15 23:12:43 +000010985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010986$as_echo "no" >&6; }
10987fi
10988
10989
10990fi
10991if test -z "$ac_cv_prog_OBJDUMP"; then
10992 ac_ct_OBJDUMP=$OBJDUMP
10993 # Extract the first word of "objdump", so it can be a program name with args.
10994set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010996$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010997if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010998 $as_echo_n "(cached) " >&6
10999else
11000 if test -n "$ac_ct_OBJDUMP"; then
11001 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11002else
11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011012 break 2
11013 fi
11014done
cristy8b350f62009-11-15 23:12:43 +000011015 done
cristy3ed852e2009-09-05 21:47:34 +000011016IFS=$as_save_IFS
11017
11018fi
11019fi
11020ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11021if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011023$as_echo "$ac_ct_OBJDUMP" >&6; }
11024else
cristy8b350f62009-11-15 23:12:43 +000011025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011026$as_echo "no" >&6; }
11027fi
11028
11029 if test "x$ac_ct_OBJDUMP" = x; then
11030 OBJDUMP="false"
11031 else
11032 case $cross_compiling:$ac_tool_warned in
11033yes:)
cristy8b350f62009-11-15 23:12:43 +000011034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11036ac_tool_warned=yes ;;
11037esac
11038 OBJDUMP=$ac_ct_OBJDUMP
11039 fi
11040else
11041 OBJDUMP="$ac_cv_prog_OBJDUMP"
11042fi
11043
11044 ;;
11045esac
11046
11047test -z "$AS" && AS=as
11048
11049
11050
11051
11052
11053test -z "$DLLTOOL" && DLLTOOL=dlltool
11054
11055
11056
11057
11058
11059test -z "$OBJDUMP" && OBJDUMP=objdump
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011070if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011071 enableval=$enable_shared; p=${PACKAGE-default}
11072 case $enableval in
11073 yes) enable_shared=yes ;;
11074 no) enable_shared=no ;;
11075 *)
11076 enable_shared=no
11077 # Look at the argument we got. We use all the common list separators.
11078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11079 for pkg in $enableval; do
11080 IFS="$lt_save_ifs"
11081 if test "X$pkg" = "X$p"; then
11082 enable_shared=yes
11083 fi
11084 done
11085 IFS="$lt_save_ifs"
11086 ;;
11087 esac
11088else
11089 enable_shared=yes
11090fi
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011101if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011102 enableval=$enable_static; p=${PACKAGE-default}
11103 case $enableval in
11104 yes) enable_static=yes ;;
11105 no) enable_static=no ;;
11106 *)
11107 enable_static=no
11108 # Look at the argument we got. We use all the common list separators.
11109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11110 for pkg in $enableval; do
11111 IFS="$lt_save_ifs"
11112 if test "X$pkg" = "X$p"; then
11113 enable_static=yes
11114 fi
11115 done
11116 IFS="$lt_save_ifs"
11117 ;;
11118 esac
11119else
11120 enable_static=yes
11121fi
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011133if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011134 withval=$with_pic; pic_mode="$withval"
11135else
11136 pic_mode=default
11137fi
11138
11139
11140test -z "$pic_mode" && pic_mode=default
11141
11142
11143
11144
11145
11146
11147
11148 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011149if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011150 enableval=$enable_fast_install; p=${PACKAGE-default}
11151 case $enableval in
11152 yes) enable_fast_install=yes ;;
11153 no) enable_fast_install=no ;;
11154 *)
11155 enable_fast_install=no
11156 # Look at the argument we got. We use all the common list separators.
11157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11158 for pkg in $enableval; do
11159 IFS="$lt_save_ifs"
11160 if test "X$pkg" = "X$p"; then
11161 enable_fast_install=yes
11162 fi
11163 done
11164 IFS="$lt_save_ifs"
11165 ;;
11166 esac
11167else
11168 enable_fast_install=yes
11169fi
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181# This can be used to rebuild libtool when needed
11182LIBTOOL_DEPS="$ltmain"
11183
11184# Always use our own libtool.
11185LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211test -z "$LN_S" && LN_S="ln -s"
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226if test -n "${ZSH_VERSION+set}" ; then
11227 setopt NO_GLOB_SUBST
11228fi
11229
cristy8b350f62009-11-15 23:12:43 +000011230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011231$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011232if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011233 $as_echo_n "(cached) " >&6
11234else
11235 rm -f .libs 2>/dev/null
11236mkdir .libs 2>/dev/null
11237if test -d .libs; then
11238 lt_cv_objdir=.libs
11239else
11240 # MS-DOS does not allow filenames that begin with a dot.
11241 lt_cv_objdir=_libs
11242fi
11243rmdir .libs 2>/dev/null
11244fi
cristy8b350f62009-11-15 23:12:43 +000011245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011246$as_echo "$lt_cv_objdir" >&6; }
11247objdir=$lt_cv_objdir
11248
11249
11250
11251
11252
11253cat >>confdefs.h <<_ACEOF
11254#define LT_OBJDIR "$lt_cv_objdir/"
11255_ACEOF
11256
11257
11258
11259
cristy18304f92009-11-22 15:48:26 +000011260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
cristy3ed852e2009-09-05 21:47:34 +000011273case $host_os in
11274aix3*)
11275 # AIX sometimes has problems with the GCC collect2 program. For some
11276 # reason, if we set the COLLECT_NAMES environment variable, the problems
11277 # vanish in a puff of smoke.
11278 if test "X${COLLECT_NAMES+set}" != Xset; then
11279 COLLECT_NAMES=
11280 export COLLECT_NAMES
11281 fi
11282 ;;
11283esac
11284
cristy18304f92009-11-22 15:48:26 +000011285# Sed substitution that helps us do robust quoting. It backslashifies
11286# metacharacters that are still active within double-quoted strings.
11287sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11288
11289# Same as above, but do not quote variable references.
11290double_quote_subst='s/\(["`\\]\)/\\\1/g'
11291
11292# Sed substitution to delay expansion of an escaped shell variable in a
11293# double_quote_subst'ed string.
11294delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11295
11296# Sed substitution to delay expansion of an escaped single quote.
11297delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11298
11299# Sed substitution to avoid accidental globbing in evaled expressions
11300no_glob_subst='s/\*/\\\*/g'
11301
cristy3ed852e2009-09-05 21:47:34 +000011302# Global variables:
11303ofile=libtool
11304can_build_shared=yes
11305
11306# All known linkers require a `.a' archive for static linking (except MSVC,
11307# which needs '.lib').
11308libext=a
11309
11310with_gnu_ld="$lt_cv_prog_gnu_ld"
11311
11312old_CC="$CC"
11313old_CFLAGS="$CFLAGS"
11314
11315# Set sane defaults for various variables
11316test -z "$CC" && CC=cc
11317test -z "$LTCC" && LTCC=$CC
11318test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11319test -z "$LD" && LD=ld
11320test -z "$ac_objext" && ac_objext=o
11321
11322for cc_temp in $compiler""; do
11323 case $cc_temp in
11324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11326 \-*) ;;
11327 *) break;;
11328 esac
11329done
cristy18304f92009-11-22 15:48:26 +000011330cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000011331
11332
11333# Only perform the check for file, if the check method requires it
11334test -z "$MAGIC_CMD" && MAGIC_CMD=file
11335case $deplibs_check_method in
11336file_magic*)
11337 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011339$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011340if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011341 $as_echo_n "(cached) " >&6
11342else
11343 case $MAGIC_CMD in
11344[\\/*] | ?:[\\/]*)
11345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11346 ;;
11347*)
11348 lt_save_MAGIC_CMD="$MAGIC_CMD"
11349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11351 for ac_dir in $ac_dummy; do
11352 IFS="$lt_save_ifs"
11353 test -z "$ac_dir" && ac_dir=.
11354 if test -f $ac_dir/${ac_tool_prefix}file; then
11355 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11356 if test -n "$file_magic_test_file"; then
11357 case $deplibs_check_method in
11358 "file_magic "*)
11359 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11362 $EGREP "$file_magic_regex" > /dev/null; then
11363 :
11364 else
11365 cat <<_LT_EOF 1>&2
11366
11367*** Warning: the command libtool uses to detect shared libraries,
11368*** $file_magic_cmd, produces output that libtool cannot recognize.
11369*** The result is that libtool may fail to recognize shared libraries
11370*** as such. This will affect the creation of libtool libraries that
11371*** depend on shared libraries, but programs linked with such libtool
11372*** libraries will work regardless of this problem. Nevertheless, you
11373*** may want to report the problem to your system manager and/or to
11374*** bug-libtool@gnu.org
11375
11376_LT_EOF
11377 fi ;;
11378 esac
11379 fi
11380 break
11381 fi
11382 done
11383 IFS="$lt_save_ifs"
11384 MAGIC_CMD="$lt_save_MAGIC_CMD"
11385 ;;
11386esac
11387fi
11388
11389MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11390if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011392$as_echo "$MAGIC_CMD" >&6; }
11393else
cristy8b350f62009-11-15 23:12:43 +000011394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011395$as_echo "no" >&6; }
11396fi
11397
11398
11399
11400
11401
11402if test -z "$lt_cv_path_MAGIC_CMD"; then
11403 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011405$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011406if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011407 $as_echo_n "(cached) " >&6
11408else
11409 case $MAGIC_CMD in
11410[\\/*] | ?:[\\/]*)
11411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11412 ;;
11413*)
11414 lt_save_MAGIC_CMD="$MAGIC_CMD"
11415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11417 for ac_dir in $ac_dummy; do
11418 IFS="$lt_save_ifs"
11419 test -z "$ac_dir" && ac_dir=.
11420 if test -f $ac_dir/file; then
11421 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11422 if test -n "$file_magic_test_file"; then
11423 case $deplibs_check_method in
11424 "file_magic "*)
11425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11428 $EGREP "$file_magic_regex" > /dev/null; then
11429 :
11430 else
11431 cat <<_LT_EOF 1>&2
11432
11433*** Warning: the command libtool uses to detect shared libraries,
11434*** $file_magic_cmd, produces output that libtool cannot recognize.
11435*** The result is that libtool may fail to recognize shared libraries
11436*** as such. This will affect the creation of libtool libraries that
11437*** depend on shared libraries, but programs linked with such libtool
11438*** libraries will work regardless of this problem. Nevertheless, you
11439*** may want to report the problem to your system manager and/or to
11440*** bug-libtool@gnu.org
11441
11442_LT_EOF
11443 fi ;;
11444 esac
11445 fi
11446 break
11447 fi
11448 done
11449 IFS="$lt_save_ifs"
11450 MAGIC_CMD="$lt_save_MAGIC_CMD"
11451 ;;
11452esac
11453fi
11454
11455MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11456if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011458$as_echo "$MAGIC_CMD" >&6; }
11459else
cristy8b350f62009-11-15 23:12:43 +000011460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011461$as_echo "no" >&6; }
11462fi
11463
11464
11465 else
11466 MAGIC_CMD=:
11467 fi
11468fi
11469
11470 fi
11471 ;;
11472esac
11473
11474# Use C for the default configuration in the libtool script
11475
11476lt_save_CC="$CC"
11477ac_ext=c
11478ac_cpp='$CPP $CPPFLAGS'
11479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11481ac_compiler_gnu=$ac_cv_c_compiler_gnu
11482
11483
11484# Source file extension for C test sources.
11485ac_ext=c
11486
11487# Object file extension for compiled C test sources.
11488objext=o
11489objext=$objext
11490
11491# Code to be used in simple compile tests
11492lt_simple_compile_test_code="int some_variable = 0;"
11493
11494# Code to be used in simple link tests
11495lt_simple_link_test_code='int main(){return(0);}'
11496
11497
11498
11499
11500
11501
11502
11503# If no C compiler was specified, use CC.
11504LTCC=${LTCC-"$CC"}
11505
11506# If no C compiler flags were specified, use CFLAGS.
11507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11508
11509# Allow CC to be a program name with arguments.
11510compiler=$CC
11511
11512# Save the default compiler, since it gets overwritten when the other
11513# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11514compiler_DEFAULT=$CC
11515
11516# save warnings/boilerplate of simple test code
11517ac_outfile=conftest.$ac_objext
11518echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11519eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11520_lt_compiler_boilerplate=`cat conftest.err`
11521$RM conftest*
11522
11523ac_outfile=conftest.$ac_objext
11524echo "$lt_simple_link_test_code" >conftest.$ac_ext
11525eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11526_lt_linker_boilerplate=`cat conftest.err`
11527$RM -r conftest*
11528
11529
11530## CAVEAT EMPTOR:
11531## There is no encapsulation within the following macros, do not change
11532## the running order or otherwise move them around unless you know exactly
11533## what you are doing...
11534if test -n "$compiler"; then
11535
11536lt_prog_compiler_no_builtin_flag=
11537
11538if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000011539 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000011540
cristy8b350f62009-11-15 23:12:43 +000011541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011542$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011543if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011544 $as_echo_n "(cached) " >&6
11545else
11546 lt_cv_prog_compiler_rtti_exceptions=no
11547 ac_outfile=conftest.$ac_objext
11548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11549 lt_compiler_flag="-fno-rtti -fno-exceptions"
11550 # Insert the option either (1) after the last *FLAGS variable, or
11551 # (2) before a word containing "conftest.", or (3) at the end.
11552 # Note that $ac_compile itself does not contain backslashes and begins
11553 # with a dollar sign (not a hyphen), so the echo should work correctly.
11554 # The option is referenced via a variable to avoid confusing sed.
11555 lt_compile=`echo "$ac_compile" | $SED \
11556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11558 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000011559 (eval echo "\"\$as_me:11559: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011560 (eval "$lt_compile" 2>conftest.err)
11561 ac_status=$?
11562 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000011563 echo "$as_me:11563: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011564 if (exit $ac_status) && test -s "$ac_outfile"; then
11565 # The compiler can only warn and ignore the option if not recognized
11566 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011567 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11570 lt_cv_prog_compiler_rtti_exceptions=yes
11571 fi
11572 fi
11573 $RM conftest*
11574
11575fi
cristy8b350f62009-11-15 23:12:43 +000011576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011577$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11578
11579if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11580 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11581else
11582 :
11583fi
11584
11585fi
11586
11587
11588
11589
11590
11591
11592 lt_prog_compiler_wl=
11593lt_prog_compiler_pic=
11594lt_prog_compiler_static=
11595
cristy8b350f62009-11-15 23:12:43 +000011596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011597$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11598
11599 if test "$GCC" = yes; then
11600 lt_prog_compiler_wl='-Wl,'
11601 lt_prog_compiler_static='-static'
11602
11603 case $host_os in
11604 aix*)
11605 # All AIX code is PIC.
11606 if test "$host_cpu" = ia64; then
11607 # AIX 5 now supports IA64 processor
11608 lt_prog_compiler_static='-Bstatic'
11609 fi
11610 ;;
11611
11612 amigaos*)
11613 case $host_cpu in
11614 powerpc)
11615 # see comment about AmigaOS4 .so support
11616 lt_prog_compiler_pic='-fPIC'
11617 ;;
11618 m68k)
11619 # FIXME: we need at least 68020 code to build shared libraries, but
11620 # adding the `-m68020' flag to GCC prevents building anything better,
11621 # like `-m68040'.
11622 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11623 ;;
11624 esac
11625 ;;
11626
11627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11628 # PIC is the default for these OSes.
11629 ;;
11630
11631 mingw* | cygwin* | pw32* | os2* | cegcc*)
11632 # This hack is so that the source file can tell whether it is being
11633 # built for inclusion in a dll (and should export symbols for example).
11634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11635 # (--disable-auto-import) libraries
11636 lt_prog_compiler_pic='-DDLL_EXPORT'
11637 ;;
11638
11639 darwin* | rhapsody*)
11640 # PIC is the default on this platform
11641 # Common symbols not allowed in MH_DYLIB files
11642 lt_prog_compiler_pic='-fno-common'
11643 ;;
11644
11645 hpux*)
11646 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11647 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11648 # sets the default TLS model and affects inlining.
11649 case $host_cpu in
11650 hppa*64*)
11651 # +Z the default
11652 ;;
11653 *)
11654 lt_prog_compiler_pic='-fPIC'
11655 ;;
11656 esac
11657 ;;
11658
11659 interix[3-9]*)
11660 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11661 # Instead, we relocate shared libraries at runtime.
11662 ;;
11663
11664 msdosdjgpp*)
11665 # Just because we use GCC doesn't mean we suddenly get shared libraries
11666 # on systems that don't support them.
11667 lt_prog_compiler_can_build_shared=no
11668 enable_shared=no
11669 ;;
11670
11671 *nto* | *qnx*)
11672 # QNX uses GNU C++, but need to define -shared option too, otherwise
11673 # it will coredump.
11674 lt_prog_compiler_pic='-fPIC -shared'
11675 ;;
11676
11677 sysv4*MP*)
11678 if test -d /usr/nec; then
11679 lt_prog_compiler_pic=-Kconform_pic
11680 fi
11681 ;;
11682
11683 *)
11684 lt_prog_compiler_pic='-fPIC'
11685 ;;
11686 esac
11687 else
11688 # PORTME Check for flag to pass linker flags through the system compiler.
11689 case $host_os in
11690 aix*)
11691 lt_prog_compiler_wl='-Wl,'
11692 if test "$host_cpu" = ia64; then
11693 # AIX 5 now supports IA64 processor
11694 lt_prog_compiler_static='-Bstatic'
11695 else
11696 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11697 fi
11698 ;;
11699
11700 mingw* | cygwin* | pw32* | os2* | cegcc*)
11701 # This hack is so that the source file can tell whether it is being
11702 # built for inclusion in a dll (and should export symbols for example).
11703 lt_prog_compiler_pic='-DDLL_EXPORT'
11704 ;;
11705
11706 hpux9* | hpux10* | hpux11*)
11707 lt_prog_compiler_wl='-Wl,'
11708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11709 # not for PA HP-UX.
11710 case $host_cpu in
11711 hppa*64*|ia64*)
11712 # +Z the default
11713 ;;
11714 *)
11715 lt_prog_compiler_pic='+Z'
11716 ;;
11717 esac
11718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11719 lt_prog_compiler_static='${wl}-a ${wl}archive'
11720 ;;
11721
11722 irix5* | irix6* | nonstopux*)
11723 lt_prog_compiler_wl='-Wl,'
11724 # PIC (with -KPIC) is the default.
11725 lt_prog_compiler_static='-non_shared'
11726 ;;
11727
cristy18304f92009-11-22 15:48:26 +000011728 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011729 case $cc_basename in
11730 # old Intel for x86_64 which still supported -KPIC.
11731 ecc*)
11732 lt_prog_compiler_wl='-Wl,'
11733 lt_prog_compiler_pic='-KPIC'
11734 lt_prog_compiler_static='-static'
11735 ;;
11736 # icc used to be incompatible with GCC.
11737 # ICC 10 doesn't accept -KPIC any more.
11738 icc* | ifort*)
11739 lt_prog_compiler_wl='-Wl,'
11740 lt_prog_compiler_pic='-fPIC'
11741 lt_prog_compiler_static='-static'
11742 ;;
11743 # Lahey Fortran 8.1.
11744 lf95*)
11745 lt_prog_compiler_wl='-Wl,'
11746 lt_prog_compiler_pic='--shared'
11747 lt_prog_compiler_static='--static'
11748 ;;
cristy18304f92009-11-22 15:48:26 +000011749 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000011750 # Portland Group compilers (*not* the Pentium gcc compiler,
11751 # which looks to be a dead project)
11752 lt_prog_compiler_wl='-Wl,'
11753 lt_prog_compiler_pic='-fpic'
11754 lt_prog_compiler_static='-Bstatic'
11755 ;;
11756 ccc*)
11757 lt_prog_compiler_wl='-Wl,'
11758 # All Alpha code is PIC.
11759 lt_prog_compiler_static='-non_shared'
11760 ;;
cristy18304f92009-11-22 15:48:26 +000011761 xl*)
11762 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000011763 lt_prog_compiler_wl='-Wl,'
11764 lt_prog_compiler_pic='-qpic'
11765 lt_prog_compiler_static='-qstaticlink'
11766 ;;
11767 *)
11768 case `$CC -V 2>&1 | sed 5q` in
11769 *Sun\ C*)
11770 # Sun C 5.9
11771 lt_prog_compiler_pic='-KPIC'
11772 lt_prog_compiler_static='-Bstatic'
11773 lt_prog_compiler_wl='-Wl,'
11774 ;;
cristy18304f92009-11-22 15:48:26 +000011775 *Sun\ F*)
11776 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11777 lt_prog_compiler_pic='-KPIC'
11778 lt_prog_compiler_static='-Bstatic'
11779 lt_prog_compiler_wl=''
11780 ;;
cristy3ed852e2009-09-05 21:47:34 +000011781 esac
11782 ;;
11783 esac
11784 ;;
11785
11786 newsos6)
11787 lt_prog_compiler_pic='-KPIC'
11788 lt_prog_compiler_static='-Bstatic'
11789 ;;
11790
11791 *nto* | *qnx*)
11792 # QNX uses GNU C++, but need to define -shared option too, otherwise
11793 # it will coredump.
11794 lt_prog_compiler_pic='-fPIC -shared'
11795 ;;
11796
11797 osf3* | osf4* | osf5*)
11798 lt_prog_compiler_wl='-Wl,'
11799 # All OSF/1 code is PIC.
11800 lt_prog_compiler_static='-non_shared'
11801 ;;
11802
11803 rdos*)
11804 lt_prog_compiler_static='-non_shared'
11805 ;;
11806
11807 solaris*)
11808 lt_prog_compiler_pic='-KPIC'
11809 lt_prog_compiler_static='-Bstatic'
11810 case $cc_basename in
11811 f77* | f90* | f95*)
11812 lt_prog_compiler_wl='-Qoption ld ';;
11813 *)
11814 lt_prog_compiler_wl='-Wl,';;
11815 esac
11816 ;;
11817
11818 sunos4*)
11819 lt_prog_compiler_wl='-Qoption ld '
11820 lt_prog_compiler_pic='-PIC'
11821 lt_prog_compiler_static='-Bstatic'
11822 ;;
11823
11824 sysv4 | sysv4.2uw2* | sysv4.3*)
11825 lt_prog_compiler_wl='-Wl,'
11826 lt_prog_compiler_pic='-KPIC'
11827 lt_prog_compiler_static='-Bstatic'
11828 ;;
11829
11830 sysv4*MP*)
11831 if test -d /usr/nec ;then
11832 lt_prog_compiler_pic='-Kconform_pic'
11833 lt_prog_compiler_static='-Bstatic'
11834 fi
11835 ;;
11836
11837 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11838 lt_prog_compiler_wl='-Wl,'
11839 lt_prog_compiler_pic='-KPIC'
11840 lt_prog_compiler_static='-Bstatic'
11841 ;;
11842
11843 unicos*)
11844 lt_prog_compiler_wl='-Wl,'
11845 lt_prog_compiler_can_build_shared=no
11846 ;;
11847
11848 uts4*)
11849 lt_prog_compiler_pic='-pic'
11850 lt_prog_compiler_static='-Bstatic'
11851 ;;
11852
11853 *)
11854 lt_prog_compiler_can_build_shared=no
11855 ;;
11856 esac
11857 fi
11858
11859case $host_os in
11860 # For platforms which do not support PIC, -DPIC is meaningless:
11861 *djgpp*)
11862 lt_prog_compiler_pic=
11863 ;;
11864 *)
11865 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11866 ;;
11867esac
cristy8b350f62009-11-15 23:12:43 +000011868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011869$as_echo "$lt_prog_compiler_pic" >&6; }
11870
11871
11872
11873
11874
11875
11876#
11877# Check to make sure the PIC flag actually works.
11878#
11879if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011881$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011882if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011883 $as_echo_n "(cached) " >&6
11884else
11885 lt_cv_prog_compiler_pic_works=no
11886 ac_outfile=conftest.$ac_objext
11887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11888 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11889 # Insert the option either (1) after the last *FLAGS variable, or
11890 # (2) before a word containing "conftest.", or (3) at the end.
11891 # Note that $ac_compile itself does not contain backslashes and begins
11892 # with a dollar sign (not a hyphen), so the echo should work correctly.
11893 # The option is referenced via a variable to avoid confusing sed.
11894 lt_compile=`echo "$ac_compile" | $SED \
11895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11897 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000011898 (eval echo "\"\$as_me:11898: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011899 (eval "$lt_compile" 2>conftest.err)
11900 ac_status=$?
11901 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000011902 echo "$as_me:11902: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011903 if (exit $ac_status) && test -s "$ac_outfile"; then
11904 # The compiler can only warn and ignore the option if not recognized
11905 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011906 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11909 lt_cv_prog_compiler_pic_works=yes
11910 fi
11911 fi
11912 $RM conftest*
11913
11914fi
cristy8b350f62009-11-15 23:12:43 +000011915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011916$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11917
11918if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11919 case $lt_prog_compiler_pic in
11920 "" | " "*) ;;
11921 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11922 esac
11923else
11924 lt_prog_compiler_pic=
11925 lt_prog_compiler_can_build_shared=no
11926fi
11927
11928fi
11929
11930
11931
11932
11933
11934
11935#
11936# Check to make sure the static flag actually works.
11937#
11938wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011940$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011941if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011942 $as_echo_n "(cached) " >&6
11943else
11944 lt_cv_prog_compiler_static_works=no
11945 save_LDFLAGS="$LDFLAGS"
11946 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11949 # The linker can only warn and ignore the option if not recognized
11950 # So say no if there are warnings
11951 if test -s conftest.err; then
11952 # Append any errors to the config.log.
11953 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000011954 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11956 if diff conftest.exp conftest.er2 >/dev/null; then
11957 lt_cv_prog_compiler_static_works=yes
11958 fi
11959 else
11960 lt_cv_prog_compiler_static_works=yes
11961 fi
11962 fi
11963 $RM -r conftest*
11964 LDFLAGS="$save_LDFLAGS"
11965
11966fi
cristy8b350f62009-11-15 23:12:43 +000011967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011968$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11969
11970if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11971 :
11972else
11973 lt_prog_compiler_static=
11974fi
11975
11976
11977
11978
11979
11980
11981
cristy8b350f62009-11-15 23:12:43 +000011982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011983$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011984if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011985 $as_echo_n "(cached) " >&6
11986else
11987 lt_cv_prog_compiler_c_o=no
11988 $RM -r conftest 2>/dev/null
11989 mkdir conftest
11990 cd conftest
11991 mkdir out
11992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11993
11994 lt_compiler_flag="-o out/conftest2.$ac_objext"
11995 # Insert the option either (1) after the last *FLAGS variable, or
11996 # (2) before a word containing "conftest.", or (3) at the end.
11997 # Note that $ac_compile itself does not contain backslashes and begins
11998 # with a dollar sign (not a hyphen), so the echo should work correctly.
11999 lt_compile=`echo "$ac_compile" | $SED \
12000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12002 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000012003 (eval echo "\"\$as_me:12003: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012004 (eval "$lt_compile" 2>out/conftest.err)
12005 ac_status=$?
12006 cat out/conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000012007 echo "$as_me:12007: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12009 then
12010 # The compiler can only warn and ignore the option if not recognized
12011 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012012 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12015 lt_cv_prog_compiler_c_o=yes
12016 fi
12017 fi
12018 chmod u+w . 2>&5
12019 $RM conftest*
12020 # SGI C++ compiler will create directory out/ii_files/ for
12021 # template instantiation
12022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12023 $RM out/* && rmdir out
12024 cd ..
12025 $RM -r conftest
12026 $RM conftest*
12027
12028fi
cristy8b350f62009-11-15 23:12:43 +000012029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012030$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12031
12032
12033
12034
12035
12036
cristy8b350f62009-11-15 23:12:43 +000012037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012038$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012039if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012040 $as_echo_n "(cached) " >&6
12041else
12042 lt_cv_prog_compiler_c_o=no
12043 $RM -r conftest 2>/dev/null
12044 mkdir conftest
12045 cd conftest
12046 mkdir out
12047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12048
12049 lt_compiler_flag="-o out/conftest2.$ac_objext"
12050 # Insert the option either (1) after the last *FLAGS variable, or
12051 # (2) before a word containing "conftest.", or (3) at the end.
12052 # Note that $ac_compile itself does not contain backslashes and begins
12053 # with a dollar sign (not a hyphen), so the echo should work correctly.
12054 lt_compile=`echo "$ac_compile" | $SED \
12055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12057 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000012058 (eval echo "\"\$as_me:12058: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012059 (eval "$lt_compile" 2>out/conftest.err)
12060 ac_status=$?
12061 cat out/conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000012062 echo "$as_me:12062: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012063 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12064 then
12065 # The compiler can only warn and ignore the option if not recognized
12066 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012067 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12070 lt_cv_prog_compiler_c_o=yes
12071 fi
12072 fi
12073 chmod u+w . 2>&5
12074 $RM conftest*
12075 # SGI C++ compiler will create directory out/ii_files/ for
12076 # template instantiation
12077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12078 $RM out/* && rmdir out
12079 cd ..
12080 $RM -r conftest
12081 $RM conftest*
12082
12083fi
cristy8b350f62009-11-15 23:12:43 +000012084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012085$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12086
12087
12088
12089
12090hard_links="nottested"
12091if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12092 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012094$as_echo_n "checking if we can lock with hard links... " >&6; }
12095 hard_links=yes
12096 $RM conftest*
12097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 touch conftest.a
12099 ln conftest.a conftest.b 2>&5 || hard_links=no
12100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012102$as_echo "$hard_links" >&6; }
12103 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012104 { $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 +000012105$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12106 need_locks=warn
12107 fi
12108else
12109 need_locks=no
12110fi
12111
12112
12113
12114
12115
12116
cristy8b350f62009-11-15 23:12:43 +000012117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012118$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12119
12120 runpath_var=
12121 allow_undefined_flag=
12122 always_export_symbols=no
12123 archive_cmds=
12124 archive_expsym_cmds=
12125 compiler_needs_object=no
12126 enable_shared_with_static_runtimes=no
12127 export_dynamic_flag_spec=
12128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12129 hardcode_automatic=no
12130 hardcode_direct=no
12131 hardcode_direct_absolute=no
12132 hardcode_libdir_flag_spec=
12133 hardcode_libdir_flag_spec_ld=
12134 hardcode_libdir_separator=
12135 hardcode_minus_L=no
12136 hardcode_shlibpath_var=unsupported
12137 inherit_rpath=no
12138 link_all_deplibs=unknown
12139 module_cmds=
12140 module_expsym_cmds=
12141 old_archive_from_new_cmds=
12142 old_archive_from_expsyms_cmds=
12143 thread_safe_flag_spec=
12144 whole_archive_flag_spec=
12145 # include_expsyms should be a list of space-separated symbols to be *always*
12146 # included in the symbol list
12147 include_expsyms=
12148 # exclude_expsyms can be an extended regexp of symbols to exclude
12149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12151 # as well as any symbol that contains `d'.
12152 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12154 # platforms (ab)use it in PIC code, but their linkers get confused if
12155 # the symbol is explicitly referenced. Since portable code cannot
12156 # rely on this symbol name, it's probably fine to never include it in
12157 # preloaded symbol tables.
12158 # Exclude shared library initialization/finalization symbols.
12159 extract_expsyms_cmds=
12160
12161 case $host_os in
12162 cygwin* | mingw* | pw32* | cegcc*)
12163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12164 # When not using gcc, we currently assume that we are using
12165 # Microsoft Visual C++.
12166 if test "$GCC" != yes; then
12167 with_gnu_ld=no
12168 fi
12169 ;;
12170 interix*)
12171 # we just hope/assume this is gcc and not c89 (= MSVC++)
12172 with_gnu_ld=yes
12173 ;;
12174 openbsd*)
12175 with_gnu_ld=no
12176 ;;
12177 esac
12178
12179 ld_shlibs=yes
12180 if test "$with_gnu_ld" = yes; then
12181 # If archive_cmds runs LD, not CC, wlarc should be empty
12182 wlarc='${wl}'
12183
12184 # Set some defaults for GNU ld with shared library support. These
12185 # are reset later if shared libraries are not supported. Putting them
12186 # here allows them to be overridden if necessary.
12187 runpath_var=LD_RUN_PATH
12188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12189 export_dynamic_flag_spec='${wl}--export-dynamic'
12190 # ancient GNU ld didn't support --whole-archive et. al.
12191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12193 else
12194 whole_archive_flag_spec=
12195 fi
12196 supports_anon_versioning=no
12197 case `$LD -v 2>&1` in
12198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12201 *\ 2.11.*) ;; # other 2.11 versions
12202 *) supports_anon_versioning=yes ;;
12203 esac
12204
12205 # See if GNU ld supports shared libraries.
12206 case $host_os in
12207 aix[3-9]*)
12208 # On AIX/PPC, the GNU linker is very broken
12209 if test "$host_cpu" != ia64; then
12210 ld_shlibs=no
12211 cat <<_LT_EOF 1>&2
12212
cristy18304f92009-11-22 15:48:26 +000012213*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012214*** to be unable to reliably create shared libraries on AIX.
12215*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012216*** really care for shared libraries, you may want to modify your PATH
12217*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012218
12219_LT_EOF
12220 fi
12221 ;;
12222
12223 amigaos*)
12224 case $host_cpu in
12225 powerpc)
12226 # see comment about AmigaOS4 .so support
12227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228 archive_expsym_cmds=''
12229 ;;
12230 m68k)
12231 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)'
12232 hardcode_libdir_flag_spec='-L$libdir'
12233 hardcode_minus_L=yes
12234 ;;
12235 esac
12236 ;;
12237
12238 beos*)
12239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12240 allow_undefined_flag=unsupported
12241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12242 # support --undefined. This deserves some investigation. FIXME
12243 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244 else
12245 ld_shlibs=no
12246 fi
12247 ;;
12248
12249 cygwin* | mingw* | pw32* | cegcc*)
12250 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12251 # as there is no search path for DLLs.
12252 hardcode_libdir_flag_spec='-L$libdir'
12253 allow_undefined_flag=unsupported
12254 always_export_symbols=no
12255 enable_shared_with_static_runtimes=yes
12256 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12257
12258 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12260 # If the export-symbols file already is a .def file (1st line
12261 # is EXPORTS), use it as is; otherwise, prepend...
12262 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12263 cp $export_symbols $output_objdir/$soname.def;
12264 else
12265 echo EXPORTS > $output_objdir/$soname.def;
12266 cat $export_symbols >> $output_objdir/$soname.def;
12267 fi~
12268 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12269 else
12270 ld_shlibs=no
12271 fi
12272 ;;
12273
12274 interix[3-9]*)
12275 hardcode_direct=no
12276 hardcode_shlibpath_var=no
12277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12278 export_dynamic_flag_spec='${wl}-E'
12279 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12280 # Instead, shared libraries are loaded at an image base (0x10000000 by
12281 # default) and relocated if they conflict, which is a slow very memory
12282 # consuming and fragmenting process. To avoid this, we pick a random,
12283 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12284 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12285 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12286 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'
12287 ;;
12288
cristy18304f92009-11-22 15:48:26 +000012289 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012290 tmp_diet=no
12291 if test "$host_os" = linux-dietlibc; then
12292 case $cc_basename in
12293 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12294 esac
12295 fi
12296 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12297 && test "$tmp_diet" = no
12298 then
12299 tmp_addflag=
12300 tmp_sharedflag='-shared'
12301 case $cc_basename,$host_cpu in
12302 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000012303 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 +000012304 tmp_addflag=' $pic_flag'
12305 ;;
cristy18304f92009-11-22 15:48:26 +000012306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12307 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 +000012308 tmp_addflag=' $pic_flag -Mnomain' ;;
12309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12310 tmp_addflag=' -i_dynamic' ;;
12311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12312 tmp_addflag=' -i_dynamic -nofor_main' ;;
12313 ifc* | ifort*) # Intel Fortran compiler
12314 tmp_addflag=' -nofor_main' ;;
12315 lf95*) # Lahey Fortran 8.1
12316 whole_archive_flag_spec=
12317 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000012318 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000012319 tmp_sharedflag='-qmkshrobj'
12320 tmp_addflag= ;;
12321 esac
12322 case `$CC -V 2>&1 | sed 5q` in
12323 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000012324 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 +000012325 compiler_needs_object=yes
12326 tmp_sharedflag='-G' ;;
12327 *Sun\ F*) # Sun Fortran 8.3
12328 tmp_sharedflag='-G' ;;
12329 esac
12330 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12331
12332 if test "x$supports_anon_versioning" = xyes; then
12333 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12335 echo "local: *; };" >> $output_objdir/$libname.ver~
12336 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12337 fi
12338
12339 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000012340 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000012341 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12342 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12343 hardcode_libdir_flag_spec=
12344 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12345 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12346 if test "x$supports_anon_versioning" = xyes; then
12347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12349 echo "local: *; };" >> $output_objdir/$libname.ver~
12350 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12351 fi
12352 ;;
12353 esac
12354 else
12355 ld_shlibs=no
12356 fi
12357 ;;
12358
12359 netbsd*)
12360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12362 wlarc=
12363 else
12364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12366 fi
12367 ;;
12368
12369 solaris*)
12370 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12371 ld_shlibs=no
12372 cat <<_LT_EOF 1>&2
12373
12374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12375*** create shared libraries on Solaris systems. Therefore, libtool
12376*** is disabling shared libraries support. We urge you to upgrade GNU
12377*** binutils to release 2.9.1 or newer. Another option is to modify
12378*** your PATH or compiler configuration so that the native linker is
12379*** used, and then restart.
12380
12381_LT_EOF
12382 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12385 else
12386 ld_shlibs=no
12387 fi
12388 ;;
12389
12390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12391 case `$LD -v 2>&1` in
12392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12393 ld_shlibs=no
12394 cat <<_LT_EOF 1>&2
12395
12396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12397*** reliably create shared libraries on SCO systems. Therefore, libtool
12398*** is disabling shared libraries support. We urge you to upgrade GNU
12399*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12400*** your PATH or compiler configuration so that the native linker is
12401*** used, and then restart.
12402
12403_LT_EOF
12404 ;;
12405 *)
12406 # For security reasons, it is highly recommended that you always
12407 # use absolute paths for naming shared libraries, and exclude the
12408 # DT_RUNPATH tag from executables and libraries. But doing so
12409 # requires that you compile everything twice, which is a pain.
12410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12414 else
12415 ld_shlibs=no
12416 fi
12417 ;;
12418 esac
12419 ;;
12420
12421 sunos4*)
12422 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12423 wlarc=
12424 hardcode_direct=yes
12425 hardcode_shlibpath_var=no
12426 ;;
12427
12428 *)
12429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12432 else
12433 ld_shlibs=no
12434 fi
12435 ;;
12436 esac
12437
12438 if test "$ld_shlibs" = no; then
12439 runpath_var=
12440 hardcode_libdir_flag_spec=
12441 export_dynamic_flag_spec=
12442 whole_archive_flag_spec=
12443 fi
12444 else
12445 # PORTME fill in a description of your system's linker (not GNU ld)
12446 case $host_os in
12447 aix3*)
12448 allow_undefined_flag=unsupported
12449 always_export_symbols=yes
12450 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'
12451 # Note: this linker hardcodes the directories in LIBPATH if there
12452 # are no directories specified by -L.
12453 hardcode_minus_L=yes
12454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12455 # Neither direct hardcoding nor static linking is supported with a
12456 # broken collect2.
12457 hardcode_direct=unsupported
12458 fi
12459 ;;
12460
12461 aix[4-9]*)
12462 if test "$host_cpu" = ia64; then
12463 # On IA64, the linker does run time linking by default, so we don't
12464 # have to do anything special.
12465 aix_use_runtimelinking=no
12466 exp_sym_flag='-Bexport'
12467 no_entry_flag=""
12468 else
12469 # If we're using GNU nm, then we don't want the "-C" option.
12470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000012472 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 +000012473 else
12474 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'
12475 fi
12476 aix_use_runtimelinking=no
12477
12478 # Test if we are trying to use run time linking or normal
12479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12480 # need to do runtime linking.
12481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12482 for ld_flag in $LDFLAGS; do
12483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12484 aix_use_runtimelinking=yes
12485 break
12486 fi
12487 done
12488 ;;
12489 esac
12490
12491 exp_sym_flag='-bexport'
12492 no_entry_flag='-bnoentry'
12493 fi
12494
12495 # When large executables or shared objects are built, AIX ld can
12496 # have problems creating the table of contents. If linking a library
12497 # or program results in "error TOC overflow" add -mminimal-toc to
12498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12500
12501 archive_cmds=''
12502 hardcode_direct=yes
12503 hardcode_direct_absolute=yes
12504 hardcode_libdir_separator=':'
12505 link_all_deplibs=yes
12506 file_list_spec='${wl}-f,'
12507
12508 if test "$GCC" = yes; then
12509 case $host_os in aix4.[012]|aix4.[012].*)
12510 # We only want to do this on AIX 4.2 and lower, the check
12511 # below for broken collect2 doesn't work under 4.3+
12512 collect2name=`${CC} -print-prog-name=collect2`
12513 if test -f "$collect2name" &&
12514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12515 then
12516 # We have reworked collect2
12517 :
12518 else
12519 # We have old collect2
12520 hardcode_direct=unsupported
12521 # It fails to find uninstalled libraries when the uninstalled
12522 # path is not listed in the libpath. Setting hardcode_minus_L
12523 # to unsupported forces relinking
12524 hardcode_minus_L=yes
12525 hardcode_libdir_flag_spec='-L$libdir'
12526 hardcode_libdir_separator=
12527 fi
12528 ;;
12529 esac
12530 shared_flag='-shared'
12531 if test "$aix_use_runtimelinking" = yes; then
12532 shared_flag="$shared_flag "'${wl}-G'
12533 fi
12534 else
12535 # not using gcc
12536 if test "$host_cpu" = ia64; then
12537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12538 # chokes on -Wl,-G. The following line is correct:
12539 shared_flag='-G'
12540 else
12541 if test "$aix_use_runtimelinking" = yes; then
12542 shared_flag='${wl}-G'
12543 else
12544 shared_flag='${wl}-bM:SRE'
12545 fi
12546 fi
12547 fi
12548
12549 export_dynamic_flag_spec='${wl}-bexpall'
12550 # It seems that -bexpall does not export symbols beginning with
12551 # underscore (_), so it is better to generate a list of symbols to export.
12552 always_export_symbols=yes
12553 if test "$aix_use_runtimelinking" = yes; then
12554 # Warning - without using the other runtime loading flags (-brtl),
12555 # -berok will link without error, but may produce a broken library.
12556 allow_undefined_flag='-berok'
12557 # Determine the default libpath from the value encoded in an
12558 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012560/* end confdefs.h. */
12561
12562int
12563main ()
12564{
12565
12566 ;
12567 return 0;
12568}
12569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012571
12572lt_aix_libpath_sed='
12573 /Import File Strings/,/^$/ {
12574 /^0/ {
12575 s/^0 *\(.*\)$/\1/
12576 p
12577 }
12578 }'
12579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12580# Check for a 64-bit object if we didn't find anything.
12581if test -z "$aix_libpath"; then
12582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12583fi
cristy3ed852e2009-09-05 21:47:34 +000012584fi
cristy8b350f62009-11-15 23:12:43 +000012585rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12588
12589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000012590 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 +000012591 else
12592 if test "$host_cpu" = ia64; then
12593 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12594 allow_undefined_flag="-z nodefs"
12595 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"
12596 else
12597 # Determine the default libpath from the value encoded in an
12598 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012600/* end confdefs.h. */
12601
12602int
12603main ()
12604{
12605
12606 ;
12607 return 0;
12608}
12609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012611
12612lt_aix_libpath_sed='
12613 /Import File Strings/,/^$/ {
12614 /^0/ {
12615 s/^0 *\(.*\)$/\1/
12616 p
12617 }
12618 }'
12619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12620# Check for a 64-bit object if we didn't find anything.
12621if test -z "$aix_libpath"; then
12622 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623fi
cristy3ed852e2009-09-05 21:47:34 +000012624fi
cristy8b350f62009-11-15 23:12:43 +000012625rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012627if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12628
12629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12630 # Warning - without using the other run time loading flags,
12631 # -berok will link without error, but may produce a broken library.
12632 no_undefined_flag=' ${wl}-bernotok'
12633 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000012634 # Exported symbols can be pulled into shared objects from archives
12635 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000012636 archive_cmds_need_lc=yes
12637 # This is similar to how AIX traditionally builds its shared libraries.
12638 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'
12639 fi
12640 fi
12641 ;;
12642
12643 amigaos*)
12644 case $host_cpu in
12645 powerpc)
12646 # see comment about AmigaOS4 .so support
12647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12648 archive_expsym_cmds=''
12649 ;;
12650 m68k)
12651 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)'
12652 hardcode_libdir_flag_spec='-L$libdir'
12653 hardcode_minus_L=yes
12654 ;;
12655 esac
12656 ;;
12657
12658 bsdi[45]*)
12659 export_dynamic_flag_spec=-rdynamic
12660 ;;
12661
12662 cygwin* | mingw* | pw32* | cegcc*)
12663 # When not using gcc, we currently assume that we are using
12664 # Microsoft Visual C++.
12665 # hardcode_libdir_flag_spec is actually meaningless, as there is
12666 # no search path for DLLs.
12667 hardcode_libdir_flag_spec=' '
12668 allow_undefined_flag=unsupported
12669 # Tell ltmain to make .lib files, not .a files.
12670 libext=lib
12671 # Tell ltmain to make .dll files, not .so files.
12672 shrext_cmds=".dll"
12673 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000012674 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012675 # The linker will automatically build a .lib file if we build a DLL.
12676 old_archive_from_new_cmds='true'
12677 # FIXME: Should let the user specify the lib program.
12678 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12679 fix_srcfile_path='`cygpath -w "$srcfile"`'
12680 enable_shared_with_static_runtimes=yes
12681 ;;
12682
12683 darwin* | rhapsody*)
12684
12685
12686 archive_cmds_need_lc=no
12687 hardcode_direct=no
12688 hardcode_automatic=yes
12689 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000012690 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000012691 link_all_deplibs=yes
12692 allow_undefined_flag="$_lt_dar_allow_undefined"
12693 case $cc_basename in
12694 ifort*) _lt_dar_can_shared=yes ;;
12695 *) _lt_dar_can_shared=$GCC ;;
12696 esac
12697 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000012698 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000012699 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12700 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12701 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}"
12702 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}"
12703
12704 else
12705 ld_shlibs=no
12706 fi
12707
12708 ;;
12709
12710 dgux*)
12711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12712 hardcode_libdir_flag_spec='-L$libdir'
12713 hardcode_shlibpath_var=no
12714 ;;
12715
12716 freebsd1*)
12717 ld_shlibs=no
12718 ;;
12719
12720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12721 # support. Future versions do this automatically, but an explicit c++rt0.o
12722 # does not break anything, and helps significantly (at the cost of a little
12723 # extra space).
12724 freebsd2.2*)
12725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12726 hardcode_libdir_flag_spec='-R$libdir'
12727 hardcode_direct=yes
12728 hardcode_shlibpath_var=no
12729 ;;
12730
12731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12732 freebsd2*)
12733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12734 hardcode_direct=yes
12735 hardcode_minus_L=yes
12736 hardcode_shlibpath_var=no
12737 ;;
12738
12739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12740 freebsd* | dragonfly*)
12741 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12742 hardcode_libdir_flag_spec='-R$libdir'
12743 hardcode_direct=yes
12744 hardcode_shlibpath_var=no
12745 ;;
12746
12747 hpux9*)
12748 if test "$GCC" = yes; then
12749 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'
12750 else
12751 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'
12752 fi
12753 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12754 hardcode_libdir_separator=:
12755 hardcode_direct=yes
12756
12757 # hardcode_minus_L: Not really in the search PATH,
12758 # but as the default location of the library.
12759 hardcode_minus_L=yes
12760 export_dynamic_flag_spec='${wl}-E'
12761 ;;
12762
12763 hpux10*)
cristy18304f92009-11-22 15:48:26 +000012764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012765 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12766 else
12767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12768 fi
12769 if test "$with_gnu_ld" = no; then
12770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12771 hardcode_libdir_flag_spec_ld='+b $libdir'
12772 hardcode_libdir_separator=:
12773 hardcode_direct=yes
12774 hardcode_direct_absolute=yes
12775 export_dynamic_flag_spec='${wl}-E'
12776 # hardcode_minus_L: Not really in the search PATH,
12777 # but as the default location of the library.
12778 hardcode_minus_L=yes
12779 fi
12780 ;;
12781
12782 hpux11*)
cristy18304f92009-11-22 15:48:26 +000012783 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012784 case $host_cpu in
12785 hppa*64*)
12786 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12787 ;;
12788 ia64*)
12789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12790 ;;
12791 *)
12792 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12793 ;;
12794 esac
12795 else
12796 case $host_cpu in
12797 hppa*64*)
12798 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12799 ;;
12800 ia64*)
12801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12802 ;;
12803 *)
cristy18304f92009-11-22 15:48:26 +000012804 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 +000012805 ;;
12806 esac
12807 fi
12808 if test "$with_gnu_ld" = no; then
12809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12810 hardcode_libdir_separator=:
12811
12812 case $host_cpu in
12813 hppa*64*|ia64*)
12814 hardcode_direct=no
12815 hardcode_shlibpath_var=no
12816 ;;
12817 *)
12818 hardcode_direct=yes
12819 hardcode_direct_absolute=yes
12820 export_dynamic_flag_spec='${wl}-E'
12821
12822 # hardcode_minus_L: Not really in the search PATH,
12823 # but as the default location of the library.
12824 hardcode_minus_L=yes
12825 ;;
12826 esac
12827 fi
12828 ;;
12829
12830 irix5* | irix6* | nonstopux*)
12831 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012832 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 +000012833 # Try to use the -exported_symbol ld option, if it does not
12834 # work, assume that -exports_file does not work either and
12835 # implicitly export all symbols.
12836 save_LDFLAGS="$LDFLAGS"
12837 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012840int foo(void) {}
12841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012842if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000012843 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 +000012844
cristy3ed852e2009-09-05 21:47:34 +000012845fi
cristy8b350f62009-11-15 23:12:43 +000012846rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012848 LDFLAGS="$save_LDFLAGS"
12849 else
cristy18304f92009-11-22 15:48:26 +000012850 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'
12851 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 +000012852 fi
12853 archive_cmds_need_lc='no'
12854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12855 hardcode_libdir_separator=:
12856 inherit_rpath=yes
12857 link_all_deplibs=yes
12858 ;;
12859
12860 netbsd*)
12861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12863 else
12864 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12865 fi
12866 hardcode_libdir_flag_spec='-R$libdir'
12867 hardcode_direct=yes
12868 hardcode_shlibpath_var=no
12869 ;;
12870
12871 newsos6)
12872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12873 hardcode_direct=yes
12874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12875 hardcode_libdir_separator=:
12876 hardcode_shlibpath_var=no
12877 ;;
12878
12879 *nto* | *qnx*)
12880 ;;
12881
12882 openbsd*)
12883 if test -f /usr/libexec/ld.so; then
12884 hardcode_direct=yes
12885 hardcode_shlibpath_var=no
12886 hardcode_direct_absolute=yes
12887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12889 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12891 export_dynamic_flag_spec='${wl}-E'
12892 else
12893 case $host_os in
12894 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_libdir_flag_spec='-R$libdir'
12897 ;;
12898 *)
12899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12900 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12901 ;;
12902 esac
12903 fi
12904 else
12905 ld_shlibs=no
12906 fi
12907 ;;
12908
12909 os2*)
12910 hardcode_libdir_flag_spec='-L$libdir'
12911 hardcode_minus_L=yes
12912 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000012913 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 +000012914 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12915 ;;
12916
12917 osf3*)
12918 if test "$GCC" = yes; then
12919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012920 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 +000012921 else
12922 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012923 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 +000012924 fi
12925 archive_cmds_need_lc='no'
12926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12927 hardcode_libdir_separator=:
12928 ;;
12929
12930 osf4* | osf5*) # as osf3* with the addition of -msym flag
12931 if test "$GCC" = yes; then
12932 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012933 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 +000012934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12935 else
12936 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012937 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 +000012938 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 +000012939 $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 +000012940
12941 # Both c and cxx compiler support -rpath directly
12942 hardcode_libdir_flag_spec='-rpath $libdir'
12943 fi
12944 archive_cmds_need_lc='no'
12945 hardcode_libdir_separator=:
12946 ;;
12947
12948 solaris*)
12949 no_undefined_flag=' -z defs'
12950 if test "$GCC" = yes; then
12951 wlarc='${wl}'
12952 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12953 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12954 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12955 else
12956 case `$CC -V 2>&1` in
12957 *"Compilers 5.0"*)
12958 wlarc=''
12959 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12961 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12962 ;;
12963 *)
12964 wlarc='${wl}'
12965 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12967 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12968 ;;
12969 esac
12970 fi
12971 hardcode_libdir_flag_spec='-R$libdir'
12972 hardcode_shlibpath_var=no
12973 case $host_os in
12974 solaris2.[0-5] | solaris2.[0-5].*) ;;
12975 *)
12976 # The compiler driver will combine and reorder linker options,
12977 # but understands `-z linker_flag'. GCC discards it without `$wl',
12978 # but is careful enough not to reorder.
12979 # Supported since Solaris 2.6 (maybe 2.5.1?)
12980 if test "$GCC" = yes; then
12981 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12982 else
12983 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12984 fi
12985 ;;
12986 esac
12987 link_all_deplibs=yes
12988 ;;
12989
12990 sunos4*)
12991 if test "x$host_vendor" = xsequent; then
12992 # Use $CC to link under sequent, because it throws in some extra .o
12993 # files that make .init and .fini sections work.
12994 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12995 else
12996 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12997 fi
12998 hardcode_libdir_flag_spec='-L$libdir'
12999 hardcode_direct=yes
13000 hardcode_minus_L=yes
13001 hardcode_shlibpath_var=no
13002 ;;
13003
13004 sysv4)
13005 case $host_vendor in
13006 sni)
13007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13008 hardcode_direct=yes # is this really true???
13009 ;;
13010 siemens)
13011 ## LD is ld it makes a PLAMLIB
13012 ## CC just makes a GrossModule.
13013 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13014 reload_cmds='$CC -r -o $output$reload_objs'
13015 hardcode_direct=no
13016 ;;
13017 motorola)
13018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13019 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13020 ;;
13021 esac
13022 runpath_var='LD_RUN_PATH'
13023 hardcode_shlibpath_var=no
13024 ;;
13025
13026 sysv4.3*)
13027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13028 hardcode_shlibpath_var=no
13029 export_dynamic_flag_spec='-Bexport'
13030 ;;
13031
13032 sysv4*MP*)
13033 if test -d /usr/nec; then
13034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13035 hardcode_shlibpath_var=no
13036 runpath_var=LD_RUN_PATH
13037 hardcode_runpath_var=yes
13038 ld_shlibs=yes
13039 fi
13040 ;;
13041
13042 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13043 no_undefined_flag='${wl}-z,text'
13044 archive_cmds_need_lc=no
13045 hardcode_shlibpath_var=no
13046 runpath_var='LD_RUN_PATH'
13047
13048 if test "$GCC" = yes; then
13049 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13050 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13051 else
13052 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13053 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13054 fi
13055 ;;
13056
13057 sysv5* | sco3.2v5* | sco5v6*)
13058 # Note: We can NOT use -z defs as we might desire, because we do not
13059 # link with -lc, and that would cause any symbols used from libc to
13060 # always be unresolved, which means just about no library would
13061 # ever link correctly. If we're not using GNU ld we use -z text
13062 # though, which does catch some bad symbols but isn't as heavy-handed
13063 # as -z defs.
13064 no_undefined_flag='${wl}-z,text'
13065 allow_undefined_flag='${wl}-z,nodefs'
13066 archive_cmds_need_lc=no
13067 hardcode_shlibpath_var=no
13068 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13069 hardcode_libdir_separator=':'
13070 link_all_deplibs=yes
13071 export_dynamic_flag_spec='${wl}-Bexport'
13072 runpath_var='LD_RUN_PATH'
13073
13074 if test "$GCC" = yes; then
13075 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 else
13078 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 fi
13081 ;;
13082
13083 uts4*)
13084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13085 hardcode_libdir_flag_spec='-L$libdir'
13086 hardcode_shlibpath_var=no
13087 ;;
13088
13089 *)
13090 ld_shlibs=no
13091 ;;
13092 esac
13093
13094 if test x$host_vendor = xsni; then
13095 case $host in
13096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13097 export_dynamic_flag_spec='${wl}-Blargedynsym'
13098 ;;
13099 esac
13100 fi
13101 fi
13102
cristy8b350f62009-11-15 23:12:43 +000013103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013104$as_echo "$ld_shlibs" >&6; }
13105test "$ld_shlibs" = no && can_build_shared=no
13106
13107with_gnu_ld=$with_gnu_ld
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123#
13124# Do we need to explicitly link libc?
13125#
13126case "x$archive_cmds_need_lc" in
13127x|xyes)
13128 # Assume -lc should be added
13129 archive_cmds_need_lc=yes
13130
13131 if test "$enable_shared" = yes && test "$GCC" = yes; then
13132 case $archive_cmds in
13133 *'~'*)
13134 # FIXME: we may have to deal with multi-command sequences.
13135 ;;
13136 '$CC '*)
13137 # Test whether the compiler implicitly links with -lc since on some
13138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13139 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013141$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013142 $RM conftest*
13143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013144
cristy18304f92009-11-22 15:48:26 +000013145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013146 (eval $ac_compile) 2>&5
13147 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13149 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013150 soname=conftest
13151 lib=conftest
13152 libobjs=conftest.$ac_objext
13153 deplibs=
13154 wl=$lt_prog_compiler_wl
13155 pic_flag=$lt_prog_compiler_pic
13156 compiler_flags=-v
13157 linker_flags=-v
13158 verstring=
13159 output_objdir=.
13160 libname=conftest
13161 lt_save_allow_undefined_flag=$allow_undefined_flag
13162 allow_undefined_flag=
13163 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 +000013164 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013168 then
13169 archive_cmds_need_lc=no
13170 else
13171 archive_cmds_need_lc=yes
13172 fi
13173 allow_undefined_flag=$lt_save_allow_undefined_flag
13174 else
13175 cat conftest.err 1>&5
13176 fi
13177 $RM conftest*
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13179$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013180 ;;
13181 esac
13182 fi
13183 ;;
13184esac
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
cristy8b350f62009-11-15 23:12:43 +000013342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000013343$as_echo_n "checking dynamic linker characteristics... " >&6; }
13344
13345if test "$GCC" = yes; then
13346 case $host_os in
13347 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13348 *) lt_awk_arg="/^libraries:/" ;;
13349 esac
cristy18304f92009-11-22 15:48:26 +000013350 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13351 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000013352 # if the path contains ";" then we assume it to be the separator
13353 # otherwise default to the standard path separator (i.e. ":") - it is
13354 # assumed that no part of a normal pathname contains ";" but that should
13355 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000013356 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13357 else
13358 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13359 fi
cristy3ed852e2009-09-05 21:47:34 +000013360 # Ok, now we have the path, separated by spaces, we can step through it
13361 # and add multilib dir if necessary.
13362 lt_tmp_lt_search_path_spec=
13363 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13364 for lt_sys_path in $lt_search_path_spec; do
13365 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13367 else
13368 test -d "$lt_sys_path" && \
13369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13370 fi
13371 done
cristy18304f92009-11-22 15:48:26 +000013372 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000013373BEGIN {RS=" "; FS="/|\n";} {
13374 lt_foo="";
13375 lt_count=0;
13376 for (lt_i = NF; lt_i > 0; lt_i--) {
13377 if ($lt_i != "" && $lt_i != ".") {
13378 if ($lt_i == "..") {
13379 lt_count++;
13380 } else {
13381 if (lt_count == 0) {
13382 lt_foo="/" $lt_i lt_foo;
13383 } else {
13384 lt_count--;
13385 }
13386 }
13387 }
13388 }
13389 if (lt_foo != "") { lt_freq[lt_foo]++; }
13390 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13391}'`
cristy18304f92009-11-22 15:48:26 +000013392 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000013393else
13394 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13395fi
13396library_names_spec=
13397libname_spec='lib$name'
13398soname_spec=
13399shrext_cmds=".so"
13400postinstall_cmds=
13401postuninstall_cmds=
13402finish_cmds=
13403finish_eval=
13404shlibpath_var=
13405shlibpath_overrides_runpath=unknown
13406version_type=none
13407dynamic_linker="$host_os ld.so"
13408sys_lib_dlsearch_path_spec="/lib /usr/lib"
13409need_lib_prefix=unknown
13410hardcode_into_libs=no
13411
13412# when you set need_version to no, make sure it does not cause -set_version
13413# flags to be left without arguments
13414need_version=unknown
13415
13416case $host_os in
13417aix3*)
13418 version_type=linux
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13420 shlibpath_var=LIBPATH
13421
13422 # AIX 3 has no versioning support, so we append a major version to the name.
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 ;;
13425
13426aix[4-9]*)
13427 version_type=linux
13428 need_lib_prefix=no
13429 need_version=no
13430 hardcode_into_libs=yes
13431 if test "$host_cpu" = ia64; then
13432 # AIX 5 supports IA64
13433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 else
13436 # With GCC up to 2.95.x, collect2 would create an import file
13437 # for dependence libraries. The import file would start with
13438 # the line `#! .'. This would cause the generated library to
13439 # depend on `.', always an invalid library. This was fixed in
13440 # development snapshots of GCC prior to 3.0.
13441 case $host_os in
13442 aix4 | aix4.[01] | aix4.[01].*)
13443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13444 echo ' yes '
13445 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13446 :
13447 else
13448 can_build_shared=no
13449 fi
13450 ;;
13451 esac
13452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13453 # soname into executable. Probably we can add versioning support to
13454 # collect2, so additional links can be useful in future.
13455 if test "$aix_use_runtimelinking" = yes; then
13456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13457 # instead of lib<name>.a to let people know that these are not
13458 # typical AIX shared libraries.
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460 else
13461 # We preserve .a as extension for shared libraries through AIX4.2
13462 # and later when we are not doing run time linking.
13463 library_names_spec='${libname}${release}.a $libname.a'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 fi
13466 shlibpath_var=LIBPATH
13467 fi
13468 ;;
13469
13470amigaos*)
13471 case $host_cpu in
13472 powerpc)
13473 # Since July 2007 AmigaOS4 officially supports .so libraries.
13474 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 ;;
13477 m68k)
13478 library_names_spec='$libname.ixlibrary $libname.a'
13479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000013480 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 +000013481 ;;
13482 esac
13483 ;;
13484
13485beos*)
13486 library_names_spec='${libname}${shared_ext}'
13487 dynamic_linker="$host_os ld.so"
13488 shlibpath_var=LIBRARY_PATH
13489 ;;
13490
13491bsdi[45]*)
13492 version_type=linux
13493 need_version=no
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13500 # the default ld.so.conf also contains /usr/contrib/lib and
13501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13502 # libtool to hard-code these into programs
13503 ;;
13504
13505cygwin* | mingw* | pw32* | cegcc*)
13506 version_type=windows
13507 shrext_cmds=".dll"
13508 need_version=no
13509 need_lib_prefix=no
13510
13511 case $GCC,$host_os in
13512 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13513 library_names_spec='$libname.dll.a'
13514 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13515 postinstall_cmds='base_file=`basename \${file}`~
13516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13517 dldir=$destdir/`dirname \$dlpath`~
13518 test -d \$dldir || mkdir -p \$dldir~
13519 $install_prog $dir/$dlname \$dldir/$dlname~
13520 chmod a+x \$dldir/$dlname~
13521 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13522 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13523 fi'
13524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13525 dlpath=$dir/\$dldll~
13526 $RM \$dlpath'
13527 shlibpath_overrides_runpath=yes
13528
13529 case $host_os in
13530 cygwin*)
13531 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13532 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013533 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000013534 ;;
13535 mingw* | cegcc*)
13536 # MinGW DLLs use traditional 'lib' prefix
13537 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013538 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13539 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13540 # It is most probably a Windows format PATH printed by
13541 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13542 # path with ; separators, and with drive letters. We can handle the
13543 # drive letters (cygwin fileutils understands them), so leave them,
13544 # especially as we might pass files found there to a mingw objdump,
13545 # which wouldn't understand a cygwinified path. Ahh.
13546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13547 else
13548 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13549 fi
cristy3ed852e2009-09-05 21:47:34 +000013550 ;;
13551 pw32*)
13552 # pw32 DLLs use 'pw' prefix rather than 'lib'
13553 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13554 ;;
13555 esac
13556 ;;
13557
13558 *)
13559 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13560 ;;
13561 esac
13562 dynamic_linker='Win32 ld.exe'
13563 # FIXME: first we should search . and the directory the executable is in
13564 shlibpath_var=PATH
13565 ;;
13566
13567darwin* | rhapsody*)
13568 dynamic_linker="$host_os dyld"
13569 version_type=darwin
13570 need_lib_prefix=no
13571 need_version=no
13572 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13573 soname_spec='${libname}${release}${major}$shared_ext'
13574 shlibpath_overrides_runpath=yes
13575 shlibpath_var=DYLD_LIBRARY_PATH
13576 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13577
13578 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13579 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13580 ;;
13581
13582dgux*)
13583 version_type=linux
13584 need_lib_prefix=no
13585 need_version=no
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13587 soname_spec='${libname}${release}${shared_ext}$major'
13588 shlibpath_var=LD_LIBRARY_PATH
13589 ;;
13590
13591freebsd1*)
13592 dynamic_linker=no
13593 ;;
13594
13595freebsd* | dragonfly*)
13596 # DragonFly does not have aout. When/if they implement a new
13597 # versioning mechanism, adjust this.
13598 if test -x /usr/bin/objformat; then
13599 objformat=`/usr/bin/objformat`
13600 else
13601 case $host_os in
13602 freebsd[123]*) objformat=aout ;;
13603 *) objformat=elf ;;
13604 esac
13605 fi
13606 version_type=freebsd-$objformat
13607 case $version_type in
13608 freebsd-elf*)
13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13610 need_version=no
13611 need_lib_prefix=no
13612 ;;
13613 freebsd-*)
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13615 need_version=yes
13616 ;;
13617 esac
13618 shlibpath_var=LD_LIBRARY_PATH
13619 case $host_os in
13620 freebsd2*)
13621 shlibpath_overrides_runpath=yes
13622 ;;
13623 freebsd3.[01]* | freebsdelf3.[01]*)
13624 shlibpath_overrides_runpath=yes
13625 hardcode_into_libs=yes
13626 ;;
13627 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13628 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13629 shlibpath_overrides_runpath=no
13630 hardcode_into_libs=yes
13631 ;;
13632 *) # from 4.6 on, and DragonFly
13633 shlibpath_overrides_runpath=yes
13634 hardcode_into_libs=yes
13635 ;;
13636 esac
13637 ;;
13638
13639gnu*)
13640 version_type=linux
13641 need_lib_prefix=no
13642 need_version=no
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13644 soname_spec='${libname}${release}${shared_ext}$major'
13645 shlibpath_var=LD_LIBRARY_PATH
13646 hardcode_into_libs=yes
13647 ;;
13648
13649hpux9* | hpux10* | hpux11*)
13650 # Give a soname corresponding to the major version so that dld.sl refuses to
13651 # link against other versions.
13652 version_type=sunos
13653 need_lib_prefix=no
13654 need_version=no
13655 case $host_cpu in
13656 ia64*)
13657 shrext_cmds='.so'
13658 hardcode_into_libs=yes
13659 dynamic_linker="$host_os dld.so"
13660 shlibpath_var=LD_LIBRARY_PATH
13661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13663 soname_spec='${libname}${release}${shared_ext}$major'
13664 if test "X$HPUX_IA64_MODE" = X32; then
13665 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13666 else
13667 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13668 fi
13669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13670 ;;
13671 hppa*64*)
13672 shrext_cmds='.sl'
13673 hardcode_into_libs=yes
13674 dynamic_linker="$host_os dld.sl"
13675 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13678 soname_spec='${libname}${release}${shared_ext}$major'
13679 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13681 ;;
13682 *)
13683 shrext_cmds='.sl'
13684 dynamic_linker="$host_os dld.sl"
13685 shlibpath_var=SHLIB_PATH
13686 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688 soname_spec='${libname}${release}${shared_ext}$major'
13689 ;;
13690 esac
cristy18304f92009-11-22 15:48:26 +000013691 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000013692 postinstall_cmds='chmod 555 $lib'
13693 ;;
13694
13695interix[3-9]*)
13696 version_type=linux
13697 need_lib_prefix=no
13698 need_version=no
13699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13700 soname_spec='${libname}${release}${shared_ext}$major'
13701 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13702 shlibpath_var=LD_LIBRARY_PATH
13703 shlibpath_overrides_runpath=no
13704 hardcode_into_libs=yes
13705 ;;
13706
13707irix5* | irix6* | nonstopux*)
13708 case $host_os in
13709 nonstopux*) version_type=nonstopux ;;
13710 *)
13711 if test "$lt_cv_prog_gnu_ld" = yes; then
13712 version_type=linux
13713 else
13714 version_type=irix
13715 fi ;;
13716 esac
13717 need_lib_prefix=no
13718 need_version=no
13719 soname_spec='${libname}${release}${shared_ext}$major'
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13721 case $host_os in
13722 irix5* | nonstopux*)
13723 libsuff= shlibsuff=
13724 ;;
13725 *)
13726 case $LD in # libtool.m4 will add one of these switches to LD
13727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13728 libsuff= shlibsuff= libmagic=32-bit;;
13729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13730 libsuff=32 shlibsuff=N32 libmagic=N32;;
13731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13733 *) libsuff= shlibsuff= libmagic=never-match;;
13734 esac
13735 ;;
13736 esac
13737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13738 shlibpath_overrides_runpath=no
13739 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13740 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13741 hardcode_into_libs=yes
13742 ;;
13743
13744# No shared lib support for Linux oldld, aout, or coff.
13745linux*oldld* | linux*aout* | linux*coff*)
13746 dynamic_linker=no
13747 ;;
13748
13749# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000013750linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013751 version_type=linux
13752 need_lib_prefix=no
13753 need_version=no
13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13755 soname_spec='${libname}${release}${shared_ext}$major'
13756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=no
13759 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000013760 save_LDFLAGS=$LDFLAGS
13761 save_libdir=$libdir
13762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013765/* end confdefs.h. */
13766
13767int
13768main ()
13769{
13770
13771 ;
13772 return 0;
13773}
13774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013775if ac_fn_c_try_link "$LINENO"; then :
13776 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000013777 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013778fi
cristy3ed852e2009-09-05 21:47:34 +000013779fi
cristy8b350f62009-11-15 23:12:43 +000013780rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000013782 LDFLAGS=$save_LDFLAGS
13783 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000013784
13785 # This implies no fast_install, which is unacceptable.
13786 # Some rework will be needed to allow for fast_install
13787 # before this can be enabled.
13788 hardcode_into_libs=yes
13789
cristy3ed852e2009-09-05 21:47:34 +000013790 # Append ld.so.conf contents to the search path
13791 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000013792 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' ' '`
cristy932c9122009-11-19 13:57:03 +000013793 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013794 fi
13795
13796 # We used to test for /lib/ld.so.1 and disable shared libraries on
13797 # powerpc, because MkLinux only supported shared libraries with the
13798 # GNU dynamic linker. Since this was broken with cross compilers,
13799 # most powerpc-linux boxes support dynamic linking these days and
13800 # people can always --disable-shared, the test was removed, and we
13801 # assume the GNU/Linux dynamic linker is in use.
13802 dynamic_linker='GNU/Linux ld.so'
13803 ;;
13804
13805netbsd*)
13806 version_type=sunos
13807 need_lib_prefix=no
13808 need_version=no
13809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13812 dynamic_linker='NetBSD (a.out) ld.so'
13813 else
13814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13815 soname_spec='${libname}${release}${shared_ext}$major'
13816 dynamic_linker='NetBSD ld.elf_so'
13817 fi
13818 shlibpath_var=LD_LIBRARY_PATH
13819 shlibpath_overrides_runpath=yes
13820 hardcode_into_libs=yes
13821 ;;
13822
13823newsos6)
13824 version_type=linux
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826 shlibpath_var=LD_LIBRARY_PATH
13827 shlibpath_overrides_runpath=yes
13828 ;;
13829
13830*nto* | *qnx*)
13831 version_type=qnx
13832 need_lib_prefix=no
13833 need_version=no
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 shlibpath_overrides_runpath=no
13838 hardcode_into_libs=yes
13839 dynamic_linker='ldqnx.so'
13840 ;;
13841
13842openbsd*)
13843 version_type=sunos
13844 sys_lib_dlsearch_path_spec="/usr/lib"
13845 need_lib_prefix=no
13846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13847 case $host_os in
13848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13849 *) need_version=no ;;
13850 esac
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13853 shlibpath_var=LD_LIBRARY_PATH
13854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13855 case $host_os in
13856 openbsd2.[89] | openbsd2.[89].*)
13857 shlibpath_overrides_runpath=no
13858 ;;
13859 *)
13860 shlibpath_overrides_runpath=yes
13861 ;;
13862 esac
13863 else
13864 shlibpath_overrides_runpath=yes
13865 fi
13866 ;;
13867
13868os2*)
13869 libname_spec='$name'
13870 shrext_cmds=".dll"
13871 need_lib_prefix=no
13872 library_names_spec='$libname${shared_ext} $libname.a'
13873 dynamic_linker='OS/2 ld.exe'
13874 shlibpath_var=LIBPATH
13875 ;;
13876
13877osf3* | osf4* | osf5*)
13878 version_type=osf
13879 need_lib_prefix=no
13880 need_version=no
13881 soname_spec='${libname}${release}${shared_ext}$major'
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13886 ;;
13887
13888rdos*)
13889 dynamic_linker=no
13890 ;;
13891
13892solaris*)
13893 version_type=linux
13894 need_lib_prefix=no
13895 need_version=no
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13897 soname_spec='${libname}${release}${shared_ext}$major'
13898 shlibpath_var=LD_LIBRARY_PATH
13899 shlibpath_overrides_runpath=yes
13900 hardcode_into_libs=yes
13901 # ldd complains unless libraries are executable
13902 postinstall_cmds='chmod +x $lib'
13903 ;;
13904
13905sunos4*)
13906 version_type=sunos
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13911 if test "$with_gnu_ld" = yes; then
13912 need_lib_prefix=no
13913 fi
13914 need_version=yes
13915 ;;
13916
13917sysv4 | sysv4.3*)
13918 version_type=linux
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 shlibpath_var=LD_LIBRARY_PATH
13922 case $host_vendor in
13923 sni)
13924 shlibpath_overrides_runpath=no
13925 need_lib_prefix=no
13926 runpath_var=LD_RUN_PATH
13927 ;;
13928 siemens)
13929 need_lib_prefix=no
13930 ;;
13931 motorola)
13932 need_lib_prefix=no
13933 need_version=no
13934 shlibpath_overrides_runpath=no
13935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13936 ;;
13937 esac
13938 ;;
13939
13940sysv4*MP*)
13941 if test -d /usr/nec ;then
13942 version_type=linux
13943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13944 soname_spec='$libname${shared_ext}.$major'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 fi
13947 ;;
13948
13949sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13950 version_type=freebsd-elf
13951 need_lib_prefix=no
13952 need_version=no
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 shlibpath_var=LD_LIBRARY_PATH
13956 shlibpath_overrides_runpath=yes
13957 hardcode_into_libs=yes
13958 if test "$with_gnu_ld" = yes; then
13959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13960 else
13961 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13962 case $host_os in
13963 sco3.2v5*)
13964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13965 ;;
13966 esac
13967 fi
13968 sys_lib_dlsearch_path_spec='/usr/lib'
13969 ;;
13970
13971tpf*)
13972 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13973 version_type=linux
13974 need_lib_prefix=no
13975 need_version=no
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977 shlibpath_var=LD_LIBRARY_PATH
13978 shlibpath_overrides_runpath=no
13979 hardcode_into_libs=yes
13980 ;;
13981
13982uts4*)
13983 version_type=linux
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 shlibpath_var=LD_LIBRARY_PATH
13987 ;;
13988
13989*)
13990 dynamic_linker=no
13991 ;;
13992esac
cristy8b350f62009-11-15 23:12:43 +000013993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000013994$as_echo "$dynamic_linker" >&6; }
13995test "$dynamic_linker" = no && can_build_shared=no
13996
13997variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13998if test "$GCC" = yes; then
13999 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14000fi
14001
14002if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14003 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14004fi
14005if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14006 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14007fi
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
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
cristy8b350f62009-11-15 23:12:43 +000014095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014096$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14097hardcode_action=
14098if test -n "$hardcode_libdir_flag_spec" ||
14099 test -n "$runpath_var" ||
14100 test "X$hardcode_automatic" = "Xyes" ; then
14101
14102 # We can hardcode non-existent directories.
14103 if test "$hardcode_direct" != no &&
14104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14105 # have to relink, otherwise we might link with an installed library
14106 # when we should be linking with a yet-to-be-installed one
14107 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14108 test "$hardcode_minus_L" != no; then
14109 # Linking always hardcodes the temporary library directory.
14110 hardcode_action=relink
14111 else
14112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14113 hardcode_action=immediate
14114 fi
14115else
14116 # We cannot hardcode anything, or else we can only hardcode existing
14117 # directories.
14118 hardcode_action=unsupported
14119fi
cristy8b350f62009-11-15 23:12:43 +000014120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014121$as_echo "$hardcode_action" >&6; }
14122
14123if test "$hardcode_action" = relink ||
14124 test "$inherit_rpath" = yes; then
14125 # Fast installation is not supported
14126 enable_fast_install=no
14127elif test "$shlibpath_overrides_runpath" = yes ||
14128 test "$enable_shared" = no; then
14129 # Fast installation is not necessary
14130 enable_fast_install=needless
14131fi
14132
14133
14134
14135
14136
14137
14138 if test "x$enable_dlopen" != xyes; then
14139 enable_dlopen=unknown
14140 enable_dlopen_self=unknown
14141 enable_dlopen_self_static=unknown
14142else
14143 lt_cv_dlopen=no
14144 lt_cv_dlopen_libs=
14145
14146 case $host_os in
14147 beos*)
14148 lt_cv_dlopen="load_add_on"
14149 lt_cv_dlopen_libs=
14150 lt_cv_dlopen_self=yes
14151 ;;
14152
14153 mingw* | pw32* | cegcc*)
14154 lt_cv_dlopen="LoadLibrary"
14155 lt_cv_dlopen_libs=
14156 ;;
14157
14158 cygwin*)
14159 lt_cv_dlopen="dlopen"
14160 lt_cv_dlopen_libs=
14161 ;;
14162
14163 darwin*)
14164 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014166$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014167if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014168 $as_echo_n "(cached) " >&6
14169else
14170 ac_check_lib_save_LIBS=$LIBS
14171LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014173/* end confdefs.h. */
14174
14175/* Override any GCC internal prototype to avoid an error.
14176 Use char because int might match the return type of a GCC
14177 builtin and then its argument prototype would still apply. */
14178#ifdef __cplusplus
14179extern "C"
14180#endif
14181char dlopen ();
14182int
14183main ()
14184{
14185return dlopen ();
14186 ;
14187 return 0;
14188}
14189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014190if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014191 ac_cv_lib_dl_dlopen=yes
14192else
cristy8b350f62009-11-15 23:12:43 +000014193 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014194fi
cristy8b350f62009-11-15 23:12:43 +000014195rm -f core conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014197LIBS=$ac_check_lib_save_LIBS
14198fi
cristy8b350f62009-11-15 23:12:43 +000014199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014200$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014201if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14203else
14204
14205 lt_cv_dlopen="dyld"
14206 lt_cv_dlopen_libs=
14207 lt_cv_dlopen_self=yes
14208
14209fi
14210
14211 ;;
14212
14213 *)
cristy8b350f62009-11-15 23:12:43 +000014214 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14215if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014216 lt_cv_dlopen="shl_load"
14217else
cristy8b350f62009-11-15 23:12:43 +000014218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014219$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014220if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014221 $as_echo_n "(cached) " >&6
14222else
14223 ac_check_lib_save_LIBS=$LIBS
14224LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014226/* end confdefs.h. */
14227
14228/* Override any GCC internal prototype to avoid an error.
14229 Use char because int might match the return type of a GCC
14230 builtin and then its argument prototype would still apply. */
14231#ifdef __cplusplus
14232extern "C"
14233#endif
14234char shl_load ();
14235int
14236main ()
14237{
14238return shl_load ();
14239 ;
14240 return 0;
14241}
14242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014244 ac_cv_lib_dld_shl_load=yes
14245else
cristy8b350f62009-11-15 23:12:43 +000014246 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014247fi
cristy8b350f62009-11-15 23:12:43 +000014248rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014250LIBS=$ac_check_lib_save_LIBS
14251fi
cristy8b350f62009-11-15 23:12:43 +000014252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014253$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014254if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014255 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14256else
cristy8b350f62009-11-15 23:12:43 +000014257 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14258if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014259 lt_cv_dlopen="dlopen"
14260else
cristy8b350f62009-11-15 23:12:43 +000014261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014262$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014263if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014264 $as_echo_n "(cached) " >&6
14265else
14266 ac_check_lib_save_LIBS=$LIBS
14267LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014269/* end confdefs.h. */
14270
14271/* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14274#ifdef __cplusplus
14275extern "C"
14276#endif
14277char dlopen ();
14278int
14279main ()
14280{
14281return dlopen ();
14282 ;
14283 return 0;
14284}
14285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014287 ac_cv_lib_dl_dlopen=yes
14288else
cristy8b350f62009-11-15 23:12:43 +000014289 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014290fi
cristy8b350f62009-11-15 23:12:43 +000014291rm -f core conftest.err conftest.$ac_objext \
14292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014293LIBS=$ac_check_lib_save_LIBS
14294fi
cristy8b350f62009-11-15 23:12:43 +000014295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014296$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014297if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14299else
cristy8b350f62009-11-15 23:12:43 +000014300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014301$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014302if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014303 $as_echo_n "(cached) " >&6
14304else
14305 ac_check_lib_save_LIBS=$LIBS
14306LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014308/* end confdefs.h. */
14309
14310/* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313#ifdef __cplusplus
14314extern "C"
14315#endif
14316char dlopen ();
14317int
14318main ()
14319{
14320return dlopen ();
14321 ;
14322 return 0;
14323}
14324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014326 ac_cv_lib_svld_dlopen=yes
14327else
cristy8b350f62009-11-15 23:12:43 +000014328 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014329fi
cristy8b350f62009-11-15 23:12:43 +000014330rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014332LIBS=$ac_check_lib_save_LIBS
14333fi
cristy8b350f62009-11-15 23:12:43 +000014334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014335$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014336if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14338else
cristy8b350f62009-11-15 23:12:43 +000014339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014340$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014341if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014342 $as_echo_n "(cached) " >&6
14343else
14344 ac_check_lib_save_LIBS=$LIBS
14345LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014347/* end confdefs.h. */
14348
14349/* Override any GCC internal prototype to avoid an error.
14350 Use char because int might match the return type of a GCC
14351 builtin and then its argument prototype would still apply. */
14352#ifdef __cplusplus
14353extern "C"
14354#endif
14355char dld_link ();
14356int
14357main ()
14358{
14359return dld_link ();
14360 ;
14361 return 0;
14362}
14363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014365 ac_cv_lib_dld_dld_link=yes
14366else
cristy8b350f62009-11-15 23:12:43 +000014367 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000014368fi
cristy8b350f62009-11-15 23:12:43 +000014369rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014371LIBS=$ac_check_lib_save_LIBS
14372fi
cristy8b350f62009-11-15 23:12:43 +000014373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000014374$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014375if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014376 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14377fi
14378
14379
14380fi
14381
14382
14383fi
14384
14385
14386fi
14387
14388
14389fi
14390
14391
14392fi
14393
14394 ;;
14395 esac
14396
14397 if test "x$lt_cv_dlopen" != xno; then
14398 enable_dlopen=yes
14399 else
14400 enable_dlopen=no
14401 fi
14402
14403 case $lt_cv_dlopen in
14404 dlopen)
14405 save_CPPFLAGS="$CPPFLAGS"
14406 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14407
14408 save_LDFLAGS="$LDFLAGS"
14409 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14410
14411 save_LIBS="$LIBS"
14412 LIBS="$lt_cv_dlopen_libs $LIBS"
14413
cristy8b350f62009-11-15 23:12:43 +000014414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014415$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014416if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014417 $as_echo_n "(cached) " >&6
14418else
14419 if test "$cross_compiling" = yes; then :
14420 lt_cv_dlopen_self=cross
14421else
14422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14423 lt_status=$lt_dlunknown
14424 cat > conftest.$ac_ext <<_LT_EOF
cristy18304f92009-11-22 15:48:26 +000014425#line 14425 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014426#include "confdefs.h"
14427
14428#if HAVE_DLFCN_H
14429#include <dlfcn.h>
14430#endif
14431
14432#include <stdio.h>
14433
14434#ifdef RTLD_GLOBAL
14435# define LT_DLGLOBAL RTLD_GLOBAL
14436#else
14437# ifdef DL_GLOBAL
14438# define LT_DLGLOBAL DL_GLOBAL
14439# else
14440# define LT_DLGLOBAL 0
14441# endif
14442#endif
14443
14444/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14445 find out it does not work in some platform. */
14446#ifndef LT_DLLAZY_OR_NOW
14447# ifdef RTLD_LAZY
14448# define LT_DLLAZY_OR_NOW RTLD_LAZY
14449# else
14450# ifdef DL_LAZY
14451# define LT_DLLAZY_OR_NOW DL_LAZY
14452# else
14453# ifdef RTLD_NOW
14454# define LT_DLLAZY_OR_NOW RTLD_NOW
14455# else
14456# ifdef DL_NOW
14457# define LT_DLLAZY_OR_NOW DL_NOW
14458# else
14459# define LT_DLLAZY_OR_NOW 0
14460# endif
14461# endif
14462# endif
14463# endif
14464#endif
14465
cristy18304f92009-11-22 15:48:26 +000014466void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014467int main ()
14468{
14469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14470 int status = $lt_dlunknown;
14471
14472 if (self)
14473 {
14474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014475 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014476 /* dlclose (self); */
14477 }
14478 else
14479 puts (dlerror ());
14480
14481 return status;
14482}
14483_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014485 (eval $ac_link) 2>&5
14486 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14488 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014489 (./conftest; exit; ) >&5 2>/dev/null
14490 lt_status=$?
14491 case x$lt_status in
14492 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14493 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14494 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14495 esac
14496 else :
14497 # compilation failed
14498 lt_cv_dlopen_self=no
14499 fi
14500fi
14501rm -fr conftest*
14502
14503
14504fi
cristy8b350f62009-11-15 23:12:43 +000014505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014506$as_echo "$lt_cv_dlopen_self" >&6; }
14507
14508 if test "x$lt_cv_dlopen_self" = xyes; then
14509 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014511$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014512if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014513 $as_echo_n "(cached) " >&6
14514else
14515 if test "$cross_compiling" = yes; then :
14516 lt_cv_dlopen_self_static=cross
14517else
14518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14519 lt_status=$lt_dlunknown
14520 cat > conftest.$ac_ext <<_LT_EOF
cristy18304f92009-11-22 15:48:26 +000014521#line 14521 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014522#include "confdefs.h"
14523
14524#if HAVE_DLFCN_H
14525#include <dlfcn.h>
14526#endif
14527
14528#include <stdio.h>
14529
14530#ifdef RTLD_GLOBAL
14531# define LT_DLGLOBAL RTLD_GLOBAL
14532#else
14533# ifdef DL_GLOBAL
14534# define LT_DLGLOBAL DL_GLOBAL
14535# else
14536# define LT_DLGLOBAL 0
14537# endif
14538#endif
14539
14540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14541 find out it does not work in some platform. */
14542#ifndef LT_DLLAZY_OR_NOW
14543# ifdef RTLD_LAZY
14544# define LT_DLLAZY_OR_NOW RTLD_LAZY
14545# else
14546# ifdef DL_LAZY
14547# define LT_DLLAZY_OR_NOW DL_LAZY
14548# else
14549# ifdef RTLD_NOW
14550# define LT_DLLAZY_OR_NOW RTLD_NOW
14551# else
14552# ifdef DL_NOW
14553# define LT_DLLAZY_OR_NOW DL_NOW
14554# else
14555# define LT_DLLAZY_OR_NOW 0
14556# endif
14557# endif
14558# endif
14559# endif
14560#endif
14561
cristy18304f92009-11-22 15:48:26 +000014562void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014563int main ()
14564{
14565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14566 int status = $lt_dlunknown;
14567
14568 if (self)
14569 {
14570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014571 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014572 /* dlclose (self); */
14573 }
14574 else
14575 puts (dlerror ());
14576
14577 return status;
14578}
14579_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014581 (eval $ac_link) 2>&5
14582 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014585 (./conftest; exit; ) >&5 2>/dev/null
14586 lt_status=$?
14587 case x$lt_status in
14588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14590 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14591 esac
14592 else :
14593 # compilation failed
14594 lt_cv_dlopen_self_static=no
14595 fi
14596fi
14597rm -fr conftest*
14598
14599
14600fi
cristy8b350f62009-11-15 23:12:43 +000014601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014602$as_echo "$lt_cv_dlopen_self_static" >&6; }
14603 fi
14604
14605 CPPFLAGS="$save_CPPFLAGS"
14606 LDFLAGS="$save_LDFLAGS"
14607 LIBS="$save_LIBS"
14608 ;;
14609 esac
14610
14611 case $lt_cv_dlopen_self in
14612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14613 *) enable_dlopen_self=unknown ;;
14614 esac
14615
14616 case $lt_cv_dlopen_self_static in
14617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14618 *) enable_dlopen_self_static=unknown ;;
14619 esac
14620fi
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638striplib=
14639old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014641$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14642if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014646$as_echo "yes" >&6; }
14647else
14648# FIXME - insert some real tests, host_os isn't really good enough
14649 case $host_os in
14650 darwin*)
14651 if test -n "$STRIP" ; then
14652 striplib="$STRIP -x"
14653 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014655$as_echo "yes" >&6; }
14656 else
cristy8b350f62009-11-15 23:12:43 +000014657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014658$as_echo "no" >&6; }
14659 fi
14660 ;;
14661 *)
cristy8b350f62009-11-15 23:12:43 +000014662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014663$as_echo "no" >&6; }
14664 ;;
14665 esac
14666fi
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014681$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014683$as_echo "$can_build_shared" >&6; }
14684
cristy8b350f62009-11-15 23:12:43 +000014685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014686$as_echo_n "checking whether to build shared libraries... " >&6; }
14687 test "$can_build_shared" = "no" && enable_shared=no
14688
14689 # On AIX, shared libraries and static libraries use the same namespace, and
14690 # are all built from PIC.
14691 case $host_os in
14692 aix3*)
14693 test "$enable_shared" = yes && enable_static=no
14694 if test -n "$RANLIB"; then
14695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14696 postinstall_cmds='$RANLIB $lib'
14697 fi
14698 ;;
14699
14700 aix[4-9]*)
14701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14702 test "$enable_shared" = yes && enable_static=no
14703 fi
14704 ;;
14705 esac
cristy8b350f62009-11-15 23:12:43 +000014706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014707$as_echo "$enable_shared" >&6; }
14708
cristy8b350f62009-11-15 23:12:43 +000014709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014710$as_echo_n "checking whether to build static libraries... " >&6; }
14711 # Make sure either enable_shared or enable_static is yes.
14712 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014714$as_echo "$enable_static" >&6; }
14715
14716
14717
14718
14719fi
14720ac_ext=c
14721ac_cpp='$CPP $CPPFLAGS'
14722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14724ac_compiler_gnu=$ac_cv_c_compiler_gnu
14725
14726CC="$lt_save_CC"
14727
14728
14729ac_ext=cpp
14730ac_cpp='$CXXCPP $CPPFLAGS'
14731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14734
14735archive_cmds_need_lc_CXX=no
14736allow_undefined_flag_CXX=
14737always_export_symbols_CXX=no
14738archive_expsym_cmds_CXX=
14739compiler_needs_object_CXX=no
14740export_dynamic_flag_spec_CXX=
14741hardcode_direct_CXX=no
14742hardcode_direct_absolute_CXX=no
14743hardcode_libdir_flag_spec_CXX=
14744hardcode_libdir_flag_spec_ld_CXX=
14745hardcode_libdir_separator_CXX=
14746hardcode_minus_L_CXX=no
14747hardcode_shlibpath_var_CXX=unsupported
14748hardcode_automatic_CXX=no
14749inherit_rpath_CXX=no
14750module_cmds_CXX=
14751module_expsym_cmds_CXX=
14752link_all_deplibs_CXX=unknown
14753old_archive_cmds_CXX=$old_archive_cmds
14754no_undefined_flag_CXX=
14755whole_archive_flag_spec_CXX=
14756enable_shared_with_static_runtimes_CXX=no
14757
14758# Source file extension for C++ test sources.
14759ac_ext=cpp
14760
14761# Object file extension for compiled C++ test sources.
14762objext=o
14763objext_CXX=$objext
14764
14765# No sense in running all these tests if we already determined that
14766# the CXX compiler isn't working. Some variables (like enable_shared)
14767# are currently assumed to apply to all compilers on this platform,
14768# and will be corrupted by setting them based on a non-working compiler.
14769if test "$_lt_caught_CXX_error" != yes; then
14770 # Code to be used in simple compile tests
14771 lt_simple_compile_test_code="int some_variable = 0;"
14772
14773 # Code to be used in simple link tests
14774 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14775
14776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14777
14778
14779
14780
14781
14782
14783# If no C compiler was specified, use CC.
14784LTCC=${LTCC-"$CC"}
14785
14786# If no C compiler flags were specified, use CFLAGS.
14787LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14788
14789# Allow CC to be a program name with arguments.
14790compiler=$CC
14791
14792
14793 # save warnings/boilerplate of simple test code
14794 ac_outfile=conftest.$ac_objext
14795echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14796eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14797_lt_compiler_boilerplate=`cat conftest.err`
14798$RM conftest*
14799
14800 ac_outfile=conftest.$ac_objext
14801echo "$lt_simple_link_test_code" >conftest.$ac_ext
14802eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14803_lt_linker_boilerplate=`cat conftest.err`
14804$RM -r conftest*
14805
14806
14807 # Allow CC to be a program name with arguments.
14808 lt_save_CC=$CC
14809 lt_save_LD=$LD
14810 lt_save_GCC=$GCC
14811 GCC=$GXX
14812 lt_save_with_gnu_ld=$with_gnu_ld
14813 lt_save_path_LD=$lt_cv_path_LD
14814 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14815 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14816 else
14817 $as_unset lt_cv_prog_gnu_ld
14818 fi
14819 if test -n "${lt_cv_path_LDCXX+set}"; then
14820 lt_cv_path_LD=$lt_cv_path_LDCXX
14821 else
14822 $as_unset lt_cv_path_LD
14823 fi
14824 test -z "${LDCXX+set}" || LD=$LDCXX
14825 CC=${CXX-"c++"}
14826 compiler=$CC
14827 compiler_CXX=$CC
14828 for cc_temp in $compiler""; do
14829 case $cc_temp in
14830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14832 \-*) ;;
14833 *) break;;
14834 esac
14835done
cristy18304f92009-11-22 15:48:26 +000014836cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014837
14838
14839 if test -n "$compiler"; then
14840 # We don't want -fno-exception when compiling C++ code, so set the
14841 # no_builtin_flag separately
14842 if test "$GXX" = yes; then
14843 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14844 else
14845 lt_prog_compiler_no_builtin_flag_CXX=
14846 fi
14847
14848 if test "$GXX" = yes; then
14849 # Set up default GNU C++ configuration
14850
14851
14852
14853# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014854if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014855 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14856else
14857 with_gnu_ld=no
14858fi
14859
14860ac_prog=ld
14861if test "$GCC" = yes; then
14862 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014864$as_echo_n "checking for ld used by $CC... " >&6; }
14865 case $host in
14866 *-*-mingw*)
14867 # gcc leaves a trailing carriage return which upsets mingw
14868 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14869 *)
14870 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14871 esac
14872 case $ac_prog in
14873 # Accept absolute paths.
14874 [\\/]* | ?:[\\/]*)
14875 re_direlt='/[^/][^/]*/\.\./'
14876 # Canonicalize the pathname of ld
14877 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14878 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14879 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14880 done
14881 test -z "$LD" && LD="$ac_prog"
14882 ;;
14883 "")
14884 # If it fails, then pretend we aren't using GCC.
14885 ac_prog=ld
14886 ;;
14887 *)
14888 # If it is relative, then search for the first ld in PATH.
14889 with_gnu_ld=unknown
14890 ;;
14891 esac
14892elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014894$as_echo_n "checking for GNU ld... " >&6; }
14895else
cristy8b350f62009-11-15 23:12:43 +000014896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014897$as_echo_n "checking for non-GNU ld... " >&6; }
14898fi
cristy8b350f62009-11-15 23:12:43 +000014899if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014900 $as_echo_n "(cached) " >&6
14901else
14902 if test -z "$LD"; then
14903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14904 for ac_dir in $PATH; do
14905 IFS="$lt_save_ifs"
14906 test -z "$ac_dir" && ac_dir=.
14907 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14908 lt_cv_path_LD="$ac_dir/$ac_prog"
14909 # Check to see if the program is GNU ld. I'd rather use --version,
14910 # but apparently some variants of GNU ld only accept -v.
14911 # Break only if it was the GNU/non-GNU ld that we prefer.
14912 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14913 *GNU* | *'with BFD'*)
14914 test "$with_gnu_ld" != no && break
14915 ;;
14916 *)
14917 test "$with_gnu_ld" != yes && break
14918 ;;
14919 esac
14920 fi
14921 done
14922 IFS="$lt_save_ifs"
14923else
14924 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14925fi
14926fi
14927
14928LD="$lt_cv_path_LD"
14929if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014931$as_echo "$LD" >&6; }
14932else
cristy8b350f62009-11-15 23:12:43 +000014933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014934$as_echo "no" >&6; }
14935fi
cristy8b350f62009-11-15 23:12:43 +000014936test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014938$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014939if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014940 $as_echo_n "(cached) " >&6
14941else
14942 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14943case `$LD -v 2>&1 </dev/null` in
14944*GNU* | *'with BFD'*)
14945 lt_cv_prog_gnu_ld=yes
14946 ;;
14947*)
14948 lt_cv_prog_gnu_ld=no
14949 ;;
14950esac
14951fi
cristy8b350f62009-11-15 23:12:43 +000014952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014953$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14954with_gnu_ld=$lt_cv_prog_gnu_ld
14955
14956
14957
14958
14959
14960
14961
14962 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14963 # archiving commands below assume that GNU ld is being used.
14964 if test "$with_gnu_ld" = yes; then
14965 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 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'
14967
14968 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14969 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14970
14971 # If archive_cmds runs LD, not CC, wlarc should be empty
14972 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14973 # investigate it a little bit more. (MM)
14974 wlarc='${wl}'
14975
14976 # ancient GNU ld didn't support --whole-archive et. al.
14977 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14978 $GREP 'no-whole-archive' > /dev/null; then
14979 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14980 else
14981 whole_archive_flag_spec_CXX=
14982 fi
14983 else
14984 with_gnu_ld=no
14985 wlarc=
14986
14987 # A generic and very simple default shared library creation
14988 # command for GNU C++ for the case where it uses the native
14989 # linker, instead of GNU ld. If possible, this setting should
14990 # overridden to take advantage of the native linker features on
14991 # the platform it is being used on.
14992 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14993 fi
14994
14995 # Commands to make compiler produce verbose output that lists
14996 # what "hidden" libraries, object files and flags are used when
14997 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000014998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000014999
15000 else
15001 GXX=no
15002 with_gnu_ld=no
15003 wlarc=
15004 fi
15005
15006 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015008$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15009 ld_shlibs_CXX=yes
15010 case $host_os in
15011 aix3*)
15012 # FIXME: insert proper C++ library support
15013 ld_shlibs_CXX=no
15014 ;;
15015 aix[4-9]*)
15016 if test "$host_cpu" = ia64; then
15017 # On IA64, the linker does run time linking by default, so we don't
15018 # have to do anything special.
15019 aix_use_runtimelinking=no
15020 exp_sym_flag='-Bexport'
15021 no_entry_flag=""
15022 else
15023 aix_use_runtimelinking=no
15024
15025 # Test if we are trying to use run time linking or normal
15026 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15027 # need to do runtime linking.
15028 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15029 for ld_flag in $LDFLAGS; do
15030 case $ld_flag in
15031 *-brtl*)
15032 aix_use_runtimelinking=yes
15033 break
15034 ;;
15035 esac
15036 done
15037 ;;
15038 esac
15039
15040 exp_sym_flag='-bexport'
15041 no_entry_flag='-bnoentry'
15042 fi
15043
15044 # When large executables or shared objects are built, AIX ld can
15045 # have problems creating the table of contents. If linking a library
15046 # or program results in "error TOC overflow" add -mminimal-toc to
15047 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15048 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15049
15050 archive_cmds_CXX=''
15051 hardcode_direct_CXX=yes
15052 hardcode_direct_absolute_CXX=yes
15053 hardcode_libdir_separator_CXX=':'
15054 link_all_deplibs_CXX=yes
15055 file_list_spec_CXX='${wl}-f,'
15056
15057 if test "$GXX" = yes; then
15058 case $host_os in aix4.[012]|aix4.[012].*)
15059 # We only want to do this on AIX 4.2 and lower, the check
15060 # below for broken collect2 doesn't work under 4.3+
15061 collect2name=`${CC} -print-prog-name=collect2`
15062 if test -f "$collect2name" &&
15063 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15064 then
15065 # We have reworked collect2
15066 :
15067 else
15068 # We have old collect2
15069 hardcode_direct_CXX=unsupported
15070 # It fails to find uninstalled libraries when the uninstalled
15071 # path is not listed in the libpath. Setting hardcode_minus_L
15072 # to unsupported forces relinking
15073 hardcode_minus_L_CXX=yes
15074 hardcode_libdir_flag_spec_CXX='-L$libdir'
15075 hardcode_libdir_separator_CXX=
15076 fi
15077 esac
15078 shared_flag='-shared'
15079 if test "$aix_use_runtimelinking" = yes; then
15080 shared_flag="$shared_flag "'${wl}-G'
15081 fi
15082 else
15083 # not using gcc
15084 if test "$host_cpu" = ia64; then
15085 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15086 # chokes on -Wl,-G. The following line is correct:
15087 shared_flag='-G'
15088 else
15089 if test "$aix_use_runtimelinking" = yes; then
15090 shared_flag='${wl}-G'
15091 else
15092 shared_flag='${wl}-bM:SRE'
15093 fi
15094 fi
15095 fi
15096
15097 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15098 # It seems that -bexpall does not export symbols beginning with
15099 # underscore (_), so it is better to generate a list of symbols to
15100 # export.
15101 always_export_symbols_CXX=yes
15102 if test "$aix_use_runtimelinking" = yes; then
15103 # Warning - without using the other runtime loading flags (-brtl),
15104 # -berok will link without error, but may produce a broken library.
15105 allow_undefined_flag_CXX='-berok'
15106 # Determine the default libpath from the value encoded in an empty
15107 # executable.
cristy8b350f62009-11-15 23:12:43 +000015108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015109/* end confdefs.h. */
15110
15111int
15112main ()
15113{
15114
15115 ;
15116 return 0;
15117}
15118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015119if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015120
15121lt_aix_libpath_sed='
15122 /Import File Strings/,/^$/ {
15123 /^0/ {
15124 s/^0 *\(.*\)$/\1/
15125 p
15126 }
15127 }'
15128aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15129# Check for a 64-bit object if we didn't find anything.
15130if test -z "$aix_libpath"; then
15131 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15132fi
cristy3ed852e2009-09-05 21:47:34 +000015133fi
cristy8b350f62009-11-15 23:12:43 +000015134rm -f core conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15137
15138 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15139
cristy18304f92009-11-22 15:48:26 +000015140 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 +000015141 else
15142 if test "$host_cpu" = ia64; then
15143 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15144 allow_undefined_flag_CXX="-z nodefs"
15145 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"
15146 else
15147 # Determine the default libpath from the value encoded in an
15148 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015150/* end confdefs.h. */
15151
15152int
15153main ()
15154{
15155
15156 ;
15157 return 0;
15158}
15159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015160if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015161
15162lt_aix_libpath_sed='
15163 /Import File Strings/,/^$/ {
15164 /^0/ {
15165 s/^0 *\(.*\)$/\1/
15166 p
15167 }
15168 }'
15169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15170# Check for a 64-bit object if we didn't find anything.
15171if test -z "$aix_libpath"; then
15172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15173fi
cristy3ed852e2009-09-05 21:47:34 +000015174fi
cristy8b350f62009-11-15 23:12:43 +000015175rm -f core conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15178
15179 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15180 # Warning - without using the other run time loading flags,
15181 # -berok will link without error, but may produce a broken library.
15182 no_undefined_flag_CXX=' ${wl}-bernotok'
15183 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015184 # Exported symbols can be pulled into shared objects from archives
15185 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015186 archive_cmds_need_lc_CXX=yes
15187 # This is similar to how AIX traditionally builds its shared
15188 # libraries.
15189 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'
15190 fi
15191 fi
15192 ;;
15193
15194 beos*)
15195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15196 allow_undefined_flag_CXX=unsupported
15197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15198 # support --undefined. This deserves some investigation. FIXME
15199 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15200 else
15201 ld_shlibs_CXX=no
15202 fi
15203 ;;
15204
15205 chorus*)
15206 case $cc_basename in
15207 *)
15208 # FIXME: insert proper C++ library support
15209 ld_shlibs_CXX=no
15210 ;;
15211 esac
15212 ;;
15213
15214 cygwin* | mingw* | pw32* | cegcc*)
15215 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15216 # as there is no search path for DLLs.
15217 hardcode_libdir_flag_spec_CXX='-L$libdir'
15218 allow_undefined_flag_CXX=unsupported
15219 always_export_symbols_CXX=no
15220 enable_shared_with_static_runtimes_CXX=yes
15221
15222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15223 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'
15224 # If the export-symbols file already is a .def file (1st line
15225 # is EXPORTS), use it as is; otherwise, prepend...
15226 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15227 cp $export_symbols $output_objdir/$soname.def;
15228 else
15229 echo EXPORTS > $output_objdir/$soname.def;
15230 cat $export_symbols >> $output_objdir/$soname.def;
15231 fi~
15232 $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'
15233 else
15234 ld_shlibs_CXX=no
15235 fi
15236 ;;
15237 darwin* | rhapsody*)
15238
15239
15240 archive_cmds_need_lc_CXX=no
15241 hardcode_direct_CXX=no
15242 hardcode_automatic_CXX=yes
15243 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015244 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015245 link_all_deplibs_CXX=yes
15246 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15247 case $cc_basename in
15248 ifort*) _lt_dar_can_shared=yes ;;
15249 *) _lt_dar_can_shared=$GCC ;;
15250 esac
15251 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015252 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015253 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}"
15254 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15255 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}"
15256 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}"
15257 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15258 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}"
15259 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}"
15260 fi
15261
15262 else
15263 ld_shlibs_CXX=no
15264 fi
15265
15266 ;;
15267
15268 dgux*)
15269 case $cc_basename in
15270 ec++*)
15271 # FIXME: insert proper C++ library support
15272 ld_shlibs_CXX=no
15273 ;;
15274 ghcx*)
15275 # Green Hills C++ Compiler
15276 # FIXME: insert proper C++ library support
15277 ld_shlibs_CXX=no
15278 ;;
15279 *)
15280 # FIXME: insert proper C++ library support
15281 ld_shlibs_CXX=no
15282 ;;
15283 esac
15284 ;;
15285
15286 freebsd[12]*)
15287 # C++ shared libraries reported to be fairly broken before
15288 # switch to ELF
15289 ld_shlibs_CXX=no
15290 ;;
15291
15292 freebsd-elf*)
15293 archive_cmds_need_lc_CXX=no
15294 ;;
15295
15296 freebsd* | dragonfly*)
15297 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15298 # conventions
15299 ld_shlibs_CXX=yes
15300 ;;
15301
15302 gnu*)
15303 ;;
15304
15305 hpux9*)
15306 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15307 hardcode_libdir_separator_CXX=:
15308 export_dynamic_flag_spec_CXX='${wl}-E'
15309 hardcode_direct_CXX=yes
15310 hardcode_minus_L_CXX=yes # Not in the search PATH,
15311 # but as the default
15312 # location of the library.
15313
15314 case $cc_basename in
15315 CC*)
15316 # FIXME: insert proper C++ library support
15317 ld_shlibs_CXX=no
15318 ;;
15319 aCC*)
15320 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'
15321 # Commands to make compiler produce verbose output that lists
15322 # what "hidden" libraries, object files and flags are used when
15323 # linking a shared library.
15324 #
15325 # There doesn't appear to be a way to prevent this compiler from
15326 # explicitly linking system object files so we need to strip them
15327 # from the output so that they don't get included in the library
15328 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015329 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 +000015330 ;;
15331 *)
15332 if test "$GXX" = yes; then
15333 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'
15334 else
15335 # FIXME: insert proper C++ library support
15336 ld_shlibs_CXX=no
15337 fi
15338 ;;
15339 esac
15340 ;;
15341
15342 hpux10*|hpux11*)
15343 if test $with_gnu_ld = no; then
15344 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15345 hardcode_libdir_separator_CXX=:
15346
15347 case $host_cpu in
15348 hppa*64*|ia64*)
15349 ;;
15350 *)
15351 export_dynamic_flag_spec_CXX='${wl}-E'
15352 ;;
15353 esac
15354 fi
15355 case $host_cpu in
15356 hppa*64*|ia64*)
15357 hardcode_direct_CXX=no
15358 hardcode_shlibpath_var_CXX=no
15359 ;;
15360 *)
15361 hardcode_direct_CXX=yes
15362 hardcode_direct_absolute_CXX=yes
15363 hardcode_minus_L_CXX=yes # Not in the search PATH,
15364 # but as the default
15365 # location of the library.
15366 ;;
15367 esac
15368
15369 case $cc_basename in
15370 CC*)
15371 # FIXME: insert proper C++ library support
15372 ld_shlibs_CXX=no
15373 ;;
15374 aCC*)
15375 case $host_cpu in
15376 hppa*64*)
15377 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15378 ;;
15379 ia64*)
15380 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15381 ;;
15382 *)
15383 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15384 ;;
15385 esac
15386 # Commands to make compiler produce verbose output that lists
15387 # what "hidden" libraries, object files and flags are used when
15388 # linking a shared library.
15389 #
15390 # There doesn't appear to be a way to prevent this compiler from
15391 # explicitly linking system object files so we need to strip them
15392 # from the output so that they don't get included in the library
15393 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015394 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 +000015395 ;;
15396 *)
15397 if test "$GXX" = yes; then
15398 if test $with_gnu_ld = no; then
15399 case $host_cpu in
15400 hppa*64*)
15401 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15402 ;;
15403 ia64*)
15404 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15405 ;;
15406 *)
15407 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'
15408 ;;
15409 esac
15410 fi
15411 else
15412 # FIXME: insert proper C++ library support
15413 ld_shlibs_CXX=no
15414 fi
15415 ;;
15416 esac
15417 ;;
15418
15419 interix[3-9]*)
15420 hardcode_direct_CXX=no
15421 hardcode_shlibpath_var_CXX=no
15422 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15423 export_dynamic_flag_spec_CXX='${wl}-E'
15424 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15425 # Instead, shared libraries are loaded at an image base (0x10000000 by
15426 # default) and relocated if they conflict, which is a slow very memory
15427 # consuming and fragmenting process. To avoid this, we pick a random,
15428 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15429 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15430 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'
15431 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'
15432 ;;
15433 irix5* | irix6*)
15434 case $cc_basename in
15435 CC*)
15436 # SGI C++
cristy18304f92009-11-22 15:48:26 +000015437 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 +000015438
15439 # Archives containing C++ object files must be created using
15440 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15441 # necessary to make sure instantiated templates are included
15442 # in the archive.
15443 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15444 ;;
15445 *)
15446 if test "$GXX" = yes; then
15447 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000015448 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 +000015449 else
cristy18304f92009-11-22 15:48:26 +000015450 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 +000015451 fi
15452 fi
15453 link_all_deplibs_CXX=yes
15454 ;;
15455 esac
15456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15457 hardcode_libdir_separator_CXX=:
15458 inherit_rpath_CXX=yes
15459 ;;
15460
cristy18304f92009-11-22 15:48:26 +000015461 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015462 case $cc_basename in
15463 KCC*)
15464 # Kuck and Associates, Inc. (KAI) C++ Compiler
15465
15466 # KCC will only create a shared library if the output file
15467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15468 # to its proper name (with version) after linking.
15469 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'
15470 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'
15471 # Commands to make compiler produce verbose output that lists
15472 # what "hidden" libraries, object files and flags are used when
15473 # linking a shared library.
15474 #
15475 # There doesn't appear to be a way to prevent this compiler from
15476 # explicitly linking system object files so we need to strip them
15477 # from the output so that they don't get included in the library
15478 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015479 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 +000015480
15481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15483
15484 # Archives containing C++ object files must be created using
15485 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15486 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15487 ;;
15488 icpc* | ecpc* )
15489 # Intel C++
15490 with_gnu_ld=yes
15491 # version 8.0 and above of icpc choke on multiply defined symbols
15492 # if we add $predep_objects and $postdep_objects, however 7.1 and
15493 # earlier do not add the objects themselves.
15494 case `$CC -V 2>&1` in
15495 *"Version 7."*)
15496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497 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'
15498 ;;
15499 *) # Version 8.0 or newer
15500 tmp_idyn=
15501 case $host_cpu in
15502 ia64*) tmp_idyn=' -i_dynamic';;
15503 esac
15504 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505 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'
15506 ;;
15507 esac
15508 archive_cmds_need_lc_CXX=no
15509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15511 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15512 ;;
15513 pgCC* | pgcpp*)
15514 # Portland Group C++ compiler
15515 case `$CC -V` in
15516 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15517 prelink_cmds_CXX='tpldir=Template.dir~
15518 rm -rf $tpldir~
15519 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15520 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15521 old_archive_cmds_CXX='tpldir=Template.dir~
15522 rm -rf $tpldir~
15523 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15524 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15525 $RANLIB $oldlib'
15526 archive_cmds_CXX='tpldir=Template.dir~
15527 rm -rf $tpldir~
15528 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15529 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15530 archive_expsym_cmds_CXX='tpldir=Template.dir~
15531 rm -rf $tpldir~
15532 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15533 $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'
15534 ;;
15535 *) # Version 6 will use weak symbols
15536 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15537 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'
15538 ;;
15539 esac
15540
15541 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000015543 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 +000015544 ;;
15545 cxx*)
15546 # Compaq C++
15547 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15548 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'
15549
15550 runpath_var=LD_RUN_PATH
15551 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15552 hardcode_libdir_separator_CXX=:
15553
15554 # Commands to make compiler produce verbose output that lists
15555 # what "hidden" libraries, object files and flags are used when
15556 # linking a shared library.
15557 #
15558 # There doesn't appear to be a way to prevent this compiler from
15559 # explicitly linking system object files so we need to strip them
15560 # from the output so that they don't get included in the library
15561 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015562 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 +000015563 ;;
cristy18304f92009-11-22 15:48:26 +000015564 xl*)
cristy3ed852e2009-09-05 21:47:34 +000015565 # IBM XL 8.0 on PPC, with GNU ld
15566 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15567 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15568 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15569 if test "x$supports_anon_versioning" = xyes; then
15570 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15572 echo "local: *; };" >> $output_objdir/$libname.ver~
15573 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15574 fi
15575 ;;
15576 *)
15577 case `$CC -V 2>&1 | sed 5q` in
15578 *Sun\ C*)
15579 # Sun C++ 5.9
15580 no_undefined_flag_CXX=' -zdefs'
15581 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15582 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'
15583 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000015584 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 +000015585 compiler_needs_object_CXX=yes
15586
15587 # Not sure whether something based on
15588 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15589 # would be better.
cristy18304f92009-11-22 15:48:26 +000015590 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015591
15592 # Archives containing C++ object files must be created using
15593 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15594 # necessary to make sure instantiated templates are included
15595 # in the archive.
15596 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15597 ;;
15598 esac
15599 ;;
15600 esac
15601 ;;
15602
15603 lynxos*)
15604 # FIXME: insert proper C++ library support
15605 ld_shlibs_CXX=no
15606 ;;
15607
15608 m88k*)
15609 # FIXME: insert proper C++ library support
15610 ld_shlibs_CXX=no
15611 ;;
15612
15613 mvs*)
15614 case $cc_basename in
15615 cxx*)
15616 # FIXME: insert proper C++ library support
15617 ld_shlibs_CXX=no
15618 ;;
15619 *)
15620 # FIXME: insert proper C++ library support
15621 ld_shlibs_CXX=no
15622 ;;
15623 esac
15624 ;;
15625
15626 netbsd*)
15627 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15628 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15629 wlarc=
15630 hardcode_libdir_flag_spec_CXX='-R$libdir'
15631 hardcode_direct_CXX=yes
15632 hardcode_shlibpath_var_CXX=no
15633 fi
15634 # Workaround some broken pre-1.5 toolchains
15635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15636 ;;
15637
15638 *nto* | *qnx*)
15639 ld_shlibs_CXX=yes
15640 ;;
15641
15642 openbsd2*)
15643 # C++ shared libraries are fairly broken
15644 ld_shlibs_CXX=no
15645 ;;
15646
15647 openbsd*)
15648 if test -f /usr/libexec/ld.so; then
15649 hardcode_direct_CXX=yes
15650 hardcode_shlibpath_var_CXX=no
15651 hardcode_direct_absolute_CXX=yes
15652 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15655 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15656 export_dynamic_flag_spec_CXX='${wl}-E'
15657 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15658 fi
cristy18304f92009-11-22 15:48:26 +000015659 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015660 else
15661 ld_shlibs_CXX=no
15662 fi
15663 ;;
15664
15665 osf3* | osf4* | osf5*)
15666 case $cc_basename in
15667 KCC*)
15668 # Kuck and Associates, Inc. (KAI) C++ Compiler
15669
15670 # KCC will only create a shared library if the output file
15671 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15672 # to its proper name (with version) after linking.
15673 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'
15674
15675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15676 hardcode_libdir_separator_CXX=:
15677
15678 # Archives containing C++ object files must be created using
15679 # the KAI C++ compiler.
15680 case $host in
15681 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15682 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15683 esac
15684 ;;
15685 RCC*)
15686 # Rational C++ 2.4.1
15687 # FIXME: insert proper C++ library support
15688 ld_shlibs_CXX=no
15689 ;;
15690 cxx*)
15691 case $host in
15692 osf3*)
15693 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000015694 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 +000015695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15696 ;;
15697 *)
15698 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000015699 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 +000015700 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15701 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000015702 $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 +000015703 $RM $lib.exp'
15704 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15705 ;;
15706 esac
15707
15708 hardcode_libdir_separator_CXX=:
15709
15710 # Commands to make compiler produce verbose output that lists
15711 # what "hidden" libraries, object files and flags are used when
15712 # linking a shared library.
15713 #
15714 # There doesn't appear to be a way to prevent this compiler from
15715 # explicitly linking system object files so we need to strip them
15716 # from the output so that they don't get included in the library
15717 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015718 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 +000015719 ;;
15720 *)
15721 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15722 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15723 case $host in
15724 osf3*)
cristy18304f92009-11-22 15:48:26 +000015725 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 +000015726 ;;
15727 *)
cristy18304f92009-11-22 15:48:26 +000015728 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 +000015729 ;;
15730 esac
15731
15732 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15733 hardcode_libdir_separator_CXX=:
15734
15735 # Commands to make compiler produce verbose output that lists
15736 # what "hidden" libraries, object files and flags are used when
15737 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015739
15740 else
15741 # FIXME: insert proper C++ library support
15742 ld_shlibs_CXX=no
15743 fi
15744 ;;
15745 esac
15746 ;;
15747
15748 psos*)
15749 # FIXME: insert proper C++ library support
15750 ld_shlibs_CXX=no
15751 ;;
15752
15753 sunos4*)
15754 case $cc_basename in
15755 CC*)
15756 # Sun C++ 4.x
15757 # FIXME: insert proper C++ library support
15758 ld_shlibs_CXX=no
15759 ;;
15760 lcc*)
15761 # Lucid
15762 # FIXME: insert proper C++ library support
15763 ld_shlibs_CXX=no
15764 ;;
15765 *)
15766 # FIXME: insert proper C++ library support
15767 ld_shlibs_CXX=no
15768 ;;
15769 esac
15770 ;;
15771
15772 solaris*)
15773 case $cc_basename in
15774 CC*)
15775 # Sun C++ 4.2, 5.x and Centerline C++
15776 archive_cmds_need_lc_CXX=yes
15777 no_undefined_flag_CXX=' -zdefs'
15778 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15779 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15780 $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'
15781
15782 hardcode_libdir_flag_spec_CXX='-R$libdir'
15783 hardcode_shlibpath_var_CXX=no
15784 case $host_os in
15785 solaris2.[0-5] | solaris2.[0-5].*) ;;
15786 *)
15787 # The compiler driver will combine and reorder linker options,
15788 # but understands `-z linker_flag'.
15789 # Supported since Solaris 2.6 (maybe 2.5.1?)
15790 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15791 ;;
15792 esac
15793 link_all_deplibs_CXX=yes
15794
cristy18304f92009-11-22 15:48:26 +000015795 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015796
15797 # Archives containing C++ object files must be created using
15798 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15799 # necessary to make sure instantiated templates are included
15800 # in the archive.
15801 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15802 ;;
15803 gcx*)
15804 # Green Hills C++ Compiler
15805 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15806
15807 # The C++ compiler must be used to create the archive.
15808 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15809 ;;
15810 *)
15811 # GNU C++ compiler with Solaris linker
15812 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15813 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15814 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15815 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15817 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15818
15819 # Commands to make compiler produce verbose output that lists
15820 # what "hidden" libraries, object files and flags are used when
15821 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015823 else
15824 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15825 # platform.
15826 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15827 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15828 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15829
15830 # Commands to make compiler produce verbose output that lists
15831 # what "hidden" libraries, object files and flags are used when
15832 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015833 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015834 fi
15835
15836 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15837 case $host_os in
15838 solaris2.[0-5] | solaris2.[0-5].*) ;;
15839 *)
15840 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15841 ;;
15842 esac
15843 fi
15844 ;;
15845 esac
15846 ;;
15847
15848 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15849 no_undefined_flag_CXX='${wl}-z,text'
15850 archive_cmds_need_lc_CXX=no
15851 hardcode_shlibpath_var_CXX=no
15852 runpath_var='LD_RUN_PATH'
15853
15854 case $cc_basename in
15855 CC*)
15856 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15857 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15858 ;;
15859 *)
15860 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 ;;
15863 esac
15864 ;;
15865
15866 sysv5* | sco3.2v5* | sco5v6*)
15867 # Note: We can NOT use -z defs as we might desire, because we do not
15868 # link with -lc, and that would cause any symbols used from libc to
15869 # always be unresolved, which means just about no library would
15870 # ever link correctly. If we're not using GNU ld we use -z text
15871 # though, which does catch some bad symbols but isn't as heavy-handed
15872 # as -z defs.
15873 no_undefined_flag_CXX='${wl}-z,text'
15874 allow_undefined_flag_CXX='${wl}-z,nodefs'
15875 archive_cmds_need_lc_CXX=no
15876 hardcode_shlibpath_var_CXX=no
15877 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15878 hardcode_libdir_separator_CXX=':'
15879 link_all_deplibs_CXX=yes
15880 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15881 runpath_var='LD_RUN_PATH'
15882
15883 case $cc_basename in
15884 CC*)
15885 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 ;;
15888 *)
15889 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15891 ;;
15892 esac
15893 ;;
15894
15895 tandem*)
15896 case $cc_basename in
15897 NCC*)
15898 # NonStop-UX NCC 3.20
15899 # FIXME: insert proper C++ library support
15900 ld_shlibs_CXX=no
15901 ;;
15902 *)
15903 # FIXME: insert proper C++ library support
15904 ld_shlibs_CXX=no
15905 ;;
15906 esac
15907 ;;
15908
15909 vxworks*)
15910 # FIXME: insert proper C++ library support
15911 ld_shlibs_CXX=no
15912 ;;
15913
15914 *)
15915 # FIXME: insert proper C++ library support
15916 ld_shlibs_CXX=no
15917 ;;
15918 esac
15919
cristy8b350f62009-11-15 23:12:43 +000015920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015921$as_echo "$ld_shlibs_CXX" >&6; }
15922 test "$ld_shlibs_CXX" = no && can_build_shared=no
15923
15924 GCC_CXX="$GXX"
15925 LD_CXX="$LD"
15926
15927 ## CAVEAT EMPTOR:
15928 ## There is no encapsulation within the following macros, do not change
15929 ## the running order or otherwise move them around unless you know exactly
15930 ## what you are doing...
15931 # Dependencies to place before and after the object being linked:
15932predep_objects_CXX=
15933postdep_objects_CXX=
15934predeps_CXX=
15935postdeps_CXX=
15936compiler_lib_search_path_CXX=
15937
15938cat > conftest.$ac_ext <<_LT_EOF
15939class Foo
15940{
15941public:
15942 Foo (void) { a = 0; }
15943private:
15944 int a;
15945};
15946_LT_EOF
15947
cristy8b350f62009-11-15 23:12:43 +000015948if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015949 (eval $ac_compile) 2>&5
15950 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15952 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015953 # Parse the compiler output and extract the necessary
15954 # objects, libraries and library flags.
15955
15956 # Sentinel used to keep track of whether or not we are before
15957 # the conftest object file.
15958 pre_test_object_deps_done=no
15959
15960 for p in `eval "$output_verbose_link_cmd"`; do
15961 case $p in
15962
15963 -L* | -R* | -l*)
15964 # Some compilers place space between "-{L,R}" and the path.
15965 # Remove the space.
15966 if test $p = "-L" ||
15967 test $p = "-R"; then
15968 prev=$p
15969 continue
15970 else
15971 prev=
15972 fi
15973
15974 if test "$pre_test_object_deps_done" = no; then
15975 case $p in
15976 -L* | -R*)
15977 # Internal compiler library paths should come after those
15978 # provided the user. The postdeps already come after the
15979 # user supplied libs so there is no need to process them.
15980 if test -z "$compiler_lib_search_path_CXX"; then
15981 compiler_lib_search_path_CXX="${prev}${p}"
15982 else
15983 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15984 fi
15985 ;;
15986 # The "-l" case would never come before the object being
15987 # linked, so don't bother handling this case.
15988 esac
15989 else
15990 if test -z "$postdeps_CXX"; then
15991 postdeps_CXX="${prev}${p}"
15992 else
15993 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15994 fi
15995 fi
15996 ;;
15997
15998 *.$objext)
15999 # This assumes that the test object file only shows up
16000 # once in the compiler output.
16001 if test "$p" = "conftest.$objext"; then
16002 pre_test_object_deps_done=yes
16003 continue
16004 fi
16005
16006 if test "$pre_test_object_deps_done" = no; then
16007 if test -z "$predep_objects_CXX"; then
16008 predep_objects_CXX="$p"
16009 else
16010 predep_objects_CXX="$predep_objects_CXX $p"
16011 fi
16012 else
16013 if test -z "$postdep_objects_CXX"; then
16014 postdep_objects_CXX="$p"
16015 else
16016 postdep_objects_CXX="$postdep_objects_CXX $p"
16017 fi
16018 fi
16019 ;;
16020
16021 *) ;; # Ignore the rest.
16022
16023 esac
16024 done
16025
16026 # Clean up.
16027 rm -f a.out a.exe
16028else
16029 echo "libtool.m4: error: problem compiling CXX test program"
16030fi
16031
16032$RM -f confest.$objext
16033
16034# PORTME: override above test on systems where it is broken
16035case $host_os in
16036interix[3-9]*)
16037 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16038 # hack all around it, let's just trust "g++" to DTRT.
16039 predep_objects_CXX=
16040 postdep_objects_CXX=
16041 postdeps_CXX=
16042 ;;
16043
16044linux*)
16045 case `$CC -V 2>&1 | sed 5q` in
16046 *Sun\ C*)
16047 # Sun C++ 5.9
16048
16049 # The more standards-conforming stlport4 library is
16050 # incompatible with the Cstd library. Avoid specifying
16051 # it if it's in CXXFLAGS. Ignore libCrun as
16052 # -library=stlport4 depends on it.
16053 case " $CXX $CXXFLAGS " in
16054 *" -library=stlport4 "*)
16055 solaris_use_stlport4=yes
16056 ;;
16057 esac
16058
16059 if test "$solaris_use_stlport4" != yes; then
16060 postdeps_CXX='-library=Cstd -library=Crun'
16061 fi
16062 ;;
16063 esac
16064 ;;
16065
16066solaris*)
16067 case $cc_basename in
16068 CC*)
16069 # The more standards-conforming stlport4 library is
16070 # incompatible with the Cstd library. Avoid specifying
16071 # it if it's in CXXFLAGS. Ignore libCrun as
16072 # -library=stlport4 depends on it.
16073 case " $CXX $CXXFLAGS " in
16074 *" -library=stlport4 "*)
16075 solaris_use_stlport4=yes
16076 ;;
16077 esac
16078
16079 # Adding this requires a known-good setup of shared libraries for
16080 # Sun compiler versions before 5.6, else PIC objects from an old
16081 # archive will be linked into the output, leading to subtle bugs.
16082 if test "$solaris_use_stlport4" != yes; then
16083 postdeps_CXX='-library=Cstd -library=Crun'
16084 fi
16085 ;;
16086 esac
16087 ;;
16088esac
16089
16090
16091case " $postdeps_CXX " in
16092*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16093esac
16094 compiler_lib_search_dirs_CXX=
16095if test -n "${compiler_lib_search_path_CXX}"; then
16096 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16097fi
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129 lt_prog_compiler_wl_CXX=
16130lt_prog_compiler_pic_CXX=
16131lt_prog_compiler_static_CXX=
16132
cristy8b350f62009-11-15 23:12:43 +000016133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016134$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16135
16136 # C++ specific cases for pic, static, wl, etc.
16137 if test "$GXX" = yes; then
16138 lt_prog_compiler_wl_CXX='-Wl,'
16139 lt_prog_compiler_static_CXX='-static'
16140
16141 case $host_os in
16142 aix*)
16143 # All AIX code is PIC.
16144 if test "$host_cpu" = ia64; then
16145 # AIX 5 now supports IA64 processor
16146 lt_prog_compiler_static_CXX='-Bstatic'
16147 fi
16148 ;;
16149
16150 amigaos*)
16151 case $host_cpu in
16152 powerpc)
16153 # see comment about AmigaOS4 .so support
16154 lt_prog_compiler_pic_CXX='-fPIC'
16155 ;;
16156 m68k)
16157 # FIXME: we need at least 68020 code to build shared libraries, but
16158 # adding the `-m68020' flag to GCC prevents building anything better,
16159 # like `-m68040'.
16160 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16161 ;;
16162 esac
16163 ;;
16164
16165 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16166 # PIC is the default for these OSes.
16167 ;;
16168 mingw* | cygwin* | os2* | pw32* | cegcc*)
16169 # This hack is so that the source file can tell whether it is being
16170 # built for inclusion in a dll (and should export symbols for example).
16171 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16172 # (--disable-auto-import) libraries
16173 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16174 ;;
16175 darwin* | rhapsody*)
16176 # PIC is the default on this platform
16177 # Common symbols not allowed in MH_DYLIB files
16178 lt_prog_compiler_pic_CXX='-fno-common'
16179 ;;
16180 *djgpp*)
16181 # DJGPP does not support shared libraries at all
16182 lt_prog_compiler_pic_CXX=
16183 ;;
16184 interix[3-9]*)
16185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16186 # Instead, we relocate shared libraries at runtime.
16187 ;;
16188 sysv4*MP*)
16189 if test -d /usr/nec; then
16190 lt_prog_compiler_pic_CXX=-Kconform_pic
16191 fi
16192 ;;
16193 hpux*)
16194 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16195 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16196 # sets the default TLS model and affects inlining.
16197 case $host_cpu in
16198 hppa*64*)
16199 ;;
16200 *)
16201 lt_prog_compiler_pic_CXX='-fPIC'
16202 ;;
16203 esac
16204 ;;
16205 *qnx* | *nto*)
16206 # QNX uses GNU C++, but need to define -shared option too, otherwise
16207 # it will coredump.
16208 lt_prog_compiler_pic_CXX='-fPIC -shared'
16209 ;;
16210 *)
16211 lt_prog_compiler_pic_CXX='-fPIC'
16212 ;;
16213 esac
16214 else
16215 case $host_os in
16216 aix[4-9]*)
16217 # All AIX code is PIC.
16218 if test "$host_cpu" = ia64; then
16219 # AIX 5 now supports IA64 processor
16220 lt_prog_compiler_static_CXX='-Bstatic'
16221 else
16222 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16223 fi
16224 ;;
16225 chorus*)
16226 case $cc_basename in
16227 cxch68*)
16228 # Green Hills C++ Compiler
16229 # _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"
16230 ;;
16231 esac
16232 ;;
16233 dgux*)
16234 case $cc_basename in
16235 ec++*)
16236 lt_prog_compiler_pic_CXX='-KPIC'
16237 ;;
16238 ghcx*)
16239 # Green Hills C++ Compiler
16240 lt_prog_compiler_pic_CXX='-pic'
16241 ;;
16242 *)
16243 ;;
16244 esac
16245 ;;
16246 freebsd* | dragonfly*)
16247 # FreeBSD uses GNU C++
16248 ;;
16249 hpux9* | hpux10* | hpux11*)
16250 case $cc_basename in
16251 CC*)
16252 lt_prog_compiler_wl_CXX='-Wl,'
16253 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16254 if test "$host_cpu" != ia64; then
16255 lt_prog_compiler_pic_CXX='+Z'
16256 fi
16257 ;;
16258 aCC*)
16259 lt_prog_compiler_wl_CXX='-Wl,'
16260 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16261 case $host_cpu in
16262 hppa*64*|ia64*)
16263 # +Z the default
16264 ;;
16265 *)
16266 lt_prog_compiler_pic_CXX='+Z'
16267 ;;
16268 esac
16269 ;;
16270 *)
16271 ;;
16272 esac
16273 ;;
16274 interix*)
16275 # This is c89, which is MS Visual C++ (no shared libs)
16276 # Anyone wants to do a port?
16277 ;;
16278 irix5* | irix6* | nonstopux*)
16279 case $cc_basename in
16280 CC*)
16281 lt_prog_compiler_wl_CXX='-Wl,'
16282 lt_prog_compiler_static_CXX='-non_shared'
16283 # CC pic flag -KPIC is the default.
16284 ;;
16285 *)
16286 ;;
16287 esac
16288 ;;
cristy18304f92009-11-22 15:48:26 +000016289 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016290 case $cc_basename in
16291 KCC*)
16292 # KAI C++ Compiler
16293 lt_prog_compiler_wl_CXX='--backend -Wl,'
16294 lt_prog_compiler_pic_CXX='-fPIC'
16295 ;;
16296 ecpc* )
16297 # old Intel C++ for x86_64 which still supported -KPIC.
16298 lt_prog_compiler_wl_CXX='-Wl,'
16299 lt_prog_compiler_pic_CXX='-KPIC'
16300 lt_prog_compiler_static_CXX='-static'
16301 ;;
16302 icpc* )
16303 # Intel C++, used to be incompatible with GCC.
16304 # ICC 10 doesn't accept -KPIC any more.
16305 lt_prog_compiler_wl_CXX='-Wl,'
16306 lt_prog_compiler_pic_CXX='-fPIC'
16307 lt_prog_compiler_static_CXX='-static'
16308 ;;
16309 pgCC* | pgcpp*)
16310 # Portland Group C++ compiler
16311 lt_prog_compiler_wl_CXX='-Wl,'
16312 lt_prog_compiler_pic_CXX='-fpic'
16313 lt_prog_compiler_static_CXX='-Bstatic'
16314 ;;
16315 cxx*)
16316 # Compaq C++
16317 # Make sure the PIC flag is empty. It appears that all Alpha
16318 # Linux and Compaq Tru64 Unix objects are PIC.
16319 lt_prog_compiler_pic_CXX=
16320 lt_prog_compiler_static_CXX='-non_shared'
16321 ;;
cristy18304f92009-11-22 15:48:26 +000016322 xlc* | xlC*)
16323 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000016324 lt_prog_compiler_wl_CXX='-Wl,'
16325 lt_prog_compiler_pic_CXX='-qpic'
16326 lt_prog_compiler_static_CXX='-qstaticlink'
16327 ;;
16328 *)
16329 case `$CC -V 2>&1 | sed 5q` in
16330 *Sun\ C*)
16331 # Sun C++ 5.9
16332 lt_prog_compiler_pic_CXX='-KPIC'
16333 lt_prog_compiler_static_CXX='-Bstatic'
16334 lt_prog_compiler_wl_CXX='-Qoption ld '
16335 ;;
16336 esac
16337 ;;
16338 esac
16339 ;;
16340 lynxos*)
16341 ;;
16342 m88k*)
16343 ;;
16344 mvs*)
16345 case $cc_basename in
16346 cxx*)
16347 lt_prog_compiler_pic_CXX='-W c,exportall'
16348 ;;
16349 *)
16350 ;;
16351 esac
16352 ;;
16353 netbsd*)
16354 ;;
16355 *qnx* | *nto*)
16356 # QNX uses GNU C++, but need to define -shared option too, otherwise
16357 # it will coredump.
16358 lt_prog_compiler_pic_CXX='-fPIC -shared'
16359 ;;
16360 osf3* | osf4* | osf5*)
16361 case $cc_basename in
16362 KCC*)
16363 lt_prog_compiler_wl_CXX='--backend -Wl,'
16364 ;;
16365 RCC*)
16366 # Rational C++ 2.4.1
16367 lt_prog_compiler_pic_CXX='-pic'
16368 ;;
16369 cxx*)
16370 # Digital/Compaq C++
16371 lt_prog_compiler_wl_CXX='-Wl,'
16372 # Make sure the PIC flag is empty. It appears that all Alpha
16373 # Linux and Compaq Tru64 Unix objects are PIC.
16374 lt_prog_compiler_pic_CXX=
16375 lt_prog_compiler_static_CXX='-non_shared'
16376 ;;
16377 *)
16378 ;;
16379 esac
16380 ;;
16381 psos*)
16382 ;;
16383 solaris*)
16384 case $cc_basename in
16385 CC*)
16386 # Sun C++ 4.2, 5.x and Centerline C++
16387 lt_prog_compiler_pic_CXX='-KPIC'
16388 lt_prog_compiler_static_CXX='-Bstatic'
16389 lt_prog_compiler_wl_CXX='-Qoption ld '
16390 ;;
16391 gcx*)
16392 # Green Hills C++ Compiler
16393 lt_prog_compiler_pic_CXX='-PIC'
16394 ;;
16395 *)
16396 ;;
16397 esac
16398 ;;
16399 sunos4*)
16400 case $cc_basename in
16401 CC*)
16402 # Sun C++ 4.x
16403 lt_prog_compiler_pic_CXX='-pic'
16404 lt_prog_compiler_static_CXX='-Bstatic'
16405 ;;
16406 lcc*)
16407 # Lucid
16408 lt_prog_compiler_pic_CXX='-pic'
16409 ;;
16410 *)
16411 ;;
16412 esac
16413 ;;
16414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16415 case $cc_basename in
16416 CC*)
16417 lt_prog_compiler_wl_CXX='-Wl,'
16418 lt_prog_compiler_pic_CXX='-KPIC'
16419 lt_prog_compiler_static_CXX='-Bstatic'
16420 ;;
16421 esac
16422 ;;
16423 tandem*)
16424 case $cc_basename in
16425 NCC*)
16426 # NonStop-UX NCC 3.20
16427 lt_prog_compiler_pic_CXX='-KPIC'
16428 ;;
16429 *)
16430 ;;
16431 esac
16432 ;;
16433 vxworks*)
16434 ;;
16435 *)
16436 lt_prog_compiler_can_build_shared_CXX=no
16437 ;;
16438 esac
16439 fi
16440
16441case $host_os in
16442 # For platforms which do not support PIC, -DPIC is meaningless:
16443 *djgpp*)
16444 lt_prog_compiler_pic_CXX=
16445 ;;
16446 *)
16447 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16448 ;;
16449esac
cristy8b350f62009-11-15 23:12:43 +000016450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016451$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16452
16453
16454
16455#
16456# Check to make sure the PIC flag actually works.
16457#
16458if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016459 { $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 +000016460$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016461if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016462 $as_echo_n "(cached) " >&6
16463else
16464 lt_cv_prog_compiler_pic_works_CXX=no
16465 ac_outfile=conftest.$ac_objext
16466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16467 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16468 # Insert the option either (1) after the last *FLAGS variable, or
16469 # (2) before a word containing "conftest.", or (3) at the end.
16470 # Note that $ac_compile itself does not contain backslashes and begins
16471 # with a dollar sign (not a hyphen), so the echo should work correctly.
16472 # The option is referenced via a variable to avoid confusing sed.
16473 lt_compile=`echo "$ac_compile" | $SED \
16474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16476 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000016477 (eval echo "\"\$as_me:16477: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016478 (eval "$lt_compile" 2>conftest.err)
16479 ac_status=$?
16480 cat conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000016481 echo "$as_me:16481: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016482 if (exit $ac_status) && test -s "$ac_outfile"; then
16483 # The compiler can only warn and ignore the option if not recognized
16484 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000016485 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16488 lt_cv_prog_compiler_pic_works_CXX=yes
16489 fi
16490 fi
16491 $RM conftest*
16492
16493fi
cristy8b350f62009-11-15 23:12:43 +000016494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016495$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16496
16497if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16498 case $lt_prog_compiler_pic_CXX in
16499 "" | " "*) ;;
16500 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16501 esac
16502else
16503 lt_prog_compiler_pic_CXX=
16504 lt_prog_compiler_can_build_shared_CXX=no
16505fi
16506
16507fi
16508
16509
16510
16511#
16512# Check to make sure the static flag actually works.
16513#
16514wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016516$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016517if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016518 $as_echo_n "(cached) " >&6
16519else
16520 lt_cv_prog_compiler_static_works_CXX=no
16521 save_LDFLAGS="$LDFLAGS"
16522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16525 # The linker can only warn and ignore the option if not recognized
16526 # So say no if there are warnings
16527 if test -s conftest.err; then
16528 # Append any errors to the config.log.
16529 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000016530 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16532 if diff conftest.exp conftest.er2 >/dev/null; then
16533 lt_cv_prog_compiler_static_works_CXX=yes
16534 fi
16535 else
16536 lt_cv_prog_compiler_static_works_CXX=yes
16537 fi
16538 fi
16539 $RM -r conftest*
16540 LDFLAGS="$save_LDFLAGS"
16541
16542fi
cristy8b350f62009-11-15 23:12:43 +000016543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016544$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16545
16546if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16547 :
16548else
16549 lt_prog_compiler_static_CXX=
16550fi
16551
16552
16553
16554
cristy8b350f62009-11-15 23:12:43 +000016555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016556$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016557if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016558 $as_echo_n "(cached) " >&6
16559else
16560 lt_cv_prog_compiler_c_o_CXX=no
16561 $RM -r conftest 2>/dev/null
16562 mkdir conftest
16563 cd conftest
16564 mkdir out
16565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16566
16567 lt_compiler_flag="-o out/conftest2.$ac_objext"
16568 # Insert the option either (1) after the last *FLAGS variable, or
16569 # (2) before a word containing "conftest.", or (3) at the end.
16570 # Note that $ac_compile itself does not contain backslashes and begins
16571 # with a dollar sign (not a hyphen), so the echo should work correctly.
16572 lt_compile=`echo "$ac_compile" | $SED \
16573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16575 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000016576 (eval echo "\"\$as_me:16576: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016577 (eval "$lt_compile" 2>out/conftest.err)
16578 ac_status=$?
16579 cat out/conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000016580 echo "$as_me:16580: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16582 then
16583 # The compiler can only warn and ignore the option if not recognized
16584 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016585 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16588 lt_cv_prog_compiler_c_o_CXX=yes
16589 fi
16590 fi
16591 chmod u+w . 2>&5
16592 $RM conftest*
16593 # SGI C++ compiler will create directory out/ii_files/ for
16594 # template instantiation
16595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16596 $RM out/* && rmdir out
16597 cd ..
16598 $RM -r conftest
16599 $RM conftest*
16600
16601fi
cristy8b350f62009-11-15 23:12:43 +000016602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016603$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16604
16605
16606
cristy8b350f62009-11-15 23:12:43 +000016607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016608$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016609if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016610 $as_echo_n "(cached) " >&6
16611else
16612 lt_cv_prog_compiler_c_o_CXX=no
16613 $RM -r conftest 2>/dev/null
16614 mkdir conftest
16615 cd conftest
16616 mkdir out
16617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16618
16619 lt_compiler_flag="-o out/conftest2.$ac_objext"
16620 # Insert the option either (1) after the last *FLAGS variable, or
16621 # (2) before a word containing "conftest.", or (3) at the end.
16622 # Note that $ac_compile itself does not contain backslashes and begins
16623 # with a dollar sign (not a hyphen), so the echo should work correctly.
16624 lt_compile=`echo "$ac_compile" | $SED \
16625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16627 -e 's:$: $lt_compiler_flag:'`
cristy18304f92009-11-22 15:48:26 +000016628 (eval echo "\"\$as_me:16628: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016629 (eval "$lt_compile" 2>out/conftest.err)
16630 ac_status=$?
16631 cat out/conftest.err >&5
cristy18304f92009-11-22 15:48:26 +000016632 echo "$as_me:16632: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16634 then
16635 # The compiler can only warn and ignore the option if not recognized
16636 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016637 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16640 lt_cv_prog_compiler_c_o_CXX=yes
16641 fi
16642 fi
16643 chmod u+w . 2>&5
16644 $RM conftest*
16645 # SGI C++ compiler will create directory out/ii_files/ for
16646 # template instantiation
16647 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16648 $RM out/* && rmdir out
16649 cd ..
16650 $RM -r conftest
16651 $RM conftest*
16652
16653fi
cristy8b350f62009-11-15 23:12:43 +000016654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016655$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16656
16657
16658
16659
16660hard_links="nottested"
16661if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16662 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016664$as_echo_n "checking if we can lock with hard links... " >&6; }
16665 hard_links=yes
16666 $RM conftest*
16667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16668 touch conftest.a
16669 ln conftest.a conftest.b 2>&5 || hard_links=no
16670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016672$as_echo "$hard_links" >&6; }
16673 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016674 { $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 +000016675$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16676 need_locks=warn
16677 fi
16678else
16679 need_locks=no
16680fi
16681
16682
16683
cristy8b350f62009-11-15 23:12:43 +000016684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016685$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16686
16687 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16688 case $host_os in
16689 aix[4-9]*)
16690 # If we're using GNU nm, then we don't want the "-C" option.
16691 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16692 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000016693 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 +000016694 else
16695 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'
16696 fi
16697 ;;
16698 pw32*)
16699 export_symbols_cmds_CXX="$ltdll_cmds"
16700 ;;
16701 cygwin* | mingw* | cegcc*)
16702 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'
16703 ;;
16704 *)
16705 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16706 ;;
16707 esac
16708 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16709
cristy8b350f62009-11-15 23:12:43 +000016710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016711$as_echo "$ld_shlibs_CXX" >&6; }
16712test "$ld_shlibs_CXX" = no && can_build_shared=no
16713
16714with_gnu_ld_CXX=$with_gnu_ld
16715
16716
16717
16718
16719
16720
16721#
16722# Do we need to explicitly link libc?
16723#
16724case "x$archive_cmds_need_lc_CXX" in
16725x|xyes)
16726 # Assume -lc should be added
16727 archive_cmds_need_lc_CXX=yes
16728
16729 if test "$enable_shared" = yes && test "$GCC" = yes; then
16730 case $archive_cmds_CXX in
16731 *'~'*)
16732 # FIXME: we may have to deal with multi-command sequences.
16733 ;;
16734 '$CC '*)
16735 # Test whether the compiler implicitly links with -lc since on some
16736 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16737 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016739$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000016740 $RM conftest*
16741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016742
cristy18304f92009-11-22 15:48:26 +000016743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016744 (eval $ac_compile) 2>&5
16745 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16747 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000016748 soname=conftest
16749 lib=conftest
16750 libobjs=conftest.$ac_objext
16751 deplibs=
16752 wl=$lt_prog_compiler_wl_CXX
16753 pic_flag=$lt_prog_compiler_pic_CXX
16754 compiler_flags=-v
16755 linker_flags=-v
16756 verstring=
16757 output_objdir=.
16758 libname=conftest
16759 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16760 allow_undefined_flag_CXX=
16761 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 +000016762 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16763 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000016766 then
16767 archive_cmds_need_lc_CXX=no
16768 else
16769 archive_cmds_need_lc_CXX=yes
16770 fi
16771 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16772 else
16773 cat conftest.err 1>&5
16774 fi
16775 $RM conftest*
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16777$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000016778 ;;
16779 esac
16780 fi
16781 ;;
16782esac
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
cristy8b350f62009-11-15 23:12:43 +000016847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016848$as_echo_n "checking dynamic linker characteristics... " >&6; }
16849
16850library_names_spec=
16851libname_spec='lib$name'
16852soname_spec=
16853shrext_cmds=".so"
16854postinstall_cmds=
16855postuninstall_cmds=
16856finish_cmds=
16857finish_eval=
16858shlibpath_var=
16859shlibpath_overrides_runpath=unknown
16860version_type=none
16861dynamic_linker="$host_os ld.so"
16862sys_lib_dlsearch_path_spec="/lib /usr/lib"
16863need_lib_prefix=unknown
16864hardcode_into_libs=no
16865
16866# when you set need_version to no, make sure it does not cause -set_version
16867# flags to be left without arguments
16868need_version=unknown
16869
16870case $host_os in
16871aix3*)
16872 version_type=linux
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16874 shlibpath_var=LIBPATH
16875
16876 # AIX 3 has no versioning support, so we append a major version to the name.
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 ;;
16879
16880aix[4-9]*)
16881 version_type=linux
16882 need_lib_prefix=no
16883 need_version=no
16884 hardcode_into_libs=yes
16885 if test "$host_cpu" = ia64; then
16886 # AIX 5 supports IA64
16887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 else
16890 # With GCC up to 2.95.x, collect2 would create an import file
16891 # for dependence libraries. The import file would start with
16892 # the line `#! .'. This would cause the generated library to
16893 # depend on `.', always an invalid library. This was fixed in
16894 # development snapshots of GCC prior to 3.0.
16895 case $host_os in
16896 aix4 | aix4.[01] | aix4.[01].*)
16897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16898 echo ' yes '
16899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16900 :
16901 else
16902 can_build_shared=no
16903 fi
16904 ;;
16905 esac
16906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16907 # soname into executable. Probably we can add versioning support to
16908 # collect2, so additional links can be useful in future.
16909 if test "$aix_use_runtimelinking" = yes; then
16910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16911 # instead of lib<name>.a to let people know that these are not
16912 # typical AIX shared libraries.
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 else
16915 # We preserve .a as extension for shared libraries through AIX4.2
16916 # and later when we are not doing run time linking.
16917 library_names_spec='${libname}${release}.a $libname.a'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 fi
16920 shlibpath_var=LIBPATH
16921 fi
16922 ;;
16923
16924amigaos*)
16925 case $host_cpu in
16926 powerpc)
16927 # Since July 2007 AmigaOS4 officially supports .so libraries.
16928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 ;;
16931 m68k)
16932 library_names_spec='$libname.ixlibrary $libname.a'
16933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000016934 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 +000016935 ;;
16936 esac
16937 ;;
16938
16939beos*)
16940 library_names_spec='${libname}${shared_ext}'
16941 dynamic_linker="$host_os ld.so"
16942 shlibpath_var=LIBRARY_PATH
16943 ;;
16944
16945bsdi[45]*)
16946 version_type=linux
16947 need_version=no
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16954 # the default ld.so.conf also contains /usr/contrib/lib and
16955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16956 # libtool to hard-code these into programs
16957 ;;
16958
16959cygwin* | mingw* | pw32* | cegcc*)
16960 version_type=windows
16961 shrext_cmds=".dll"
16962 need_version=no
16963 need_lib_prefix=no
16964
16965 case $GCC,$host_os in
16966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16967 library_names_spec='$libname.dll.a'
16968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16969 postinstall_cmds='base_file=`basename \${file}`~
16970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16971 dldir=$destdir/`dirname \$dlpath`~
16972 test -d \$dldir || mkdir -p \$dldir~
16973 $install_prog $dir/$dlname \$dldir/$dlname~
16974 chmod a+x \$dldir/$dlname~
16975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16977 fi'
16978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16979 dlpath=$dir/\$dldll~
16980 $RM \$dlpath'
16981 shlibpath_overrides_runpath=yes
16982
16983 case $host_os in
16984 cygwin*)
16985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000016988 ;;
16989 mingw* | cegcc*)
16990 # MinGW DLLs use traditional 'lib' prefix
16991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016992 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16993 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16994 # It is most probably a Windows format PATH printed by
16995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16996 # path with ; separators, and with drive letters. We can handle the
16997 # drive letters (cygwin fileutils understands them), so leave them,
16998 # especially as we might pass files found there to a mingw objdump,
16999 # which wouldn't understand a cygwinified path. Ahh.
17000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17001 else
17002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17003 fi
cristy3ed852e2009-09-05 21:47:34 +000017004 ;;
17005 pw32*)
17006 # pw32 DLLs use 'pw' prefix rather than 'lib'
17007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17008 ;;
17009 esac
17010 ;;
17011
17012 *)
17013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17014 ;;
17015 esac
17016 dynamic_linker='Win32 ld.exe'
17017 # FIXME: first we should search . and the directory the executable is in
17018 shlibpath_var=PATH
17019 ;;
17020
17021darwin* | rhapsody*)
17022 dynamic_linker="$host_os dyld"
17023 version_type=darwin
17024 need_lib_prefix=no
17025 need_version=no
17026 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17027 soname_spec='${libname}${release}${major}$shared_ext'
17028 shlibpath_overrides_runpath=yes
17029 shlibpath_var=DYLD_LIBRARY_PATH
17030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17031
17032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17033 ;;
17034
17035dgux*)
17036 version_type=linux
17037 need_lib_prefix=no
17038 need_version=no
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 shlibpath_var=LD_LIBRARY_PATH
17042 ;;
17043
17044freebsd1*)
17045 dynamic_linker=no
17046 ;;
17047
17048freebsd* | dragonfly*)
17049 # DragonFly does not have aout. When/if they implement a new
17050 # versioning mechanism, adjust this.
17051 if test -x /usr/bin/objformat; then
17052 objformat=`/usr/bin/objformat`
17053 else
17054 case $host_os in
17055 freebsd[123]*) objformat=aout ;;
17056 *) objformat=elf ;;
17057 esac
17058 fi
17059 version_type=freebsd-$objformat
17060 case $version_type in
17061 freebsd-elf*)
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17063 need_version=no
17064 need_lib_prefix=no
17065 ;;
17066 freebsd-*)
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17068 need_version=yes
17069 ;;
17070 esac
17071 shlibpath_var=LD_LIBRARY_PATH
17072 case $host_os in
17073 freebsd2*)
17074 shlibpath_overrides_runpath=yes
17075 ;;
17076 freebsd3.[01]* | freebsdelf3.[01]*)
17077 shlibpath_overrides_runpath=yes
17078 hardcode_into_libs=yes
17079 ;;
17080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17082 shlibpath_overrides_runpath=no
17083 hardcode_into_libs=yes
17084 ;;
17085 *) # from 4.6 on, and DragonFly
17086 shlibpath_overrides_runpath=yes
17087 hardcode_into_libs=yes
17088 ;;
17089 esac
17090 ;;
17091
17092gnu*)
17093 version_type=linux
17094 need_lib_prefix=no
17095 need_version=no
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 hardcode_into_libs=yes
17100 ;;
17101
17102hpux9* | hpux10* | hpux11*)
17103 # Give a soname corresponding to the major version so that dld.sl refuses to
17104 # link against other versions.
17105 version_type=sunos
17106 need_lib_prefix=no
17107 need_version=no
17108 case $host_cpu in
17109 ia64*)
17110 shrext_cmds='.so'
17111 hardcode_into_libs=yes
17112 dynamic_linker="$host_os dld.so"
17113 shlibpath_var=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116 soname_spec='${libname}${release}${shared_ext}$major'
17117 if test "X$HPUX_IA64_MODE" = X32; then
17118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17119 else
17120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17121 fi
17122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17123 ;;
17124 hppa*64*)
17125 shrext_cmds='.sl'
17126 hardcode_into_libs=yes
17127 dynamic_linker="$host_os dld.sl"
17128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17134 ;;
17135 *)
17136 shrext_cmds='.sl'
17137 dynamic_linker="$host_os dld.sl"
17138 shlibpath_var=SHLIB_PATH
17139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 ;;
17143 esac
cristy18304f92009-11-22 15:48:26 +000017144 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017145 postinstall_cmds='chmod 555 $lib'
17146 ;;
17147
17148interix[3-9]*)
17149 version_type=linux
17150 need_lib_prefix=no
17151 need_version=no
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=no
17157 hardcode_into_libs=yes
17158 ;;
17159
17160irix5* | irix6* | nonstopux*)
17161 case $host_os in
17162 nonstopux*) version_type=nonstopux ;;
17163 *)
17164 if test "$lt_cv_prog_gnu_ld" = yes; then
17165 version_type=linux
17166 else
17167 version_type=irix
17168 fi ;;
17169 esac
17170 need_lib_prefix=no
17171 need_version=no
17172 soname_spec='${libname}${release}${shared_ext}$major'
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17174 case $host_os in
17175 irix5* | nonstopux*)
17176 libsuff= shlibsuff=
17177 ;;
17178 *)
17179 case $LD in # libtool.m4 will add one of these switches to LD
17180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17181 libsuff= shlibsuff= libmagic=32-bit;;
17182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17183 libsuff=32 shlibsuff=N32 libmagic=N32;;
17184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17186 *) libsuff= shlibsuff= libmagic=never-match;;
17187 esac
17188 ;;
17189 esac
17190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17191 shlibpath_overrides_runpath=no
17192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17194 hardcode_into_libs=yes
17195 ;;
17196
17197# No shared lib support for Linux oldld, aout, or coff.
17198linux*oldld* | linux*aout* | linux*coff*)
17199 dynamic_linker=no
17200 ;;
17201
17202# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017203linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017204 version_type=linux
17205 need_lib_prefix=no
17206 need_version=no
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17208 soname_spec='${libname}${release}${shared_ext}$major'
17209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17210 shlibpath_var=LD_LIBRARY_PATH
17211 shlibpath_overrides_runpath=no
17212 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017213 save_LDFLAGS=$LDFLAGS
17214 save_libdir=$libdir
17215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017218/* end confdefs.h. */
17219
17220int
17221main ()
17222{
17223
17224 ;
17225 return 0;
17226}
17227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017228if ac_fn_cxx_try_link "$LINENO"; then :
17229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017230 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017231fi
cristy3ed852e2009-09-05 21:47:34 +000017232fi
cristy8b350f62009-11-15 23:12:43 +000017233rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017235 LDFLAGS=$save_LDFLAGS
17236 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017237
17238 # This implies no fast_install, which is unacceptable.
17239 # Some rework will be needed to allow for fast_install
17240 # before this can be enabled.
17241 hardcode_into_libs=yes
17242
cristy3ed852e2009-09-05 21:47:34 +000017243 # Append ld.so.conf contents to the search path
17244 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017245 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' ' '`
cristy932c9122009-11-19 13:57:03 +000017246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017247 fi
17248
17249 # We used to test for /lib/ld.so.1 and disable shared libraries on
17250 # powerpc, because MkLinux only supported shared libraries with the
17251 # GNU dynamic linker. Since this was broken with cross compilers,
17252 # most powerpc-linux boxes support dynamic linking these days and
17253 # people can always --disable-shared, the test was removed, and we
17254 # assume the GNU/Linux dynamic linker is in use.
17255 dynamic_linker='GNU/Linux ld.so'
17256 ;;
17257
17258netbsd*)
17259 version_type=sunos
17260 need_lib_prefix=no
17261 need_version=no
17262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17265 dynamic_linker='NetBSD (a.out) ld.so'
17266 else
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 dynamic_linker='NetBSD ld.elf_so'
17270 fi
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=yes
17273 hardcode_into_libs=yes
17274 ;;
17275
17276newsos6)
17277 version_type=linux
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=yes
17281 ;;
17282
17283*nto* | *qnx*)
17284 version_type=qnx
17285 need_lib_prefix=no
17286 need_version=no
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 shlibpath_var=LD_LIBRARY_PATH
17290 shlibpath_overrides_runpath=no
17291 hardcode_into_libs=yes
17292 dynamic_linker='ldqnx.so'
17293 ;;
17294
17295openbsd*)
17296 version_type=sunos
17297 sys_lib_dlsearch_path_spec="/usr/lib"
17298 need_lib_prefix=no
17299 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17300 case $host_os in
17301 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17302 *) need_version=no ;;
17303 esac
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17308 case $host_os in
17309 openbsd2.[89] | openbsd2.[89].*)
17310 shlibpath_overrides_runpath=no
17311 ;;
17312 *)
17313 shlibpath_overrides_runpath=yes
17314 ;;
17315 esac
17316 else
17317 shlibpath_overrides_runpath=yes
17318 fi
17319 ;;
17320
17321os2*)
17322 libname_spec='$name'
17323 shrext_cmds=".dll"
17324 need_lib_prefix=no
17325 library_names_spec='$libname${shared_ext} $libname.a'
17326 dynamic_linker='OS/2 ld.exe'
17327 shlibpath_var=LIBPATH
17328 ;;
17329
17330osf3* | osf4* | osf5*)
17331 version_type=osf
17332 need_lib_prefix=no
17333 need_version=no
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17339 ;;
17340
17341rdos*)
17342 dynamic_linker=no
17343 ;;
17344
17345solaris*)
17346 version_type=linux
17347 need_lib_prefix=no
17348 need_version=no
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 shlibpath_var=LD_LIBRARY_PATH
17352 shlibpath_overrides_runpath=yes
17353 hardcode_into_libs=yes
17354 # ldd complains unless libraries are executable
17355 postinstall_cmds='chmod +x $lib'
17356 ;;
17357
17358sunos4*)
17359 version_type=sunos
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=yes
17364 if test "$with_gnu_ld" = yes; then
17365 need_lib_prefix=no
17366 fi
17367 need_version=yes
17368 ;;
17369
17370sysv4 | sysv4.3*)
17371 version_type=linux
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 case $host_vendor in
17376 sni)
17377 shlibpath_overrides_runpath=no
17378 need_lib_prefix=no
17379 runpath_var=LD_RUN_PATH
17380 ;;
17381 siemens)
17382 need_lib_prefix=no
17383 ;;
17384 motorola)
17385 need_lib_prefix=no
17386 need_version=no
17387 shlibpath_overrides_runpath=no
17388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17389 ;;
17390 esac
17391 ;;
17392
17393sysv4*MP*)
17394 if test -d /usr/nec ;then
17395 version_type=linux
17396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17397 soname_spec='$libname${shared_ext}.$major'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 fi
17400 ;;
17401
17402sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17403 version_type=freebsd-elf
17404 need_lib_prefix=no
17405 need_version=no
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 shlibpath_overrides_runpath=yes
17410 hardcode_into_libs=yes
17411 if test "$with_gnu_ld" = yes; then
17412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17413 else
17414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17415 case $host_os in
17416 sco3.2v5*)
17417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17418 ;;
17419 esac
17420 fi
17421 sys_lib_dlsearch_path_spec='/usr/lib'
17422 ;;
17423
17424tpf*)
17425 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17426 version_type=linux
17427 need_lib_prefix=no
17428 need_version=no
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 shlibpath_overrides_runpath=no
17432 hardcode_into_libs=yes
17433 ;;
17434
17435uts4*)
17436 version_type=linux
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 ;;
17441
17442*)
17443 dynamic_linker=no
17444 ;;
17445esac
cristy8b350f62009-11-15 23:12:43 +000017446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017447$as_echo "$dynamic_linker" >&6; }
17448test "$dynamic_linker" = no && can_build_shared=no
17449
17450variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17451if test "$GCC" = yes; then
17452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17453fi
17454
17455if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17456 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17457fi
17458if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17460fi
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
cristy8b350f62009-11-15 23:12:43 +000017497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017498$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17499hardcode_action_CXX=
17500if test -n "$hardcode_libdir_flag_spec_CXX" ||
17501 test -n "$runpath_var_CXX" ||
17502 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17503
17504 # We can hardcode non-existent directories.
17505 if test "$hardcode_direct_CXX" != no &&
17506 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17507 # have to relink, otherwise we might link with an installed library
17508 # when we should be linking with a yet-to-be-installed one
17509 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17510 test "$hardcode_minus_L_CXX" != no; then
17511 # Linking always hardcodes the temporary library directory.
17512 hardcode_action_CXX=relink
17513 else
17514 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17515 hardcode_action_CXX=immediate
17516 fi
17517else
17518 # We cannot hardcode anything, or else we can only hardcode existing
17519 # directories.
17520 hardcode_action_CXX=unsupported
17521fi
cristy8b350f62009-11-15 23:12:43 +000017522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017523$as_echo "$hardcode_action_CXX" >&6; }
17524
17525if test "$hardcode_action_CXX" = relink ||
17526 test "$inherit_rpath_CXX" = yes; then
17527 # Fast installation is not supported
17528 enable_fast_install=no
17529elif test "$shlibpath_overrides_runpath" = yes ||
17530 test "$enable_shared" = no; then
17531 # Fast installation is not necessary
17532 enable_fast_install=needless
17533fi
17534
17535
17536
17537
17538
17539
17540
17541 fi # test -n "$compiler"
17542
17543 CC=$lt_save_CC
17544 LDCXX=$LD
17545 LD=$lt_save_LD
17546 GCC=$lt_save_GCC
17547 with_gnu_ld=$lt_save_with_gnu_ld
17548 lt_cv_path_LDCXX=$lt_cv_path_LD
17549 lt_cv_path_LD=$lt_save_path_LD
17550 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17551 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17552fi # test "$_lt_caught_CXX_error" != yes
17553
17554ac_ext=c
17555ac_cpp='$CPP $CPPFLAGS'
17556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17558ac_compiler_gnu=$ac_cv_c_compiler_gnu
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572 ac_config_commands="$ac_config_commands libtool"
17573
17574
17575
17576
17577# Only expand once:
17578
17579
17580
17581
17582
17583# Configure libltdl
17584
17585
17586
17587
17588
17589
17590
cristy18304f92009-11-22 15:48:26 +000017591
cristy8b350f62009-11-15 23:12:43 +000017592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017593$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017594if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017595 $as_echo_n "(cached) " >&6
17596else
17597
17598module=yes
17599eval libltdl_cv_shlibext=$shrext_cmds
17600
17601fi
cristy8b350f62009-11-15 23:12:43 +000017602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017603$as_echo "$libltdl_cv_shlibext" >&6; }
17604if test -n "$libltdl_cv_shlibext"; then
17605
17606cat >>confdefs.h <<_ACEOF
17607#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17608_ACEOF
17609
17610fi
17611
cristy8b350f62009-11-15 23:12:43 +000017612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017613$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017614if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017615 $as_echo_n "(cached) " >&6
17616else
17617 lt_cv_module_path_var="$shlibpath_var"
17618fi
cristy8b350f62009-11-15 23:12:43 +000017619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017620$as_echo "$lt_cv_module_path_var" >&6; }
17621if test -n "$lt_cv_module_path_var"; then
17622
17623cat >>confdefs.h <<_ACEOF
17624#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17625_ACEOF
17626
17627fi
17628
cristy8b350f62009-11-15 23:12:43 +000017629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017630$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017631if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017632 $as_echo_n "(cached) " >&6
17633else
17634 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17635fi
cristy8b350f62009-11-15 23:12:43 +000017636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017637$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17638if test -n "$lt_cv_sys_dlsearch_path"; then
17639 sys_dlsearch_path=
17640 for dir in $lt_cv_sys_dlsearch_path; do
17641 if test -z "$sys_dlsearch_path"; then
17642 sys_dlsearch_path="$dir"
17643 else
17644 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17645 fi
17646 done
17647
17648cat >>confdefs.h <<_ACEOF
17649#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17650_ACEOF
17651
17652fi
17653
17654
17655LT_DLLOADERS=
17656
17657
17658ac_ext=c
17659ac_cpp='$CPP $CPPFLAGS'
17660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663
17664
17665LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017667$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017668if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017669 $as_echo_n "(cached) " >&6
17670else
17671 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017673/* end confdefs.h. */
17674
17675/* Override any GCC internal prototype to avoid an error.
17676 Use char because int might match the return type of a GCC
17677 builtin and then its argument prototype would still apply. */
17678#ifdef __cplusplus
17679extern "C"
17680#endif
17681char dlopen ();
17682int
17683main ()
17684{
17685return dlopen ();
17686 ;
17687 return 0;
17688}
17689_ACEOF
17690for ac_lib in '' dl; do
17691 if test -z "$ac_lib"; then
17692 ac_res="none required"
17693 else
17694 ac_res=-l$ac_lib
17695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17696 fi
cristy8b350f62009-11-15 23:12:43 +000017697 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017698 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017699fi
cristy8b350f62009-11-15 23:12:43 +000017700rm -f core conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext
17702 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017703 break
17704fi
17705done
cristy8b350f62009-11-15 23:12:43 +000017706if test "${ac_cv_search_dlopen+set}" = set; then :
17707
cristy3ed852e2009-09-05 21:47:34 +000017708else
17709 ac_cv_search_dlopen=no
17710fi
17711rm conftest.$ac_ext
17712LIBS=$ac_func_search_save_LIBS
17713fi
cristy8b350f62009-11-15 23:12:43 +000017714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017715$as_echo "$ac_cv_search_dlopen" >&6; }
17716ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017717if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17719
cristy8b350f62009-11-15 23:12:43 +000017720$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017721
17722 if test "$ac_cv_search_dlopen" != "none required" ; then
17723 LIBADD_DLOPEN="-ldl"
17724 fi
17725 libltdl_cv_lib_dl_dlopen="yes"
17726 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17727else
cristy8b350f62009-11-15 23:12:43 +000017728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017729/* end confdefs.h. */
17730#if HAVE_DLFCN_H
17731# include <dlfcn.h>
17732#endif
17733
17734int
17735main ()
17736{
17737dlopen(0, 0);
17738 ;
17739 return 0;
17740}
17741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017743
cristy8b350f62009-11-15 23:12:43 +000017744$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017745
17746 libltdl_cv_func_dlopen="yes"
17747 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17748else
cristy8b350f62009-11-15 23:12:43 +000017749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017750$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017751if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017752 $as_echo_n "(cached) " >&6
17753else
17754 ac_check_lib_save_LIBS=$LIBS
17755LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017757/* end confdefs.h. */
17758
17759/* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17762#ifdef __cplusplus
17763extern "C"
17764#endif
17765char dlopen ();
17766int
17767main ()
17768{
17769return dlopen ();
17770 ;
17771 return 0;
17772}
17773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017775 ac_cv_lib_svld_dlopen=yes
17776else
cristy8b350f62009-11-15 23:12:43 +000017777 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017778fi
cristy8b350f62009-11-15 23:12:43 +000017779rm -f core conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017781LIBS=$ac_check_lib_save_LIBS
17782fi
cristy8b350f62009-11-15 23:12:43 +000017783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017784$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017785if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017786
cristy8b350f62009-11-15 23:12:43 +000017787$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017788
17789 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17790 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17791fi
17792
17793fi
cristy8b350f62009-11-15 23:12:43 +000017794rm -f core conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017796fi
17797
17798if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17799then
17800 lt_save_LIBS="$LIBS"
17801 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017802 for ac_func in dlerror
17803do :
17804 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17805if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017806 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017807#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017808_ACEOF
17809
17810fi
17811done
17812
17813 LIBS="$lt_save_LIBS"
17814fi
17815
17816
17817LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017818ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17819if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017820
cristy8b350f62009-11-15 23:12:43 +000017821$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017822
17823 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17824else
cristy8b350f62009-11-15 23:12:43 +000017825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017826$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017827if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017828 $as_echo_n "(cached) " >&6
17829else
17830 ac_check_lib_save_LIBS=$LIBS
17831LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017833/* end confdefs.h. */
17834
17835/* Override any GCC internal prototype to avoid an error.
17836 Use char because int might match the return type of a GCC
17837 builtin and then its argument prototype would still apply. */
17838#ifdef __cplusplus
17839extern "C"
17840#endif
17841char shl_load ();
17842int
17843main ()
17844{
17845return shl_load ();
17846 ;
17847 return 0;
17848}
17849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017851 ac_cv_lib_dld_shl_load=yes
17852else
cristy8b350f62009-11-15 23:12:43 +000017853 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017854fi
cristy8b350f62009-11-15 23:12:43 +000017855rm -f core conftest.err conftest.$ac_objext \
17856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017857LIBS=$ac_check_lib_save_LIBS
17858fi
cristy8b350f62009-11-15 23:12:43 +000017859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017860$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017861if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017862
cristy8b350f62009-11-15 23:12:43 +000017863$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017864
17865 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17866 LIBADD_SHL_LOAD="-ldld"
17867fi
17868
17869fi
17870
17871
17872
17873case $host_os in
17874darwin[1567].*)
17875# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017876 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17877if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017878
cristy8b350f62009-11-15 23:12:43 +000017879$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017880
17881 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17882fi
17883
17884 ;;
17885beos*)
17886 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17887 ;;
17888cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017889 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17890"
17891if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17892 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017893else
cristy8b350f62009-11-15 23:12:43 +000017894 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017895fi
17896
cristy3ed852e2009-09-05 21:47:34 +000017897cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017898#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017899_ACEOF
17900
cristy3ed852e2009-09-05 21:47:34 +000017901 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17902 ;;
17903esac
17904
cristy8b350f62009-11-15 23:12:43 +000017905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017906$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017907if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017908 $as_echo_n "(cached) " >&6
17909else
17910 ac_check_lib_save_LIBS=$LIBS
17911LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017913/* end confdefs.h. */
17914
17915/* Override any GCC internal prototype to avoid an error.
17916 Use char because int might match the return type of a GCC
17917 builtin and then its argument prototype would still apply. */
17918#ifdef __cplusplus
17919extern "C"
17920#endif
17921char dld_link ();
17922int
17923main ()
17924{
17925return dld_link ();
17926 ;
17927 return 0;
17928}
17929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017931 ac_cv_lib_dld_dld_link=yes
17932else
cristy8b350f62009-11-15 23:12:43 +000017933 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017934fi
cristy8b350f62009-11-15 23:12:43 +000017935rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017937LIBS=$ac_check_lib_save_LIBS
17938fi
cristy8b350f62009-11-15 23:12:43 +000017939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017940$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017941if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017942
cristy8b350f62009-11-15 23:12:43 +000017943$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017944
17945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17946fi
17947
17948
17949
17950
17951LT_DLPREOPEN=
17952if test -n "$LT_DLLOADERS"
17953then
17954 for lt_loader in $LT_DLLOADERS; do
17955 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17956 done
17957
cristy8b350f62009-11-15 23:12:43 +000017958$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017959
17960fi
17961
17962
17963LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17964
17965
17966ac_ext=c
17967ac_cpp='$CPP $CPPFLAGS'
17968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970ac_compiler_gnu=$ac_cv_c_compiler_gnu
17971
17972
cristy8b350f62009-11-15 23:12:43 +000017973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017974$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017975if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017976 $as_echo_n "(cached) " >&6
17977else
17978 lt_cv_sys_symbol_underscore=no
17979 cat > conftest.$ac_ext <<_LT_EOF
17980void nm_test_func(){}
17981int main(){nm_test_func;return 0;}
17982_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017984 (eval $ac_compile) 2>&5
17985 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017988 # Now try to grab the symbols.
17989 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000017990 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 +000017991 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17992 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17994 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000017995 # See whether the symbols have a leading underscore.
17996 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17997 lt_cv_sys_symbol_underscore=yes
17998 else
17999 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18000 :
18001 else
18002 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18003 fi
18004 fi
18005 else
18006 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18007 fi
18008 else
18009 echo "configure: failed program was:" >&5
18010 cat conftest.c >&5
18011 fi
18012 rm -rf conftest*
18013
18014fi
cristy8b350f62009-11-15 23:12:43 +000018015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018016$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18017 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18018
18019
18020if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18021 if test x"$libltdl_cv_func_dlopen" = xyes ||
18022 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018024$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018025if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018026 $as_echo_n "(cached) " >&6
18027else
18028 libltdl_cv_need_uscore=unknown
18029 save_LIBS="$LIBS"
18030 LIBS="$LIBS $LIBADD_DLOPEN"
18031 if test "$cross_compiling" = yes; then :
18032 libltdl_cv_need_uscore=cross
18033else
18034 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18035 lt_status=$lt_dlunknown
18036 cat > conftest.$ac_ext <<_LT_EOF
cristy18304f92009-11-22 15:48:26 +000018037#line 18037 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018038#include "confdefs.h"
18039
18040#if HAVE_DLFCN_H
18041#include <dlfcn.h>
18042#endif
18043
18044#include <stdio.h>
18045
18046#ifdef RTLD_GLOBAL
18047# define LT_DLGLOBAL RTLD_GLOBAL
18048#else
18049# ifdef DL_GLOBAL
18050# define LT_DLGLOBAL DL_GLOBAL
18051# else
18052# define LT_DLGLOBAL 0
18053# endif
18054#endif
18055
18056/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18057 find out it does not work in some platform. */
18058#ifndef LT_DLLAZY_OR_NOW
18059# ifdef RTLD_LAZY
18060# define LT_DLLAZY_OR_NOW RTLD_LAZY
18061# else
18062# ifdef DL_LAZY
18063# define LT_DLLAZY_OR_NOW DL_LAZY
18064# else
18065# ifdef RTLD_NOW
18066# define LT_DLLAZY_OR_NOW RTLD_NOW
18067# else
18068# ifdef DL_NOW
18069# define LT_DLLAZY_OR_NOW DL_NOW
18070# else
18071# define LT_DLLAZY_OR_NOW 0
18072# endif
18073# endif
18074# endif
18075# endif
18076#endif
18077
cristy18304f92009-11-22 15:48:26 +000018078void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018079int main ()
18080{
18081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18082 int status = $lt_dlunknown;
18083
18084 if (self)
18085 {
18086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018087 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018088 /* dlclose (self); */
18089 }
18090 else
18091 puts (dlerror ());
18092
18093 return status;
18094}
18095_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018097 (eval $ac_link) 2>&5
18098 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18100 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018101 (./conftest; exit; ) >&5 2>/dev/null
18102 lt_status=$?
18103 case x$lt_status in
18104 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18105 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18106 x$lt_dlunknown|x*) ;;
18107 esac
18108 else :
18109 # compilation failed
18110
18111 fi
18112fi
18113rm -fr conftest*
18114
18115 LIBS="$save_LIBS"
18116
18117fi
cristy8b350f62009-11-15 23:12:43 +000018118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018119$as_echo "$libltdl_cv_need_uscore" >&6; }
18120 fi
18121fi
18122
18123if test x"$libltdl_cv_need_uscore" = xyes; then
18124
cristy8b350f62009-11-15 23:12:43 +000018125$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018126
18127fi
18128
cristy8b350f62009-11-15 23:12:43 +000018129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018130$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018131if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018132 $as_echo_n "(cached) " >&6
18133else
18134 # PORTME does your system automatically load deplibs for dlopen?
18135 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18136 # For now, we just catch OSes we know something about -- in the
18137 # future, we'll try test this programmatically.
18138 lt_cv_sys_dlopen_deplibs=unknown
18139 case $host_os in
18140 aix3*|aix4.1.*|aix4.2.*)
18141 # Unknown whether this is true for these versions of AIX, but
18142 # we want this `case' here to explicitly catch those versions.
18143 lt_cv_sys_dlopen_deplibs=unknown
18144 ;;
18145 aix[4-9]*)
18146 lt_cv_sys_dlopen_deplibs=yes
18147 ;;
18148 amigaos*)
18149 case $host_cpu in
18150 powerpc)
18151 lt_cv_sys_dlopen_deplibs=no
18152 ;;
18153 esac
18154 ;;
18155 darwin*)
18156 # Assuming the user has installed a libdl from somewhere, this is true
18157 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18158 lt_cv_sys_dlopen_deplibs=yes
18159 ;;
18160 freebsd* | dragonfly*)
18161 lt_cv_sys_dlopen_deplibs=yes
18162 ;;
cristy18304f92009-11-22 15:48:26 +000018163 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018164 # GNU and its variants, using gnu ld.so (Glibc)
18165 lt_cv_sys_dlopen_deplibs=yes
18166 ;;
18167 hpux10*|hpux11*)
18168 lt_cv_sys_dlopen_deplibs=yes
18169 ;;
18170 interix*)
18171 lt_cv_sys_dlopen_deplibs=yes
18172 ;;
18173 irix[12345]*|irix6.[01]*)
18174 # Catch all versions of IRIX before 6.2, and indicate that we don't
18175 # know how it worked for any of those versions.
18176 lt_cv_sys_dlopen_deplibs=unknown
18177 ;;
18178 irix*)
18179 # The case above catches anything before 6.2, and it's known that
18180 # at 6.2 and later dlopen does load deplibs.
18181 lt_cv_sys_dlopen_deplibs=yes
18182 ;;
18183 netbsd*)
18184 lt_cv_sys_dlopen_deplibs=yes
18185 ;;
18186 openbsd*)
18187 lt_cv_sys_dlopen_deplibs=yes
18188 ;;
18189 osf[1234]*)
18190 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18191 # it did *not* use an RPATH in a shared library to find objects the
18192 # library depends on, so we explicitly say `no'.
18193 lt_cv_sys_dlopen_deplibs=no
18194 ;;
18195 osf5.0|osf5.0a|osf5.1)
18196 # dlopen *does* load deplibs and with the right loader patch applied
18197 # it even uses RPATH in a shared library to search for shared objects
18198 # that the library depends on, but there's no easy way to know if that
18199 # patch is installed. Since this is the case, all we can really
18200 # say is unknown -- it depends on the patch being installed. If
18201 # it is, this changes to `yes'. Without it, it would be `no'.
18202 lt_cv_sys_dlopen_deplibs=unknown
18203 ;;
18204 osf*)
18205 # the two cases above should catch all versions of osf <= 5.1. Read
18206 # the comments above for what we know about them.
18207 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18208 # is used to find them so we can finally say `yes'.
18209 lt_cv_sys_dlopen_deplibs=yes
18210 ;;
18211 qnx*)
18212 lt_cv_sys_dlopen_deplibs=yes
18213 ;;
18214 solaris*)
18215 lt_cv_sys_dlopen_deplibs=yes
18216 ;;
18217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18218 libltdl_cv_sys_dlopen_deplibs=yes
18219 ;;
18220 esac
18221
18222fi
cristy8b350f62009-11-15 23:12:43 +000018223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018224$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18225if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18226
cristy8b350f62009-11-15 23:12:43 +000018227$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018228
18229fi
18230
18231:
18232
cristy3ed852e2009-09-05 21:47:34 +000018233for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018234do :
18235 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18236"
18237if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018238 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018239#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018240_ACEOF
18241
18242fi
18243
18244done
18245
18246
cristy8b350f62009-11-15 23:12:43 +000018247ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018248# include <argz.h>
18249#endif
cristy8b350f62009-11-15 23:12:43 +000018250"
18251if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018252
18253cat >>confdefs.h <<_ACEOF
18254#define HAVE_ERROR_T 1
18255_ACEOF
18256
18257
18258else
18259
cristy8b350f62009-11-15 23:12:43 +000018260$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018261
18262
cristy8b350f62009-11-15 23:12:43 +000018263$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018264
18265fi
18266
18267
18268ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018269for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18270 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018271do :
18272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18273ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18274eval as_val=\$$as_ac_var
18275 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018276 cat >>confdefs.h <<_ACEOF
18277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18278_ACEOF
18279
18280else
18281 ARGZ_H=argz.h;
18282
18283 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18284
18285fi
18286done
18287
18288
cristy8b350f62009-11-15 23:12:43 +000018289if test -z "$ARGZ_H"; then :
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018291$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018292if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018293 $as_echo_n "(cached) " >&6
18294else
18295 case $host_os in #(
18296 *cygwin*)
18297 lt_cv_sys_argz_works=no
18298 if test "$cross_compiling" != no; then
18299 lt_cv_sys_argz_works="guessing no"
18300 else
18301 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18302 save_IFS=$IFS
18303 IFS=-.
18304 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18305 IFS=$save_IFS
18306 lt_os_major=${2-0}
18307 lt_os_minor=${3-0}
18308 lt_os_micro=${4-0}
18309 if test "$lt_os_major" -gt 1 \
18310 || { test "$lt_os_major" -eq 1 \
18311 && { test "$lt_os_minor" -gt 5 \
18312 || { test "$lt_os_minor" -eq 5 \
18313 && test "$lt_os_micro" -gt 24; }; }; }; then
18314 lt_cv_sys_argz_works=yes
18315 fi
18316 fi
18317 ;; #(
18318 *) lt_cv_sys_argz_works=yes ;;
18319 esac
18320fi
cristy8b350f62009-11-15 23:12:43 +000018321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018322$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018323 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018324
cristy8b350f62009-11-15 23:12:43 +000018325$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018326
18327else
18328 ARGZ_H=argz.h
18329
18330
18331 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18332
18333fi
cristy3ed852e2009-09-05 21:47:34 +000018334fi
18335
18336
18337
cristy8b350f62009-11-15 23:12:43 +000018338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018339$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018340if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018341 $as_echo_n "(cached) " >&6
18342else
18343 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18344 libltdl_cv_preloaded_symbols=yes
18345 else
18346 libltdl_cv_preloaded_symbols=no
18347 fi
18348
18349fi
cristy8b350f62009-11-15 23:12:43 +000018350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018351$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18352if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18353
cristy8b350f62009-11-15 23:12:43 +000018354$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018355
18356fi
18357
18358# Set options
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018371if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018372 withval=$with_included_ltdl;
18373fi
18374
18375
18376if test "x$with_included_ltdl" != xyes; then
18377 # We are not being forced to use the included libltdl sources, so
18378 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018379 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018380
cristy8b350f62009-11-15 23:12:43 +000018381"
18382if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18383 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 +000018384 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018385"
18386if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018388$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018389if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018390 $as_echo_n "(cached) " >&6
18391else
18392 ac_check_lib_save_LIBS=$LIBS
18393LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018395/* end confdefs.h. */
18396
18397/* Override any GCC internal prototype to avoid an error.
18398 Use char because int might match the return type of a GCC
18399 builtin and then its argument prototype would still apply. */
18400#ifdef __cplusplus
18401extern "C"
18402#endif
18403char lt_dladvise_preload ();
18404int
18405main ()
18406{
18407return lt_dladvise_preload ();
18408 ;
18409 return 0;
18410}
18411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018412if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018413 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18414else
cristy8b350f62009-11-15 23:12:43 +000018415 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018416fi
cristy8b350f62009-11-15 23:12:43 +000018417rm -f core conftest.err conftest.$ac_objext \
18418 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018419LIBS=$ac_check_lib_save_LIBS
18420fi
cristy8b350f62009-11-15 23:12:43 +000018421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018422$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018423if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018424 with_included_ltdl=no
18425else
18426 with_included_ltdl=yes
18427fi
18428
18429else
18430 with_included_ltdl=yes
18431fi
18432
18433else
18434 with_included_ltdl=yes
18435fi
18436
18437
18438fi
18439
18440
18441
18442
18443# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018444if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018445 withval=$with_ltdl_include;
18446fi
18447
18448
18449if test -n "$with_ltdl_include"; then
18450 if test -f "$with_ltdl_include/ltdl.h"; then :
18451 else
cristy8b350f62009-11-15 23:12:43 +000018452 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018453 fi
18454else
18455 with_ltdl_include=no
18456fi
18457
18458
18459# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018460if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018461 withval=$with_ltdl_lib;
18462fi
18463
18464
18465if test -n "$with_ltdl_lib"; then
18466 if test -f "$with_ltdl_lib/libltdl.la"; then :
18467 else
cristy8b350f62009-11-15 23:12:43 +000018468 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018469 fi
18470else
18471 with_ltdl_lib=no
18472fi
18473
18474case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18475 ,yes,no,no,)
18476 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018477 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018478 "") enable_ltdl_convenience=yes
18479 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18480esac
18481LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18482LTDLDEPS=$LIBLTDL
18483LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18484
18485
18486
18487
18488
18489# For backwards non-gettext consistent compatibility...
18490INCLTDL="$LTDLINCL"
18491
18492
18493 ;;
18494 ,no,no,no,)
18495 # If the included ltdl is not to be used, then use the
18496 # preinstalled libltdl we found.
18497
cristy8b350f62009-11-15 23:12:43 +000018498$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018499
18500 LIBLTDL=-lltdl
18501 LTDLDEPS=
18502 LTDLINCL=
18503 ;;
18504 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018505 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018506 ;;
18507 *) with_included_ltdl=no
18508 LIBLTDL="-L$with_ltdl_lib -lltdl"
18509 LTDLDEPS=
18510 LTDLINCL="-I$with_ltdl_include"
18511 ;;
18512esac
18513INCLTDL="$LTDLINCL"
18514
18515# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018517$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018519$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018521$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018523$as_echo "$LIBLTDL" >&6; }
18524
18525
18526
18527# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018528if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018529 enableval=$enable_ltdl_install;
18530fi
18531
18532
18533case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18534 *yes*) ;;
18535 *) enable_ltdl_convenience=yes ;;
18536esac
18537
18538 if test x"${enable_ltdl_install-no}" != xno; then
18539 INSTALL_LTDL_TRUE=
18540 INSTALL_LTDL_FALSE='#'
18541else
18542 INSTALL_LTDL_TRUE='#'
18543 INSTALL_LTDL_FALSE=
18544fi
18545
18546 if test x"${enable_ltdl_convenience-no}" != xno; then
18547 CONVENIENCE_LTDL_TRUE=
18548 CONVENIENCE_LTDL_FALSE='#'
18549else
18550 CONVENIENCE_LTDL_TRUE='#'
18551 CONVENIENCE_LTDL_FALSE=
18552fi
18553
18554
18555
18556
18557
18558
cristy18304f92009-11-22 15:48:26 +000018559
cristy3ed852e2009-09-05 21:47:34 +000018560# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18561# the user used. This is so that ltdl.h can pick up the parent projects
18562# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18563# definitions required by ltdl.c.
18564# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18565
18566
18567
cristy3ed852e2009-09-05 21:47:34 +000018568for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018569do :
18570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18571ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18572"
18573eval as_val=\$$as_ac_Header
18574 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018575 cat >>confdefs.h <<_ACEOF
18576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18577_ACEOF
18578
18579fi
18580
18581done
18582
18583
cristy3ed852e2009-09-05 21:47:34 +000018584for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018585do :
18586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18587ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18588eval as_val=\$$as_ac_var
18589 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018590 cat >>confdefs.h <<_ACEOF
18591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18592_ACEOF
18593
18594else
18595
18596
18597 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18598
18599fi
18600done
18601
cristy3ed852e2009-09-05 21:47:34 +000018602for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018603do :
18604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18605ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18606eval as_val=\$$as_ac_var
18607 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018608 cat >>confdefs.h <<_ACEOF
18609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18610_ACEOF
18611
18612else
18613
18614
18615 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18616
18617fi
18618done
18619
18620
18621
18622cat >>confdefs.h <<_ACEOF
18623#define LT_LIBEXT "$libext"
18624_ACEOF
18625
18626
18627name=ltdl
18628LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18629
18630
18631
18632
18633
18634
18635
18636
18637# Only expand once:
18638
18639
18640
18641# Check to see if building shared libraries
18642libtool_build_shared_libs='no'
18643if test "$enable_shared" = 'yes'; then
18644 libtool_build_shared_libs='yes'
18645fi
18646
18647# Check to see if building static libraries
18648libtool_build_static_libs='no'
18649if test "$enable_static" = 'yes'; then
18650 libtool_build_static_libs='yes'
18651fi
18652
18653# MinGW and Cygwin can't build C++ DLLs which support exceptions.
18654if test "${StaticCplusPlusLibraries}" = 'yes'; then
18655 LTCXXLIBOPTS='--static'
18656
18657fi
18658
18659#
18660# Enable support for building loadable modules
18661#
18662
18663# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018664if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018665 withval=$with_modules; with_modules=$withval
18666else
18667 with_modules=$libtool_build_shared_libs
18668fi
18669
18670
18671# Only allow building loadable modules if we are building shared libraries
18672if test "$with_modules" != 'no' ; then
18673 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018674 { $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 +000018675$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18676 with_modules='no'
18677 fi
18678fi
18679if test "$with_modules" != 'no'; then
18680
cristy8b350f62009-11-15 23:12:43 +000018681$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018682
18683fi
18684 if test "$with_modules" != 'no'; then
18685 WITH_MODULES_TRUE=
18686 WITH_MODULES_FALSE='#'
18687else
18688 WITH_MODULES_TRUE='#'
18689 WITH_MODULES_FALSE=
18690fi
18691
18692
18693# Enable building/use of libltdl if we are building shared libraries regardless
18694# of whether modules are built or not.
18695with_ltdl='no'
18696if test "$libtool_build_shared_libs" != 'no'; then
18697 with_ltdl='yes'
18698fi
18699
18700 if test "$with_ltdl" != 'no'; then
18701 WITH_LTDL_TRUE=
18702 WITH_LTDL_FALSE='#'
18703else
18704 WITH_LTDL_TRUE='#'
18705 WITH_LTDL_FALSE=
18706fi
18707
18708if test "$with_ltdl" != 'no'; then
18709
cristy8b350f62009-11-15 23:12:43 +000018710$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018711
18712
18713 # Set DLLDFLAGS
18714 if test X"$enable_shared" = Xyes; then
18715 DLLDFLAGS=-export-dynamic
18716
18717 fi
18718fi
18719
18720# Enable build using delegate libraries built in subdirectories rather than installed
18721# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18722# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018723if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018724 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18725else
18726 enable_delegate_build='no'
18727fi
18728
18729
18730# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018731if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018732 enableval=$enable_deprecated; enable_deprecated=$enableval
18733else
18734 enable_deprecated='no'
18735fi
18736
18737
18738if test "$enable_deprecated" = 'yes'; then
18739
cristy8b350f62009-11-15 23:12:43 +000018740$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018741
18742else
18743 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18744fi
18745
18746# Build a version of ImageMagick which operates uninstalled.
18747# Used to build distributions located via MAGICK_HOME / executable path
18748# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018749if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018750 enableval=$enable_installed; enable_installed=$enableval
18751else
18752 enable_installed='yes'
18753fi
18754
18755
18756if test "$enable_installed" = 'yes'; then
18757
cristy8b350f62009-11-15 23:12:43 +000018758$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018759
18760else
18761 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18762fi
18763
18764# Permit enciphering and deciphering image pixels.
18765# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018766if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018767 enableval=$enable_cipher; enable_cipher=$enableval
18768else
18769 enable_cipher='yes'
18770fi
18771
18772
18773if test "$enable_cipher" = 'yes'; then
18774
cristy8b350f62009-11-15 23:12:43 +000018775$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018776
18777fi
18778
18779# Build an embeddable version of ImageMagick.
18780# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018781if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018782 enableval=$enable_embeddable; enable_embeddable=$enableval
18783else
18784 enable_embeddable='no'
18785fi
18786
18787
18788if test "$enable_embeddable" = 'yes'; then
18789
cristy8b350f62009-11-15 23:12:43 +000018790$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018791
18792fi
18793
18794# Build a high dynamic range version of ImageMagick.
18795# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018796if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018797 enableval=$enable_hdri; enable_hdri=$enableval
18798else
18799 enable_hdri='no'
18800fi
18801
18802
18803MAGICK_HDRI=""
18804if test "$enable_hdri" = 'yes'; then
18805 MAGICK_HDRI="HDRI"
18806
cristy8b350f62009-11-15 23:12:43 +000018807$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018808
18809fi
18810
cristy3ed852e2009-09-05 21:47:34 +000018811# Build a version of ImageMagick with assert statements.
18812# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018813if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018814 enableval=$enable_assert; enable_assert=$enableval
18815else
18816 enable_assert='yes'
18817fi
18818
18819
18820if test "$enable_assert" = 'no'; then
18821
cristy8b350f62009-11-15 23:12:43 +000018822$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018823
18824fi
18825
18826# Add configure option --enable-maintainer-mode which enables dependency
18827# checking and generation useful to package maintainers. This is made an
18828# option to avoid confusing end users.
18829
cristy8b350f62009-11-15 23:12:43 +000018830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018831$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18832 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018833if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018834 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18835else
18836 USE_MAINTAINER_MODE=no
18837fi
18838
cristy8b350f62009-11-15 23:12:43 +000018839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018840$as_echo "$USE_MAINTAINER_MODE" >&6; }
18841 if test $USE_MAINTAINER_MODE = yes; then
18842 MAINTAINER_MODE_TRUE=
18843 MAINTAINER_MODE_FALSE='#'
18844else
18845 MAINTAINER_MODE_TRUE='#'
18846 MAINTAINER_MODE_FALSE=
18847fi
18848
18849 MAINT=$MAINTAINER_MODE_TRUE
18850
18851
18852
18853
18854# Enable ccmalloc memory debugging support
18855# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018856if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018857 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18858else
18859 enable_ccmalloc='no'
18860fi
18861
18862
18863# Enable Electric Fence memory debugging support
18864# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018865if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018866 enableval=$enable_efence; enable_efence=$enableval
18867else
18868 enable_efence='no'
18869fi
18870
18871
18872# Enable prof-based profiling support
18873# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018874if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018875 enableval=$enable_prof; enable_prof=$enableval
18876else
18877 enable_prof='no'
18878fi
18879
18880
18881# Enable gprof-based profiling support
18882# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018883if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018884 enableval=$enable_gprof; enable_gprof=$enableval
18885else
18886 enable_gprof='no'
18887fi
18888
18889
18890# Enable gcov-based profiling support
18891# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018892if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018893 enableval=$enable_gcov; enable_gcov=$enableval
18894else
18895 enable_gcov='no'
18896fi
18897
18898
18899enable_profiling='no'
18900if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18901 enable_profiling='yes'
18902 if test "$libtool_build_shared_libs" = 'yes'; then
18903 echo "Warning: Can not profile code using shared libraries"
18904 fi
18905fi
18906
18907# Magick API method prefix
18908
18909# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018910if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018911 withval=$with_method_prefix; with_method_prefix=$enableval
18912else
18913 with_method_prefix=''
18914fi
18915
18916
18917if test "$with_method_prefix" != ''; then
18918
18919cat >>confdefs.h <<_ACEOF
18920#define NAMESPACE_PREFIX $with_method_prefix
18921_ACEOF
18922
18923fi
18924
18925# Number of bits in a Quantum
18926
18927# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018928if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018929 withval=$with_quantum_depth; with_quantum_depth=$withval
18930else
18931 with_quantum_depth=16
18932fi
18933
18934
18935if test "$with_quantum_depth" != '8'; then
18936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18937fi
18938
18939case "${with_quantum_depth}" in
18940 8 ) ;;
18941 16 ) ;;
18942 32 ) ;;
18943 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018944 * ) { as_fn_set_status 16
18945as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018946esac
18947QUANTUM_DEPTH="$with_quantum_depth"
18948
18949cat >>confdefs.h <<_ACEOF
18950#define QUANTUM_DEPTH $QUANTUM_DEPTH
18951_ACEOF
18952
18953
18954# Set pixel cache threshold
18955
18956# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018957if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018958 withval=$with_cache; with_cache=$withval
18959else
18960 with_cache=''
18961fi
18962
18963
18964if test "$with_cache" != ''; then
18965
18966cat >>confdefs.h <<_ACEOF
18967#define PixelCacheThreshold $with_cache
18968_ACEOF
18969
18970 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18971fi
18972
18973# Disable/Enable support for full delegate paths
18974
18975# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018976if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018977 withval=$with_frozenpaths; with_frozenpaths=$withval
18978else
18979 with_frozenpaths='no'
18980fi
18981
18982
18983# Enable build/install of Magick++
18984
18985# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000018986if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018987 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18988else
18989 with_magick_plus_plus='yes'
18990fi
18991
18992
18993# Disable build/install of PerlMagick.
18994
18995# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000018996if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018997 withval=$with_perl; with_perl=$withval
18998else
18999 with_perl=$libtool_build_shared_libs
19000fi
19001
19002
19003# Options to pass when configuring PerlMagick
19004
19005# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019006if test "${with_perl_options+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019007 withval=$with_perl_options;
19008fi
19009
19010
19011PERL_MAKE_OPTIONS=$with_perl_options
19012
19013
19014
19015# Enable umem, object-caching memory allocation library.
19016
19017# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019018if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019019 withval=$with_umem; with_umem=$withval
19020else
19021 with_umem='no'
19022fi
19023
19024if test "$with_umem" != 'yes' ; then
19025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19026fi
19027
19028#
19029# Specify path to shared libstdc++ if not in normal location
19030#
19031
19032# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019033if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019034 withval=$with_libstdc; with_libstdc=$withval
19035else
19036 with_libstdc=''
19037fi
19038
19039
19040if test "$with_libstdc" != ''; then
19041 if test -d "$with_libstdc"; then
19042 LIBSTDCLDFLAGS="-L$with_libstdc"
19043 fi
19044fi
19045
19046
19047# Does gcc required -traditional?
19048if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019050$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019051if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019052 $as_echo_n "(cached) " >&6
19053else
19054 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019056/* end confdefs.h. */
19057#include <sgtty.h>
19058Autoconf TIOCGETP
19059_ACEOF
19060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019061 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019062 ac_cv_prog_gcc_traditional=yes
19063else
19064 ac_cv_prog_gcc_traditional=no
19065fi
19066rm -f conftest*
19067
19068
19069 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019071/* end confdefs.h. */
19072#include <termio.h>
19073Autoconf TCGETA
19074_ACEOF
19075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019076 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019077 ac_cv_prog_gcc_traditional=yes
19078fi
19079rm -f conftest*
19080
19081 fi
19082fi
cristy8b350f62009-11-15 23:12:43 +000019083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019084$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19085 if test $ac_cv_prog_gcc_traditional = yes; then
19086 CC="$CC -traditional"
19087 fi
19088fi
19089
19090
19091########
19092#
19093# Set defines required to build DLLs and modules using MinGW
19094#
19095########
19096# These options are set for multi-thread DLL module build
19097# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19098# module: _DLL
19099# executable/Magick++: _DLL _MAGICKMOD_
19100MODULE_EXTRA_CPPFLAGS=''
19101LIBRARY_EXTRA_CPPFLAGS=''
19102if test "${native_win32_build}" = 'yes'; then
19103 if test "${libtool_build_shared_libs}" = 'yes'; then
19104 CPPFLAGS="$CPPFLAGS -D_DLL"
19105 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19106 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19107 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19108 if test "$with_modules" = 'yes'; then
19109 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19110 else
19111 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19112 fi
19113 else
19114 CPPFLAGS="$CPPFLAGS -D_LIB"
19115 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19116 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19117 fi
19118 if test "$with_threads" = 'yes'; then
19119 CPPFLAGS="$CPPFLAGS -D_MT"
19120 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19121 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19122 fi
19123fi
19124
19125
19126
19127# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019129$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019130if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019131 $as_echo_n "(cached) " >&6
19132else
cristy8b350f62009-11-15 23:12:43 +000019133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019134/* end confdefs.h. */
19135#include <stdlib.h>
19136#include <stdarg.h>
19137#include <string.h>
19138#include <float.h>
19139
19140int
19141main ()
19142{
19143
19144 ;
19145 return 0;
19146}
19147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019148if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019149 ac_cv_header_stdc=yes
19150else
cristy8b350f62009-11-15 23:12:43 +000019151 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019152fi
cristy3ed852e2009-09-05 21:47:34 +000019153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154
19155if test $ac_cv_header_stdc = yes; then
19156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019158/* end confdefs.h. */
19159#include <string.h>
19160
19161_ACEOF
19162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019163 $EGREP "memchr" >/dev/null 2>&1; then :
19164
cristy3ed852e2009-09-05 21:47:34 +000019165else
19166 ac_cv_header_stdc=no
19167fi
19168rm -f conftest*
19169
19170fi
19171
19172if test $ac_cv_header_stdc = yes; then
19173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019175/* end confdefs.h. */
19176#include <stdlib.h>
19177
19178_ACEOF
19179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019180 $EGREP "free" >/dev/null 2>&1; then :
19181
cristy3ed852e2009-09-05 21:47:34 +000019182else
19183 ac_cv_header_stdc=no
19184fi
19185rm -f conftest*
19186
19187fi
19188
19189if test $ac_cv_header_stdc = yes; then
19190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019191 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019192 :
19193else
cristy8b350f62009-11-15 23:12:43 +000019194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019195/* end confdefs.h. */
19196#include <ctype.h>
19197#include <stdlib.h>
19198#if ((' ' & 0x0FF) == 0x020)
19199# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19200# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19201#else
19202# define ISLOWER(c) \
19203 (('a' <= (c) && (c) <= 'i') \
19204 || ('j' <= (c) && (c) <= 'r') \
19205 || ('s' <= (c) && (c) <= 'z'))
19206# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19207#endif
19208
19209#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19210int
19211main ()
19212{
19213 int i;
19214 for (i = 0; i < 256; i++)
19215 if (XOR (islower (i), ISLOWER (i))
19216 || toupper (i) != TOUPPER (i))
19217 return 2;
19218 return 0;
19219}
19220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019221if ac_fn_c_try_run "$LINENO"; then :
19222
cristy3ed852e2009-09-05 21:47:34 +000019223else
cristy8b350f62009-11-15 23:12:43 +000019224 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019225fi
cristy8b350f62009-11-15 23:12:43 +000019226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19227 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019228fi
19229
cristy3ed852e2009-09-05 21:47:34 +000019230fi
19231fi
cristy8b350f62009-11-15 23:12:43 +000019232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019233$as_echo "$ac_cv_header_stdc" >&6; }
19234if test $ac_cv_header_stdc = yes; then
19235
cristy8b350f62009-11-15 23:12:43 +000019236$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019237
19238fi
19239
19240if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019241 { $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 +000019242 header files. Compilation cannot proceed. Please install the ANSI C
19243 headers and rerun this script." >&5
19244$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19245 header files. Compilation cannot proceed. Please install the ANSI C
19246 headers and rerun this script." >&2;};
19247fi
cristy3ed852e2009-09-05 21:47:34 +000019248ac_header_dirent=no
19249for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19250 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019252$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019254 $as_echo_n "(cached) " >&6
19255else
cristy8b350f62009-11-15 23:12:43 +000019256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019257/* end confdefs.h. */
19258#include <sys/types.h>
19259#include <$ac_hdr>
19260
19261int
19262main ()
19263{
19264if ((DIR *) 0)
19265return 0;
19266 ;
19267 return 0;
19268}
19269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019271 eval "$as_ac_Header=yes"
19272else
cristy8b350f62009-11-15 23:12:43 +000019273 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019274fi
cristy3ed852e2009-09-05 21:47:34 +000019275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276fi
cristy8b350f62009-11-15 23:12:43 +000019277eval ac_res=\$$as_ac_Header
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019279$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019280eval as_val=\$$as_ac_Header
19281 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019282 cat >>confdefs.h <<_ACEOF
19283#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19284_ACEOF
19285
19286ac_header_dirent=$ac_hdr; break
19287fi
19288
19289done
19290# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19291if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019293$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019294if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019295 $as_echo_n "(cached) " >&6
19296else
19297 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019299/* end confdefs.h. */
19300
19301/* Override any GCC internal prototype to avoid an error.
19302 Use char because int might match the return type of a GCC
19303 builtin and then its argument prototype would still apply. */
19304#ifdef __cplusplus
19305extern "C"
19306#endif
19307char opendir ();
19308int
19309main ()
19310{
19311return opendir ();
19312 ;
19313 return 0;
19314}
19315_ACEOF
19316for ac_lib in '' dir; do
19317 if test -z "$ac_lib"; then
19318 ac_res="none required"
19319 else
19320 ac_res=-l$ac_lib
19321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19322 fi
cristy8b350f62009-11-15 23:12:43 +000019323 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019324 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019325fi
cristy8b350f62009-11-15 23:12:43 +000019326rm -f core conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext
19328 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019329 break
19330fi
19331done
cristy8b350f62009-11-15 23:12:43 +000019332if test "${ac_cv_search_opendir+set}" = set; then :
19333
cristy3ed852e2009-09-05 21:47:34 +000019334else
19335 ac_cv_search_opendir=no
19336fi
19337rm conftest.$ac_ext
19338LIBS=$ac_func_search_save_LIBS
19339fi
cristy8b350f62009-11-15 23:12:43 +000019340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019341$as_echo "$ac_cv_search_opendir" >&6; }
19342ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019343if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19345
19346fi
19347
19348else
cristy8b350f62009-11-15 23:12:43 +000019349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019350$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019351if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019352 $as_echo_n "(cached) " >&6
19353else
19354 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019356/* end confdefs.h. */
19357
19358/* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19361#ifdef __cplusplus
19362extern "C"
19363#endif
19364char opendir ();
19365int
19366main ()
19367{
19368return opendir ();
19369 ;
19370 return 0;
19371}
19372_ACEOF
19373for ac_lib in '' x; do
19374 if test -z "$ac_lib"; then
19375 ac_res="none required"
19376 else
19377 ac_res=-l$ac_lib
19378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19379 fi
cristy8b350f62009-11-15 23:12:43 +000019380 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019381 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019382fi
cristy8b350f62009-11-15 23:12:43 +000019383rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext
19385 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019386 break
19387fi
19388done
cristy8b350f62009-11-15 23:12:43 +000019389if test "${ac_cv_search_opendir+set}" = set; then :
19390
cristy3ed852e2009-09-05 21:47:34 +000019391else
19392 ac_cv_search_opendir=no
19393fi
19394rm conftest.$ac_ext
19395LIBS=$ac_func_search_save_LIBS
19396fi
cristy8b350f62009-11-15 23:12:43 +000019397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019398$as_echo "$ac_cv_search_opendir" >&6; }
19399ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019400if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19402
19403fi
19404
19405fi
19406
19407
19408# Check additional headers
cristy3ed852e2009-09-05 21:47:34 +000019409for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000019410do :
19411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19412ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19413eval as_val=\$$as_ac_Header
19414 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019415 cat >>confdefs.h <<_ACEOF
19416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19417_ACEOF
19418
19419fi
19420
19421done
19422
19423
19424########
19425#
19426# Checks for typedefs, structures, and compiler characteristics.
19427#
19428########
19429
cristy8b350f62009-11-15 23:12:43 +000019430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019431$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019432if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019433 $as_echo_n "(cached) " >&6
19434else
cristy8b350f62009-11-15 23:12:43 +000019435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019436/* end confdefs.h. */
19437
19438#include <stdbool.h>
19439#ifndef bool
19440 "error: bool is not defined"
19441#endif
19442#ifndef false
19443 "error: false is not defined"
19444#endif
19445#if false
19446 "error: false is not 0"
19447#endif
19448#ifndef true
19449 "error: true is not defined"
19450#endif
19451#if true != 1
19452 "error: true is not 1"
19453#endif
19454#ifndef __bool_true_false_are_defined
19455 "error: __bool_true_false_are_defined is not defined"
19456#endif
19457
19458 struct s { _Bool s: 1; _Bool t; } s;
19459
19460 char a[true == 1 ? 1 : -1];
19461 char b[false == 0 ? 1 : -1];
19462 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19463 char d[(bool) 0.5 == true ? 1 : -1];
19464 bool e = &s;
19465 char f[(_Bool) 0.0 == false ? 1 : -1];
19466 char g[true];
19467 char h[sizeof (_Bool)];
19468 char i[sizeof s.t];
19469 enum { j = false, k = true, l = false * true, m = true * 256 };
19470 /* The following fails for
19471 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19472 _Bool n[m];
19473 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19474 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19475# if defined __xlc__ || defined __GNUC__
19476 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19477 reported by James Lemley on 2005-10-05; see
19478 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19479 This test is not quite right, since xlc is allowed to
19480 reject this program, as the initializer for xlcbug is
19481 not one of the forms that C requires support for.
19482 However, doing the test right would require a runtime
19483 test, and that would make cross-compilation harder.
19484 Let us hope that IBM fixes the xlc bug, and also adds
19485 support for this kind of constant expression. In the
19486 meantime, this test will reject xlc, which is OK, since
19487 our stdbool.h substitute should suffice. We also test
19488 this with GCC, where it should work, to detect more
19489 quickly whether someone messes up the test in the
19490 future. */
19491 char digs[] = "0123456789";
19492 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19493# endif
19494 /* Catch a bug in an HP-UX C compiler. See
19495 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19496 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19497 */
19498 _Bool q = true;
19499 _Bool *pq = &q;
19500
19501int
19502main ()
19503{
19504
19505 *pq |= q;
19506 *pq |= ! q;
19507 /* Refer to every declared value, to avoid compiler optimizations. */
19508 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19509 + !m + !n + !o + !p + !q + !pq);
19510
19511 ;
19512 return 0;
19513}
19514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019515if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019516 ac_cv_header_stdbool_h=yes
19517else
cristy8b350f62009-11-15 23:12:43 +000019518 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019519fi
cristy3ed852e2009-09-05 21:47:34 +000019520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521fi
cristy8b350f62009-11-15 23:12:43 +000019522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019523$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019524ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19525if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019526
19527cat >>confdefs.h <<_ACEOF
19528#define HAVE__BOOL 1
19529_ACEOF
19530
19531
19532fi
19533
19534if test $ac_cv_header_stdbool_h = yes; then
19535
cristy8b350f62009-11-15 23:12:43 +000019536$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019537
19538fi
19539
cristy8b350f62009-11-15 23:12:43 +000019540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019541$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019542if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019543 $as_echo_n "(cached) " >&6
19544else
cristy8b350f62009-11-15 23:12:43 +000019545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019546/* end confdefs.h. */
19547
19548int
19549main ()
19550{
19551
19552volatile int x;
19553int * volatile y = (int *) 0;
19554return !x && !y;
19555 ;
19556 return 0;
19557}
19558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019559if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019560 ac_cv_c_volatile=yes
19561else
cristy8b350f62009-11-15 23:12:43 +000019562 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019563fi
cristy3ed852e2009-09-05 21:47:34 +000019564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565fi
cristy8b350f62009-11-15 23:12:43 +000019566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019567$as_echo "$ac_cv_c_volatile" >&6; }
19568if test $ac_cv_c_volatile = no; then
19569
cristy8b350f62009-11-15 23:12:43 +000019570$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019571
19572fi
19573
cristy8b350f62009-11-15 23:12:43 +000019574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019575$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019576if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019577 $as_echo_n "(cached) " >&6
19578else
cristy8b350f62009-11-15 23:12:43 +000019579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019580/* end confdefs.h. */
19581#define x(y) #y
19582
19583char *s = x(teststring);
19584_ACEOF
19585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019586 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019587 ac_cv_c_stringize=no
19588else
19589 ac_cv_c_stringize=yes
19590fi
19591rm -f conftest*
19592
19593fi
cristy8b350f62009-11-15 23:12:43 +000019594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019595$as_echo "$ac_cv_c_stringize" >&6; }
19596if test $ac_cv_c_stringize = yes; then
19597
cristy8b350f62009-11-15 23:12:43 +000019598$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019599
19600fi
19601
cristy8b350f62009-11-15 23:12:43 +000019602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019603$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019604if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019605 $as_echo_n "(cached) " >&6
19606else
cristy8b350f62009-11-15 23:12:43 +000019607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019608/* end confdefs.h. */
19609#include <sys/types.h>
19610#include <sys/stat.h>
19611
19612#if defined S_ISBLK && defined S_IFDIR
19613extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19614#endif
19615
19616#if defined S_ISBLK && defined S_IFCHR
19617extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19618#endif
19619
19620#if defined S_ISLNK && defined S_IFREG
19621extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19622#endif
19623
19624#if defined S_ISSOCK && defined S_IFREG
19625extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19626#endif
19627
19628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019629if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019630 ac_cv_header_stat_broken=no
19631else
cristy8b350f62009-11-15 23:12:43 +000019632 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019633fi
cristy3ed852e2009-09-05 21:47:34 +000019634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635fi
cristy8b350f62009-11-15 23:12:43 +000019636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019637$as_echo "$ac_cv_header_stat_broken" >&6; }
19638if test $ac_cv_header_stat_broken = yes; then
19639
cristy8b350f62009-11-15 23:12:43 +000019640$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019641
19642fi
19643
cristy8b350f62009-11-15 23:12:43 +000019644{ $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 +000019645$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019646if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019647 $as_echo_n "(cached) " >&6
19648else
cristy8b350f62009-11-15 23:12:43 +000019649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019650/* end confdefs.h. */
19651#include <sys/types.h>
19652#include <sys/time.h>
19653#include <time.h>
19654
19655int
19656main ()
19657{
19658if ((struct tm *) 0)
19659return 0;
19660 ;
19661 return 0;
19662}
19663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019664if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019665 ac_cv_header_time=yes
19666else
cristy8b350f62009-11-15 23:12:43 +000019667 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019668fi
cristy3ed852e2009-09-05 21:47:34 +000019669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670fi
cristy8b350f62009-11-15 23:12:43 +000019671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019672$as_echo "$ac_cv_header_time" >&6; }
19673if test $ac_cv_header_time = yes; then
19674
cristy8b350f62009-11-15 23:12:43 +000019675$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019676
19677fi
19678
cristy8b350f62009-11-15 23:12:43 +000019679{ $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 +000019680$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019681if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019682 $as_echo_n "(cached) " >&6
19683else
cristy8b350f62009-11-15 23:12:43 +000019684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019685/* end confdefs.h. */
19686#include <sys/types.h>
19687#include <time.h>
19688
19689int
19690main ()
19691{
19692struct tm tm;
19693 int *p = &tm.tm_sec;
19694 return !p;
19695 ;
19696 return 0;
19697}
19698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019699if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019700 ac_cv_struct_tm=time.h
19701else
cristy8b350f62009-11-15 23:12:43 +000019702 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019703fi
cristy3ed852e2009-09-05 21:47:34 +000019704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705fi
cristy8b350f62009-11-15 23:12:43 +000019706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019707$as_echo "$ac_cv_struct_tm" >&6; }
19708if test $ac_cv_struct_tm = sys/time.h; then
19709
cristy8b350f62009-11-15 23:12:43 +000019710$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019711
19712fi
19713
cristy8b350f62009-11-15 23:12:43 +000019714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019715$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019716if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019717 $as_echo_n "(cached) " >&6
19718else
19719 echo '#! /bin/cat
19720exit 69
19721' >conftest
19722chmod u+x conftest
19723(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19724if test $? -ne 69; then
19725 ac_cv_sys_interpreter=yes
19726else
19727 ac_cv_sys_interpreter=no
19728fi
19729rm -f conftest
19730fi
cristy8b350f62009-11-15 23:12:43 +000019731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019732$as_echo "$ac_cv_sys_interpreter" >&6; }
19733interpval=$ac_cv_sys_interpreter
19734
19735
19736# If the C compiler does not fully support the ANSI C qualifier const,
19737# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019739$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019740if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019741 $as_echo_n "(cached) " >&6
19742else
cristy8b350f62009-11-15 23:12:43 +000019743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019744/* end confdefs.h. */
19745
19746int
19747main ()
19748{
19749/* FIXME: Include the comments suggested by Paul. */
19750#ifndef __cplusplus
19751 /* Ultrix mips cc rejects this. */
19752 typedef int charset[2];
19753 const charset cs;
19754 /* SunOS 4.1.1 cc rejects this. */
19755 char const *const *pcpcc;
19756 char **ppc;
19757 /* NEC SVR4.0.2 mips cc rejects this. */
19758 struct point {int x, y;};
19759 static struct point const zero = {0,0};
19760 /* AIX XL C 1.02.0.0 rejects this.
19761 It does not let you subtract one const X* pointer from another in
19762 an arm of an if-expression whose if-part is not a constant
19763 expression */
19764 const char *g = "string";
19765 pcpcc = &g + (g ? g-g : 0);
19766 /* HPUX 7.0 cc rejects these. */
19767 ++pcpcc;
19768 ppc = (char**) pcpcc;
19769 pcpcc = (char const *const *) ppc;
19770 { /* SCO 3.2v4 cc rejects this. */
19771 char *t;
19772 char const *s = 0 ? (char *) 0 : (char const *) 0;
19773
19774 *t++ = 0;
19775 if (s) return 0;
19776 }
19777 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19778 int x[] = {25, 17};
19779 const int *foo = &x[0];
19780 ++foo;
19781 }
19782 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19783 typedef const int *iptr;
19784 iptr p = 0;
19785 ++p;
19786 }
19787 { /* AIX XL C 1.02.0.0 rejects this saying
19788 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19789 struct s { int j; const int *ap[3]; };
19790 struct s *b; b->j = 5;
19791 }
19792 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19793 const int foo = 10;
19794 if (!foo) return 0;
19795 }
19796 return !cs[0] && !zero.x;
19797#endif
19798
19799 ;
19800 return 0;
19801}
19802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019803if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019804 ac_cv_c_const=yes
19805else
cristy8b350f62009-11-15 23:12:43 +000019806 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019807fi
cristy3ed852e2009-09-05 21:47:34 +000019808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19809fi
cristy8b350f62009-11-15 23:12:43 +000019810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019811$as_echo "$ac_cv_c_const" >&6; }
19812if test $ac_cv_c_const = no; then
19813
cristy8b350f62009-11-15 23:12:43 +000019814$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019815
19816fi
19817
19818
19819# If the C compiler supports the keyword inline, do nothing. Otherwise
19820# define inline to __inline__ or __inline if it accepts one of those,
19821# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019823$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019824if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019825 $as_echo_n "(cached) " >&6
19826else
19827 ac_cv_c_inline=no
19828for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019830/* end confdefs.h. */
19831#ifndef __cplusplus
19832typedef int foo_t;
19833static $ac_kw foo_t static_foo () {return 0; }
19834$ac_kw foo_t foo () {return 0; }
19835#endif
19836
19837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019838if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019839 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019840fi
cristy3ed852e2009-09-05 21:47:34 +000019841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 test "$ac_cv_c_inline" != no && break
19843done
19844
19845fi
cristy8b350f62009-11-15 23:12:43 +000019846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019847$as_echo "$ac_cv_c_inline" >&6; }
19848
cristy3ed852e2009-09-05 21:47:34 +000019849case $ac_cv_c_inline in
19850 inline | yes) ;;
19851 *)
19852 case $ac_cv_c_inline in
19853 no) ac_val=;;
19854 *) ac_val=$ac_cv_c_inline;;
19855 esac
19856 cat >>confdefs.h <<_ACEOF
19857#ifndef __cplusplus
19858#define inline $ac_val
19859#endif
19860_ACEOF
19861 ;;
19862esac
19863
19864
19865# If the C compiler supports the keyword restrict, do nothing. Otherwise
19866# define restrict to __restrict__ or __restrict if it accepts one of those,
19867# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019869$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019870if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019871 $as_echo_n "(cached) " >&6
19872else
19873 ac_cv_c_restrict=no
19874 # The order here caters to the fact that C++ does not require restrict.
19875 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019877/* end confdefs.h. */
19878typedef int * int_ptr;
19879 int foo (int_ptr $ac_kw ip) {
19880 return ip[0];
19881 }
19882int
19883main ()
19884{
19885int s[1];
19886 int * $ac_kw t = s;
19887 t[0] = 0;
19888 return foo(t)
19889 ;
19890 return 0;
19891}
19892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019893if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019894 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019895fi
cristy3ed852e2009-09-05 21:47:34 +000019896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 test "$ac_cv_c_restrict" != no && break
19898 done
19899
19900fi
cristy8b350f62009-11-15 23:12:43 +000019901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019902$as_echo "$ac_cv_c_restrict" >&6; }
19903
cristy3ed852e2009-09-05 21:47:34 +000019904 case $ac_cv_c_restrict in
19905 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019906 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019907 ;;
19908 *) cat >>confdefs.h <<_ACEOF
19909#define restrict $ac_cv_c_restrict
19910_ACEOF
19911 ;;
19912 esac
19913
19914
19915# If words are stored with the most significant byte first (like
19916# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019918$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019919if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019920 $as_echo_n "(cached) " >&6
19921else
19922 ac_cv_c_bigendian=unknown
19923 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019925/* end confdefs.h. */
19926#ifndef __APPLE_CC__
19927 not a universal capable compiler
19928 #endif
19929 typedef int dummy;
19930
19931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019932if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019933
19934 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019935 # there are at least two -arch flags with different values.
19936 ac_arch=
19937 ac_prev=
19938 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19939 if test -n "$ac_prev"; then
19940 case $ac_word in
19941 i?86 | x86_64 | ppc | ppc64)
19942 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19943 ac_arch=$ac_word
19944 else
19945 ac_cv_c_bigendian=universal
19946 break
19947 fi
19948 ;;
19949 esac
19950 ac_prev=
19951 elif test "x$ac_word" = "x-arch"; then
19952 ac_prev=arch
19953 fi
19954 done
cristy3ed852e2009-09-05 21:47:34 +000019955fi
cristy3ed852e2009-09-05 21:47:34 +000019956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19957 if test $ac_cv_c_bigendian = unknown; then
19958 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019960/* end confdefs.h. */
19961#include <sys/types.h>
19962 #include <sys/param.h>
19963
19964int
19965main ()
19966{
19967#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19968 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19969 && LITTLE_ENDIAN)
19970 bogus endian macros
19971 #endif
19972
19973 ;
19974 return 0;
19975}
19976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019977if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019978 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019980/* end confdefs.h. */
19981#include <sys/types.h>
19982 #include <sys/param.h>
19983
19984int
19985main ()
19986{
19987#if BYTE_ORDER != BIG_ENDIAN
19988 not big endian
19989 #endif
19990
19991 ;
19992 return 0;
19993}
19994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019995if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019996 ac_cv_c_bigendian=yes
19997else
cristy8b350f62009-11-15 23:12:43 +000019998 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019999fi
cristy3ed852e2009-09-05 21:47:34 +000020000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020001fi
cristy3ed852e2009-09-05 21:47:34 +000020002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 fi
20004 if test $ac_cv_c_bigendian = unknown; then
20005 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020007/* end confdefs.h. */
20008#include <limits.h>
20009
20010int
20011main ()
20012{
20013#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20014 bogus endian macros
20015 #endif
20016
20017 ;
20018 return 0;
20019}
20020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020021if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020022 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020024/* end confdefs.h. */
20025#include <limits.h>
20026
20027int
20028main ()
20029{
20030#ifndef _BIG_ENDIAN
20031 not big endian
20032 #endif
20033
20034 ;
20035 return 0;
20036}
20037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020038if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020039 ac_cv_c_bigendian=yes
20040else
cristy8b350f62009-11-15 23:12:43 +000020041 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020042fi
cristy3ed852e2009-09-05 21:47:34 +000020043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020044fi
cristy3ed852e2009-09-05 21:47:34 +000020045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 fi
20047 if test $ac_cv_c_bigendian = unknown; then
20048 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020049 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020050 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020052/* end confdefs.h. */
20053short int ascii_mm[] =
20054 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20055 short int ascii_ii[] =
20056 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20057 int use_ascii (int i) {
20058 return ascii_mm[i] + ascii_ii[i];
20059 }
20060 short int ebcdic_ii[] =
20061 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20062 short int ebcdic_mm[] =
20063 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20064 int use_ebcdic (int i) {
20065 return ebcdic_mm[i] + ebcdic_ii[i];
20066 }
20067 extern int foo;
20068
20069int
20070main ()
20071{
20072return use_ascii (foo) == use_ebcdic (foo);
20073 ;
20074 return 0;
20075}
20076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020078 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20079 ac_cv_c_bigendian=yes
20080 fi
20081 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20082 if test "$ac_cv_c_bigendian" = unknown; then
20083 ac_cv_c_bigendian=no
20084 else
20085 # finding both strings is unlikely to happen, but who knows?
20086 ac_cv_c_bigendian=unknown
20087 fi
20088 fi
cristy3ed852e2009-09-05 21:47:34 +000020089fi
cristy3ed852e2009-09-05 21:47:34 +000020090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20091else
cristy8b350f62009-11-15 23:12:43 +000020092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020093/* end confdefs.h. */
20094$ac_includes_default
20095int
20096main ()
20097{
20098
20099 /* Are we little or big endian? From Harbison&Steele. */
20100 union
20101 {
20102 long int l;
20103 char c[sizeof (long int)];
20104 } u;
20105 u.l = 1;
20106 return u.c[sizeof (long int) - 1] == 1;
20107
20108 ;
20109 return 0;
20110}
20111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020112if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020113 ac_cv_c_bigendian=no
20114else
cristy8b350f62009-11-15 23:12:43 +000020115 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020116fi
cristy8b350f62009-11-15 23:12:43 +000020117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20118 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020119fi
20120
cristy3ed852e2009-09-05 21:47:34 +000020121 fi
20122fi
cristy8b350f62009-11-15 23:12:43 +000020123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020124$as_echo "$ac_cv_c_bigendian" >&6; }
20125 case $ac_cv_c_bigendian in #(
20126 yes)
cristy8b350f62009-11-15 23:12:43 +000020127 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020128;; #(
20129 no)
20130 ;; #(
20131 universal)
20132
cristy8b350f62009-11-15 23:12:43 +000020133$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020134
20135 ;; #(
20136 *)
cristy8b350f62009-11-15 23:12:43 +000020137 as_fn_error "unknown endianness
20138 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020139 esac
20140
20141
20142# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020143ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20144if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020145
cristy3ed852e2009-09-05 21:47:34 +000020146else
20147
20148cat >>confdefs.h <<_ACEOF
20149#define mode_t int
20150_ACEOF
20151
20152fi
20153
20154
20155# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020156ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20157if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020158
cristy3ed852e2009-09-05 21:47:34 +000020159else
20160
20161cat >>confdefs.h <<_ACEOF
20162#define off_t long int
20163_ACEOF
20164
20165fi
20166
20167
20168# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020169ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20170if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020171
cristy3ed852e2009-09-05 21:47:34 +000020172else
20173
20174cat >>confdefs.h <<_ACEOF
20175#define pid_t int
20176_ACEOF
20177
20178fi
20179
20180
20181# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020182ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20183if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020184
cristy3ed852e2009-09-05 21:47:34 +000020185else
20186
20187cat >>confdefs.h <<_ACEOF
20188#define size_t unsigned int
20189_ACEOF
20190
20191fi
20192
20193
20194# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020195ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20196if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020197
cristy3ed852e2009-09-05 21:47:34 +000020198else
20199
20200cat >>confdefs.h <<_ACEOF
20201#define ssize_t int
20202_ACEOF
20203
20204fi
20205
20206
20207# If the C compiler supports a working long double type with more range
20208# or precision than the double type, define HAVE_LONG_DOUBLE.
20209
cristy8b350f62009-11-15 23:12:43 +000020210 { $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 +000020211$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020212if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020213 $as_echo_n "(cached) " >&6
20214else
cristy8b350f62009-11-15 23:12:43 +000020215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020216/* end confdefs.h. */
20217#include <float.h>
20218 long double const a[] =
20219 {
20220 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20221 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20222 };
20223 long double
20224 f (long double x)
20225 {
20226 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20227 + (x ? f (x) : 'c'));
20228 }
20229
20230int
20231main ()
20232{
20233static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20234 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20235 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20236 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20237 && (int) LDBL_EPSILON == 0
20238 )];
20239test_array [0] = 0
20240
20241 ;
20242 return 0;
20243}
20244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020245if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020246 ac_cv_type_long_double_wider=yes
20247else
cristy8b350f62009-11-15 23:12:43 +000020248 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020249fi
cristy3ed852e2009-09-05 21:47:34 +000020250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251fi
cristy8b350f62009-11-15 23:12:43 +000020252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020253$as_echo "$ac_cv_type_long_double_wider" >&6; }
20254 if test $ac_cv_type_long_double_wider = yes; then
20255
cristy8b350f62009-11-15 23:12:43 +000020256$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020257
20258 fi
20259
20260
20261# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20262# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020264$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020265if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020266 $as_echo_n "(cached) " >&6
20267else
cristy8b350f62009-11-15 23:12:43 +000020268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020269/* end confdefs.h. */
20270$ac_includes_default
20271int
20272main ()
20273{
20274static int test_array [1 - 2 * !(((char) -1) < 0)];
20275test_array [0] = 0
20276
20277 ;
20278 return 0;
20279}
20280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020281if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020282 ac_cv_c_char_unsigned=no
20283else
cristy8b350f62009-11-15 23:12:43 +000020284 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020285fi
cristy3ed852e2009-09-05 21:47:34 +000020286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287fi
cristy8b350f62009-11-15 23:12:43 +000020288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020289$as_echo "$ac_cv_c_char_unsigned" >&6; }
20290if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020291 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020292
20293fi
20294
20295
20296# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20297# The cast to long int works around a bug in the HP C Compiler
20298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20300# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020302$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020303if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020304 $as_echo_n "(cached) " >&6
20305else
cristy8b350f62009-11-15 23:12:43 +000020306 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 +000020307
cristy3ed852e2009-09-05 21:47:34 +000020308else
cristy8b350f62009-11-15 23:12:43 +000020309 if test "$ac_cv_type_signed_short" = yes; then
20310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020312{ as_fn_set_status 77
20313as_fn_error "cannot compute sizeof (signed short)
20314See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020315 else
20316 ac_cv_sizeof_signed_short=0
20317 fi
20318fi
cristy8b350f62009-11-15 23:12:43 +000020319
cristy3ed852e2009-09-05 21:47:34 +000020320fi
cristy8b350f62009-11-15 23:12:43 +000020321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020322$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20323
20324
20325
20326cat >>confdefs.h <<_ACEOF
20327#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20328_ACEOF
20329
20330
20331
20332# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20333# The cast to long int works around a bug in the HP C Compiler
20334# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20335# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20336# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020338$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020339if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020340 $as_echo_n "(cached) " >&6
20341else
cristy8b350f62009-11-15 23:12:43 +000020342 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 +000020343
cristy3ed852e2009-09-05 21:47:34 +000020344else
cristy8b350f62009-11-15 23:12:43 +000020345 if test "$ac_cv_type_unsigned_short" = yes; then
20346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020348{ as_fn_set_status 77
20349as_fn_error "cannot compute sizeof (unsigned short)
20350See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020351 else
20352 ac_cv_sizeof_unsigned_short=0
20353 fi
20354fi
cristy8b350f62009-11-15 23:12:43 +000020355
cristy3ed852e2009-09-05 21:47:34 +000020356fi
cristy8b350f62009-11-15 23:12:43 +000020357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020358$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20359
20360
20361
20362cat >>confdefs.h <<_ACEOF
20363#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20364_ACEOF
20365
20366
20367
20368# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20369# The cast to long int works around a bug in the HP C Compiler
20370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20372# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020374$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020375if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020376 $as_echo_n "(cached) " >&6
20377else
cristy8b350f62009-11-15 23:12:43 +000020378 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 +000020379
cristy3ed852e2009-09-05 21:47:34 +000020380else
cristy8b350f62009-11-15 23:12:43 +000020381 if test "$ac_cv_type_signed_int" = yes; then
20382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020384{ as_fn_set_status 77
20385as_fn_error "cannot compute sizeof (signed int)
20386See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020387 else
20388 ac_cv_sizeof_signed_int=0
20389 fi
20390fi
cristy8b350f62009-11-15 23:12:43 +000020391
cristy3ed852e2009-09-05 21:47:34 +000020392fi
cristy8b350f62009-11-15 23:12:43 +000020393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020394$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20395
20396
20397
20398cat >>confdefs.h <<_ACEOF
20399#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20400_ACEOF
20401
20402
20403
20404# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20405# The cast to long int works around a bug in the HP C Compiler
20406# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20407# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20408# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020410$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020411if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020412 $as_echo_n "(cached) " >&6
20413else
cristy8b350f62009-11-15 23:12:43 +000020414 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 +000020415
cristy3ed852e2009-09-05 21:47:34 +000020416else
cristy8b350f62009-11-15 23:12:43 +000020417 if test "$ac_cv_type_unsigned_int" = yes; then
20418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020420{ as_fn_set_status 77
20421as_fn_error "cannot compute sizeof (unsigned int)
20422See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020423 else
20424 ac_cv_sizeof_unsigned_int=0
20425 fi
20426fi
cristy8b350f62009-11-15 23:12:43 +000020427
cristy3ed852e2009-09-05 21:47:34 +000020428fi
cristy8b350f62009-11-15 23:12:43 +000020429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020430$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20431
20432
20433
20434cat >>confdefs.h <<_ACEOF
20435#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20436_ACEOF
20437
20438
20439
20440# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20441# The cast to long int works around a bug in the HP C Compiler
20442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20444# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020446$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020447if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020448 $as_echo_n "(cached) " >&6
20449else
cristy8b350f62009-11-15 23:12:43 +000020450 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 +000020451
cristy3ed852e2009-09-05 21:47:34 +000020452else
cristy8b350f62009-11-15 23:12:43 +000020453 if test "$ac_cv_type_signed_long" = yes; then
20454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020456{ as_fn_set_status 77
20457as_fn_error "cannot compute sizeof (signed long)
20458See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020459 else
20460 ac_cv_sizeof_signed_long=0
20461 fi
20462fi
cristy8b350f62009-11-15 23:12:43 +000020463
cristy3ed852e2009-09-05 21:47:34 +000020464fi
cristy8b350f62009-11-15 23:12:43 +000020465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020466$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20467
20468
20469
20470cat >>confdefs.h <<_ACEOF
20471#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20472_ACEOF
20473
20474
20475
20476# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20477# The cast to long int works around a bug in the HP C Compiler
20478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20480# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020482$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020483if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020484 $as_echo_n "(cached) " >&6
20485else
cristy8b350f62009-11-15 23:12:43 +000020486 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 +000020487
cristy3ed852e2009-09-05 21:47:34 +000020488else
cristy8b350f62009-11-15 23:12:43 +000020489 if test "$ac_cv_type_unsigned_long" = yes; then
20490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020492{ as_fn_set_status 77
20493as_fn_error "cannot compute sizeof (unsigned long)
20494See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020495 else
20496 ac_cv_sizeof_unsigned_long=0
20497 fi
20498fi
cristy8b350f62009-11-15 23:12:43 +000020499
cristy3ed852e2009-09-05 21:47:34 +000020500fi
cristy8b350f62009-11-15 23:12:43 +000020501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020502$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20503
20504
20505
20506cat >>confdefs.h <<_ACEOF
20507#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20508_ACEOF
20509
20510
20511
20512# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20513# 'signed long long' is not supported then the value defined is zero.
20514# The cast to long int works around a bug in the HP C Compiler
20515# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20516# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20517# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020519$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020520if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020521 $as_echo_n "(cached) " >&6
20522else
cristy8b350f62009-11-15 23:12:43 +000020523 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 +000020524
cristy3ed852e2009-09-05 21:47:34 +000020525else
cristy8b350f62009-11-15 23:12:43 +000020526 if test "$ac_cv_type_signed_long_long" = yes; then
20527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020529{ as_fn_set_status 77
20530as_fn_error "cannot compute sizeof (signed long long)
20531See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020532 else
20533 ac_cv_sizeof_signed_long_long=0
20534 fi
20535fi
cristy8b350f62009-11-15 23:12:43 +000020536
cristy3ed852e2009-09-05 21:47:34 +000020537fi
cristy8b350f62009-11-15 23:12:43 +000020538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020539$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20540
20541
20542
20543cat >>confdefs.h <<_ACEOF
20544#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20545_ACEOF
20546
20547
20548
20549# Obtain size of a 'unsigned long long' and define as
20550# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20551# supported then the value defined is zero.
20552# The cast to long int works around a bug in the HP C Compiler
20553# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20554# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20555# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020557$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020558if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020559 $as_echo_n "(cached) " >&6
20560else
cristy8b350f62009-11-15 23:12:43 +000020561 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 +000020562
cristy3ed852e2009-09-05 21:47:34 +000020563else
cristy8b350f62009-11-15 23:12:43 +000020564 if test "$ac_cv_type_unsigned_long_long" = yes; then
20565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020567{ as_fn_set_status 77
20568as_fn_error "cannot compute sizeof (unsigned long long)
20569See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020570 else
20571 ac_cv_sizeof_unsigned_long_long=0
20572 fi
20573fi
cristy8b350f62009-11-15 23:12:43 +000020574
cristy3ed852e2009-09-05 21:47:34 +000020575fi
cristy8b350f62009-11-15 23:12:43 +000020576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020577$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20578
20579
20580
20581cat >>confdefs.h <<_ACEOF
20582#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20583_ACEOF
20584
20585
20586
20587# Obtain size of off_t and define as SIZEOF_OFF_T
20588# The cast to long int works around a bug in the HP C Compiler
20589# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20590# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20591# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020593$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020594if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020595 $as_echo_n "(cached) " >&6
20596else
cristy8b350f62009-11-15 23:12:43 +000020597 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 +000020598
cristy3ed852e2009-09-05 21:47:34 +000020599else
cristy8b350f62009-11-15 23:12:43 +000020600 if test "$ac_cv_type_off_t" = yes; then
20601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020603{ as_fn_set_status 77
20604as_fn_error "cannot compute sizeof (off_t)
20605See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020606 else
20607 ac_cv_sizeof_off_t=0
20608 fi
20609fi
cristy8b350f62009-11-15 23:12:43 +000020610
cristy3ed852e2009-09-05 21:47:34 +000020611fi
cristy8b350f62009-11-15 23:12:43 +000020612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020613$as_echo "$ac_cv_sizeof_off_t" >&6; }
20614
20615
20616
20617cat >>confdefs.h <<_ACEOF
20618#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20619_ACEOF
20620
20621
20622
20623# Obtain size of size_t and define as SIZEOF_SIZE_T
20624# The cast to long int works around a bug in the HP C Compiler
20625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20627# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020629$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020630if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020631 $as_echo_n "(cached) " >&6
20632else
cristy8b350f62009-11-15 23:12:43 +000020633 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 +000020634
cristy3ed852e2009-09-05 21:47:34 +000020635else
cristy8b350f62009-11-15 23:12:43 +000020636 if test "$ac_cv_type_size_t" = yes; then
20637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020639{ as_fn_set_status 77
20640as_fn_error "cannot compute sizeof (size_t)
20641See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020642 else
20643 ac_cv_sizeof_size_t=0
20644 fi
20645fi
cristy8b350f62009-11-15 23:12:43 +000020646
cristy3ed852e2009-09-05 21:47:34 +000020647fi
cristy8b350f62009-11-15 23:12:43 +000020648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020649$as_echo "$ac_cv_sizeof_size_t" >&6; }
20650
20651
20652
20653cat >>confdefs.h <<_ACEOF
20654#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20655_ACEOF
20656
20657
20658
20659# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20660# The cast to long int works around a bug in the HP C Compiler
20661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20663# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020665$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020666if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020667 $as_echo_n "(cached) " >&6
20668else
cristy8b350f62009-11-15 23:12:43 +000020669 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 +000020670
cristy3ed852e2009-09-05 21:47:34 +000020671else
cristy8b350f62009-11-15 23:12:43 +000020672 if test "$ac_cv_type_unsigned_intp" = yes; then
20673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020675{ as_fn_set_status 77
20676as_fn_error "cannot compute sizeof (unsigned int*)
20677See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020678 else
20679 ac_cv_sizeof_unsigned_intp=0
20680 fi
20681fi
cristy8b350f62009-11-15 23:12:43 +000020682
cristy3ed852e2009-09-05 21:47:34 +000020683fi
cristy8b350f62009-11-15 23:12:43 +000020684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020685$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20686
20687
20688
20689cat >>confdefs.h <<_ACEOF
20690#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20691_ACEOF
20692
20693
20694
20695#
20696# Compute sized types for current CPU and compiler options.
20697#
20698
cristy8b350f62009-11-15 23:12:43 +000020699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020700$as_echo_n "checking for signed 8-bit type... " >&6; }
20701INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020703$as_echo "$INT8_T" >&6; }
20704
20705
cristy8b350f62009-11-15 23:12:43 +000020706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020707$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20708UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020710$as_echo "$UINT8_T" >&6; }
20711
20712
cristy8b350f62009-11-15 23:12:43 +000020713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020714$as_echo_n "checking for signed 16-bit type... " >&6; }
20715INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020717$as_echo "$INT16_T" >&6; }
20718
20719
cristy8b350f62009-11-15 23:12:43 +000020720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020721$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20722UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020724$as_echo "$UINT16_T" >&6; }
20725
20726
cristy8b350f62009-11-15 23:12:43 +000020727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020728$as_echo_n "checking for signed 32-bit type... " >&6; }
20729INT32_T='none'
20730if test $ac_cv_sizeof_signed_int -eq 4; then
20731 INT32_T='signed int'
20732elif test $ac_cv_sizeof_signed_long -eq 4; then
20733 INT32_T='signed long'
20734fi
cristy8b350f62009-11-15 23:12:43 +000020735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020736$as_echo "$INT32_T" >&6; }
20737
20738
cristy8b350f62009-11-15 23:12:43 +000020739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020740$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20741UINT32_T='none'
20742if test $ac_cv_sizeof_unsigned_int -eq 4; then
20743 UINT32_T='unsigned int'
20744elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20745 UINT32_T='unsigned long'
20746fi
cristy8b350f62009-11-15 23:12:43 +000020747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020748$as_echo "$UINT32_T" >&6; }
20749
20750
cristy8b350f62009-11-15 23:12:43 +000020751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020752$as_echo_n "checking for signed 64-bit type... " >&6; }
20753INT64_T='none'
20754if test $ac_cv_sizeof_signed_long -eq 8; then
20755 INT64_T='signed long'
20756elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20757 INT64_T='signed long long'
20758fi
cristy8b350f62009-11-15 23:12:43 +000020759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020760$as_echo "$INT64_T" >&6; }
20761
20762
cristy8b350f62009-11-15 23:12:43 +000020763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020764$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20765UINT64_T='none'
20766if test $ac_cv_sizeof_unsigned_long -eq 8; then
20767 UINT64_T='unsigned long'
20768elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20769 UINT64_T='unsigned long long'
20770fi
cristy8b350f62009-11-15 23:12:43 +000020771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020772$as_echo "$UINT64_T" >&6; }
20773
20774
cristy8b350f62009-11-15 23:12:43 +000020775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020776$as_echo_n "checking for unsigned maximum type... " >&6; }
20777UINTMAX_T='none'
20778if test "$UINT64_T" != 'none'; then
20779 UINTMAX_T=$UINT64_T
20780elif test "$UINT32_T" != 'none'; then
20781 UINTMAX_T=$UINT32_T
20782fi
cristy8b350f62009-11-15 23:12:43 +000020783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020784$as_echo "$UINTMAX_T" >&6; }
20785
20786
cristy8b350f62009-11-15 23:12:43 +000020787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020788$as_echo_n "checking for pointer difference type... " >&6; }
20789UINTPTR_T='none'
20790if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20791 UINTPTR_T='unsigned long'
20792elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20793 UINTPTR_T='unsigned long long'
20794fi
cristy8b350f62009-11-15 23:12:43 +000020795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020796$as_echo "$UINTPTR_T" >&6; }
20797
20798
cristy8b350f62009-11-15 23:12:43 +000020799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020800$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020802/* end confdefs.h. */
20803
20804int
20805main ()
20806{
20807{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20808 ;
20809 return 0;
20810}
20811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020812if ac_fn_c_try_compile "$LINENO"; then :
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020814$as_echo "yes" >&6; }
20815else
cristy8b350f62009-11-15 23:12:43 +000020816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020817$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020819$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020821/* end confdefs.h. */
20822
20823int
20824main ()
20825{
20826{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20827 ;
20828 return 0;
20829}
20830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020831if ac_fn_c_try_compile "$LINENO"; then :
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020833$as_echo "yes" >&6; }
20834
cristy8b350f62009-11-15 23:12:43 +000020835$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020836
20837else
cristy8b350f62009-11-15 23:12:43 +000020838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020839$as_echo "no" >&6; }
20840
cristy8b350f62009-11-15 23:12:43 +000020841$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020842
20843fi
cristy3ed852e2009-09-05 21:47:34 +000020844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845fi
cristy3ed852e2009-09-05 21:47:34 +000020846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847
20848########
20849#
20850# Check for functions
20851#
20852########
cristy3ed852e2009-09-05 21:47:34 +000020853for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020854do :
20855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20856ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20857eval as_val=\$$as_ac_Header
20858 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020859 cat >>confdefs.h <<_ACEOF
20860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20861_ACEOF
20862
20863fi
20864
20865done
20866
cristy3ed852e2009-09-05 21:47:34 +000020867for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020868do :
20869 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20870if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020871 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020872#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020873_ACEOF
20874
20875fi
20876done
20877
cristy8b350f62009-11-15 23:12:43 +000020878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020879$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020880if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020881 $as_echo_n "(cached) " >&6
20882else
cristy8b350f62009-11-15 23:12:43 +000020883 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020884 magick_cv_func_mmap_fileio=no
20885else
cristy8b350f62009-11-15 23:12:43 +000020886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020887/* end confdefs.h. */
20888$ac_includes_default
20889/* malloc might have been renamed as rpl_malloc. */
20890#undef malloc
20891
20892/*
20893 This test is derived from GNU Autoconf's similar macro.
20894 The purpose of this test is to verify that files may be memory
20895 mapped, and that memory mapping and file I/O are coherent.
20896
20897 The test creates a test file, memory maps the file, updates
20898 the file using the memory map, and then reads the file using
20899 file I/O to verify that the file contains the updates.
20900*/
20901
20902#include <fcntl.h>
20903#include <sys/mman.h>
20904
20905#if !STDC_HEADERS && !HAVE_STDLIB_H
20906char *malloc ();
20907#endif
20908
20909/* This mess was copied from the GNU getpagesize.h. */
20910#if !HAVE_GETPAGESIZE
20911/* Assume that all systems that can run configure have sys/param.h. */
20912# if !HAVE_SYS_PARAM_H
20913# define HAVE_SYS_PARAM_H 1
20914# endif
20915
20916# ifdef _SC_PAGESIZE
20917# define getpagesize() sysconf(_SC_PAGESIZE)
20918# else /* no _SC_PAGESIZE */
20919# if HAVE_SYS_PARAM_H
20920# include <sys/param.h>
20921# ifdef EXEC_PAGESIZE
20922# define getpagesize() EXEC_PAGESIZE
20923# else /* no EXEC_PAGESIZE */
20924# ifdef NBPG
20925# define getpagesize() NBPG * CLSIZE
20926# ifndef CLSIZE
20927# define CLSIZE 1
20928# endif /* no CLSIZE */
20929# else /* no NBPG */
20930# ifdef NBPC
20931# define getpagesize() NBPC
20932# else /* no NBPC */
20933# ifdef PAGESIZE
20934# define getpagesize() PAGESIZE
20935# endif /* PAGESIZE */
20936# endif /* no NBPC */
20937# endif /* no NBPG */
20938# endif /* no EXEC_PAGESIZE */
20939# else /* no HAVE_SYS_PARAM_H */
20940# define getpagesize() 8192 /* punt totally */
20941# endif /* no HAVE_SYS_PARAM_H */
20942# endif /* no _SC_PAGESIZE */
20943
20944#endif /* no HAVE_GETPAGESIZE */
20945
20946int
20947main ()
20948{
20949 char *data, *data2, *data3;
20950 int i, pagesize;
20951 int fd;
20952
20953 pagesize = getpagesize ();
20954
20955 /* First, make a file with some known garbage in it. */
20956 data = (char *) malloc (pagesize);
20957 if (!data)
20958 exit (1);
20959 for (i = 0; i < pagesize; ++i)
20960 *(data + i) = rand ();
20961 umask (0);
20962 fd = creat ("conftest.mmap", 0600);
20963 if (fd < 0)
20964 exit (1);
20965 if (write (fd, data, pagesize) != pagesize)
20966 exit (1);
20967 close (fd);
20968
20969 /* Mmap the file as read/write/shared and verify that we see the
20970 same garbage. */
20971 fd = open ("conftest.mmap", O_RDWR);
20972 if (fd < 0)
20973 exit (1);
20974 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20975 if (data2 == 0)
20976 exit (1);
20977 for (i = 0; i < pagesize; ++i)
20978 if (*(data + i) != *(data2 + i))
20979 exit (1);
20980
20981 /* Finally, make sure that changes to the mapped area
20982 percolate back to the file as seen by read(). */
20983 for (i = 0; i < pagesize; ++i)
20984 *(data2 + i) = *(data2 + i) + 1;
20985 data3 = (char *) malloc (pagesize);
20986 if (!data3)
20987 exit (1);
20988 if (read (fd, data3, pagesize) != pagesize)
20989 exit (1);
20990 for (i = 0; i < pagesize; ++i)
20991 if (*(data2 + i) != *(data3 + i))
20992 exit (1);
20993 close (fd);
20994 exit (0);
20995}
20996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020997if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020998 magick_cv_func_mmap_fileio=yes
20999else
cristy8b350f62009-11-15 23:12:43 +000021000 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021001fi
cristy8b350f62009-11-15 23:12:43 +000021002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21003 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021004fi
21005
cristy3ed852e2009-09-05 21:47:34 +000021006fi
cristy8b350f62009-11-15 23:12:43 +000021007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021008$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21009if test $magick_cv_func_mmap_fileio = yes; then
21010
cristy8b350f62009-11-15 23:12:43 +000021011$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021012
21013fi
21014rm -f conftest.mmap
21015
cristy8b350f62009-11-15 23:12:43 +000021016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021017$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021018if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021019 $as_echo_n "(cached) " >&6
21020else
cristy8b350f62009-11-15 23:12:43 +000021021 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021022 ac_cv_func_closedir_void=yes
21023else
cristy8b350f62009-11-15 23:12:43 +000021024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021025/* end confdefs.h. */
21026$ac_includes_default
21027#include <$ac_header_dirent>
21028#ifndef __cplusplus
21029int closedir ();
21030#endif
21031
21032int
21033main ()
21034{
21035return closedir (opendir (".")) != 0;
21036 ;
21037 return 0;
21038}
21039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021040if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021041 ac_cv_func_closedir_void=no
21042else
cristy8b350f62009-11-15 23:12:43 +000021043 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021044fi
cristy8b350f62009-11-15 23:12:43 +000021045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21046 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021047fi
21048
cristy3ed852e2009-09-05 21:47:34 +000021049fi
cristy8b350f62009-11-15 23:12:43 +000021050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021051$as_echo "$ac_cv_func_closedir_void" >&6; }
21052if test $ac_cv_func_closedir_void = yes; then
21053
cristy8b350f62009-11-15 23:12:43 +000021054$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021055
21056fi
21057
cristycd4c5312009-11-22 01:19:08 +000021058
21059
21060
21061 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021062do :
21063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021064ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21065"
cristy8b350f62009-11-15 23:12:43 +000021066eval as_val=\$$as_ac_Header
21067 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021068 cat >>confdefs.h <<_ACEOF
21069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21070_ACEOF
21071
21072fi
21073
21074done
21075
cristycd4c5312009-11-22 01:19:08 +000021076
21077
21078
21079
21080
21081
21082
cristy3ed852e2009-09-05 21:47:34 +000021083for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021084do :
21085 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21086if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021087 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021088#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021089_ACEOF
21090
21091fi
21092done
21093
cristy8b350f62009-11-15 23:12:43 +000021094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021095$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021096if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021097 $as_echo_n "(cached) " >&6
21098else
cristy8b350f62009-11-15 23:12:43 +000021099 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021100 ac_cv_func_mmap_fixed_mapped=no
21101else
cristy8b350f62009-11-15 23:12:43 +000021102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021103/* end confdefs.h. */
21104$ac_includes_default
21105/* malloc might have been renamed as rpl_malloc. */
21106#undef malloc
21107
21108/* Thanks to Mike Haertel and Jim Avera for this test.
21109 Here is a matrix of mmap possibilities:
21110 mmap private not fixed
21111 mmap private fixed at somewhere currently unmapped
21112 mmap private fixed at somewhere already mapped
21113 mmap shared not fixed
21114 mmap shared fixed at somewhere currently unmapped
21115 mmap shared fixed at somewhere already mapped
21116 For private mappings, we should verify that changes cannot be read()
21117 back from the file, nor mmap's back from the file at a different
21118 address. (There have been systems where private was not correctly
21119 implemented like the infamous i386 svr4.0, and systems where the
21120 VM page cache was not coherent with the file system buffer cache
21121 like early versions of FreeBSD and possibly contemporary NetBSD.)
21122 For shared mappings, we should conversely verify that changes get
21123 propagated back to all the places they're supposed to be.
21124
21125 Grep wants private fixed already mapped.
21126 The main things grep needs to know about mmap are:
21127 * does it exist and is it safe to write into the mmap'd area
21128 * how to use it (BSD variants) */
21129
21130#include <fcntl.h>
21131#include <sys/mman.h>
21132
21133#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21134char *malloc ();
21135#endif
21136
21137/* This mess was copied from the GNU getpagesize.h. */
21138#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021139# ifdef _SC_PAGESIZE
21140# define getpagesize() sysconf(_SC_PAGESIZE)
21141# else /* no _SC_PAGESIZE */
21142# ifdef HAVE_SYS_PARAM_H
21143# include <sys/param.h>
21144# ifdef EXEC_PAGESIZE
21145# define getpagesize() EXEC_PAGESIZE
21146# else /* no EXEC_PAGESIZE */
21147# ifdef NBPG
21148# define getpagesize() NBPG * CLSIZE
21149# ifndef CLSIZE
21150# define CLSIZE 1
21151# endif /* no CLSIZE */
21152# else /* no NBPG */
21153# ifdef NBPC
21154# define getpagesize() NBPC
21155# else /* no NBPC */
21156# ifdef PAGESIZE
21157# define getpagesize() PAGESIZE
21158# endif /* PAGESIZE */
21159# endif /* no NBPC */
21160# endif /* no NBPG */
21161# endif /* no EXEC_PAGESIZE */
21162# else /* no HAVE_SYS_PARAM_H */
21163# define getpagesize() 8192 /* punt totally */
21164# endif /* no HAVE_SYS_PARAM_H */
21165# endif /* no _SC_PAGESIZE */
21166
21167#endif /* no HAVE_GETPAGESIZE */
21168
21169int
21170main ()
21171{
21172 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021173 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021174 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021175 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021176
21177 pagesize = getpagesize ();
21178
21179 /* First, make a file with some known garbage in it. */
21180 data = (char *) malloc (pagesize);
21181 if (!data)
21182 return 1;
21183 for (i = 0; i < pagesize; ++i)
21184 *(data + i) = rand ();
21185 umask (0);
21186 fd = creat ("conftest.mmap", 0600);
21187 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021188 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021189 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021190 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021191 close (fd);
21192
cristycd4c5312009-11-22 01:19:08 +000021193 /* Next, check that the tail of a page is zero-filled. File must have
21194 non-zero length, otherwise we risk SIGBUS for entire page. */
21195 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21196 if (fd2 < 0)
21197 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021198 cdata2 = "";
21199 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021200 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021201 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021202 if (data2 == MAP_FAILED)
21203 return 6;
21204 for (i = 0; i < pagesize; ++i)
21205 if (*(data2 + i))
21206 return 7;
21207 close (fd2);
21208 if (munmap (data2, pagesize))
21209 return 8;
21210
cristy3ed852e2009-09-05 21:47:34 +000021211 /* Next, try to mmap the file at a fixed address which already has
21212 something else allocated at it. If we can, also make sure that
21213 we see the same garbage. */
21214 fd = open ("conftest.mmap", O_RDWR);
21215 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021216 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021217 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21218 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021219 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021220 for (i = 0; i < pagesize; ++i)
21221 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021222 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021223
21224 /* Finally, make sure that changes to the mapped area do not
21225 percolate back to the file as seen by read(). (This is a bug on
21226 some variants of i386 svr4.0.) */
21227 for (i = 0; i < pagesize; ++i)
21228 *(data2 + i) = *(data2 + i) + 1;
21229 data3 = (char *) malloc (pagesize);
21230 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021231 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021232 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021233 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021234 for (i = 0; i < pagesize; ++i)
21235 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021236 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021237 close (fd);
21238 return 0;
21239}
21240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021241if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021242 ac_cv_func_mmap_fixed_mapped=yes
21243else
cristy8b350f62009-11-15 23:12:43 +000021244 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021245fi
cristy8b350f62009-11-15 23:12:43 +000021246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21247 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021248fi
21249
cristy3ed852e2009-09-05 21:47:34 +000021250fi
cristy8b350f62009-11-15 23:12:43 +000021251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021252$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21253if test $ac_cv_func_mmap_fixed_mapped = yes; then
21254
cristy8b350f62009-11-15 23:12:43 +000021255$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021256
21257fi
cristycd4c5312009-11-22 01:19:08 +000021258rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021259
cristy3ed852e2009-09-05 21:47:34 +000021260for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021261do :
21262 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21263if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021264 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021265#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021266_ACEOF
21267
21268fi
21269
21270done
21271
cristy3ed852e2009-09-05 21:47:34 +000021272for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021273do :
21274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21275ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21276eval as_val=\$$as_ac_var
21277 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021278 cat >>confdefs.h <<_ACEOF
21279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21280_ACEOF
21281
21282fi
21283done
21284
21285if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021287$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021288if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021289 $as_echo_n "(cached) " >&6
21290else
cristy8b350f62009-11-15 23:12:43 +000021291 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021292 ac_cv_func_fork_works=cross
21293else
cristy8b350f62009-11-15 23:12:43 +000021294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021295/* end confdefs.h. */
21296$ac_includes_default
21297int
21298main ()
21299{
21300
21301 /* By Ruediger Kuhlmann. */
21302 return fork () < 0;
21303
21304 ;
21305 return 0;
21306}
21307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021308if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021309 ac_cv_func_fork_works=yes
21310else
cristy8b350f62009-11-15 23:12:43 +000021311 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021312fi
cristy8b350f62009-11-15 23:12:43 +000021313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21314 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021315fi
21316
cristy3ed852e2009-09-05 21:47:34 +000021317fi
cristy8b350f62009-11-15 23:12:43 +000021318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021319$as_echo "$ac_cv_func_fork_works" >&6; }
21320
21321else
21322 ac_cv_func_fork_works=$ac_cv_func_fork
21323fi
21324if test "x$ac_cv_func_fork_works" = xcross; then
21325 case $host in
21326 *-*-amigaos* | *-*-msdosdjgpp*)
21327 # Override, as these systems have only a dummy fork() stub
21328 ac_cv_func_fork_works=no
21329 ;;
21330 *)
21331 ac_cv_func_fork_works=yes
21332 ;;
21333 esac
cristy8b350f62009-11-15 23:12:43 +000021334 { $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 +000021335$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21336fi
21337ac_cv_func_vfork_works=$ac_cv_func_vfork
21338if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021340$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021341if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021342 $as_echo_n "(cached) " >&6
21343else
cristy8b350f62009-11-15 23:12:43 +000021344 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 ac_cv_func_vfork_works=cross
21346else
cristy8b350f62009-11-15 23:12:43 +000021347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021348/* end confdefs.h. */
21349/* Thanks to Paul Eggert for this test. */
21350$ac_includes_default
21351#include <sys/wait.h>
21352#ifdef HAVE_VFORK_H
21353# include <vfork.h>
21354#endif
21355/* On some sparc systems, changes by the child to local and incoming
21356 argument registers are propagated back to the parent. The compiler
21357 is told about this with #include <vfork.h>, but some compilers
21358 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21359 static variable whose address is put into a register that is
21360 clobbered by the vfork. */
21361static void
21362#ifdef __cplusplus
21363sparc_address_test (int arg)
21364# else
21365sparc_address_test (arg) int arg;
21366#endif
21367{
21368 static pid_t child;
21369 if (!child) {
21370 child = vfork ();
21371 if (child < 0) {
21372 perror ("vfork");
21373 _exit(2);
21374 }
21375 if (!child) {
21376 arg = getpid();
21377 write(-1, "", 0);
21378 _exit (arg);
21379 }
21380 }
21381}
21382
21383int
21384main ()
21385{
21386 pid_t parent = getpid ();
21387 pid_t child;
21388
21389 sparc_address_test (0);
21390
21391 child = vfork ();
21392
21393 if (child == 0) {
21394 /* Here is another test for sparc vfork register problems. This
21395 test uses lots of local variables, at least as many local
21396 variables as main has allocated so far including compiler
21397 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21398 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21399 reuse the register of parent for one of the local variables,
21400 since it will think that parent can't possibly be used any more
21401 in this routine. Assigning to the local variable will thus
21402 munge parent in the parent process. */
21403 pid_t
21404 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21405 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21406 /* Convince the compiler that p..p7 are live; otherwise, it might
21407 use the same hardware register for all 8 local variables. */
21408 if (p != p1 || p != p2 || p != p3 || p != p4
21409 || p != p5 || p != p6 || p != p7)
21410 _exit(1);
21411
21412 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21413 from child file descriptors. If the child closes a descriptor
21414 before it execs or exits, this munges the parent's descriptor
21415 as well. Test for this by closing stdout in the child. */
21416 _exit(close(fileno(stdout)) != 0);
21417 } else {
21418 int status;
21419 struct stat st;
21420
21421 while (wait(&status) != child)
21422 ;
21423 return (
21424 /* Was there some problem with vforking? */
21425 child < 0
21426
21427 /* Did the child fail? (This shouldn't happen.) */
21428 || status
21429
21430 /* Did the vfork/compiler bug occur? */
21431 || parent != getpid()
21432
21433 /* Did the file descriptor bug occur? */
21434 || fstat(fileno(stdout), &st) != 0
21435 );
21436 }
21437}
21438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021439if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021440 ac_cv_func_vfork_works=yes
21441else
cristy8b350f62009-11-15 23:12:43 +000021442 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021443fi
cristy8b350f62009-11-15 23:12:43 +000021444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21445 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021446fi
21447
cristy3ed852e2009-09-05 21:47:34 +000021448fi
cristy8b350f62009-11-15 23:12:43 +000021449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021450$as_echo "$ac_cv_func_vfork_works" >&6; }
21451
21452fi;
21453if test "x$ac_cv_func_fork_works" = xcross; then
21454 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021455 { $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 +000021456$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21457fi
21458
21459if test "x$ac_cv_func_vfork_works" = xyes; then
21460
cristy8b350f62009-11-15 23:12:43 +000021461$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021462
21463else
21464
cristy8b350f62009-11-15 23:12:43 +000021465$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021466
21467fi
21468if test "x$ac_cv_func_fork_works" = xyes; then
21469
cristy8b350f62009-11-15 23:12:43 +000021470$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021471
21472fi
21473
cristy8b350f62009-11-15 23:12:43 +000021474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021475$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021476if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021477 $as_echo_n "(cached) " >&6
21478else
cristy8b350f62009-11-15 23:12:43 +000021479 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021480 ac_cv_func_memcmp_working=no
21481else
cristy8b350f62009-11-15 23:12:43 +000021482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021483/* end confdefs.h. */
21484$ac_includes_default
21485int
21486main ()
21487{
21488
21489 /* Some versions of memcmp are not 8-bit clean. */
21490 char c0 = '\100', c1 = '\200', c2 = '\201';
21491 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21492 return 1;
21493
21494 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21495 or more and with at least one buffer not starting on a 4-byte boundary.
21496 William Lewis provided this test program. */
21497 {
21498 char foo[21];
21499 char bar[21];
21500 int i;
21501 for (i = 0; i < 4; i++)
21502 {
21503 char *a = foo + i;
21504 char *b = bar + i;
21505 strcpy (a, "--------01111111");
21506 strcpy (b, "--------10000000");
21507 if (memcmp (a, b, 16) >= 0)
21508 return 1;
21509 }
21510 return 0;
21511 }
21512
21513 ;
21514 return 0;
21515}
21516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021517if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021518 ac_cv_func_memcmp_working=yes
21519else
cristy8b350f62009-11-15 23:12:43 +000021520 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021521fi
cristy8b350f62009-11-15 23:12:43 +000021522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21523 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021524fi
21525
cristy3ed852e2009-09-05 21:47:34 +000021526fi
cristy8b350f62009-11-15 23:12:43 +000021527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021528$as_echo "$ac_cv_func_memcmp_working" >&6; }
21529test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21530 *" memcmp.$ac_objext "* ) ;;
21531 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21532 ;;
21533esac
21534
21535
cristy3ed852e2009-09-05 21:47:34 +000021536for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021537do :
21538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21539ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21540eval as_val=\$$as_ac_Header
21541 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021542 cat >>confdefs.h <<_ACEOF
21543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21544_ACEOF
21545
21546fi
21547
21548done
21549
cristy8b350f62009-11-15 23:12:43 +000021550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021551$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021552if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021553 $as_echo_n "(cached) " >&6
21554else
21555 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21556 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21557 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021559/* end confdefs.h. */
21560$ac_includes_default
21561#ifdef HAVE_SYS_SELECT_H
21562# include <sys/select.h>
21563#endif
21564#ifdef HAVE_SYS_SOCKET_H
21565# include <sys/socket.h>
21566#endif
21567
21568int
21569main ()
21570{
21571extern int select ($ac_arg1,
21572 $ac_arg234, $ac_arg234, $ac_arg234,
21573 $ac_arg5);
21574 ;
21575 return 0;
21576}
21577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021578if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021579 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021580fi
cristy3ed852e2009-09-05 21:47:34 +000021581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 done
21583 done
21584done
21585# Provide a safe default value.
21586: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21587
21588fi
cristy8b350f62009-11-15 23:12:43 +000021589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021590$as_echo "$ac_cv_func_select_args" >&6; }
21591ac_save_IFS=$IFS; IFS=','
21592set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21593IFS=$ac_save_IFS
21594shift
21595
21596cat >>confdefs.h <<_ACEOF
21597#define SELECT_TYPE_ARG1 $1
21598_ACEOF
21599
21600
21601cat >>confdefs.h <<_ACEOF
21602#define SELECT_TYPE_ARG234 ($2)
21603_ACEOF
21604
21605
21606cat >>confdefs.h <<_ACEOF
21607#define SELECT_TYPE_ARG5 ($3)
21608_ACEOF
21609
21610rm -f conftest*
21611
cristy8b350f62009-11-15 23:12:43 +000021612if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021613 $as_echo_n "(cached) " >&6
21614else
21615 ac_cv_func_setvbuf_reversed=no
21616fi
21617
21618
cristy8b350f62009-11-15 23:12:43 +000021619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021620$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021621if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021622 $as_echo_n "(cached) " >&6
21623else
cristy8b350f62009-11-15 23:12:43 +000021624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021625/* end confdefs.h. */
21626#include <sys/types.h>
21627#include <signal.h>
21628
21629int
21630main ()
21631{
21632return *(signal (0, 0)) (0) == 1;
21633 ;
21634 return 0;
21635}
21636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021637if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021638 ac_cv_type_signal=int
21639else
cristy8b350f62009-11-15 23:12:43 +000021640 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021641fi
cristy3ed852e2009-09-05 21:47:34 +000021642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643fi
cristy8b350f62009-11-15 23:12:43 +000021644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021645$as_echo "$ac_cv_type_signal" >&6; }
21646
21647cat >>confdefs.h <<_ACEOF
21648#define RETSIGTYPE $ac_cv_type_signal
21649_ACEOF
21650
21651
cristy8b350f62009-11-15 23:12:43 +000021652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021653$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021654if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021655 $as_echo_n "(cached) " >&6
21656else
cristy8b350f62009-11-15 23:12:43 +000021657 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021658 ac_cv_func_strtod=no
21659else
cristy8b350f62009-11-15 23:12:43 +000021660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021661/* end confdefs.h. */
21662
21663$ac_includes_default
21664#ifndef strtod
21665double strtod ();
21666#endif
21667int
21668main()
21669{
21670 {
21671 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21672 char *string = " +69";
21673 char *term;
21674 double value;
21675 value = strtod (string, &term);
21676 if (value != 69 || term != (string + 4))
21677 return 1;
21678 }
21679
21680 {
21681 /* Under Solaris 2.4, strtod returns the wrong value for the
21682 terminating character under some conditions. */
21683 char *string = "NaN";
21684 char *term;
21685 strtod (string, &term);
21686 if (term != string && *(term - 1) == 0)
21687 return 1;
21688 }
21689 return 0;
21690}
21691
21692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021693if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021694 ac_cv_func_strtod=yes
21695else
cristy8b350f62009-11-15 23:12:43 +000021696 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021697fi
cristy8b350f62009-11-15 23:12:43 +000021698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21699 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021700fi
21701
cristy3ed852e2009-09-05 21:47:34 +000021702fi
cristy8b350f62009-11-15 23:12:43 +000021703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo "$ac_cv_func_strtod" >&6; }
21705if test $ac_cv_func_strtod = no; then
21706 case " $LIBOBJS " in
21707 *" strtod.$ac_objext "* ) ;;
21708 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21709 ;;
21710esac
21711
cristy8b350f62009-11-15 23:12:43 +000021712ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21713if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021714
cristy3ed852e2009-09-05 21:47:34 +000021715fi
21716
cristy3ed852e2009-09-05 21:47:34 +000021717if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021719$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021720if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 $as_echo_n "(cached) " >&6
21722else
21723 ac_check_lib_save_LIBS=$LIBS
21724LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021726/* end confdefs.h. */
21727
21728/* Override any GCC internal prototype to avoid an error.
21729 Use char because int might match the return type of a GCC
21730 builtin and then its argument prototype would still apply. */
21731#ifdef __cplusplus
21732extern "C"
21733#endif
21734char pow ();
21735int
21736main ()
21737{
21738return pow ();
21739 ;
21740 return 0;
21741}
21742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021743if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021744 ac_cv_lib_m_pow=yes
21745else
cristy8b350f62009-11-15 23:12:43 +000021746 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021747fi
cristy8b350f62009-11-15 23:12:43 +000021748rm -f core conftest.err conftest.$ac_objext \
21749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021750LIBS=$ac_check_lib_save_LIBS
21751fi
cristy8b350f62009-11-15 23:12:43 +000021752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021753$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021754if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021755 POW_LIB=-lm
21756else
cristy8b350f62009-11-15 23:12:43 +000021757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021758$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21759fi
21760
21761fi
21762
21763fi
21764
cristy3ed852e2009-09-05 21:47:34 +000021765for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021766do :
21767 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21768if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021770#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021771_ACEOF
21772
cristy8b350f62009-11-15 23:12:43 +000021773ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21774if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021775
cristy8b350f62009-11-15 23:12:43 +000021776$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021777
21778fi
21779
21780fi
21781done
21782
21783
21784
cristye43a45e2009-09-28 14:49:00 +000021785for 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 symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000021786do :
21787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21788ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21789eval as_val=\$$as_ac_var
21790 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021791 cat >>confdefs.h <<_ACEOF
21792#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21793_ACEOF
21794
21795fi
21796done
21797
21798
cristye43a45e2009-09-28 14:49:00 +000021799#
21800# Check for clock_gettime().
21801#
cristy8b350f62009-11-15 23:12:43 +000021802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021803$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021804if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021805 $as_echo_n "(cached) " >&6
21806else
21807 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021809/* end confdefs.h. */
21810
21811/* Override any GCC internal prototype to avoid an error.
21812 Use char because int might match the return type of a GCC
21813 builtin and then its argument prototype would still apply. */
21814#ifdef __cplusplus
21815extern "C"
21816#endif
21817char clock_gettime ();
21818int
21819main ()
21820{
21821return clock_gettime ();
21822 ;
21823 return 0;
21824}
21825_ACEOF
21826for ac_lib in '' rt; do
21827 if test -z "$ac_lib"; then
21828 ac_res="none required"
21829 else
21830 ac_res=-l$ac_lib
21831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21832 fi
cristy8b350f62009-11-15 23:12:43 +000021833 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021834 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021835fi
cristy8b350f62009-11-15 23:12:43 +000021836rm -f core conftest.err conftest.$ac_objext \
21837 conftest$ac_exeext
21838 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021839 break
21840fi
21841done
cristy8b350f62009-11-15 23:12:43 +000021842if test "${ac_cv_search_clock_gettime+set}" = set; then :
21843
cristye43a45e2009-09-28 14:49:00 +000021844else
21845 ac_cv_search_clock_gettime=no
21846fi
21847rm conftest.$ac_ext
21848LIBS=$ac_func_search_save_LIBS
21849fi
cristy8b350f62009-11-15 23:12:43 +000021850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021851$as_echo "$ac_cv_search_clock_gettime" >&6; }
21852ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021853if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21855
21856
cristy8b350f62009-11-15 23:12:43 +000021857$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021858
cristy8b350f62009-11-15 23:12:43 +000021859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021860$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021862/* end confdefs.h. */
21863#include <time.h>
21864int
21865main ()
21866{
21867clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021868 ;
21869 return 0;
21870}
21871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021872if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021873
cristy8b350f62009-11-15 23:12:43 +000021874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021875$as_echo "yes" >&6; }
21876
cristy8b350f62009-11-15 23:12:43 +000021877$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021878
21879
21880else
cristy8b350f62009-11-15 23:12:43 +000021881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021882$as_echo "no" >&6; }
21883
21884fi
cristye43a45e2009-09-28 14:49:00 +000021885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886
21887else
21888
cristy8b350f62009-11-15 23:12:43 +000021889 for ac_func in gettimeofday ftime
21890do :
21891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21892ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21893eval as_val=\$$as_ac_var
21894 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021895 cat >>confdefs.h <<_ACEOF
21896#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21897_ACEOF
21898 break
21899fi
21900done
21901
21902
21903
21904fi
21905
21906
cristy3ed852e2009-09-05 21:47:34 +000021907########
21908#
21909# Check for function prototypes
21910#
21911########
21912
cristy8b350f62009-11-15 23:12:43 +000021913ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021914#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021915"
21916if test "x$ac_cv_have_decl_pread" = x""yes; then :
21917 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021918else
cristy8b350f62009-11-15 23:12:43 +000021919 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021920fi
21921
cristy3ed852e2009-09-05 21:47:34 +000021922cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021923#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021925ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021926#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021927"
21928if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21929 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021930else
cristy8b350f62009-11-15 23:12:43 +000021931 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021932fi
21933
cristy3ed852e2009-09-05 21:47:34 +000021934cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021935#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021936_ACEOF
21937
21938
cristy8b350f62009-11-15 23:12:43 +000021939ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021940#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021941"
21942if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21943 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021944else
cristy8b350f62009-11-15 23:12:43 +000021945 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021946fi
21947
cristy3ed852e2009-09-05 21:47:34 +000021948cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021949#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021950_ACEOF
21951
21952
cristy8b350f62009-11-15 23:12:43 +000021953ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021954#include <stdio.h>
21955#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021956"
21957if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21958 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021959else
cristy8b350f62009-11-15 23:12:43 +000021960 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021961fi
21962
cristy3ed852e2009-09-05 21:47:34 +000021963cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021964#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021965_ACEOF
21966
21967
cristy3ed852e2009-09-05 21:47:34 +000021968########
21969#
21970# C++ Support Tests (For Magick++)
21971#
21972########
21973have_magick_plus_plus='no'
21974if test "$with_magick_plus_plus" = 'yes'; then
21975 OLIBS="$LIBS"
21976 LIBS=''
21977 ac_ext=cpp
21978ac_cpp='$CXXCPP $CPPFLAGS'
21979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21982
21983
21984 # Full set of headers used...
21985 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21986 # functional iomanip iosfwd iostream iterator list string strstream utility
21987 ac_ext=cpp
21988ac_cpp='$CXXCPP $CPPFLAGS'
21989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21992
21993 ac_ext=cpp
21994ac_cpp='$CXXCPP $CPPFLAGS'
21995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21998if test -z "$CXX"; then
21999 if test -n "$CCC"; then
22000 CXX=$CCC
22001 else
22002 if test -n "$ac_tool_prefix"; then
22003 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22004 do
22005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22006set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022008$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022009if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022010 $as_echo_n "(cached) " >&6
22011else
22012 if test -n "$CXX"; then
22013 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22014else
22015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22016for as_dir in $PATH
22017do
22018 IFS=$as_save_IFS
22019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22022 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022024 break 2
22025 fi
22026done
cristy8b350f62009-11-15 23:12:43 +000022027 done
cristy3ed852e2009-09-05 21:47:34 +000022028IFS=$as_save_IFS
22029
22030fi
22031fi
22032CXX=$ac_cv_prog_CXX
22033if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022035$as_echo "$CXX" >&6; }
22036else
cristy8b350f62009-11-15 23:12:43 +000022037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022038$as_echo "no" >&6; }
22039fi
22040
22041
22042 test -n "$CXX" && break
22043 done
22044fi
22045if test -z "$CXX"; then
22046 ac_ct_CXX=$CXX
22047 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22048do
22049 # Extract the first word of "$ac_prog", so it can be a program name with args.
22050set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022052$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022053if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022054 $as_echo_n "(cached) " >&6
22055else
22056 if test -n "$ac_ct_CXX"; then
22057 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22058else
22059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22060for as_dir in $PATH
22061do
22062 IFS=$as_save_IFS
22063 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022064 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22066 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022068 break 2
22069 fi
22070done
cristy8b350f62009-11-15 23:12:43 +000022071 done
cristy3ed852e2009-09-05 21:47:34 +000022072IFS=$as_save_IFS
22073
22074fi
22075fi
22076ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22077if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022079$as_echo "$ac_ct_CXX" >&6; }
22080else
cristy8b350f62009-11-15 23:12:43 +000022081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022082$as_echo "no" >&6; }
22083fi
22084
22085
22086 test -n "$ac_ct_CXX" && break
22087done
22088
22089 if test "x$ac_ct_CXX" = x; then
22090 CXX="g++"
22091 else
22092 case $cross_compiling:$ac_tool_warned in
22093yes:)
cristy8b350f62009-11-15 23:12:43 +000022094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22096ac_tool_warned=yes ;;
22097esac
22098 CXX=$ac_ct_CXX
22099 fi
22100fi
22101
22102 fi
22103fi
22104# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022105$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022106set X $ac_compile
22107ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022108for ac_option in --version -v -V -qversion; do
22109 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022110case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113esac
cristy8b350f62009-11-15 23:12:43 +000022114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22115$as_echo "$ac_try_echo"; } >&5
22116 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022117 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022118 if test -s conftest.err; then
22119 sed '10a\
22120... rest of stderr output deleted ...
22121 10q' conftest.err >conftest.er1
22122 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022123 fi
cristycd4c5312009-11-22 01:19:08 +000022124 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22126 test $ac_status = 0; }
22127done
cristy3ed852e2009-09-05 21:47:34 +000022128
cristy8b350f62009-11-15 23:12:43 +000022129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022130$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022131if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022132 $as_echo_n "(cached) " >&6
22133else
cristy8b350f62009-11-15 23:12:43 +000022134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022135/* end confdefs.h. */
22136
22137int
22138main ()
22139{
22140#ifndef __GNUC__
22141 choke me
22142#endif
22143
22144 ;
22145 return 0;
22146}
22147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022148if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022149 ac_compiler_gnu=yes
22150else
cristy8b350f62009-11-15 23:12:43 +000022151 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022152fi
cristy3ed852e2009-09-05 21:47:34 +000022153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22154ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22155
22156fi
cristy8b350f62009-11-15 23:12:43 +000022157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022158$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22159if test $ac_compiler_gnu = yes; then
22160 GXX=yes
22161else
22162 GXX=
22163fi
22164ac_test_CXXFLAGS=${CXXFLAGS+set}
22165ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022167$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022168if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 $as_echo_n "(cached) " >&6
22170else
22171 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22172 ac_cxx_werror_flag=yes
22173 ac_cv_prog_cxx_g=no
22174 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022176/* end confdefs.h. */
22177
22178int
22179main ()
22180{
22181
22182 ;
22183 return 0;
22184}
22185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022186if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022187 ac_cv_prog_cxx_g=yes
22188else
cristy8b350f62009-11-15 23:12:43 +000022189 CXXFLAGS=""
22190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022191/* end confdefs.h. */
22192
22193int
22194main ()
22195{
22196
22197 ;
22198 return 0;
22199}
22200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022201if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022202
cristy8b350f62009-11-15 23:12:43 +000022203else
22204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022205 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022207/* end confdefs.h. */
22208
22209int
22210main ()
22211{
22212
22213 ;
22214 return 0;
22215}
22216_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022217if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022218 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022219fi
cristy3ed852e2009-09-05 21:47:34 +000022220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221fi
cristy3ed852e2009-09-05 21:47:34 +000022222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223fi
cristy3ed852e2009-09-05 21:47:34 +000022224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22226fi
cristy8b350f62009-11-15 23:12:43 +000022227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022228$as_echo "$ac_cv_prog_cxx_g" >&6; }
22229if test "$ac_test_CXXFLAGS" = set; then
22230 CXXFLAGS=$ac_save_CXXFLAGS
22231elif test $ac_cv_prog_cxx_g = yes; then
22232 if test "$GXX" = yes; then
22233 CXXFLAGS="-g -O2"
22234 else
22235 CXXFLAGS="-g"
22236 fi
22237else
22238 if test "$GXX" = yes; then
22239 CXXFLAGS="-O2"
22240 else
22241 CXXFLAGS=
22242 fi
22243fi
22244ac_ext=cpp
22245ac_cpp='$CXXCPP $CPPFLAGS'
22246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22249
22250depcc="$CXX" am_compiler_list=
22251
cristy8b350f62009-11-15 23:12:43 +000022252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022253$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022254if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022255 $as_echo_n "(cached) " >&6
22256else
22257 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22258 # We make a subdir and do the tests there. Otherwise we can end up
22259 # making bogus files that we don't know about and never remove. For
22260 # instance it was reported that on HP-UX the gcc test will end up
22261 # making a dummy file named `D' -- because `-MD' means `put the output
22262 # in D'.
22263 mkdir conftest.dir
22264 # Copy depcomp to subdir because otherwise we won't find it if we're
22265 # using a relative directory.
22266 cp "$am_depcomp" conftest.dir
22267 cd conftest.dir
22268 # We will build objects and dependencies in a subdirectory because
22269 # it helps to detect inapplicable dependency modes. For instance
22270 # both Tru64's cc and ICC support -MD to output dependencies as a
22271 # side effect of compilation, but ICC will put the dependencies in
22272 # the current directory while Tru64 will put them in the object
22273 # directory.
22274 mkdir sub
22275
22276 am_cv_CXX_dependencies_compiler_type=none
22277 if test "$am_compiler_list" = ""; then
22278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22279 fi
22280 am__universal=false
22281 case " $depcc " in #(
22282 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22283 esac
22284
22285 for depmode in $am_compiler_list; do
22286 # Setup a source with many dependencies, because some compilers
22287 # like to wrap large dependency lists on column 80 (with \), and
22288 # we should not choose a depcomp mode which is confused by this.
22289 #
22290 # We need to recreate these files for each test, as the compiler may
22291 # overwrite some of them when testing with obscure command lines.
22292 # This happens at least with the AIX C compiler.
22293 : > sub/conftest.c
22294 for i in 1 2 3 4 5 6; do
22295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22296 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22297 # Solaris 8's {/usr,}/bin/sh.
22298 touch sub/conftst$i.h
22299 done
22300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22301
22302 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22303 # mode. It turns out that the SunPro C++ compiler does not properly
22304 # handle `-M -o', and we need to detect this. Also, some Intel
22305 # versions had trouble with output in subdirs
22306 am__obj=sub/conftest.${OBJEXT-o}
22307 am__minus_obj="-o $am__obj"
22308 case $depmode in
22309 gcc)
22310 # This depmode causes a compiler race in universal mode.
22311 test "$am__universal" = false || continue
22312 ;;
22313 nosideeffect)
22314 # after this tag, mechanisms are not by side-effect, so they'll
22315 # only be used when explicitly requested
22316 if test "x$enable_dependency_tracking" = xyes; then
22317 continue
22318 else
22319 break
22320 fi
22321 ;;
22322 msvisualcpp | msvcmsys)
22323 # This compiler won't grok `-c -o', but also, the minuso test has
22324 # not run yet. These depmodes are late enough in the game, and
22325 # so weak that their functioning should not be impacted.
22326 am__obj=conftest.${OBJEXT-o}
22327 am__minus_obj=
22328 ;;
22329 none) break ;;
22330 esac
22331 if depmode=$depmode \
22332 source=sub/conftest.c object=$am__obj \
22333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22335 >/dev/null 2>conftest.err &&
22336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22340 # icc doesn't choke on unknown options, it will just issue warnings
22341 # or remarks (even with -Werror). So we grep stderr for any message
22342 # that says an option was ignored or not supported.
22343 # When given -MP, icc 7.0 and 7.1 complain thusly:
22344 # icc: Command line warning: ignoring option '-M'; no argument required
22345 # The diagnosis changed in icc 8.0:
22346 # icc: Command line remark: option '-MP' not supported
22347 if (grep 'ignoring option' conftest.err ||
22348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22349 am_cv_CXX_dependencies_compiler_type=$depmode
22350 break
22351 fi
22352 fi
22353 done
22354
22355 cd ..
22356 rm -rf conftest.dir
22357else
22358 am_cv_CXX_dependencies_compiler_type=none
22359fi
22360
22361fi
cristy8b350f62009-11-15 23:12:43 +000022362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022363$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22364CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22365
22366 if
22367 test "x$enable_dependency_tracking" != xno \
22368 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22369 am__fastdepCXX_TRUE=
22370 am__fastdepCXX_FALSE='#'
22371else
22372 am__fastdepCXX_TRUE='#'
22373 am__fastdepCXX_FALSE=
22374fi
22375
22376
cristy8b350f62009-11-15 23:12:43 +000022377 { $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 +000022378$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022379if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022380 $as_echo_n "(cached) " >&6
22381else
22382
22383 ac_ext=cpp
22384ac_cpp='$CXXCPP $CPPFLAGS'
22385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22388
cristy8b350f62009-11-15 23:12:43 +000022389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022390/* end confdefs.h. */
22391
22392int f(int x){return 1;}
22393int f(char x){return 1;}
22394int f(bool x){return 1;}
22395
22396int
22397main ()
22398{
22399bool b = true; return f(b);
22400 ;
22401 return 0;
22402}
22403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022404if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022405 ac_cv_cxx_have_bool=yes
22406else
cristy8b350f62009-11-15 23:12:43 +000022407 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022408fi
cristy3ed852e2009-09-05 21:47:34 +000022409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410 ac_ext=cpp
22411ac_cpp='$CXXCPP $CPPFLAGS'
22412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22415
22416
22417fi
cristy8b350f62009-11-15 23:12:43 +000022418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022419$as_echo "$ac_cv_cxx_have_bool" >&6; }
22420if test "$ac_cv_cxx_have_bool" = yes; then
22421
cristy8b350f62009-11-15 23:12:43 +000022422$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022423
22424fi
22425
cristy8b350f62009-11-15 23:12:43 +000022426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022427$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022428if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022429 $as_echo_n "(cached) " >&6
22430else
22431
22432 ac_ext=cpp
22433ac_cpp='$CXXCPP $CPPFLAGS'
22434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22437
cristy8b350f62009-11-15 23:12:43 +000022438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022439/* end confdefs.h. */
22440namespace Outer { namespace Inner { int i = 0; }}
22441int
22442main ()
22443{
22444using namespace Outer::Inner; return i;
22445 ;
22446 return 0;
22447}
22448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022449if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022450 ac_cv_cxx_have_namespaces=yes
22451else
cristy8b350f62009-11-15 23:12:43 +000022452 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022453fi
cristy3ed852e2009-09-05 21:47:34 +000022454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 ac_ext=cpp
22456ac_cpp='$CXXCPP $CPPFLAGS'
22457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22460
22461
22462fi
cristy8b350f62009-11-15 23:12:43 +000022463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022464$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22465if test "$ac_cv_cxx_have_namespaces" = yes; then
22466
cristy8b350f62009-11-15 23:12:43 +000022467$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022468
22469fi
22470
cristy8b350f62009-11-15 23:12:43 +000022471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022472$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022473if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022474 $as_echo_n "(cached) " >&6
22475else
22476
22477 ac_ext=cpp
22478ac_cpp='$CXXCPP $CPPFLAGS'
22479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22482
cristy8b350f62009-11-15 23:12:43 +000022483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022484/* end confdefs.h. */
22485#include <iostream>
22486 std::istream& is = std::cin;
22487
22488int
22489main ()
22490{
22491return 0;
22492 ;
22493 return 0;
22494}
22495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022496if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022497 ac_cv_cxx_have_std_namespace=yes
22498else
cristy8b350f62009-11-15 23:12:43 +000022499 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022500fi
cristy3ed852e2009-09-05 21:47:34 +000022501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 ac_ext=cpp
22503ac_cpp='$CXXCPP $CPPFLAGS'
22504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22507
22508
22509fi
cristy8b350f62009-11-15 23:12:43 +000022510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022511$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22512if test "$ac_cv_cxx_have_std_namespace" = yes; then
22513
cristy8b350f62009-11-15 23:12:43 +000022514$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022515
22516fi
22517
cristy8b350f62009-11-15 23:12:43 +000022518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022519$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022520if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022521 $as_echo_n "(cached) " >&6
22522else
22523
22524
22525 ac_ext=cpp
22526ac_cpp='$CXXCPP $CPPFLAGS'
22527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22530
cristy8b350f62009-11-15 23:12:43 +000022531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022532/* end confdefs.h. */
22533#include <iostream>
22534#include <map>
22535#include <iomanip>
22536#include <cmath>
22537#ifdef HAVE_NAMESPACES
22538using namespace std;
22539#endif
22540int
22541main ()
22542{
22543return 0;
22544 ;
22545 return 0;
22546}
22547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022548if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022549 ac_cv_cxx_have_std_libs=yes
22550else
cristy8b350f62009-11-15 23:12:43 +000022551 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022552fi
cristy3ed852e2009-09-05 21:47:34 +000022553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554 ac_ext=cpp
22555ac_cpp='$CXXCPP $CPPFLAGS'
22556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22559
22560
22561fi
cristy8b350f62009-11-15 23:12:43 +000022562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022563$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22564if test "$ac_cv_cxx_have_std_libs" = yes; then
22565
cristy8b350f62009-11-15 23:12:43 +000022566$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022567
22568fi
22569
cristy8b350f62009-11-15 23:12:43 +000022570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022571$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022572if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 $as_echo_n "(cached) " >&6
22574else
22575
22576 ac_ext=cpp
22577ac_cpp='$CXXCPP $CPPFLAGS'
22578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22581
cristy8b350f62009-11-15 23:12:43 +000022582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022583/* end confdefs.h. */
22584const wchar_t* s=L"wide string";
22585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022586if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022587 ac_cv_cxx_have_lstring=yes
22588else
cristy8b350f62009-11-15 23:12:43 +000022589 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022590fi
cristy3ed852e2009-09-05 21:47:34 +000022591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592 ac_ext=cpp
22593ac_cpp='$CXXCPP $CPPFLAGS'
22594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22597
22598
22599fi
cristy8b350f62009-11-15 23:12:43 +000022600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022601$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22602if test "$ac_cv_cxx_have_lstring" = yes; then
22603
cristy8b350f62009-11-15 23:12:43 +000022604$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022605
22606fi
22607
22608
22609 OPENMP_CXXFLAGS=
22610 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022611if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022612 enableval=$enable_openmp;
22613fi
22614
22615 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000022616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22617$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022618if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022619 $as_echo_n "(cached) " >&6
22620else
cristy8b350f62009-11-15 23:12:43 +000022621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22622/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022623
22624#ifndef _OPENMP
22625 choke me
22626#endif
22627#include <omp.h>
22628int main () { return omp_get_num_threads (); }
22629
22630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022631if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022632 ac_cv_prog_cxx_openmp='none needed'
22633else
cristy8b350f62009-11-15 23:12:43 +000022634 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022635 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22636 ac_save_CXXFLAGS=$CXXFLAGS
22637 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22639/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022640
22641#ifndef _OPENMP
22642 choke me
22643#endif
22644#include <omp.h>
22645int main () { return omp_get_num_threads (); }
22646
22647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022648if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022649 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022650fi
cristy8b350f62009-11-15 23:12:43 +000022651rm -f core conftest.err conftest.$ac_objext \
22652 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022653 CXXFLAGS=$ac_save_CXXFLAGS
22654 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22655 break
22656 fi
22657 done
22658fi
cristy8b350f62009-11-15 23:12:43 +000022659rm -f core conftest.err conftest.$ac_objext \
22660 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022661fi
cristy8b350f62009-11-15 23:12:43 +000022662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022663$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22664 case $ac_cv_prog_cxx_openmp in #(
22665 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022666 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022667 *)
cristy8b350f62009-11-15 23:12:43 +000022668 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022669 esac
22670 fi
22671
22672
22673 ac_ext=c
22674ac_cpp='$CPP $CPPFLAGS'
22675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22677ac_compiler_gnu=$ac_cv_c_compiler_gnu
22678
22679
cristy8b350f62009-11-15 23:12:43 +000022680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022681$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22682 if \
22683 test $ac_cv_cxx_have_bool = 'yes' && \
22684 test $ac_cv_cxx_have_lstring = 'yes' && \
22685 test $ac_cv_cxx_have_namespaces = 'yes' && \
22686 test $ac_cv_cxx_have_std_libs = 'yes' && \
22687 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22688 have_magick_plus_plus='yes'
22689 else
22690 have_magick_plus_plus='no (failed tests)'
22691 fi
cristy8b350f62009-11-15 23:12:43 +000022692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022693$as_echo "$have_magick_plus_plus" >&6; }
22694 LIBS="$OLIBS"
22695fi
22696 if test "$have_magick_plus_plus" = 'yes'; then
22697 WITH_MAGICK_PLUS_PLUS_TRUE=
22698 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22699else
22700 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22701 WITH_MAGICK_PLUS_PLUS_FALSE=
22702fi
22703
22704
22705# Only check for delegate libraries in subdirectories if requested.
22706if test "$enable_delegate_build" != 'no'; then
22707 # Check for delegate sub-directories and add -I & -L options as required.
22708 # This presumes that delegates are installed as detailed in the ImageMagick
22709 # README. If delegates are installed in a standard location where the
22710 # compiler will automatically find them then these options should not be
22711 # required.
22712
22713 #
22714 # Most delegates have includes in the same directory as the library, but not all...
22715 #
22716 # Includes
22717 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
22718 if test -d "$builddir/$dir"; then
22719 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22720 else
22721 if test -d "$srcdirfull/$dir"; then
22722 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22723 fi
22724 fi
22725 done
22726
22727 # Libraries
22728 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
22729 if test -d "$builddir/$dir/.libs"; then
22730 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22731 else
22732 if test -d "$srcdirfull/$dir/.libs"; then
22733 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22734 fi
22735 fi
22736 if test -d "$builddir/$dir"; then
22737 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22738 else
22739 if test -d "$srcdirfull/$dir"; then
22740 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22741 fi
22742 fi
22743 done
22744fi
22745
22746# Assume that delegate headers reside under same directory as ImageMagick
22747# installation prefix.
22748MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22749
22750#
22751# Find the X11 RGB database
22752#
cristy8b350f62009-11-15 23:12:43 +000022753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022754$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022755if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022756 $as_echo_n "(cached) " >&6
22757else
22758 # Look for the header file in a standard set of common directories.
22759# Check X11 before X11Rn because it is often a symlink to the current release.
22760 for ac_dir in \
22761 /lib/usr/lib/X11 \
22762 /usr/X11/lib \
22763 /usr/X11R4/lib \
22764 /usr/X11R5/lib \
22765 /usr/X11R6/lib \
22766 /usr/X11R7/lib \
22767 /usr/X386/lib \
22768 /usr/XFree86/lib/X11 \
22769 /usr/athena/lib \
22770 /usr/lib \
22771 /usr/lib/X11 \
22772 /usr/lib/X11R4 \
22773 /usr/lib/X11R5 \
22774 /usr/lib/X11R6 \
22775 /usr/lib/X11R7 \
22776 /usr/local/X11/lib \
22777 /usr/local/X11R4/lib \
22778 /usr/local/X11R5/lib \
22779 /usr/local/X11R6/lib \
22780 /usr/local/lib \
22781 /usr/local/lib/X11 \
22782 /usr/local/lib/X11R4 \
22783 /usr/local/lib/X11R5 \
22784 /usr/local/lib/X11R6 \
22785 /usr/local/lib/X11R7 \
22786 /usr/local/x11r5/lib \
22787 /usr/lpp/Xamples/lib \
22788 /usr/openwin/lib \
22789 /usr/openwin/share/lib \
22790 /usr/unsupported/lib \
22791 /usr/x386/lib \
22792 ; do
22793 if test -f "$ac_dir/X11/rgb.txt"; then
22794 im_cv_x_configure="$ac_dir/X11/"
22795 break
22796 elif test -f "$ac_dir/rgb.txt"; then
22797 im_cv_x_configure="$ac_dir/"
22798 break
22799 fi
22800
22801 done
22802fi
cristy8b350f62009-11-15 23:12:43 +000022803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022804$as_echo "$im_cv_x_configure" >&6; }
22805X11_CONFIGURE_PATH="$im_cv_x_configure"
22806case "${build_os}" in
22807 mingw* )
22808 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22809 ;;
22810esac
22811
22812cat >>confdefs.h <<_ACEOF
22813#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22814_ACEOF
22815
22816
22817#
22818# Find OpenMP library
22819#
22820GOMP_LIBS=''
22821if test "$enable_openmp" != 'no'; then
22822 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022824$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022825if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022826 $as_echo_n "(cached) " >&6
22827else
22828 ac_check_lib_save_LIBS=$LIBS
22829LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022831/* end confdefs.h. */
22832
22833/* Override any GCC internal prototype to avoid an error.
22834 Use char because int might match the return type of a GCC
22835 builtin and then its argument prototype would still apply. */
22836#ifdef __cplusplus
22837extern "C"
22838#endif
22839char GOMP_parallel_start ();
22840int
22841main ()
22842{
22843return GOMP_parallel_start ();
22844 ;
22845 return 0;
22846}
22847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022849 ac_cv_lib_gomp_GOMP_parallel_start=yes
22850else
cristy8b350f62009-11-15 23:12:43 +000022851 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022852fi
cristy8b350f62009-11-15 23:12:43 +000022853rm -f core conftest.err conftest.$ac_objext \
22854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022855LIBS=$ac_check_lib_save_LIBS
22856fi
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022859if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022860 GOMP_LIBS="-lgomp"
22861fi
22862 # gcc
22863 else
cristy8b350f62009-11-15 23:12:43 +000022864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022865$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022866if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022867 $as_echo_n "(cached) " >&6
22868else
22869 ac_check_lib_save_LIBS=$LIBS
22870LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022872/* end confdefs.h. */
22873
22874/* Override any GCC internal prototype to avoid an error.
22875 Use char because int might match the return type of a GCC
22876 builtin and then its argument prototype would still apply. */
22877#ifdef __cplusplus
22878extern "C"
22879#endif
22880char sunw_mp_register_warn ();
22881int
22882main ()
22883{
22884return sunw_mp_register_warn ();
22885 ;
22886 return 0;
22887}
22888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022889if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022890 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22891else
cristy8b350f62009-11-15 23:12:43 +000022892 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022893fi
cristy8b350f62009-11-15 23:12:43 +000022894rm -f core conftest.err conftest.$ac_objext \
22895 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022896LIBS=$ac_check_lib_save_LIBS
22897fi
cristy8b350f62009-11-15 23:12:43 +000022898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022899$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022900if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022901 GOMP_LIBS="-lmtsk"
22902fi
22903 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022905$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022906if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022907 $as_echo_n "(cached) " >&6
22908else
22909 ac_check_lib_save_LIBS=$LIBS
22910LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022912/* end confdefs.h. */
22913
22914/* Override any GCC internal prototype to avoid an error.
22915 Use char because int might match the return type of a GCC
22916 builtin and then its argument prototype would still apply. */
22917#ifdef __cplusplus
22918extern "C"
22919#endif
22920char _xlsmpFlush ();
22921int
22922main ()
22923{
22924return _xlsmpFlush ();
22925 ;
22926 return 0;
22927}
22928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022930 ac_cv_lib_xlsmp__xlsmpFlush=yes
22931else
cristy8b350f62009-11-15 23:12:43 +000022932 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022933fi
cristy8b350f62009-11-15 23:12:43 +000022934rm -f core conftest.err conftest.$ac_objext \
22935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022936LIBS=$ac_check_lib_save_LIBS
22937fi
cristy8b350f62009-11-15 23:12:43 +000022938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022939$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022940if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022941 GOMP_LIBS="-lxlsmp"
22942fi
22943 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022945$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022946if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022947 $as_echo_n "(cached) " >&6
22948else
22949 ac_check_lib_save_LIBS=$LIBS
22950LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022952/* end confdefs.h. */
22953
22954/* Override any GCC internal prototype to avoid an error.
22955 Use char because int might match the return type of a GCC
22956 builtin and then its argument prototype would still apply. */
22957#ifdef __cplusplus
22958extern "C"
22959#endif
22960char mp_destroy ();
22961int
22962main ()
22963{
22964return mp_destroy ();
22965 ;
22966 return 0;
22967}
22968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022969if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022970 ac_cv_lib_mp_mp_destroy=yes
22971else
cristy8b350f62009-11-15 23:12:43 +000022972 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022973fi
cristy8b350f62009-11-15 23:12:43 +000022974rm -f core conftest.err conftest.$ac_objext \
22975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022976LIBS=$ac_check_lib_save_LIBS
22977fi
cristy8b350f62009-11-15 23:12:43 +000022978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022979$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022980if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022981 GOMP_LIBS="-lmp"
22982fi
22983 # SGI IRIX 6.5 MIPSpro C/C++
22984 fi
22985 LIBS="$GOMP_LIBS $LIBS"
22986fi
22987
22988
22989#
22990# Find Posix threads library
22991#
22992THREAD_LIBS=''
22993if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22994
22995 if test "x$PTHREAD_LIBS" = "x"; then
22996 case "${host_cpu}-${host_os}" in
22997 *-freebsd*)
22998
22999
23000
23001ac_ext=c
23002ac_cpp='$CPP $CPPFLAGS'
23003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23005ac_compiler_gnu=$ac_cv_c_compiler_gnu
23006
23007magick_pthread_lib_ok=no
23008
23009LIB=-lc_r
23010save_LIBS="$LIBS"
23011LIBS="$LIBS $LIB"
23012
cristy8b350f62009-11-15 23:12:43 +000023013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023014$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023016/* end confdefs.h. */
23017#include <pthread.h>
23018int
23019main ()
23020{
23021 pthread_t th;
23022 pthread_join(th, 0);
23023 pthread_attr_init(0);
23024 pthread_cleanup_push(0, 0);
23025 pthread_create(0,0,0,0);
23026 pthread_cleanup_pop(0);
23027 ;
23028 return 0;
23029}
23030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023031if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023032 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023033fi
cristy8b350f62009-11-15 23:12:43 +000023034rm -f core conftest.err conftest.$ac_objext \
23035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023036
cristy8b350f62009-11-15 23:12:43 +000023037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023038$as_echo "${magick_pthread_lib_ok}" >&6; }
23039if test "$magick_pthread_lib_ok" = yes
23040then
23041 PTHREAD_LIBS=-lc_r
23042 :
23043else
23044
23045 :
23046fi
23047
23048LIBS="$save_LIBS"
23049
23050ac_ext=c
23051ac_cpp='$CPP $CPPFLAGS'
23052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23054ac_compiler_gnu=$ac_cv_c_compiler_gnu
23055
23056 ;;
23057 esac
23058 fi
23059
23060 for lib in pthread pthreads; do
23061 if test "x$PTHREAD_LIBS" = "x"; then
23062
23063
23064
23065ac_ext=c
23066ac_cpp='$CPP $CPPFLAGS'
23067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23069ac_compiler_gnu=$ac_cv_c_compiler_gnu
23070
23071magick_pthread_lib_ok=no
23072
23073LIB=-l$lib
23074save_LIBS="$LIBS"
23075LIBS="$LIBS $LIB"
23076
cristy8b350f62009-11-15 23:12:43 +000023077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023078$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023080/* end confdefs.h. */
23081#include <pthread.h>
23082int
23083main ()
23084{
23085 pthread_t th;
23086 pthread_join(th, 0);
23087 pthread_attr_init(0);
23088 pthread_cleanup_push(0, 0);
23089 pthread_create(0,0,0,0);
23090 pthread_cleanup_pop(0);
23091 ;
23092 return 0;
23093}
23094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023095if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023096 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023097fi
cristy8b350f62009-11-15 23:12:43 +000023098rm -f core conftest.err conftest.$ac_objext \
23099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023100
cristy8b350f62009-11-15 23:12:43 +000023101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023102$as_echo "${magick_pthread_lib_ok}" >&6; }
23103if test "$magick_pthread_lib_ok" = yes
23104then
23105 PTHREAD_LIBS=-l$lib
23106 :
23107else
23108
23109 :
23110fi
23111
23112LIBS="$save_LIBS"
23113
23114ac_ext=c
23115ac_cpp='$CPP $CPPFLAGS'
23116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23118ac_compiler_gnu=$ac_cv_c_compiler_gnu
23119
23120
23121 fi
23122 done
23123
23124 THREAD_LIBS="$PTHREAD_LIBS"
23125 LIBS="$LIBS $THREAD_LIBS"
23126fi
23127
23128
23129#
23130# Check for umem.
23131#
23132have_umem='no'
23133UMEM_LIBS=''
23134if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023136$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023138$as_echo "" >&6; }
23139 failed=0
23140 passed=0
cristy8b350f62009-11-15 23:12:43 +000023141 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23142if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 passed=`expr $passed + 1`
23144else
23145 failed=`expr $failed + 1`
23146fi
23147
23148
cristy8b350f62009-11-15 23:12:43 +000023149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023150$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023151if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 $as_echo_n "(cached) " >&6
23153else
23154 ac_check_lib_save_LIBS=$LIBS
23155LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023157/* end confdefs.h. */
23158
23159/* Override any GCC internal prototype to avoid an error.
23160 Use char because int might match the return type of a GCC
23161 builtin and then its argument prototype would still apply. */
23162#ifdef __cplusplus
23163extern "C"
23164#endif
23165char umem_alloc ();
23166int
23167main ()
23168{
23169return umem_alloc ();
23170 ;
23171 return 0;
23172}
23173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023175 ac_cv_lib_umem_umem_alloc=yes
23176else
cristy8b350f62009-11-15 23:12:43 +000023177 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023178fi
cristy8b350f62009-11-15 23:12:43 +000023179rm -f core conftest.err conftest.$ac_objext \
23180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023181LIBS=$ac_check_lib_save_LIBS
23182fi
cristy8b350f62009-11-15 23:12:43 +000023183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023184$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023185if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023186 passed=`expr $passed + 1`
23187else
23188 failed=`expr $failed + 1`
23189fi
23190
cristy8b350f62009-11-15 23:12:43 +000023191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023192$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023193if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023194 $as_echo_n "(cached) " >&6
23195else
23196 ac_check_lib_save_LIBS=$LIBS
23197LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023199/* end confdefs.h. */
23200
23201/* Override any GCC internal prototype to avoid an error.
23202 Use char because int might match the return type of a GCC
23203 builtin and then its argument prototype would still apply. */
23204#ifdef __cplusplus
23205extern "C"
23206#endif
23207char umem_free ();
23208int
23209main ()
23210{
23211return umem_free ();
23212 ;
23213 return 0;
23214}
23215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023217 ac_cv_lib_umem_umem_free=yes
23218else
cristy8b350f62009-11-15 23:12:43 +000023219 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023220fi
cristy8b350f62009-11-15 23:12:43 +000023221rm -f core conftest.err conftest.$ac_objext \
23222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023223LIBS=$ac_check_lib_save_LIBS
23224fi
cristy8b350f62009-11-15 23:12:43 +000023225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023226$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023227if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023228 passed=`expr $passed + 1`
23229else
23230 failed=`expr $failed + 1`
23231fi
23232
cristy8b350f62009-11-15 23:12:43 +000023233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023234$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23235 if test $passed -gt 0; then
23236 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023238$as_echo "no -- some components failed test" >&6; }
23239 have_umem='no (failed tests)'
23240 else
23241 UMEM_LIBS='-lumem'
23242 LIBS="$UMEM_LIBS $LIBS"
23243
cristy8b350f62009-11-15 23:12:43 +000023244$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023245
cristy8b350f62009-11-15 23:12:43 +000023246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023247$as_echo "yes" >&6; }
23248 have_umem='yes'
23249 fi
23250 else
cristy8b350f62009-11-15 23:12:43 +000023251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023252$as_echo "no" >&6; }
23253 fi
23254fi
23255 if test "$have_umem" = 'yes'; then
23256 HasUMEM_TRUE=
23257 HasUMEM_FALSE='#'
23258else
23259 HasUMEM_TRUE='#'
23260 HasUMEM_FALSE=
23261fi
23262
23263
23264
23265#
23266# Add support for ccmalloc memory debugging library if requested
23267#
23268have_ccmalloc='no'
23269CCMALLOC_LIBS=''
23270if test "$enable_ccmalloc" = 'yes'; then
23271 # Extract the first word of "ccmalloc", so it can be a program name with args.
23272set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023274$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023275if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023276 $as_echo_n "(cached) " >&6
23277else
23278 case $CCMALLOCDelegate in
23279 [\\/]* | ?:[\\/]*)
23280 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23281 ;;
23282 *)
23283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23284for as_dir in $PATH
23285do
23286 IFS=$as_save_IFS
23287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23290 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023292 break 2
23293 fi
23294done
cristy8b350f62009-11-15 23:12:43 +000023295 done
cristy3ed852e2009-09-05 21:47:34 +000023296IFS=$as_save_IFS
23297
23298 ;;
23299esac
23300fi
23301CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23302if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023304$as_echo "$CCMALLOCDelegate" >&6; }
23305else
cristy8b350f62009-11-15 23:12:43 +000023306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023307$as_echo "no" >&6; }
23308fi
23309
23310
23311 if test -n "$CCMALLOCDelegate"; then
23312 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23313 OLIBS="$LIBS"
23314 # Assume that gcc is used with ccmalloc.
23315 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023317$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023318if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023319 $as_echo_n "(cached) " >&6
23320else
23321 ac_check_lib_save_LIBS=$LIBS
23322LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023324/* end confdefs.h. */
23325
23326/* Override any GCC internal prototype to avoid an error.
23327 Use char because int might match the return type of a GCC
23328 builtin and then its argument prototype would still apply. */
23329#ifdef __cplusplus
23330extern "C"
23331#endif
23332char ccmalloc_malloc ();
23333int
23334main ()
23335{
23336return ccmalloc_malloc ();
23337 ;
23338 return 0;
23339}
23340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023341if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023342 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23343else
cristy8b350f62009-11-15 23:12:43 +000023344 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023345fi
cristy8b350f62009-11-15 23:12:43 +000023346rm -f core conftest.err conftest.$ac_objext \
23347 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023348LIBS=$ac_check_lib_save_LIBS
23349fi
cristy8b350f62009-11-15 23:12:43 +000023350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023351$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023352if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023353 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23354fi
23355
23356 if test -n "$CCMALLOC_LIBS"; then
23357 LIBS="$OLIBS"
23358 LIBS="$LIBS $CCMALLOC_LIBS"
23359 have_ccmalloc='yes'
23360 else
23361 LIBS="$OLIBS"
23362 fi
23363 fi
23364fi
23365
23366#
23367# Add support for efence memory debugging library if requested
23368#
23369if test "$enable_efence" = 'yes'; then
23370 EFENCE_LIBS='-lefence'
23371 LIBS="$EFENCE_LIBS $LIBS"
23372fi
23373
23374#
23375# Find math library
23376#
23377MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023379$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023380if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023381 $as_echo_n "(cached) " >&6
23382else
23383 ac_check_lib_save_LIBS=$LIBS
23384LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023386/* end confdefs.h. */
23387
23388/* Override any GCC internal prototype to avoid an error.
23389 Use char because int might match the return type of a GCC
23390 builtin and then its argument prototype would still apply. */
23391#ifdef __cplusplus
23392extern "C"
23393#endif
23394char sqrt ();
23395int
23396main ()
23397{
23398return sqrt ();
23399 ;
23400 return 0;
23401}
23402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023404 ac_cv_lib_m_sqrt=yes
23405else
cristy8b350f62009-11-15 23:12:43 +000023406 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023407fi
cristy8b350f62009-11-15 23:12:43 +000023408rm -f core conftest.err conftest.$ac_objext \
23409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023410LIBS=$ac_check_lib_save_LIBS
23411fi
cristy8b350f62009-11-15 23:12:43 +000023412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023413$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023414if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023415 MATH_LIBS="-lm"
23416fi
23417
23418LIBS="$MATH_LIBS $LIBS"
23419
23420
23421
23422#
23423# Check for BZLIB
23424#
23425
23426
23427# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023428if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023429 withval=$with_bzlib; with_bzlib=$withval
23430else
23431 with_bzlib='yes'
23432fi
23433
23434
23435if test "$with_bzlib" != 'yes'; then
23436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23437fi
23438
23439have_bzlib='no'
23440if test "$with_bzlib" != 'no'; then
23441 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023443$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023445$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023447$as_echo "" >&6; }
23448 failed=0
23449 passed=0
23450 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023451 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23452if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023453 passed=`expr $passed + 1`
23454else
23455 failed=`expr $failed + 1`
23456fi
23457
23458
cristy8b350f62009-11-15 23:12:43 +000023459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023460$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023461if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 $as_echo_n "(cached) " >&6
23463else
23464 ac_check_lib_save_LIBS=$LIBS
23465LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023467/* end confdefs.h. */
23468
23469/* Override any GCC internal prototype to avoid an error.
23470 Use char because int might match the return type of a GCC
23471 builtin and then its argument prototype would still apply. */
23472#ifdef __cplusplus
23473extern "C"
23474#endif
23475char BZ2_bzDecompress ();
23476int
23477main ()
23478{
23479return BZ2_bzDecompress ();
23480 ;
23481 return 0;
23482}
23483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023485 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23486else
cristy8b350f62009-11-15 23:12:43 +000023487 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023488fi
cristy8b350f62009-11-15 23:12:43 +000023489rm -f core conftest.err conftest.$ac_objext \
23490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023491LIBS=$ac_check_lib_save_LIBS
23492fi
cristy8b350f62009-11-15 23:12:43 +000023493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023494$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023495if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023496 found_libbz=`expr $found_libbz + 1`
23497fi
23498
23499 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023501$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023502if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023503 $as_echo_n "(cached) " >&6
23504else
23505 ac_check_lib_save_LIBS=$LIBS
23506LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023508/* end confdefs.h. */
23509
23510/* Override any GCC internal prototype to avoid an error.
23511 Use char because int might match the return type of a GCC
23512 builtin and then its argument prototype would still apply. */
23513#ifdef __cplusplus
23514extern "C"
23515#endif
23516char _imp__BZ2_decompress ();
23517int
23518main ()
23519{
23520return _imp__BZ2_decompress ();
23521 ;
23522 return 0;
23523}
23524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023526 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23527else
cristy8b350f62009-11-15 23:12:43 +000023528 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023529fi
cristy8b350f62009-11-15 23:12:43 +000023530rm -f core conftest.err conftest.$ac_objext \
23531 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023532LIBS=$ac_check_lib_save_LIBS
23533fi
cristy8b350f62009-11-15 23:12:43 +000023534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023535$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023536if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023537 found_libbz=`expr $found_libbz + 1`
23538fi
23539
23540 fi
23541 if test $found_libbz -gt 0; then
23542 passed=`expr $passed + 1`
23543 else
23544 failed=`expr $failed + 1`
23545 fi
cristy8b350f62009-11-15 23:12:43 +000023546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023547$as_echo_n "checking if BZLIB package is complete... " >&6; }
23548 if test $passed -gt 0; then
23549 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023551$as_echo "no -- some components failed test" >&6; }
23552 have_bzlib='no (failed tests)'
23553 else
23554 BZLIB_LIBS='-lbz2'
23555 LIBS="$BZLIB_LIBS $LIBS"
23556
cristy8b350f62009-11-15 23:12:43 +000023557$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023558
cristy8b350f62009-11-15 23:12:43 +000023559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023560$as_echo "yes" >&6; }
23561 have_bzlib='yes'
23562 fi
23563 else
cristy8b350f62009-11-15 23:12:43 +000023564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo "no" >&6; }
23566 fi
23567fi
23568 if test "$have_bzlib" = 'yes'; then
23569 BZLIB_DELEGATE_TRUE=
23570 BZLIB_DELEGATE_FALSE='#'
23571else
23572 BZLIB_DELEGATE_TRUE='#'
23573 BZLIB_DELEGATE_FALSE=
23574fi
23575
23576
23577
23578#
23579# Find the X11 include and library directories.
23580#
23581IPC_LIBS=''
23582X11_LIBS=''
23583XEXT_LIBS=''
23584XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023586$as_echo_n "checking for X... " >&6; }
23587
23588
23589# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023590if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023591 withval=$with_x;
23592fi
23593
23594# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23595if test "x$with_x" = xno; then
23596 # The user explicitly disabled X.
23597 have_x=disabled
23598else
23599 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023600 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23601 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023602 $as_echo_n "(cached) " >&6
23603else
23604 # One or both of the vars are not set, and there is no cached value.
23605ac_x_includes=no ac_x_libraries=no
23606rm -f -r conftest.dir
23607if mkdir conftest.dir; then
23608 cd conftest.dir
23609 cat >Imakefile <<'_ACEOF'
23610incroot:
23611 @echo incroot='${INCROOT}'
23612usrlibdir:
23613 @echo usrlibdir='${USRLIBDIR}'
23614libdir:
23615 @echo libdir='${LIBDIR}'
23616_ACEOF
23617 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23618 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23619 for ac_var in incroot usrlibdir libdir; do
23620 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23621 done
23622 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23623 for ac_extension in a so sl dylib la dll; do
23624 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23625 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23626 ac_im_usrlibdir=$ac_im_libdir; break
23627 fi
23628 done
23629 # Screen out bogus values from the imake configuration. They are
23630 # bogus both because they are the default anyway, and because
23631 # using them would break gcc on systems where it needs fixed includes.
23632 case $ac_im_incroot in
23633 /usr/include) ac_x_includes= ;;
23634 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23635 esac
23636 case $ac_im_usrlibdir in
23637 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23638 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23639 esac
23640 fi
23641 cd ..
23642 rm -f -r conftest.dir
23643fi
23644
23645# Standard set of common directories for X headers.
23646# Check X11 before X11Rn because it is often a symlink to the current release.
23647ac_x_header_dirs='
23648/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023649/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023650/usr/X11R6/include
23651/usr/X11R5/include
23652/usr/X11R4/include
23653
23654/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023655/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023656/usr/include/X11R6
23657/usr/include/X11R5
23658/usr/include/X11R4
23659
23660/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023661/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023662/usr/local/X11R6/include
23663/usr/local/X11R5/include
23664/usr/local/X11R4/include
23665
23666/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023667/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023668/usr/local/include/X11R6
23669/usr/local/include/X11R5
23670/usr/local/include/X11R4
23671
23672/usr/X386/include
23673/usr/x386/include
23674/usr/XFree86/include/X11
23675
23676/usr/include
23677/usr/local/include
23678/usr/unsupported/include
23679/usr/athena/include
23680/usr/local/x11r5/include
23681/usr/lpp/Xamples/include
23682
23683/usr/openwin/include
23684/usr/openwin/share/include'
23685
23686if test "$ac_x_includes" = no; then
23687 # Guess where to find include files, by looking for Xlib.h.
23688 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023690/* end confdefs.h. */
23691#include <X11/Xlib.h>
23692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023693if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023694 # We can compile using X headers with no special include directory.
23695ac_x_includes=
23696else
cristyc7083c12009-10-14 03:16:55 +000023697 for ac_dir in $ac_x_header_dirs; do
23698 if test -r "$ac_dir/X11/Xlib.h"; then
23699 ac_x_includes=$ac_dir
23700 break
23701 fi
23702done
23703fi
cristyc7083c12009-10-14 03:16:55 +000023704rm -f conftest.err conftest.$ac_ext
23705fi # $ac_x_includes = no
23706
23707if test "$ac_x_libraries" = no; then
23708 # Check for the libraries.
23709 # See if we find them without any special options.
23710 # Don't add to $LIBS permanently.
23711 ac_save_LIBS=$LIBS
23712 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023714/* end confdefs.h. */
23715#include <X11/Xlib.h>
23716int
23717main ()
23718{
23719XrmInitialize ()
23720 ;
23721 return 0;
23722}
23723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023724if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023725 LIBS=$ac_save_LIBS
23726# We can link X programs with no special library path.
23727ac_x_libraries=
23728else
cristy8b350f62009-11-15 23:12:43 +000023729 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023730for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23731do
23732 # Don't even attempt the hair of trying to link an X program!
23733 for ac_extension in a so sl dylib la dll; do
23734 if test -r "$ac_dir/libX11.$ac_extension"; then
23735 ac_x_libraries=$ac_dir
23736 break 2
23737 fi
23738 done
23739done
23740fi
cristy8b350f62009-11-15 23:12:43 +000023741rm -f core conftest.err conftest.$ac_objext \
23742 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023743fi # $ac_x_libraries = no
23744
23745case $ac_x_includes,$ac_x_libraries in #(
23746 no,* | *,no | *\'*)
23747 # Didn't find X, or a directory has "'" in its name.
23748 ac_cv_have_x="have_x=no";; #(
23749 *)
23750 # Record where we found X for the cache.
23751 ac_cv_have_x="have_x=yes\
23752 ac_x_includes='$ac_x_includes'\
23753 ac_x_libraries='$ac_x_libraries'"
23754esac
23755fi
23756;; #(
23757 *) have_x=yes;;
23758 esac
23759 eval "$ac_cv_have_x"
23760fi # $with_x != no
23761
23762if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023764$as_echo "$have_x" >&6; }
23765 no_x=yes
23766else
23767 # If each of the values was on the command line, it overrides each guess.
23768 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23769 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23770 # Update the cache value to reflect the command line values.
23771 ac_cv_have_x="have_x=yes\
23772 ac_x_includes='$x_includes'\
23773 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023775$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23776fi
23777
cristy3ed852e2009-09-05 21:47:34 +000023778if test "$no_x" = yes; then
23779 # Not all programs may use this symbol, but it does not hurt to define it.
23780
cristy8b350f62009-11-15 23:12:43 +000023781$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023782
23783 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23784else
23785 if test -n "$x_includes"; then
23786 X_CFLAGS="$X_CFLAGS -I$x_includes"
23787 fi
23788
23789 # It would also be nice to do this for all -L options, not just this one.
23790 if test -n "$x_libraries"; then
23791 X_LIBS="$X_LIBS -L$x_libraries"
23792 # For Solaris; some versions of Sun CC require a space after -R and
23793 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023795$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23796 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23797 ac_xsave_c_werror_flag=$ac_c_werror_flag
23798 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023800/* end confdefs.h. */
23801
23802int
23803main ()
23804{
23805
23806 ;
23807 return 0;
23808}
23809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023810if ac_fn_c_try_link "$LINENO"; then :
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023812$as_echo "no" >&6; }
23813 X_LIBS="$X_LIBS -R$x_libraries"
23814else
cristy8b350f62009-11-15 23:12:43 +000023815 LIBS="$ac_xsave_LIBS -R $x_libraries"
23816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023817/* end confdefs.h. */
23818
23819int
23820main ()
23821{
23822
23823 ;
23824 return 0;
23825}
23826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023827if ac_fn_c_try_link "$LINENO"; then :
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023829$as_echo "yes" >&6; }
23830 X_LIBS="$X_LIBS -R $x_libraries"
23831else
cristy8b350f62009-11-15 23:12:43 +000023832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023833$as_echo "neither works" >&6; }
23834fi
cristy8b350f62009-11-15 23:12:43 +000023835rm -f core conftest.err conftest.$ac_objext \
23836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023837fi
cristy8b350f62009-11-15 23:12:43 +000023838rm -f core conftest.err conftest.$ac_objext \
23839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023840 ac_c_werror_flag=$ac_xsave_c_werror_flag
23841 LIBS=$ac_xsave_LIBS
23842 fi
23843
23844 # Check for system-dependent libraries X programs must link with.
23845 # Do this before checking for the system-independent R6 libraries
23846 # (-lICE), since we may need -lsocket or whatever for X linking.
23847
23848 if test "$ISC" = yes; then
23849 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23850 else
23851 # Martyn Johnson says this is needed for Ultrix, if the X
23852 # libraries were built with DECnet support. And Karl Berry says
23853 # the Alpha needs dnet_stub (dnet does not exist).
23854 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023856/* end confdefs.h. */
23857
23858/* Override any GCC internal prototype to avoid an error.
23859 Use char because int might match the return type of a GCC
23860 builtin and then its argument prototype would still apply. */
23861#ifdef __cplusplus
23862extern "C"
23863#endif
23864char XOpenDisplay ();
23865int
23866main ()
23867{
23868return XOpenDisplay ();
23869 ;
23870 return 0;
23871}
23872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023874
cristy8b350f62009-11-15 23:12:43 +000023875else
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023877$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023878if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023879 $as_echo_n "(cached) " >&6
23880else
23881 ac_check_lib_save_LIBS=$LIBS
23882LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023884/* end confdefs.h. */
23885
23886/* Override any GCC internal prototype to avoid an error.
23887 Use char because int might match the return type of a GCC
23888 builtin and then its argument prototype would still apply. */
23889#ifdef __cplusplus
23890extern "C"
23891#endif
23892char dnet_ntoa ();
23893int
23894main ()
23895{
23896return dnet_ntoa ();
23897 ;
23898 return 0;
23899}
23900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023901if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023902 ac_cv_lib_dnet_dnet_ntoa=yes
23903else
cristy8b350f62009-11-15 23:12:43 +000023904 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023905fi
cristy8b350f62009-11-15 23:12:43 +000023906rm -f core conftest.err conftest.$ac_objext \
23907 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023908LIBS=$ac_check_lib_save_LIBS
23909fi
cristy8b350f62009-11-15 23:12:43 +000023910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023911$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023912if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023913 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23914fi
23915
23916 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023918$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023919if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023920 $as_echo_n "(cached) " >&6
23921else
23922 ac_check_lib_save_LIBS=$LIBS
23923LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023925/* end confdefs.h. */
23926
23927/* Override any GCC internal prototype to avoid an error.
23928 Use char because int might match the return type of a GCC
23929 builtin and then its argument prototype would still apply. */
23930#ifdef __cplusplus
23931extern "C"
23932#endif
23933char dnet_ntoa ();
23934int
23935main ()
23936{
23937return dnet_ntoa ();
23938 ;
23939 return 0;
23940}
23941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023942if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023943 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23944else
cristy8b350f62009-11-15 23:12:43 +000023945 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023946fi
cristy8b350f62009-11-15 23:12:43 +000023947rm -f core conftest.err conftest.$ac_objext \
23948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023949LIBS=$ac_check_lib_save_LIBS
23950fi
cristy8b350f62009-11-15 23:12:43 +000023951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023952$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023953if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023954 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23955fi
23956
23957 fi
23958fi
cristy8b350f62009-11-15 23:12:43 +000023959rm -f core conftest.err conftest.$ac_objext \
23960 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023961 LIBS="$ac_xsave_LIBS"
23962
23963 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23964 # to get the SysV transport functions.
23965 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23966 # needs -lnsl.
23967 # The nsl library prevents programs from opening the X display
23968 # on Irix 5.2, according to T.E. Dickey.
23969 # The functions gethostbyname, getservbyname, and inet_addr are
23970 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023971 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23972if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023973
cristy3ed852e2009-09-05 21:47:34 +000023974fi
23975
cristy3ed852e2009-09-05 21:47:34 +000023976 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023978$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023979if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023980 $as_echo_n "(cached) " >&6
23981else
23982 ac_check_lib_save_LIBS=$LIBS
23983LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023985/* end confdefs.h. */
23986
23987/* Override any GCC internal prototype to avoid an error.
23988 Use char because int might match the return type of a GCC
23989 builtin and then its argument prototype would still apply. */
23990#ifdef __cplusplus
23991extern "C"
23992#endif
23993char gethostbyname ();
23994int
23995main ()
23996{
23997return gethostbyname ();
23998 ;
23999 return 0;
24000}
24001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024003 ac_cv_lib_nsl_gethostbyname=yes
24004else
cristy8b350f62009-11-15 23:12:43 +000024005 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024006fi
cristy8b350f62009-11-15 23:12:43 +000024007rm -f core conftest.err conftest.$ac_objext \
24008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024009LIBS=$ac_check_lib_save_LIBS
24010fi
cristy8b350f62009-11-15 23:12:43 +000024011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024012$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024013if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24015fi
24016
24017 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024020if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024021 $as_echo_n "(cached) " >&6
24022else
24023 ac_check_lib_save_LIBS=$LIBS
24024LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024026/* end confdefs.h. */
24027
24028/* Override any GCC internal prototype to avoid an error.
24029 Use char because int might match the return type of a GCC
24030 builtin and then its argument prototype would still apply. */
24031#ifdef __cplusplus
24032extern "C"
24033#endif
24034char gethostbyname ();
24035int
24036main ()
24037{
24038return gethostbyname ();
24039 ;
24040 return 0;
24041}
24042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024043if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024044 ac_cv_lib_bsd_gethostbyname=yes
24045else
cristy8b350f62009-11-15 23:12:43 +000024046 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024047fi
cristy8b350f62009-11-15 23:12:43 +000024048rm -f core conftest.err conftest.$ac_objext \
24049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024050LIBS=$ac_check_lib_save_LIBS
24051fi
cristy8b350f62009-11-15 23:12:43 +000024052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024053$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024054if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024055 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24056fi
24057
24058 fi
24059 fi
24060
24061 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24062 # socket/setsockopt and other routines are undefined under SCO ODT
24063 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24064 # on later versions), says Simon Leinen: it contains gethostby*
24065 # variants that don't use the name server (or something). -lsocket
24066 # must be given before -lnsl if both are needed. We assume that
24067 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024068 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24069if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024070
cristy3ed852e2009-09-05 21:47:34 +000024071fi
24072
cristy3ed852e2009-09-05 21:47:34 +000024073 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024075$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024076if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024077 $as_echo_n "(cached) " >&6
24078else
24079 ac_check_lib_save_LIBS=$LIBS
24080LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024082/* end confdefs.h. */
24083
24084/* Override any GCC internal prototype to avoid an error.
24085 Use char because int might match the return type of a GCC
24086 builtin and then its argument prototype would still apply. */
24087#ifdef __cplusplus
24088extern "C"
24089#endif
24090char connect ();
24091int
24092main ()
24093{
24094return connect ();
24095 ;
24096 return 0;
24097}
24098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024100 ac_cv_lib_socket_connect=yes
24101else
cristy8b350f62009-11-15 23:12:43 +000024102 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024103fi
cristy8b350f62009-11-15 23:12:43 +000024104rm -f core conftest.err conftest.$ac_objext \
24105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024106LIBS=$ac_check_lib_save_LIBS
24107fi
cristy8b350f62009-11-15 23:12:43 +000024108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024109$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024110if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024111 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24112fi
24113
24114 fi
24115
24116 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024117 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24118if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024119
cristy3ed852e2009-09-05 21:47:34 +000024120fi
24121
cristy3ed852e2009-09-05 21:47:34 +000024122 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024124$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024125if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024126 $as_echo_n "(cached) " >&6
24127else
24128 ac_check_lib_save_LIBS=$LIBS
24129LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024131/* end confdefs.h. */
24132
24133/* Override any GCC internal prototype to avoid an error.
24134 Use char because int might match the return type of a GCC
24135 builtin and then its argument prototype would still apply. */
24136#ifdef __cplusplus
24137extern "C"
24138#endif
24139char remove ();
24140int
24141main ()
24142{
24143return remove ();
24144 ;
24145 return 0;
24146}
24147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024148if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024149 ac_cv_lib_posix_remove=yes
24150else
cristy8b350f62009-11-15 23:12:43 +000024151 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024152fi
cristy8b350f62009-11-15 23:12:43 +000024153rm -f core conftest.err conftest.$ac_objext \
24154 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024155LIBS=$ac_check_lib_save_LIBS
24156fi
cristy8b350f62009-11-15 23:12:43 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024159if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24161fi
24162
24163 fi
24164
24165 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024166 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24167if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024168
cristy3ed852e2009-09-05 21:47:34 +000024169fi
24170
cristy3ed852e2009-09-05 21:47:34 +000024171 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024174if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024175 $as_echo_n "(cached) " >&6
24176else
24177 ac_check_lib_save_LIBS=$LIBS
24178LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024180/* end confdefs.h. */
24181
24182/* Override any GCC internal prototype to avoid an error.
24183 Use char because int might match the return type of a GCC
24184 builtin and then its argument prototype would still apply. */
24185#ifdef __cplusplus
24186extern "C"
24187#endif
24188char shmat ();
24189int
24190main ()
24191{
24192return shmat ();
24193 ;
24194 return 0;
24195}
24196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024198 ac_cv_lib_ipc_shmat=yes
24199else
cristy8b350f62009-11-15 23:12:43 +000024200 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024201fi
cristy8b350f62009-11-15 23:12:43 +000024202rm -f core conftest.err conftest.$ac_objext \
24203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024204LIBS=$ac_check_lib_save_LIBS
24205fi
cristy8b350f62009-11-15 23:12:43 +000024206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024208if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24210fi
24211
24212 fi
24213 fi
24214
24215 # Check for libraries that X11R6 Xt/Xaw programs need.
24216 ac_save_LDFLAGS=$LDFLAGS
24217 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24218 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24219 # check for ICE first), but we must link in the order -lSM -lICE or
24220 # we get undefined symbols. So assume we have SM if we have ICE.
24221 # These have to be linked with before -lX11, unlike the other
24222 # libraries we check for below, so use a different variable.
24223 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024226if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024227 $as_echo_n "(cached) " >&6
24228else
24229 ac_check_lib_save_LIBS=$LIBS
24230LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024232/* end confdefs.h. */
24233
24234/* Override any GCC internal prototype to avoid an error.
24235 Use char because int might match the return type of a GCC
24236 builtin and then its argument prototype would still apply. */
24237#ifdef __cplusplus
24238extern "C"
24239#endif
24240char IceConnectionNumber ();
24241int
24242main ()
24243{
24244return IceConnectionNumber ();
24245 ;
24246 return 0;
24247}
24248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024250 ac_cv_lib_ICE_IceConnectionNumber=yes
24251else
cristy8b350f62009-11-15 23:12:43 +000024252 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024253fi
cristy8b350f62009-11-15 23:12:43 +000024254rm -f core conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024256LIBS=$ac_check_lib_save_LIBS
24257fi
cristy8b350f62009-11-15 23:12:43 +000024258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024259$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024260if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024261 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24262fi
24263
24264 LDFLAGS=$ac_save_LDFLAGS
24265
24266fi
24267
24268if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024270$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024272$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo "" >&6; }
24275 LDFLAGS="$LDFLAGS $X_LIBS"
24276 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24277 LIBS="$X11_LIBS $LIBS"
24278 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24279
24280
cristy8b350f62009-11-15 23:12:43 +000024281$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024282
24283 #
24284 # Check for X11 shared memory extension
24285 #
24286 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024287 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24288if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024289 have_shmctl='yes'
24290fi
24291
24292 if test "$have_shmctl" != 'yes'; then
24293 PERSIST_LIBS=$LIBS
24294 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024296/* end confdefs.h. */
24297
24298/* Override any GCC internal prototype to avoid an error.
24299 Use char because int might match the return type of a GCC
24300 builtin and then its argument prototype would still apply. */
24301#ifdef __cplusplus
24302extern "C"
24303#endif
24304char shmctl ();
24305int
24306main ()
24307{
24308return shmctl ();
24309 ;
24310 return 0;
24311}
24312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024313if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024314 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024315fi
cristy8b350f62009-11-15 23:12:43 +000024316rm -f core conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024318 LIBS=$PERSIST_LIBS
24319 fi
24320
24321 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024323$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024324if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024325 $as_echo_n "(cached) " >&6
24326else
24327 ac_check_lib_save_LIBS=$LIBS
24328LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024330/* end confdefs.h. */
24331
24332/* Override any GCC internal prototype to avoid an error.
24333 Use char because int might match the return type of a GCC
24334 builtin and then its argument prototype would still apply. */
24335#ifdef __cplusplus
24336extern "C"
24337#endif
24338char XShmAttach ();
24339int
24340main ()
24341{
24342return XShmAttach ();
24343 ;
24344 return 0;
24345}
24346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024348 ac_cv_lib_Xext_XShmAttach=yes
24349else
cristy8b350f62009-11-15 23:12:43 +000024350 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024351fi
cristy8b350f62009-11-15 23:12:43 +000024352rm -f core conftest.err conftest.$ac_objext \
24353 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024354LIBS=$ac_check_lib_save_LIBS
24355fi
cristy8b350f62009-11-15 23:12:43 +000024356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024357$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024358if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024359 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024360$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024361
24362fi
24363
24364 fi
24365
24366 #
24367 # Check for X11 shape extension
24368 #
cristy8b350f62009-11-15 23:12:43 +000024369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024370$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024371if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024372 $as_echo_n "(cached) " >&6
24373else
24374 ac_check_lib_save_LIBS=$LIBS
24375LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024377/* end confdefs.h. */
24378
24379/* Override any GCC internal prototype to avoid an error.
24380 Use char because int might match the return type of a GCC
24381 builtin and then its argument prototype would still apply. */
24382#ifdef __cplusplus
24383extern "C"
24384#endif
24385char XShapeCombineMask ();
24386int
24387main ()
24388{
24389return XShapeCombineMask ();
24390 ;
24391 return 0;
24392}
24393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024395 ac_cv_lib_Xext_XShapeCombineMask=yes
24396else
cristy8b350f62009-11-15 23:12:43 +000024397 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024398fi
cristy8b350f62009-11-15 23:12:43 +000024399rm -f core conftest.err conftest.$ac_objext \
24400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024401LIBS=$ac_check_lib_save_LIBS
24402fi
cristy8b350f62009-11-15 23:12:43 +000024403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024404$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024405if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024406 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024407$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024408
24409fi
24410
cristy8b350f62009-11-15 23:12:43 +000024411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024412$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024413if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024414 $as_echo_n "(cached) " >&6
24415else
24416 ac_check_lib_save_LIBS=$LIBS
24417LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024419/* end confdefs.h. */
24420
24421/* Override any GCC internal prototype to avoid an error.
24422 Use char because int might match the return type of a GCC
24423 builtin and then its argument prototype would still apply. */
24424#ifdef __cplusplus
24425extern "C"
24426#endif
24427char XtSetEventDispatcher ();
24428int
24429main ()
24430{
24431return XtSetEventDispatcher ();
24432 ;
24433 return 0;
24434}
24435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024437 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24438else
cristy8b350f62009-11-15 23:12:43 +000024439 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024440fi
cristy8b350f62009-11-15 23:12:43 +000024441rm -f core conftest.err conftest.$ac_objext \
24442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024443LIBS=$ac_check_lib_save_LIBS
24444fi
cristy8b350f62009-11-15 23:12:43 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024447if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 XT_LIBS='-lXt'
24449fi
24450
24451 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24452fi
24453if test "$no_x" != 'yes'; then
24454 have_x='yes'
24455else
24456 have_x='no'
24457fi
24458 if test "$have_x" = 'yes'; then
24459 X11_DELEGATE_TRUE=
24460 X11_DELEGATE_FALSE='#'
24461else
24462 X11_DELEGATE_TRUE='#'
24463 X11_DELEGATE_FALSE=
24464fi
24465
24466
24467
24468
24469
24470#
24471# Check for ZLIB
24472#
24473
24474# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024475if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024476 withval=$with_zlib; with_zlib=$withval
24477else
24478 with_zlib='yes'
24479fi
24480
24481
24482if test "$with_zlib" != 'yes'; then
24483 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24484fi
24485
24486have_zlib='no'
24487ZLIB_LIBS=''
24488if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024490$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024492$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024494$as_echo "" >&6; }
24495 ZLIB_LIBS=''
24496 failed=0
24497 passed=0
cristy8b350f62009-11-15 23:12:43 +000024498 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24499if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024500 passed=`expr $passed + 1`
24501else
24502 failed=`expr $failed + 1`
24503fi
24504
24505
cristy8b350f62009-11-15 23:12:43 +000024506 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24507if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024508 passed=`expr $passed + 1`
24509else
24510 failed=`expr $failed + 1`
24511fi
24512
24513
cristy8b350f62009-11-15 23:12:43 +000024514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024516if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024517 $as_echo_n "(cached) " >&6
24518else
24519 ac_check_lib_save_LIBS=$LIBS
24520LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024522/* end confdefs.h. */
24523
24524/* Override any GCC internal prototype to avoid an error.
24525 Use char because int might match the return type of a GCC
24526 builtin and then its argument prototype would still apply. */
24527#ifdef __cplusplus
24528extern "C"
24529#endif
24530char compress ();
24531int
24532main ()
24533{
24534return compress ();
24535 ;
24536 return 0;
24537}
24538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024540 ac_cv_lib_z_compress=yes
24541else
cristy8b350f62009-11-15 23:12:43 +000024542 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024543fi
cristy8b350f62009-11-15 23:12:43 +000024544rm -f core conftest.err conftest.$ac_objext \
24545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024546LIBS=$ac_check_lib_save_LIBS
24547fi
cristy8b350f62009-11-15 23:12:43 +000024548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024549$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024550if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024551 passed=`expr $passed + 1`
24552else
24553 failed=`expr $failed + 1`
24554fi
24555
cristy8b350f62009-11-15 23:12:43 +000024556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024557$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024558if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024559 $as_echo_n "(cached) " >&6
24560else
24561 ac_check_lib_save_LIBS=$LIBS
24562LIBS="-lz $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 uncompress ();
24573int
24574main ()
24575{
24576return uncompress ();
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_z_uncompress=yes
24583else
cristy8b350f62009-11-15 23:12:43 +000024584 ac_cv_lib_z_uncompress=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_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024591$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024592if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024593 passed=`expr $passed + 1`
24594else
24595 failed=`expr $failed + 1`
24596fi
24597
cristy8b350f62009-11-15 23:12:43 +000024598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024599$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024600if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024601 $as_echo_n "(cached) " >&6
24602else
24603 ac_check_lib_save_LIBS=$LIBS
24604LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024606/* end confdefs.h. */
24607
24608/* Override any GCC internal prototype to avoid an error.
24609 Use char because int might match the return type of a GCC
24610 builtin and then its argument prototype would still apply. */
24611#ifdef __cplusplus
24612extern "C"
24613#endif
24614char deflate ();
24615int
24616main ()
24617{
24618return deflate ();
24619 ;
24620 return 0;
24621}
24622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024624 ac_cv_lib_z_deflate=yes
24625else
cristy8b350f62009-11-15 23:12:43 +000024626 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024627fi
cristy8b350f62009-11-15 23:12:43 +000024628rm -f core conftest.err conftest.$ac_objext \
24629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024630LIBS=$ac_check_lib_save_LIBS
24631fi
cristy8b350f62009-11-15 23:12:43 +000024632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024633$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024634if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024635 passed=`expr $passed + 1`
24636else
24637 failed=`expr $failed + 1`
24638fi
24639
cristy8b350f62009-11-15 23:12:43 +000024640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024641$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024642if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024643 $as_echo_n "(cached) " >&6
24644else
24645 ac_check_lib_save_LIBS=$LIBS
24646LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024648/* end confdefs.h. */
24649
24650/* Override any GCC internal prototype to avoid an error.
24651 Use char because int might match the return type of a GCC
24652 builtin and then its argument prototype would still apply. */
24653#ifdef __cplusplus
24654extern "C"
24655#endif
24656char inflate ();
24657int
24658main ()
24659{
24660return inflate ();
24661 ;
24662 return 0;
24663}
24664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024665if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024666 ac_cv_lib_z_inflate=yes
24667else
cristy8b350f62009-11-15 23:12:43 +000024668 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024669fi
cristy8b350f62009-11-15 23:12:43 +000024670rm -f core conftest.err conftest.$ac_objext \
24671 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024672LIBS=$ac_check_lib_save_LIBS
24673fi
cristy8b350f62009-11-15 23:12:43 +000024674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024675$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024676if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024677 passed=`expr $passed + 1`
24678else
24679 failed=`expr $failed + 1`
24680fi
24681
cristy8b350f62009-11-15 23:12:43 +000024682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024683$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024684if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024685 $as_echo_n "(cached) " >&6
24686else
24687 ac_check_lib_save_LIBS=$LIBS
24688LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024690/* end confdefs.h. */
24691
24692/* Override any GCC internal prototype to avoid an error.
24693 Use char because int might match the return type of a GCC
24694 builtin and then its argument prototype would still apply. */
24695#ifdef __cplusplus
24696extern "C"
24697#endif
24698char gzseek ();
24699int
24700main ()
24701{
24702return gzseek ();
24703 ;
24704 return 0;
24705}
24706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024707if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024708 ac_cv_lib_z_gzseek=yes
24709else
cristy8b350f62009-11-15 23:12:43 +000024710 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024711fi
cristy8b350f62009-11-15 23:12:43 +000024712rm -f core conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024714LIBS=$ac_check_lib_save_LIBS
24715fi
cristy8b350f62009-11-15 23:12:43 +000024716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024717$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024718if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024719 passed=`expr $passed + 1`
24720else
24721 failed=`expr $failed + 1`
24722fi
24723
cristy8b350f62009-11-15 23:12:43 +000024724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024725$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024726if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024727 $as_echo_n "(cached) " >&6
24728else
24729 ac_check_lib_save_LIBS=$LIBS
24730LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024732/* end confdefs.h. */
24733
24734/* Override any GCC internal prototype to avoid an error.
24735 Use char because int might match the return type of a GCC
24736 builtin and then its argument prototype would still apply. */
24737#ifdef __cplusplus
24738extern "C"
24739#endif
24740char gztell ();
24741int
24742main ()
24743{
24744return gztell ();
24745 ;
24746 return 0;
24747}
24748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024750 ac_cv_lib_z_gztell=yes
24751else
cristy8b350f62009-11-15 23:12:43 +000024752 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024753fi
cristy8b350f62009-11-15 23:12:43 +000024754rm -f core conftest.err conftest.$ac_objext \
24755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024756LIBS=$ac_check_lib_save_LIBS
24757fi
cristy8b350f62009-11-15 23:12:43 +000024758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024759$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024760if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024761 passed=`expr $passed + 1`
24762else
24763 failed=`expr $failed + 1`
24764fi
24765
cristy8b350f62009-11-15 23:12:43 +000024766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024767$as_echo_n "checking if ZLIB package is complete... " >&6; }
24768 if test $passed -gt 0; then
24769 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024771$as_echo "no -- some components failed test" >&6; }
24772 have_zlib='no (failed tests)'
24773 else
24774 ZLIB_LIBS='-lz'
24775 LIBS="$ZLIB_LIBS $LIBS"
24776
cristy8b350f62009-11-15 23:12:43 +000024777$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024778
cristy8b350f62009-11-15 23:12:43 +000024779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024780$as_echo "yes" >&6; }
24781 have_zlib='yes'
24782 fi
24783 else
cristy8b350f62009-11-15 23:12:43 +000024784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024785$as_echo "no" >&6; }
24786 fi
24787fi
24788 if test "$have_zlib" = 'yes'; then
24789 ZLIB_DELEGATE_TRUE=
24790 ZLIB_DELEGATE_FALSE='#'
24791else
24792 ZLIB_DELEGATE_TRUE='#'
24793 ZLIB_DELEGATE_FALSE=
24794fi
24795
24796
24797
24798#
24799# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24800#
24801LIB_DL=''
24802if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024804$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024805if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024806 $as_echo_n "(cached) " >&6
24807else
24808 ac_check_lib_save_LIBS=$LIBS
24809LIBS="-ldl $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 dlopen ();
24820int
24821main ()
24822{
24823return dlopen ();
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_dl_dlopen=yes
24830else
cristy8b350f62009-11-15 23:12:43 +000024831 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024838$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024839if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024840 LIB_DL='-ldl'
24841fi
24842
24843 LIBS="$LIB_DL $LIBS"
24844fi
24845
24846
24847
24848#
24849# Check for Autotrace delegate library.
24850#
24851
24852# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024853if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024854 withval=$with_autotrace; with_autotrace=$withval
24855else
24856 with_autotrace='no'
24857fi
24858
24859
24860if test "$with_autotrace" != 'yes'; then
24861 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24862fi
24863
24864have_autotrace='no'
24865AUTOTRACE_CFLAGS=""
24866AUTOTRACE_LIBS=""
24867AUTOTRACE_PKG=""
24868if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024870$as_echo "-------------------------------------------------------------" >&6; }
24871
24872pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024874$as_echo_n "checking for AUTOTRACE... " >&6; }
24875
24876if test -n "$AUTOTRACE_CFLAGS"; then
24877 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24878 elif test -n "$PKG_CONFIG"; then
24879 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024881 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24882 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24884 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024885 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24886else
24887 pkg_failed=yes
24888fi
24889 else
24890 pkg_failed=untried
24891fi
24892if test -n "$AUTOTRACE_LIBS"; then
24893 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24894 elif test -n "$PKG_CONFIG"; then
24895 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024897 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24898 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24900 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024901 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24902else
24903 pkg_failed=yes
24904fi
24905 else
24906 pkg_failed=untried
24907fi
24908
24909
24910
24911if test $pkg_failed = yes; then
24912
24913if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24914 _pkg_short_errors_supported=yes
24915else
24916 _pkg_short_errors_supported=no
24917fi
24918 if test $_pkg_short_errors_supported = yes; then
24919 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24920 else
24921 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24922 fi
24923 # Put the nasty error message in config.log where it belongs
24924 echo "$AUTOTRACE_PKG_ERRORS" >&5
24925
cristy8b350f62009-11-15 23:12:43 +000024926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024927$as_echo "no" >&6; }
24928 have_autotrace=no
24929elif test $pkg_failed = untried; then
24930 have_autotrace=no
24931else
24932 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24933 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024935$as_echo "yes" >&6; }
24936 have_autotrace=yes
24937fi
cristy8b350f62009-11-15 23:12:43 +000024938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024939$as_echo "" >&6; }
24940fi
24941
24942if test "$have_autotrace" = 'yes'; then
24943 failed=0
24944
cristy8b350f62009-11-15 23:12:43 +000024945$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024946
24947 if test "$with_modules" = 'no'; then
24948 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24949 fi
24950fi
24951
24952 if test "$have_autotrace" = 'yes'; then
24953 AUTOTRACE_DELEGATE_TRUE=
24954 AUTOTRACE_DELEGATE_FALSE='#'
24955else
24956 AUTOTRACE_DELEGATE_TRUE='#'
24957 AUTOTRACE_DELEGATE_FALSE=
24958fi
24959
24960
24961
24962
24963
24964#
24965# Check for Display Postscript delegate library.
24966#
24967
24968# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024969if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024970 withval=$with_dps; with_dps=$withval
24971else
24972 with_dps='yes'
24973fi
24974
24975
24976if test "$with_dps" != 'yes'; then
24977 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24978fi
24979
24980have_dps='no'
24981DPS_LIBS=''
24982if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024984$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000024986$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024988$as_echo "" >&6; }
24989 failed=0
24990 passed=0
24991 PERSIST_CPPFLAGS="$CPPFLAGS"
24992 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000024993 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24994if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024995 passed=`expr $passed + 1`
24996else
24997 failed=`expr $failed + 1`
24998fi
24999
25000
25001 # DPS issues:
25002 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25003 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25004 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25005 # ImageMagick itself doesn't use -lXt.
25006 have_libdps='no'
25007 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025009$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025010if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025011 $as_echo_n "(cached) " >&6
25012else
25013 ac_check_lib_save_LIBS=$LIBS
25014LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025016/* end confdefs.h. */
25017
25018/* Override any GCC internal prototype to avoid an error.
25019 Use char because int might match the return type of a GCC
25020 builtin and then its argument prototype would still apply. */
25021#ifdef __cplusplus
25022extern "C"
25023#endif
25024char DPSInitialize ();
25025int
25026main ()
25027{
25028return DPSInitialize ();
25029 ;
25030 return 0;
25031}
25032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025034 ac_cv_lib_dps_DPSInitialize=yes
25035else
cristy8b350f62009-11-15 23:12:43 +000025036 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025037fi
cristy8b350f62009-11-15 23:12:43 +000025038rm -f core conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025040LIBS=$ac_check_lib_save_LIBS
25041fi
cristy8b350f62009-11-15 23:12:43 +000025042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025043$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025044if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025045 have_libdps='yes'
25046else
25047 have_libdps='no'
25048fi
25049
25050 if test "$have_libdps" != 'yes'; then
25051 # Unset cache variable so we can try again.
25052 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025054$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025055if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025056 $as_echo_n "(cached) " >&6
25057else
25058 ac_check_lib_save_LIBS=$LIBS
25059LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025061/* end confdefs.h. */
25062
25063/* Override any GCC internal prototype to avoid an error.
25064 Use char because int might match the return type of a GCC
25065 builtin and then its argument prototype would still apply. */
25066#ifdef __cplusplus
25067extern "C"
25068#endif
25069char DPSInitialize ();
25070int
25071main ()
25072{
25073return DPSInitialize ();
25074 ;
25075 return 0;
25076}
25077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025078if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025079 ac_cv_lib_dps_DPSInitialize=yes
25080else
cristy8b350f62009-11-15 23:12:43 +000025081 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025082fi
cristy8b350f62009-11-15 23:12:43 +000025083rm -f core conftest.err conftest.$ac_objext \
25084 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025085LIBS=$ac_check_lib_save_LIBS
25086fi
cristy8b350f62009-11-15 23:12:43 +000025087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025088$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025089if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025090 have_libdps='yes'
25091else
25092 have_libdps='no'
25093fi
25094
25095 if test "$have_libdps" = 'yes'; then
25096 LIBDPS_XT='-lXt'
25097 fi
25098 fi
25099 if test "$have_libdps" = 'yes'; then
25100 passed=`expr $passed + 1`
25101 else
25102 failed=`expr $failed + 1`
25103 fi
cristy8b350f62009-11-15 23:12:43 +000025104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025105$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025106if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025107 $as_echo_n "(cached) " >&6
25108else
25109 ac_check_lib_save_LIBS=$LIBS
25110LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025112/* end confdefs.h. */
25113
25114/* Override any GCC internal prototype to avoid an error.
25115 Use char because int might match the return type of a GCC
25116 builtin and then its argument prototype would still apply. */
25117#ifdef __cplusplus
25118extern "C"
25119#endif
25120char XDPSPixelsPerPoint ();
25121int
25122main ()
25123{
25124return XDPSPixelsPerPoint ();
25125 ;
25126 return 0;
25127}
25128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025129if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025130 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25131else
cristy8b350f62009-11-15 23:12:43 +000025132 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025133fi
cristy8b350f62009-11-15 23:12:43 +000025134rm -f core conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025136LIBS=$ac_check_lib_save_LIBS
25137fi
cristy8b350f62009-11-15 23:12:43 +000025138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025139$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025140if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025141 passed=`expr $passed + 1`
25142else
25143 failed=`expr $failed + 1`
25144fi
25145
cristy8b350f62009-11-15 23:12:43 +000025146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025147$as_echo_n "checking if DPS package is complete... " >&6; }
25148 if test $passed -gt 0; then
25149 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025151$as_echo "no -- some components failed test" >&6; }
25152 have_dps='no (failed tests)'
25153 CPPFLAGS="$PERSIST_CPPFLAGS"
25154 else
25155 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25156 LIBS="$DPS_LIBS $LIBS"
25157
cristy8b350f62009-11-15 23:12:43 +000025158$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025159
cristy8b350f62009-11-15 23:12:43 +000025160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025161$as_echo "yes" >&6; }
25162 have_dps='yes'
25163 fi
25164 else
cristy8b350f62009-11-15 23:12:43 +000025165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025166$as_echo "no" >&6; }
25167 CPPFLAGS=$PERSIST_CPPFLAGS
25168 fi
25169fi
25170 if test "$have_dps" = 'yes'; then
25171 DPS_DELEGATE_TRUE=
25172 DPS_DELEGATE_FALSE='#'
25173else
25174 DPS_DELEGATE_TRUE='#'
25175 DPS_DELEGATE_FALSE=
25176fi
25177
25178
25179
25180
25181#
25182# Check for DJVU delegate library.
25183#
25184
25185# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025186if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025187 withval=$with_djvu; with_djvu=$withval
25188else
25189 with_djvu='yes'
25190fi
25191
25192
25193if test "$with_djvu" != 'yes'; then
25194 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25195fi
25196
25197have_djvu='no'
25198DJVU_LIBS=''
25199if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025201$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025203$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025205$as_echo "" >&6; }
25206 failed=0
25207 passed=0
cristy8b350f62009-11-15 23:12:43 +000025208 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25209if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025210 passed=`expr $passed + 1`
25211else
25212 failed=`expr $failed + 1`
25213fi
25214
25215
cristy8b350f62009-11-15 23:12:43 +000025216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025217$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025218if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025219 $as_echo_n "(cached) " >&6
25220else
25221 ac_check_lib_save_LIBS=$LIBS
25222LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025224/* end confdefs.h. */
25225
25226/* Override any GCC internal prototype to avoid an error.
25227 Use char because int might match the return type of a GCC
25228 builtin and then its argument prototype would still apply. */
25229#ifdef __cplusplus
25230extern "C"
25231#endif
25232char ddjvu_context_create ();
25233int
25234main ()
25235{
25236return ddjvu_context_create ();
25237 ;
25238 return 0;
25239}
25240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025242 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25243else
cristy8b350f62009-11-15 23:12:43 +000025244 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025245fi
cristy8b350f62009-11-15 23:12:43 +000025246rm -f core conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025248LIBS=$ac_check_lib_save_LIBS
25249fi
cristy8b350f62009-11-15 23:12:43 +000025250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025251$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025252if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025253 passed=`expr $passed + 1`
25254else
25255 failed=`expr $failed + 1`
25256fi
25257
cristy8b350f62009-11-15 23:12:43 +000025258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025259$as_echo_n "checking if DJVU package is complete... " >&6; }
25260 if test $passed -gt 0; then
25261 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025263$as_echo "no -- some components failed test" >&6; }
25264 have_djvu='no (failed tests)'
25265 else
25266 DJVU_LIBS='-ldjvulibre'
25267 LIBS="$DJVU_LIBS $LIBS"
25268
cristy8b350f62009-11-15 23:12:43 +000025269$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025270
cristy8b350f62009-11-15 23:12:43 +000025271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025272$as_echo "yes" >&6; }
25273 have_djvu='yes'
25274 fi
25275 else
cristy8b350f62009-11-15 23:12:43 +000025276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025277$as_echo "no" >&6; }
25278 fi
25279fi
25280 if test "$have_djvu" = 'yes'; then
25281 DJVU_DELEGATE_TRUE=
25282 DJVU_DELEGATE_FALSE='#'
25283else
25284 DJVU_DELEGATE_TRUE='#'
25285 DJVU_DELEGATE_FALSE=
25286fi
25287
25288
25289
25290
25291#
25292# Check for FFTW delegate library.
25293#
25294
25295# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025296if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025297 withval=$with_fftw; with_fftw=$withval
25298else
25299 with_fftw='yes'
25300fi
25301
25302
25303if test "$with_fftw" != 'yes'; then
25304 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25305fi
25306
25307have_fftw='no'
25308FFTW_LIBS=''
25309if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025311$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025313$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo "" >&6; }
25316 failed=0
25317 passed=0
cristy8b350f62009-11-15 23:12:43 +000025318 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25319if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025320 passed=`expr $passed + 1`
25321else
25322 failed=`expr $failed + 1`
25323fi
25324
25325
cristy8b350f62009-11-15 23:12:43 +000025326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025327$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025328if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025329 $as_echo_n "(cached) " >&6
25330else
25331 ac_check_lib_save_LIBS=$LIBS
25332LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025334/* end confdefs.h. */
25335
25336/* Override any GCC internal prototype to avoid an error.
25337 Use char because int might match the return type of a GCC
25338 builtin and then its argument prototype would still apply. */
25339#ifdef __cplusplus
25340extern "C"
25341#endif
25342char fftw_execute ();
25343int
25344main ()
25345{
25346return fftw_execute ();
25347 ;
25348 return 0;
25349}
25350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025352 ac_cv_lib_fftw3_fftw_execute=yes
25353else
cristy8b350f62009-11-15 23:12:43 +000025354 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025355fi
cristy8b350f62009-11-15 23:12:43 +000025356rm -f core conftest.err conftest.$ac_objext \
25357 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025358LIBS=$ac_check_lib_save_LIBS
25359fi
cristy8b350f62009-11-15 23:12:43 +000025360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025361$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025362if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025363 passed=`expr $passed + 1`
25364else
25365 failed=`expr $failed + 1`
25366fi
25367
cristy8b350f62009-11-15 23:12:43 +000025368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025369$as_echo_n "checking if FFTW package is complete... " >&6; }
25370 if test $passed -gt 0; then
25371 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025373$as_echo "no -- some components failed test" >&6; }
25374 have_fftw='no (failed tests)'
25375 else
25376 FFTW_LIBS='-lfftw3'
25377 LIBS="$FFTW_LIBS $LIBS"
25378
cristy8b350f62009-11-15 23:12:43 +000025379$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025380
cristy8b350f62009-11-15 23:12:43 +000025381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025382$as_echo "yes" >&6; }
25383 have_fftw='yes'
25384 fi
25385 else
cristy8b350f62009-11-15 23:12:43 +000025386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025387$as_echo "no" >&6; }
25388 fi
25389fi
25390 if test "$have_fftw" = 'yes'; then
25391 FFTW_DELEGATE_TRUE=
25392 FFTW_DELEGATE_FALSE='#'
25393else
25394 FFTW_DELEGATE_TRUE='#'
25395 FFTW_DELEGATE_FALSE=
25396fi
25397
25398
25399
25400
25401#
25402# Check for FlashPIX delegate library.
25403#
25404
25405# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025406if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025407 withval=$with_fpx; with_fpx=$withval
25408else
25409 with_fpx='yes'
25410fi
25411
25412
25413if test "$with_fpx" != 'yes'; then
25414 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25415fi
25416
25417have_fpx='no'
25418FPX_LIBS=''
25419if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025421$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025423$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025425$as_echo "" >&6; }
25426 failed=0
25427 passed=0
25428 ac_ext=cpp
25429ac_cpp='$CXXCPP $CPPFLAGS'
25430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25433
25434
cristy8b350f62009-11-15 23:12:43 +000025435ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25436if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025437 passed=`expr $passed + 1`
25438else
25439 failed=`expr $failed + 1`
25440fi
25441
25442
cristy8b350f62009-11-15 23:12:43 +000025443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025444$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025445if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025446 $as_echo_n "(cached) " >&6
25447else
25448 ac_check_lib_save_LIBS=$LIBS
25449LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025451/* end confdefs.h. */
25452
25453/* Override any GCC internal prototype to avoid an error.
25454 Use char because int might match the return type of a GCC
25455 builtin and then its argument prototype would still apply. */
25456#ifdef __cplusplus
25457extern "C"
25458#endif
25459char FPX_OpenImageByFilename ();
25460int
25461main ()
25462{
25463return FPX_OpenImageByFilename ();
25464 ;
25465 return 0;
25466}
25467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025468if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025469 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25470else
cristy8b350f62009-11-15 23:12:43 +000025471 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025472fi
cristy8b350f62009-11-15 23:12:43 +000025473rm -f core conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025475LIBS=$ac_check_lib_save_LIBS
25476fi
cristy8b350f62009-11-15 23:12:43 +000025477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025478$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025479if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025480 passed=`expr $passed + 1`
25481else
25482 failed=`expr $failed + 1`
25483fi
25484
25485 ac_ext=c
25486ac_cpp='$CPP $CPPFLAGS'
25487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489ac_compiler_gnu=$ac_cv_c_compiler_gnu
25490
cristy8b350f62009-11-15 23:12:43 +000025491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025492$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25493 if test $passed -gt 0; then
25494 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025496$as_echo "no -- some components failed test" >&6; }
25497 have_fpx='no (failed tests)'
25498 else
25499 FPX_LIBS='-lfpx'
25500
cristy8b350f62009-11-15 23:12:43 +000025501$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025502
cristy8b350f62009-11-15 23:12:43 +000025503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025504$as_echo "yes" >&6; }
25505 have_fpx='yes'
25506 PERLMAINCC="$CXX"
25507 fi
25508 else
cristy8b350f62009-11-15 23:12:43 +000025509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025510$as_echo "no" >&6; }
25511 fi
25512fi
25513 if test "$have_fpx" = 'yes'; then
25514 FPX_DELEGATE_TRUE=
25515 FPX_DELEGATE_FALSE='#'
25516else
25517 FPX_DELEGATE_TRUE='#'
25518 FPX_DELEGATE_FALSE=
25519fi
25520
25521
25522
25523
25524#
25525# Check for fontconfig delegate library.
25526#
25527
25528# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025529if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025530 withval=$with_fontconfig; with_fontconfig=$withval
25531else
25532 with_fontconfig=$have_x
25533fi
25534
25535
25536if test "$with_fontconfig" != 'yes'; then
25537 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25538fi
25539
25540have_fontconfig='no'
25541FONTCONFIG_CFLAGS=""
25542FONTCONFIG_LIBS=""
25543FONTCONFIG_PKG=""
25544if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025546$as_echo "-------------------------------------------------------------" >&6; }
25547
25548pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025550$as_echo_n "checking for FONTCONFIG... " >&6; }
25551
25552if test -n "$FONTCONFIG_CFLAGS"; then
25553 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25554 elif test -n "$PKG_CONFIG"; then
25555 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025557 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25558 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025561 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25562else
25563 pkg_failed=yes
25564fi
25565 else
25566 pkg_failed=untried
25567fi
25568if test -n "$FONTCONFIG_LIBS"; then
25569 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25570 elif test -n "$PKG_CONFIG"; then
25571 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025573 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25574 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25576 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025577 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25578else
25579 pkg_failed=yes
25580fi
25581 else
25582 pkg_failed=untried
25583fi
25584
25585
25586
25587if test $pkg_failed = yes; then
25588
25589if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25590 _pkg_short_errors_supported=yes
25591else
25592 _pkg_short_errors_supported=no
25593fi
25594 if test $_pkg_short_errors_supported = yes; then
25595 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25596 else
25597 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25598 fi
25599 # Put the nasty error message in config.log where it belongs
25600 echo "$FONTCONFIG_PKG_ERRORS" >&5
25601
cristy8b350f62009-11-15 23:12:43 +000025602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025603$as_echo "no" >&6; }
25604 have_fontconfig=no
25605elif test $pkg_failed = untried; then
25606 have_fontconfig=no
25607else
25608 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25609 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025611$as_echo "yes" >&6; }
25612 have_fontconfig=yes
25613fi
cristy8b350f62009-11-15 23:12:43 +000025614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025615$as_echo "" >&6; }
25616fi
25617
25618if test "$have_fontconfig" = 'yes'; then
25619
cristy8b350f62009-11-15 23:12:43 +000025620$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025621
25622 if test "$with_modules" = 'no'; then
25623 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25624 fi
25625fi
25626
25627 if test "$have_fontconfig" = 'yes'; then
25628 FONTCONFIG_DELEGATE_TRUE=
25629 FONTCONFIG_DELEGATE_FALSE='#'
25630else
25631 FONTCONFIG_DELEGATE_TRUE='#'
25632 FONTCONFIG_DELEGATE_FALSE=
25633fi
25634
25635
25636
25637
25638
25639#
25640# Check for freetype delegate library.
25641#
25642
25643# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025644if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025645 withval=$with_freetype; with_freetype=$withval
25646else
25647 with_freetype='yes'
25648fi
25649
25650
25651
25652if test "$with_freetype" != 'yes'; then
25653 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25654fi
25655
25656have_freetype='no'
25657FREETYPE_LIBS=''
25658if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025660$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025662$as_echo_n "checking for FreeType 2.0... " >&6; }
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; }
25665 failed=0
25666 passed=0
cristy66291112009-10-03 22:44:36 +000025667 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025668 PERSIST_CPPFLAGS="$CPPFLAGS"
25669 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25670 :
25671 else
25672 freetype_config=''
25673 for ac_prog in freetype-config
25674do
25675 # Extract the first word of "$ac_prog", so it can be a program name with args.
25676set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025678$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025679if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025680 $as_echo_n "(cached) " >&6
25681else
25682 if test -n "$freetype_config"; then
25683 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25684else
25685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25686for as_dir in $PATH
25687do
25688 IFS=$as_save_IFS
25689 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25692 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025694 break 2
25695 fi
25696done
cristy8b350f62009-11-15 23:12:43 +000025697 done
cristy3ed852e2009-09-05 21:47:34 +000025698IFS=$as_save_IFS
25699
25700fi
25701fi
25702freetype_config=$ac_cv_prog_freetype_config
25703if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025705$as_echo "$freetype_config" >&6; }
25706else
cristy8b350f62009-11-15 23:12:43 +000025707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025708$as_echo "no" >&6; }
25709fi
25710
25711
25712 test -n "$freetype_config" && break
25713done
25714 if test -n "$freetype_config"; then
25715 freetype_cflags=`$freetype_config --cflags`
25716 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025717 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025718 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25719 fi
25720 fi
25721
25722 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025724$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025725if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025726 $as_echo_n "(cached) " >&6
25727else
25728 ac_check_lib_save_LIBS=$LIBS
25729LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025731/* end confdefs.h. */
25732
25733/* Override any GCC internal prototype to avoid an error.
25734 Use char because int might match the return type of a GCC
25735 builtin and then its argument prototype would still apply. */
25736#ifdef __cplusplus
25737extern "C"
25738#endif
25739char FT_Init_FreeType ();
25740int
25741main ()
25742{
25743return FT_Init_FreeType ();
25744 ;
25745 return 0;
25746}
25747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025749 ac_cv_lib_freetype_FT_Init_FreeType=yes
25750else
cristy8b350f62009-11-15 23:12:43 +000025751 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025752fi
cristy8b350f62009-11-15 23:12:43 +000025753rm -f core conftest.err conftest.$ac_objext \
25754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025755LIBS=$ac_check_lib_save_LIBS
25756fi
cristy8b350f62009-11-15 23:12:43 +000025757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025758$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025759if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025760 FREETYPE_LIBS='-lfreetype'
25761fi
25762
25763 if test "$FREETYPE_LIBS" != ''; then
25764 passed=`expr $passed + 1`
25765 else
25766 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025767 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025768 fi
25769 fi
25770
cristy8b350f62009-11-15 23:12:43 +000025771 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25772if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025773 FT2BUILD_H='#include <ft2build.h>'
25774else
25775 ft2build=''
25776fi
25777
25778
cristy8b350f62009-11-15 23:12:43 +000025779 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25780"
25781if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025782 have_freetype_h='yes'
25783else
25784 have_freetype_h='no'
25785fi
25786
25787
25788 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25789 passed=`expr $passed + 1`
25790 else
25791 failed=`expr $failed + 1`
25792 CPPFLAGS="$PERSIST_CPPFLAGS"
25793 fi
25794
cristy8b350f62009-11-15 23:12:43 +000025795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025796$as_echo_n "checking if FreeType package is complete... " >&6; }
25797 if test $passed -gt 0; then
25798 if test $failed -gt 0; then
25799 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025801$as_echo "no -- some components failed test" >&6; }
25802 have_freetype='no (failed tests)'
25803 else
25804 LIBS="$FREETYPE_LIBS $LIBS"
25805
cristy8b350f62009-11-15 23:12:43 +000025806$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025807
25808 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25809
cristy8b350f62009-11-15 23:12:43 +000025810$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025811
25812 fi
cristy8b350f62009-11-15 23:12:43 +000025813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025814$as_echo "yes" >&6; }
25815 have_freetype='yes'
25816 fi
25817 else
cristy8b350f62009-11-15 23:12:43 +000025818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025819$as_echo "no" >&6; }
25820 fi
25821fi
25822 if test "$have_freetype" = 'yes'; then
25823 FREETYPE_DELEGATE_TRUE=
25824 FREETYPE_DELEGATE_FALSE='#'
25825else
25826 FREETYPE_DELEGATE_TRUE='#'
25827 FREETYPE_DELEGATE_FALSE=
25828fi
25829
25830
25831
25832
25833
25834#
25835# Check for Ghostscript library or framework.
25836#
25837# Test for iapi.h & test for gsapi_new_instance in -lgs
25838# or -framework Ghostscript
25839
25840
25841# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025842if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025843 withval=$with_gslib; with_gslib=$withval
25844else
25845 with_gslib='no'
25846fi
25847
25848
cristyb7931f12009-09-25 10:22:21 +000025849gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025850if test "$with_gslib" != 'yes'; then
25851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25852fi
25853
25854have_gslib='no'
25855GS_LIBS=''
25856if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025858$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025860$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025862$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025863 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025864 failed=0
25865 passed=0
cristy8b350f62009-11-15 23:12:43 +000025866 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25867if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025868 passed=`expr $passed + 1`
25869else
25870 failed=`expr $failed + 1`
25871fi
25872
25873
cristy8b350f62009-11-15 23:12:43 +000025874 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25875if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025876 passed=`expr $passed + 1`
25877else
25878 failed=`expr $failed + 1`
25879fi
25880
25881
cristy8b350f62009-11-15 23:12:43 +000025882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025883$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025884if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025885 $as_echo_n "(cached) " >&6
25886else
25887 ac_check_framework_save_LIBS=$LIBS
25888LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025890/* end confdefs.h. */
25891
25892/* Override any GCC internal prototype to avoid an error.
25893 Use char because int might match the return type of a GCC
25894 builtin and then its argument prototype would still apply. */
25895#ifdef __cplusplus
25896extern "C"
25897#endif
25898char gsapi_new_instance ();
25899int
25900main ()
25901{
25902return gsapi_new_instance ();
25903 ;
25904 return 0;
25905}
25906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025908 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25909else
cristy8b350f62009-11-15 23:12:43 +000025910 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025911fi
cristy8b350f62009-11-15 23:12:43 +000025912rm -f core conftest.err conftest.$ac_objext \
25913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025914LIBS=$ac_check_framework_save_LIBS
25915fi
cristy8b350f62009-11-15 23:12:43 +000025916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025917$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025918if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025919 framework=`expr $framework + 1`
25920else
cristy8b350f62009-11-15 23:12:43 +000025921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025922$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025923if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025924 $as_echo_n "(cached) " >&6
25925else
25926 ac_check_lib_save_LIBS=$LIBS
25927LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025929/* end confdefs.h. */
25930
25931/* Override any GCC internal prototype to avoid an error.
25932 Use char because int might match the return type of a GCC
25933 builtin and then its argument prototype would still apply. */
25934#ifdef __cplusplus
25935extern "C"
25936#endif
25937char gsapi_new_instance ();
25938int
25939main ()
25940{
25941return gsapi_new_instance ();
25942 ;
25943 return 0;
25944}
25945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025947 ac_cv_lib_gs_gsapi_new_instance=yes
25948else
cristy8b350f62009-11-15 23:12:43 +000025949 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025950fi
cristy8b350f62009-11-15 23:12:43 +000025951rm -f core conftest.err conftest.$ac_objext \
25952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025953LIBS=$ac_check_lib_save_LIBS
25954fi
cristy8b350f62009-11-15 23:12:43 +000025955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025956$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025957if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025958 passed=`expr $passed + 1`
25959else
25960 failed=`expr $failed + 1`
25961fi
25962
25963fi
cristy8b350f62009-11-15 23:12:43 +000025964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025965$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25966 if test $passed -gt 0; then
25967 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025969$as_echo "no -- some components failed test" >&6; }
25970 have_gslib='no (failed tests)'
25971 else
25972 if test $framework -gt 0; then
25973 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025974 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025976$as_echo "yes, using framework." >&6; }
25977 else
cristy8b350f62009-11-15 23:12:43 +000025978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025979$as_echo "yes, using library." >&6; }
25980 GS_LIBS='-lgs'
25981 fi
25982 LIBS="$GS_LIBS $LIBS"
25983
cristy8b350f62009-11-15 23:12:43 +000025984$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025985
25986 have_gslib='yes'
25987 fi
25988 else
cristy8b350f62009-11-15 23:12:43 +000025989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025990$as_echo "no" >&6; }
25991 fi
25992fi
25993 if test "$have_gslib" = 'yes'; then
25994 GS_DELEGATE_TRUE=
25995 GS_DELEGATE_FALSE='#'
25996else
25997 GS_DELEGATE_TRUE='#'
25998 GS_DELEGATE_FALSE=
25999fi
26000
26001
26002
26003# Set default font search path
26004
26005# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026006if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026007 withval=$with_fontpath; with_fontpath=$withval
26008else
26009 with_fontpath=''
26010fi
26011
26012
26013if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26014 with_fontpath=''
26015else
26016
26017cat >>confdefs.h <<_ACEOF
26018#define MAGICK_FONT_PATH "$with_fontpath"
26019_ACEOF
26020
26021fi
26022if test "$with_fontpath=" != ''; then
26023 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26024fi
26025
26026# Set Ghostscript font directory
26027
26028# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026029if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026030 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26031else
26032 with_gs_font_dir='default'
26033fi
26034
26035
26036if test "$with_gs_font_dir" != 'default'; then
26037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26038fi
26039
26040
26041#
26042# Check for GVC delegate library.
26043#
26044
26045# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026046if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026047 withval=$with_gvc; with_gvc=$withval
26048else
26049 with_gvc='yes'
26050fi
26051
26052
26053if test "$with_gvc" != 'yes'; then
26054 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26055fi
26056
26057GVC_PKG=""
26058if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026060$as_echo "-------------------------------------------------------------" >&6; }
26061
26062pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026064$as_echo_n "checking for GVC... " >&6; }
26065
26066if test -n "$GVC_CFLAGS"; then
26067 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26068 elif test -n "$PKG_CONFIG"; then
26069 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026071 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26072 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026075 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26076else
26077 pkg_failed=yes
26078fi
26079 else
26080 pkg_failed=untried
26081fi
26082if test -n "$GVC_LIBS"; then
26083 pkg_cv_GVC_LIBS="$GVC_LIBS"
26084 elif test -n "$PKG_CONFIG"; then
26085 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026087 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26088 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026091 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26092else
26093 pkg_failed=yes
26094fi
26095 else
26096 pkg_failed=untried
26097fi
26098
26099
26100
26101if test $pkg_failed = yes; then
26102
26103if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26104 _pkg_short_errors_supported=yes
26105else
26106 _pkg_short_errors_supported=no
26107fi
26108 if test $_pkg_short_errors_supported = yes; then
26109 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26110 else
26111 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26112 fi
26113 # Put the nasty error message in config.log where it belongs
26114 echo "$GVC_PKG_ERRORS" >&5
26115
cristy8b350f62009-11-15 23:12:43 +000026116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026117$as_echo "no" >&6; }
26118 have_gvc=no
26119elif test $pkg_failed = untried; then
26120 have_gvc=no
26121else
26122 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26123 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026125$as_echo "yes" >&6; }
26126 have_gvc=yes
26127fi
cristy8b350f62009-11-15 23:12:43 +000026128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026129$as_echo "" >&6; }
26130fi
26131
26132if test "$have_gvc" = 'yes'; then
26133
cristy8b350f62009-11-15 23:12:43 +000026134$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026135
26136 if test "$with_modules" = 'no'; then
26137 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26138 fi
26139fi
26140
26141 if test "$have_gvc" = 'yes'; then
26142 GVC_DELEGATE_TRUE=
26143 GVC_DELEGATE_FALSE='#'
26144else
26145 GVC_DELEGATE_TRUE='#'
26146 GVC_DELEGATE_FALSE=
26147fi
26148
26149
26150
26151
26152
26153#
26154# Check for JBIG delegate library.
26155#
26156
26157
26158# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026159if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026160 withval=$with_jbig; with_jbig=$withval
26161else
26162 with_jbig='yes'
26163fi
26164
26165
26166have_jbig='no'
26167JBIG_LIBS=''
26168if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026170$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026172$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026174$as_echo "" >&6; }
26175 failed=0
26176 passed=0
cristy8b350f62009-11-15 23:12:43 +000026177 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26178if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026179 passed=`expr $passed + 1`
26180else
26181 failed=`expr $failed + 1`
26182fi
26183
26184
cristy8b350f62009-11-15 23:12:43 +000026185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026186$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026187if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026188 $as_echo_n "(cached) " >&6
26189else
26190 ac_check_lib_save_LIBS=$LIBS
26191LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026193/* end confdefs.h. */
26194
26195/* Override any GCC internal prototype to avoid an error.
26196 Use char because int might match the return type of a GCC
26197 builtin and then its argument prototype would still apply. */
26198#ifdef __cplusplus
26199extern "C"
26200#endif
26201char jbg_dec_init ();
26202int
26203main ()
26204{
26205return jbg_dec_init ();
26206 ;
26207 return 0;
26208}
26209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026211 ac_cv_lib_jbig_jbg_dec_init=yes
26212else
cristy8b350f62009-11-15 23:12:43 +000026213 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026214fi
cristy8b350f62009-11-15 23:12:43 +000026215rm -f core conftest.err conftest.$ac_objext \
26216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026217LIBS=$ac_check_lib_save_LIBS
26218fi
cristy8b350f62009-11-15 23:12:43 +000026219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026220$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026221if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026222 passed=`expr $passed + 1`
26223else
26224 failed=`expr $failed + 1`
26225fi
26226
cristy8b350f62009-11-15 23:12:43 +000026227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026228$as_echo_n "checking if JBIG package is complete... " >&6; }
26229 if test $passed -gt 0; then
26230 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026232$as_echo "no -- some components failed test" >&6; }
26233 have_jbig='no (failed tests)'
26234 else
26235 JBIG_LIBS='-ljbig'
26236 LIBS="$JBIG_LIBS $LIBS"
26237
cristy8b350f62009-11-15 23:12:43 +000026238$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026239
cristy8b350f62009-11-15 23:12:43 +000026240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026241$as_echo "yes" >&6; }
26242 have_jbig='yes'
26243 fi
26244 else
cristy8b350f62009-11-15 23:12:43 +000026245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026246$as_echo "no" >&6; }
26247 fi
26248fi
26249 if test "$have_jbig" = 'yes'; then
26250 JBIG_DELEGATE_TRUE=
26251 JBIG_DELEGATE_FALSE='#'
26252else
26253 JBIG_DELEGATE_TRUE='#'
26254 JBIG_DELEGATE_FALSE=
26255fi
26256
26257
26258
26259
26260#
26261# Check for JPEG delegate library.
26262#
26263
26264# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026265if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026266 withval=$with_jpeg; with_jpeg=$withval
26267else
26268 with_jpeg='yes'
26269fi
26270
26271
26272if test "$with_jpeg" != 'yes'; then
26273 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26274fi
26275
26276have_jpeg='no'
26277JPEG_LIBS=''
26278if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026280$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026282$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026284$as_echo "" >&6; }
26285 failed=0
26286 passed=0
cristy8b350f62009-11-15 23:12:43 +000026287 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26288if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026289 passed=`expr $passed + 1`
26290else
26291 failed=`expr $failed + 1`
26292fi
26293
26294
cristy8b350f62009-11-15 23:12:43 +000026295 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26296if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026297 passed=`expr $passed + 1`
26298else
26299 failed=`expr $failed + 1`
26300fi
26301
26302
cristy8b350f62009-11-15 23:12:43 +000026303 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26304if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026305 passed=`expr $passed + 1`
26306else
26307 failed=`expr $failed + 1`
26308fi
26309
26310
cristy8b350f62009-11-15 23:12:43 +000026311 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26312if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 passed=`expr $passed + 1`
26314else
26315 failed=`expr $failed + 1`
26316fi
26317
26318
cristy8b350f62009-11-15 23:12:43 +000026319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026320$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026321if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026322 $as_echo_n "(cached) " >&6
26323else
26324 ac_check_lib_save_LIBS=$LIBS
26325LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026327/* end confdefs.h. */
26328
26329/* Override any GCC internal prototype to avoid an error.
26330 Use char because int might match the return type of a GCC
26331 builtin and then its argument prototype would still apply. */
26332#ifdef __cplusplus
26333extern "C"
26334#endif
26335char jpeg_read_header ();
26336int
26337main ()
26338{
26339return jpeg_read_header ();
26340 ;
26341 return 0;
26342}
26343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026344if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026345 ac_cv_lib_jpeg_jpeg_read_header=yes
26346else
cristy8b350f62009-11-15 23:12:43 +000026347 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026348fi
cristy8b350f62009-11-15 23:12:43 +000026349rm -f core conftest.err conftest.$ac_objext \
26350 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026351LIBS=$ac_check_lib_save_LIBS
26352fi
cristy8b350f62009-11-15 23:12:43 +000026353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026354$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026355if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026356 passed=`expr $passed + 1`
26357else
26358 failed=`expr $failed + 1`
26359fi
26360
26361
26362# Test for compatible JPEG library
26363if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026365$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026366if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026367 $as_echo_n "(cached) " >&6
26368else
cristy8b350f62009-11-15 23:12:43 +000026369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026370/* end confdefs.h. */
26371#include <stdio.h>
26372#include <stdlib.h>
26373#include <jpeglib.h>
26374
26375int
26376main ()
26377{
26378
26379#if JPEG_LIB_VERSION < 62
26380#error IJG JPEG library must be version 6b or newer!
26381#endif
26382return 0;
26383
26384 ;
26385 return 0;
26386}
26387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026388if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026389 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26390else
cristy8b350f62009-11-15 23:12:43 +000026391 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026392fi
cristy3ed852e2009-09-05 21:47:34 +000026393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26394fi
cristy8b350f62009-11-15 23:12:43 +000026395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026396$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26397fi
cristy8b350f62009-11-15 23:12:43 +000026398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026399$as_echo_n "checking if JPEG package is complete... " >&6; }
26400 if test $passed -gt 0; then
26401 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026403$as_echo "no -- some components failed test" >&6; }
26404 have_jpeg='no (failed tests)'
26405 else
26406 JPEG_LIBS='-ljpeg'
26407 LIBS="$JPEG_LIBS $LIBS"
26408
cristy8b350f62009-11-15 23:12:43 +000026409$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026410
cristy8b350f62009-11-15 23:12:43 +000026411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026412$as_echo "yes" >&6; }
26413 have_jpeg='yes'
26414 fi
26415 else
cristy8b350f62009-11-15 23:12:43 +000026416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026417$as_echo "no" >&6; }
26418 fi
26419fi
26420 if test "$have_jpeg" = 'yes'; then
26421 JPEG_DELEGATE_TRUE=
26422 JPEG_DELEGATE_FALSE='#'
26423else
26424 JPEG_DELEGATE_TRUE='#'
26425 JPEG_DELEGATE_FALSE=
26426fi
26427
26428
26429
26430
26431#
26432# Check for JPEG Version 2 delegate library.
26433#
26434
26435# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026436if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026437 withval=$with_jp2; with_jp2=$withval
26438else
26439 with_jp2='yes'
26440fi
26441
26442
26443if test "$with_jp2" != 'yes'; then
26444 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26445fi
26446
26447have_jp2='no'
26448JP2_LIBS=''
26449if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026451$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026453$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026455$as_echo "" >&6; }
26456 failed=0
26457 passed=0
cristy8b350f62009-11-15 23:12:43 +000026458 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26459if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026460 passed=`expr $passed + 1`
26461else
26462 failed=`expr $failed + 1`
26463fi
26464
26465
cristy8b350f62009-11-15 23:12:43 +000026466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026467$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026468if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026469 $as_echo_n "(cached) " >&6
26470else
26471 ac_check_lib_save_LIBS=$LIBS
26472LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026474/* end confdefs.h. */
26475
26476/* Override any GCC internal prototype to avoid an error.
26477 Use char because int might match the return type of a GCC
26478 builtin and then its argument prototype would still apply. */
26479#ifdef __cplusplus
26480extern "C"
26481#endif
26482char jas_stream_fopen ();
26483int
26484main ()
26485{
26486return jas_stream_fopen ();
26487 ;
26488 return 0;
26489}
26490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026491if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026492 ac_cv_lib_jasper_jas_stream_fopen=yes
26493else
cristy8b350f62009-11-15 23:12:43 +000026494 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026495fi
cristy8b350f62009-11-15 23:12:43 +000026496rm -f core conftest.err conftest.$ac_objext \
26497 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026498LIBS=$ac_check_lib_save_LIBS
26499fi
cristy8b350f62009-11-15 23:12:43 +000026500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026501$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026502if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026503 passed=`expr $passed + 1`
26504else
26505 failed=`expr $failed + 1`
26506fi
26507
cristy8b350f62009-11-15 23:12:43 +000026508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026509$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26510 if test $passed -gt 0; then
26511 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026513$as_echo "no -- some components failed test" >&6; }
26514 have_jp2='no (failed tests)'
26515 else
26516 JP2_LIBS='-ljasper'
26517 LIBS="$JP2_LIBS $LIBS"
26518
cristy8b350f62009-11-15 23:12:43 +000026519$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026520
cristy8b350f62009-11-15 23:12:43 +000026521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026522$as_echo "yes" >&6; }
26523 have_jp2='yes'
26524 fi
26525 else
cristy8b350f62009-11-15 23:12:43 +000026526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026527$as_echo "no" >&6; }
26528 fi
26529fi
26530 if test "$have_jp2" = 'yes'; then
26531 JP2_DELEGATE_TRUE=
26532 JP2_DELEGATE_FALSE='#'
26533else
26534 JP2_DELEGATE_TRUE='#'
26535 JP2_DELEGATE_FALSE=
26536fi
26537
26538
26539
26540
26541#
26542# Check for LCMS delegate library.
26543#
26544
26545# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026546if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026547 withval=$with_lcms; with_lcms=$withval
26548else
26549 with_lcms='yes'
26550fi
26551
26552
26553if test "$with_lcms" != 'yes'; then
26554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26555fi
26556
26557have_lcms='no'
26558LCMS_LIBS=''
26559if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026561$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026563$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026565$as_echo "" >&6; }
26566 failed=0
26567 passed=0
26568 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026569 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26570if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026571 have_lcms_header='yes'
26572fi
26573
26574
26575 if test "$have_lcms_header" = 'yes'; then
26576 passed=`expr $passed + 1`
26577
cristy8b350f62009-11-15 23:12:43 +000026578$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026579
26580 else
cristy8b350f62009-11-15 23:12:43 +000026581 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26582if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026583 have_lcms_header='yes'
26584fi
26585
26586
26587 if test "$have_lcms_header" = 'yes'; then
26588 passed=`expr $passed + 1`
26589
cristy8b350f62009-11-15 23:12:43 +000026590$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026591
26592 else
26593 failed=`expr $failed + 1`
26594 fi
26595 fi
cristy8b350f62009-11-15 23:12:43 +000026596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026597$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026598if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026599 $as_echo_n "(cached) " >&6
26600else
26601 ac_check_lib_save_LIBS=$LIBS
26602LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026604/* end confdefs.h. */
26605
26606/* Override any GCC internal prototype to avoid an error.
26607 Use char because int might match the return type of a GCC
26608 builtin and then its argument prototype would still apply. */
26609#ifdef __cplusplus
26610extern "C"
26611#endif
26612char cmsOpenProfileFromMem ();
26613int
26614main ()
26615{
26616return cmsOpenProfileFromMem ();
26617 ;
26618 return 0;
26619}
26620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026622 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26623else
cristy8b350f62009-11-15 23:12:43 +000026624 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026625fi
cristy8b350f62009-11-15 23:12:43 +000026626rm -f core conftest.err conftest.$ac_objext \
26627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026628LIBS=$ac_check_lib_save_LIBS
26629fi
cristy8b350f62009-11-15 23:12:43 +000026630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026631$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026632if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026633 passed=`expr $passed + 1`
26634else
26635 failed=`expr $failed + 1`
26636fi
26637
cristy8b350f62009-11-15 23:12:43 +000026638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026639$as_echo_n "checking if LCMS package is complete... " >&6; }
26640 if test $passed -gt 0; then
26641 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026643$as_echo "no -- some components failed test" >&6; }
26644 have_lcms='no (failed tests)'
26645 else
26646 LCMS_LIBS='-llcms'
26647 LIBS="$LCMS_LIBS $LIBS"
26648
cristy8b350f62009-11-15 23:12:43 +000026649$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026650
cristy8b350f62009-11-15 23:12:43 +000026651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026652$as_echo "yes" >&6; }
26653 have_lcms='yes'
26654 fi
26655 else
cristy8b350f62009-11-15 23:12:43 +000026656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026657$as_echo "no" >&6; }
26658 fi
26659fi
26660 if test "$have_lcms" = 'yes'; then
26661 LCMS_DELEGATE_TRUE=
26662 LCMS_DELEGATE_FALSE='#'
26663else
26664 LCMS_DELEGATE_TRUE='#'
26665 LCMS_DELEGATE_FALSE=
26666fi
26667
26668
26669
26670
26671#
26672# Check for the LQR (Liquid Rescale) delegate library.
26673#
26674
26675# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026676if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026677 withval=$with_lqr; with_lqr=$withval
26678else
26679 with_lqr='yes'
26680fi
26681
26682
26683if test "$with_lqr" != 'yes'; then
26684 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26685fi
26686
26687have_lqr='no'
26688LQR_CFLAGS=""
26689LQR_LIBS=""
26690LQR_PKG=""
26691if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026693$as_echo "-------------------------------------------------------------" >&6; }
26694
26695pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026697$as_echo_n "checking for LQR... " >&6; }
26698
26699if test -n "$LQR_CFLAGS"; then
26700 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26701 elif test -n "$PKG_CONFIG"; then
26702 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026704 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26705 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26707 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026708 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26709else
26710 pkg_failed=yes
26711fi
26712 else
26713 pkg_failed=untried
26714fi
26715if test -n "$LQR_LIBS"; then
26716 pkg_cv_LQR_LIBS="$LQR_LIBS"
26717 elif test -n "$PKG_CONFIG"; then
26718 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026720 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26721 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26723 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026724 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26725else
26726 pkg_failed=yes
26727fi
26728 else
26729 pkg_failed=untried
26730fi
26731
26732
26733
26734if test $pkg_failed = yes; then
26735
26736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26737 _pkg_short_errors_supported=yes
26738else
26739 _pkg_short_errors_supported=no
26740fi
26741 if test $_pkg_short_errors_supported = yes; then
26742 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26743 else
26744 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26745 fi
26746 # Put the nasty error message in config.log where it belongs
26747 echo "$LQR_PKG_ERRORS" >&5
26748
cristy8b350f62009-11-15 23:12:43 +000026749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026750$as_echo "no" >&6; }
26751 have_lqr=no
26752elif test $pkg_failed = untried; then
26753 have_lqr=no
26754else
26755 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26756 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026758$as_echo "yes" >&6; }
26759 have_lqr=yes
26760fi
cristy8b350f62009-11-15 23:12:43 +000026761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo "" >&6; }
26763fi
26764
26765if test "$have_lqr" = 'yes'; then
26766
cristy8b350f62009-11-15 23:12:43 +000026767$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026768
26769 CFLAGS="$LQR_CFLAGS $CFLAGS"
26770fi
26771
26772 if test "$have_lqr" = 'yes'; then
26773 LQR_DELEGATE_TRUE=
26774 LQR_DELEGATE_FALSE='#'
26775else
26776 LQR_DELEGATE_TRUE='#'
26777 LQR_DELEGATE_FALSE=
26778fi
26779
26780
26781
26782
26783
26784#
26785# Check for the OpenEXR delegate library.
26786#
26787
26788# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026789if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026790 withval=$with_openexr; with_openexr=$withval
26791else
26792 with_openexr='yes'
26793fi
26794
26795
26796if test "$with_openexr" != 'yes'; then
26797 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26798fi
26799
26800have_openexr='no'
26801OPENEXR_CFLAGS=""
26802OPENEXR_LIBS=""
26803OPENEXR_PKG=""
26804if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo "-------------------------------------------------------------" >&6; }
26807
26808pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026810$as_echo_n "checking for OPENEXR... " >&6; }
26811
26812if test -n "$OPENEXR_CFLAGS"; then
26813 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26814 elif test -n "$PKG_CONFIG"; then
26815 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026816 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026817 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26818 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26820 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026821 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26822else
26823 pkg_failed=yes
26824fi
26825 else
26826 pkg_failed=untried
26827fi
26828if test -n "$OPENEXR_LIBS"; then
26829 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26830 elif test -n "$PKG_CONFIG"; then
26831 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026833 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26834 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26836 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026837 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26838else
26839 pkg_failed=yes
26840fi
26841 else
26842 pkg_failed=untried
26843fi
26844
26845
26846
26847if test $pkg_failed = yes; then
26848
26849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26850 _pkg_short_errors_supported=yes
26851else
26852 _pkg_short_errors_supported=no
26853fi
26854 if test $_pkg_short_errors_supported = yes; then
26855 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26856 else
26857 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26858 fi
26859 # Put the nasty error message in config.log where it belongs
26860 echo "$OPENEXR_PKG_ERRORS" >&5
26861
cristy8b350f62009-11-15 23:12:43 +000026862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026863$as_echo "no" >&6; }
26864 have_openexr=no
26865elif test $pkg_failed = untried; then
26866 have_openexr=no
26867else
26868 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26869 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo "yes" >&6; }
26872 have_openexr=yes
26873fi
cristy8b350f62009-11-15 23:12:43 +000026874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026875$as_echo "" >&6; }
26876fi
26877
26878if test "$have_openexr" = 'yes'; then
26879
cristy8b350f62009-11-15 23:12:43 +000026880$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026881
26882 if test "$with_modules" = 'no'; then
26883 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26884 fi
26885fi
26886
26887 if test "$have_openexr" = 'yes'; then
26888 OPENEXR_DELEGATE_TRUE=
26889 OPENEXR_DELEGATE_FALSE='#'
26890else
26891 OPENEXR_DELEGATE_TRUE='#'
26892 OPENEXR_DELEGATE_FALSE=
26893fi
26894
26895
26896
26897
26898
26899#
26900# Check for PNG delegate library.
26901#
26902
26903# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026904if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026905 withval=$with_png; with_png=$withval
26906else
26907 with_png='yes'
26908fi
26909
26910
26911if test "$with_png" != 'yes'; then
26912 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26913fi
26914
26915have_png='no'
26916PNG_LIBS=''
26917if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026921$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "" >&6; }
26924 failed=0
26925 passed=0
cristy8b350f62009-11-15 23:12:43 +000026926 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26927if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026928 passed=`expr $passed + 1`
26929else
26930 failed=`expr $failed + 1`
26931fi
26932
26933
cristy8b350f62009-11-15 23:12:43 +000026934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026935$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026936if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026937 $as_echo_n "(cached) " >&6
26938else
26939 ac_check_lib_save_LIBS=$LIBS
26940LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026942/* end confdefs.h. */
26943
26944/* Override any GCC internal prototype to avoid an error.
26945 Use char because int might match the return type of a GCC
26946 builtin and then its argument prototype would still apply. */
26947#ifdef __cplusplus
26948extern "C"
26949#endif
26950char png_get_io_ptr ();
26951int
26952main ()
26953{
26954return png_get_io_ptr ();
26955 ;
26956 return 0;
26957}
26958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026959if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026960 ac_cv_lib_png_png_get_io_ptr=yes
26961else
cristy8b350f62009-11-15 23:12:43 +000026962 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026963fi
cristy8b350f62009-11-15 23:12:43 +000026964rm -f core conftest.err conftest.$ac_objext \
26965 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026966LIBS=$ac_check_lib_save_LIBS
26967fi
cristy8b350f62009-11-15 23:12:43 +000026968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026969$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026970if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026971 passed=`expr $passed + 1`
26972else
26973 failed=`expr $failed + 1`
26974fi
26975
cristy8b350f62009-11-15 23:12:43 +000026976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026977$as_echo_n "checking if PNG package is complete... " >&6; }
26978 if test $passed -gt 0; then
26979 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026981$as_echo "no -- some components failed test" >&6; }
26982 have_png='no (failed tests)'
26983 else
26984 PNG_LIBS='-lpng'
26985 LIBS="$PNG_LIBS $LIBS"
26986
cristy8b350f62009-11-15 23:12:43 +000026987$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026988
cristy8b350f62009-11-15 23:12:43 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo "yes" >&6; }
26991 have_png='yes'
26992 fi
26993 else
cristy8b350f62009-11-15 23:12:43 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026995$as_echo "no" >&6; }
26996 fi
26997fi
26998 if test "$have_png" = 'yes'; then
26999 PNG_DELEGATE_TRUE=
27000 PNG_DELEGATE_FALSE='#'
27001else
27002 PNG_DELEGATE_TRUE='#'
27003 PNG_DELEGATE_FALSE=
27004fi
27005
27006
27007
27008
27009#
27010# Check for RSVG delegate library.
27011#
27012
27013# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027014if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027015 withval=$with_rsvg; with_rsvg=$withval
27016else
27017 with_rsvg=$have_x
27018fi
27019
27020
27021if test "$with_rsvg" != 'yes'; then
27022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27023fi
27024
27025have_rsvg='no'
27026have_cairo='no'
27027RSVG_CFLAGS=""
27028RSVG_LIBS=""
27029RSVG_PKG=""
27030if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027032$as_echo "-------------------------------------------------------------" >&6; }
27033
27034pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027036$as_echo_n "checking for RSVG... " >&6; }
27037
27038if test -n "$RSVG_CFLAGS"; then
27039 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27040 elif test -n "$PKG_CONFIG"; then
27041 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027042 { { $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 +000027043 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27044 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27046 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027047 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27048else
27049 pkg_failed=yes
27050fi
27051 else
27052 pkg_failed=untried
27053fi
27054if test -n "$RSVG_LIBS"; then
27055 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27056 elif test -n "$PKG_CONFIG"; then
27057 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027059 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27060 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27062 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027063 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27064else
27065 pkg_failed=yes
27066fi
27067 else
27068 pkg_failed=untried
27069fi
27070
27071
27072
27073if test $pkg_failed = yes; then
27074
27075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27076 _pkg_short_errors_supported=yes
27077else
27078 _pkg_short_errors_supported=no
27079fi
27080 if test $_pkg_short_errors_supported = yes; then
27081 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27082 else
27083 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27084 fi
27085 # Put the nasty error message in config.log where it belongs
27086 echo "$RSVG_PKG_ERRORS" >&5
27087
cristy8b350f62009-11-15 23:12:43 +000027088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027089$as_echo "no" >&6; }
27090 have_rsvg=no
27091elif test $pkg_failed = untried; then
27092 have_rsvg=no
27093else
27094 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27095 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027097$as_echo "yes" >&6; }
27098 have_rsvg=yes
27099fi
cristy8b350f62009-11-15 23:12:43 +000027100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027101$as_echo "" >&6; }
27102
27103pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027105$as_echo_n "checking for CAIRO_SVG... " >&6; }
27106
27107if test -n "$CAIRO_SVG_CFLAGS"; then
27108 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27109 elif test -n "$PKG_CONFIG"; then
27110 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027112 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27113 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27115 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027116 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27117else
27118 pkg_failed=yes
27119fi
27120 else
27121 pkg_failed=untried
27122fi
27123if test -n "$CAIRO_SVG_LIBS"; then
27124 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27125 elif test -n "$PKG_CONFIG"; then
27126 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027128 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27129 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27131 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027132 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27133else
27134 pkg_failed=yes
27135fi
27136 else
27137 pkg_failed=untried
27138fi
27139
27140
27141
27142if test $pkg_failed = yes; then
27143
27144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27145 _pkg_short_errors_supported=yes
27146else
27147 _pkg_short_errors_supported=no
27148fi
27149 if test $_pkg_short_errors_supported = yes; then
27150 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27151 else
27152 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27153 fi
27154 # Put the nasty error message in config.log where it belongs
27155 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27156
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo "no" >&6; }
27159 have_cairo=no
27160elif test $pkg_failed = untried; then
27161 have_cairo=no
27162else
27163 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27164 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027166$as_echo "yes" >&6; }
27167 have_cairo=yes
27168fi
cristy8b350f62009-11-15 23:12:43 +000027169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027170$as_echo "" >&6; }
27171fi
27172
27173if test "$have_rsvg" = 'yes'; then
27174
cristy8b350f62009-11-15 23:12:43 +000027175$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027176
27177 if test "$with_modules" = 'no'; then
27178 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27179 fi
27180fi
27181
27182if test "$have_cairo" = 'yes'; then
27183
cristy8b350f62009-11-15 23:12:43 +000027184$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027185
27186 if test "$with_modules" = 'no'; then
27187 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27188 fi
27189fi
27190
27191 if test "$have_rsvg" = 'yes'; then
27192 RSVG_DELEGATE_TRUE=
27193 RSVG_DELEGATE_FALSE='#'
27194else
27195 RSVG_DELEGATE_TRUE='#'
27196 RSVG_DELEGATE_FALSE=
27197fi
27198
27199 if test "$have_cairo" = 'yes'; then
27200 CAIRO_DELEGATE_TRUE=
27201 CAIRO_DELEGATE_FALSE='#'
27202else
27203 CAIRO_DELEGATE_TRUE='#'
27204 CAIRO_DELEGATE_FALSE=
27205fi
27206
27207
27208
27209
27210
27211#
27212# Check for TIFF delegate library.
27213#
27214
27215# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027216if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027217 withval=$with_tiff; with_tiff=$withval
27218else
27219 with_tiff='yes'
27220fi
27221
27222
27223if test "$with_tiff" != 'yes'; then
27224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27225fi
27226
27227have_tiff='no'
27228TIFF_LIBS=''
27229if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027231$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027233$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027235$as_echo "" >&6; }
27236 failed=0
27237 passed=0
cristy8b350f62009-11-15 23:12:43 +000027238 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27239if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027240 passed=`expr $passed + 1`
27241else
27242 failed=`expr $failed + 1`
27243fi
27244
27245
cristy8b350f62009-11-15 23:12:43 +000027246 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27247if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 passed=`expr $passed + 1`
27249else
27250 failed=`expr $failed + 1`
27251fi
27252
27253
cristy8b350f62009-11-15 23:12:43 +000027254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027256if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 $as_echo_n "(cached) " >&6
27258else
27259 ac_check_lib_save_LIBS=$LIBS
27260LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027262/* end confdefs.h. */
27263
27264/* Override any GCC internal prototype to avoid an error.
27265 Use char because int might match the return type of a GCC
27266 builtin and then its argument prototype would still apply. */
27267#ifdef __cplusplus
27268extern "C"
27269#endif
27270char TIFFOpen ();
27271int
27272main ()
27273{
27274return TIFFOpen ();
27275 ;
27276 return 0;
27277}
27278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027279if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 ac_cv_lib_tiff_TIFFOpen=yes
27281else
cristy8b350f62009-11-15 23:12:43 +000027282 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027283fi
cristy8b350f62009-11-15 23:12:43 +000027284rm -f core conftest.err conftest.$ac_objext \
27285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027286LIBS=$ac_check_lib_save_LIBS
27287fi
cristy8b350f62009-11-15 23:12:43 +000027288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027289$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027290if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027291 passed=`expr $passed + 1`
27292else
27293 failed=`expr $failed + 1`
27294fi
27295
cristy8b350f62009-11-15 23:12:43 +000027296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027298if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 $as_echo_n "(cached) " >&6
27300else
27301 ac_check_lib_save_LIBS=$LIBS
27302LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304/* end confdefs.h. */
27305
27306/* Override any GCC internal prototype to avoid an error.
27307 Use char because int might match the return type of a GCC
27308 builtin and then its argument prototype would still apply. */
27309#ifdef __cplusplus
27310extern "C"
27311#endif
27312char TIFFClientOpen ();
27313int
27314main ()
27315{
27316return TIFFClientOpen ();
27317 ;
27318 return 0;
27319}
27320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027322 ac_cv_lib_tiff_TIFFClientOpen=yes
27323else
cristy8b350f62009-11-15 23:12:43 +000027324 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027325fi
cristy8b350f62009-11-15 23:12:43 +000027326rm -f core conftest.err conftest.$ac_objext \
27327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027328LIBS=$ac_check_lib_save_LIBS
27329fi
cristy8b350f62009-11-15 23:12:43 +000027330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027331$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027332if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027333 passed=`expr $passed + 1`
27334else
27335 failed=`expr $failed + 1`
27336fi
27337
cristy8b350f62009-11-15 23:12:43 +000027338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027339$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027340if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027341 $as_echo_n "(cached) " >&6
27342else
27343 ac_check_lib_save_LIBS=$LIBS
27344LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027346/* end confdefs.h. */
27347
27348/* Override any GCC internal prototype to avoid an error.
27349 Use char because int might match the return type of a GCC
27350 builtin and then its argument prototype would still apply. */
27351#ifdef __cplusplus
27352extern "C"
27353#endif
27354char TIFFIsByteSwapped ();
27355int
27356main ()
27357{
27358return TIFFIsByteSwapped ();
27359 ;
27360 return 0;
27361}
27362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027363if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027364 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27365else
cristy8b350f62009-11-15 23:12:43 +000027366 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027367fi
cristy8b350f62009-11-15 23:12:43 +000027368rm -f core conftest.err conftest.$ac_objext \
27369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027370LIBS=$ac_check_lib_save_LIBS
27371fi
cristy8b350f62009-11-15 23:12:43 +000027372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027373$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027374if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027375 passed=`expr $passed + 1`
27376else
27377 failed=`expr $failed + 1`
27378fi
27379
cristy8b350f62009-11-15 23:12:43 +000027380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027381$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027382if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027383 $as_echo_n "(cached) " >&6
27384else
27385 ac_check_lib_save_LIBS=$LIBS
27386LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027388/* end confdefs.h. */
27389
27390/* Override any GCC internal prototype to avoid an error.
27391 Use char because int might match the return type of a GCC
27392 builtin and then its argument prototype would still apply. */
27393#ifdef __cplusplus
27394extern "C"
27395#endif
27396char TIFFReadRGBATile ();
27397int
27398main ()
27399{
27400return TIFFReadRGBATile ();
27401 ;
27402 return 0;
27403}
27404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27407else
cristy8b350f62009-11-15 23:12:43 +000027408 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027409fi
cristy8b350f62009-11-15 23:12:43 +000027410rm -f core conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027412LIBS=$ac_check_lib_save_LIBS
27413fi
cristy8b350f62009-11-15 23:12:43 +000027414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027415$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027416if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027417 passed=`expr $passed + 1`
27418else
27419 failed=`expr $failed + 1`
27420fi
27421
cristy8b350f62009-11-15 23:12:43 +000027422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027423$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027424if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027425 $as_echo_n "(cached) " >&6
27426else
27427 ac_check_lib_save_LIBS=$LIBS
27428LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027430/* end confdefs.h. */
27431
27432/* Override any GCC internal prototype to avoid an error.
27433 Use char because int might match the return type of a GCC
27434 builtin and then its argument prototype would still apply. */
27435#ifdef __cplusplus
27436extern "C"
27437#endif
27438char TIFFReadRGBAStrip ();
27439int
27440main ()
27441{
27442return TIFFReadRGBAStrip ();
27443 ;
27444 return 0;
27445}
27446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027448 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27449else
cristy8b350f62009-11-15 23:12:43 +000027450 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027451fi
cristy8b350f62009-11-15 23:12:43 +000027452rm -f core conftest.err conftest.$ac_objext \
27453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027454LIBS=$ac_check_lib_save_LIBS
27455fi
cristy8b350f62009-11-15 23:12:43 +000027456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027457$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027458if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027459 passed=`expr $passed + 1`
27460else
27461 failed=`expr $failed + 1`
27462fi
27463
cristy8b350f62009-11-15 23:12:43 +000027464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027465$as_echo_n "checking if TIFF package is complete... " >&6; }
27466 if test $passed -gt 0; then
27467 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027469$as_echo "no -- some components failed test" >&6; }
27470 have_tiff='no (failed tests)'
27471 else
27472 TIFF_LIBS='-ltiff'
27473 LIBS="$TIFF_LIBS $LIBS"
27474
cristy8b350f62009-11-15 23:12:43 +000027475$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027476
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "yes" >&6; }
27479 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027480 for ac_header in tiffconf.h
27481do :
27482 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27483if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027484 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027485#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027486_ACEOF
27487
27488fi
27489
27490done
27491
cristy8b350f62009-11-15 23:12:43 +000027492 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027493 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27494 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027495do :
27496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27497ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27498eval as_val=\$$as_ac_var
27499 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027500 cat >>confdefs.h <<_ACEOF
27501#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27502_ACEOF
27503
27504fi
27505done
27506
27507 fi
27508 else
cristy8b350f62009-11-15 23:12:43 +000027509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027510$as_echo "no" >&6; }
27511 fi
27512fi
27513 if test "$have_tiff" = 'yes'; then
27514 TIFF_DELEGATE_TRUE=
27515 TIFF_DELEGATE_FALSE='#'
27516else
27517 TIFF_DELEGATE_TRUE='#'
27518 TIFF_DELEGATE_FALSE=
27519fi
27520
27521
27522
27523
27524#
27525# Set Windows font directory.
27526#
27527
27528# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027529if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27531else
27532 with_windows_font_dir=''
27533fi
27534
27535if test "$with_windows_font_dir" != '' ; then
27536 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27537fi
27538
27539
27540#
27541# Check for WMF delegate library.
27542#
27543
27544# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027545if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 withval=$with_wmf; with_wmf=$withval
27547else
27548 with_wmf=$with_modules
27549fi
27550
27551
27552if test "$with_wmf" != 'yes'; then
27553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27554fi
27555
27556have_wmf='no'
27557WMF_LIBS=''
27558WMF_LIBS_DEPS=''
27559OLIBS="$LIBS"
27560if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027562$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027564$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo "" >&6; }
27567 have_libwmf='no'
27568 have_libwmflite='no'
27569 have_libwmf_ipa_h='no'
27570
cristy8b350f62009-11-15 23:12:43 +000027571 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27572"
27573if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 have_libwmf_ipa_h='yes'
27575fi
27576
27577
27578 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027581if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 $as_echo_n "(cached) " >&6
27583else
27584 ac_check_lib_save_LIBS=$LIBS
27585LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027587/* end confdefs.h. */
27588
27589/* Override any GCC internal prototype to avoid an error.
27590 Use char because int might match the return type of a GCC
27591 builtin and then its argument prototype would still apply. */
27592#ifdef __cplusplus
27593extern "C"
27594#endif
27595char wmf_lite_create ();
27596int
27597main ()
27598{
27599return wmf_lite_create ();
27600 ;
27601 return 0;
27602}
27603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 ac_cv_lib_wmflite_wmf_lite_create=yes
27606else
cristy8b350f62009-11-15 23:12:43 +000027607 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027608fi
cristy8b350f62009-11-15 23:12:43 +000027609rm -f core conftest.err conftest.$ac_objext \
27610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027611LIBS=$ac_check_lib_save_LIBS
27612fi
cristy8b350f62009-11-15 23:12:43 +000027613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027615if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027616 have_libwmflite='yes'
27617fi
27618
27619 if test "$have_libwmflite" = 'yes'; then
27620
cristy8b350f62009-11-15 23:12:43 +000027621$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027622
27623 WMF_LIBS='-lwmflite'
27624 LIBS="$WMF_LIBS $LIBS"
27625 have_wmf='yes'
27626 else
27627 WMF_LIBS_DEPS=''
27628 WMF_CONFIG_LIBS=`libwmf-config --libs`
27629 for lib in xml2 expat freetype jpeg png z; do
27630 testlib="-l${lib}"
27631 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27632 done
cristy8b350f62009-11-15 23:12:43 +000027633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027634$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027635if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027636 $as_echo_n "(cached) " >&6
27637else
27638 ac_check_lib_save_LIBS=$LIBS
27639LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027641/* end confdefs.h. */
27642
27643/* Override any GCC internal prototype to avoid an error.
27644 Use char because int might match the return type of a GCC
27645 builtin and then its argument prototype would still apply. */
27646#ifdef __cplusplus
27647extern "C"
27648#endif
27649char wmf_api_create ();
27650int
27651main ()
27652{
27653return wmf_api_create ();
27654 ;
27655 return 0;
27656}
27657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027658if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027659 ac_cv_lib_wmf_wmf_api_create=yes
27660else
cristy8b350f62009-11-15 23:12:43 +000027661 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027662fi
cristy8b350f62009-11-15 23:12:43 +000027663rm -f core conftest.err conftest.$ac_objext \
27664 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027665LIBS=$ac_check_lib_save_LIBS
27666fi
cristy8b350f62009-11-15 23:12:43 +000027667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027668$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027669if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027670 have_libwmf='yes'
27671fi
27672
27673 if test "$have_libwmf" = 'yes'; then
27674
cristy8b350f62009-11-15 23:12:43 +000027675$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027676
27677 WMF_LIBS='-lwmf'
27678 LIBS="$WMF_LIBS $LIBS"
27679 have_wmf='yes'
27680 else
cristy8b350f62009-11-15 23:12:43 +000027681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027682$as_echo "no -- some components failed test" >&6; }
27683 have_wmf='no (failed tests)'
27684 have_wmflite='no (failed tests)'
27685 LIBS="$OLIBS"
27686 WMF_LIBS=''
27687 fi
27688 fi
27689 fi
cristy8b350f62009-11-15 23:12:43 +000027690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking if WMF package is complete... " >&6; }
27692 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027694$as_echo "yes" >&6; }
27695 else
cristy8b350f62009-11-15 23:12:43 +000027696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027697$as_echo "no" >&6; }
27698 fi
27699fi
27700 if test "$have_wmf" = 'yes'; then
27701 WMF_DELEGATE_TRUE=
27702 WMF_DELEGATE_FALSE='#'
27703else
27704 WMF_DELEGATE_TRUE='#'
27705 WMF_DELEGATE_FALSE=
27706fi
27707
27708
27709
27710
27711
27712#
27713# Check for XML delegate library.
27714#
27715
27716# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027717if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027718 withval=$with_xml; with_xml=$withval
27719else
27720 with_xml=$have_x
27721fi
27722
27723
27724if test "$with_xml" != 'yes' ; then
27725 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27726fi
27727
27728have_xml='no'
27729XML_LIBS=''
27730if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027734$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027736$as_echo "" >&6; }
27737 PERSIST_LDFLAGS=$LDFLAGS
27738 PERSIST_CPPFLAGS=$CPPFLAGS
27739 xml2_config=''
27740 for ac_prog in xml2-config
27741do
27742 # Extract the first word of "$ac_prog", so it can be a program name with args.
27743set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027745$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027746if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027747 $as_echo_n "(cached) " >&6
27748else
27749 if test -n "$xml2_config"; then
27750 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27751else
27752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27753for as_dir in $PATH
27754do
27755 IFS=$as_save_IFS
27756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27759 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761 break 2
27762 fi
27763done
cristy8b350f62009-11-15 23:12:43 +000027764 done
cristy3ed852e2009-09-05 21:47:34 +000027765IFS=$as_save_IFS
27766
27767fi
27768fi
27769xml2_config=$ac_cv_prog_xml2_config
27770if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027772$as_echo "$xml2_config" >&6; }
27773else
cristy8b350f62009-11-15 23:12:43 +000027774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo "no" >&6; }
27776fi
27777
27778
27779 test -n "$xml2_config" && break
27780done
27781 if test -n "$xml2_config"; then
27782 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27783 # the shared library installed under /usr/lib, whereas the package
27784 # installs itself under $prefix/libxml and $prefix/lib.
27785 xml2_prefix=`xml2-config --prefix`
27786 if test -d "${xml2_prefix}/include/libxml2"; then
27787 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27788 fi
27789 if test "${xml2_prefix}" != '/usr'; then
27790 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27791 fi
27792 fi
27793 failed=0
27794 passed=0
cristy8b350f62009-11-15 23:12:43 +000027795 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27796if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027797 passed=`expr $passed + 1`
27798else
27799 failed=`expr $failed + 1`
27800fi
27801
27802
cristy8b350f62009-11-15 23:12:43 +000027803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027804$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027805if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027806 $as_echo_n "(cached) " >&6
27807else
27808 ac_check_lib_save_LIBS=$LIBS
27809LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027811/* end confdefs.h. */
27812
27813/* Override any GCC internal prototype to avoid an error.
27814 Use char because int might match the return type of a GCC
27815 builtin and then its argument prototype would still apply. */
27816#ifdef __cplusplus
27817extern "C"
27818#endif
27819char xmlParseExternalEntity ();
27820int
27821main ()
27822{
27823return xmlParseExternalEntity ();
27824 ;
27825 return 0;
27826}
27827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027829 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27830else
cristy8b350f62009-11-15 23:12:43 +000027831 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027832fi
cristy8b350f62009-11-15 23:12:43 +000027833rm -f core conftest.err conftest.$ac_objext \
27834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027835LIBS=$ac_check_lib_save_LIBS
27836fi
cristy8b350f62009-11-15 23:12:43 +000027837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027838$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027839if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027840 passed=`expr $passed + 1`
27841else
27842 failed=`expr $failed + 1`
27843fi
27844
cristy8b350f62009-11-15 23:12:43 +000027845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027846$as_echo_n "checking if XML package is complete... " >&6; }
27847 if test $passed -gt 0; then
27848 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027850$as_echo "no -- some components failed test" >&6; }
27851 have_xml='no (failed tests)'
27852 LDFLAGS="$PERSIST_LDFLAGS"
27853 CPPFLAGS="$PERSIST_CPPFLAGS"
27854 else
27855 XML_LIBS='-lxml2'
27856 LIBS="$XML_LIBS $LIBS"
27857
cristy8b350f62009-11-15 23:12:43 +000027858$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027859
cristy8b350f62009-11-15 23:12:43 +000027860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027861$as_echo "yes" >&6; }
27862 have_xml='yes'
27863 fi
27864 else
cristy8b350f62009-11-15 23:12:43 +000027865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027866$as_echo "no" >&6; }
27867 fi
27868fi
27869 if test "$have_xml" = 'yes'; then
27870 XML_DELEGATE_TRUE=
27871 XML_DELEGATE_FALSE='#'
27872else
27873 XML_DELEGATE_TRUE='#'
27874 XML_DELEGATE_FALSE=
27875fi
27876
27877
27878
27879
27880# Substitute compiler name to build/link PerlMagick
27881#
27882
27883
27884#
27885# Configure install Paths
27886#
27887
27888# Subdirectory under lib to place ImageMagick lib files
27889LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27890
27891cat >>confdefs.h <<_ACEOF
27892#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27893_ACEOF
27894
27895
27896# Path to ImageMagick bin directory
27897EXECUTABLE_PATH="${BIN_DIR}"
27898DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27899case "${build_os}" in
27900 mingw* )
27901 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27902 ;;
27903esac
27904
27905cat >>confdefs.h <<_ACEOF
27906#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27907_ACEOF
27908
27909
27910
27911# Path to ImageMagick lib
27912LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27913DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27914case "${build_os}" in
27915 mingw* )
27916 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27917 ;;
27918esac
27919
27920cat >>confdefs.h <<_ACEOF
27921#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27922_ACEOF
27923
27924
27925
27926# Subdirectory under lib to place ImageMagick configuration files
27927CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27928
27929cat >>confdefs.h <<_ACEOF
27930#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27931_ACEOF
27932
27933CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27934DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27935case "${build_os}" in
27936 mingw* )
27937 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27938 ;;
27939esac
27940
27941cat >>confdefs.h <<_ACEOF
27942#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27943_ACEOF
27944
27945
27946
27947#
27948# Subdirectory under lib to place ImageMagick coder module files
27949CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27950
27951cat >>confdefs.h <<_ACEOF
27952#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27953_ACEOF
27954
27955CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27956DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27957case "${build_os}" in
27958 mingw* )
27959 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27960 ;;
27961esac
27962
27963cat >>confdefs.h <<_ACEOF
27964#define CODER_PATH "$DEFINE_CODER_PATH"
27965_ACEOF
27966
27967
27968
27969#
27970# Subdirectory under lib to place ImageMagick filter module files
27971FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27972
27973cat >>confdefs.h <<_ACEOF
27974#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27975_ACEOF
27976
27977FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27978DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27979case "${build_os}" in
27980 mingw* )
27981 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27982 ;;
27983esac
27984
27985cat >>confdefs.h <<_ACEOF
27986#define FILTER_PATH "$DEFINE_FILTER_PATH"
27987_ACEOF
27988
27989
27990
27991#
27992# Path to ImageMagick documentation files
27993DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27994DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
27995DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
27996case "${build_os}" in
27997 mingw* )
27998 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
27999 ;;
28000esac
28001
28002cat >>confdefs.h <<_ACEOF
28003#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28004_ACEOF
28005
28006
28007
28008#
28009# Path to ImageMagick share files
28010SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28011SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28012DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28013case "${build_os}" in
28014 mingw* )
28015 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28016 ;;
28017esac
28018
28019cat >>confdefs.h <<_ACEOF
28020#define SHARE_PATH "$DEFINE_SHARE_PATH"
28021_ACEOF
28022
28023
28024
28025# Subdirectory under share to place ImageMagick configuration files
28026SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28027
28028cat >>confdefs.h <<_ACEOF
28029#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28030_ACEOF
28031
28032SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28033DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28034case "${build_os}" in
28035 mingw* )
28036 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28037 ;;
28038esac
28039
28040cat >>confdefs.h <<_ACEOF
28041#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28042_ACEOF
28043
28044
28045
28046#
28047# program_transform_name is formed for use in a Makefile, so create a
28048# modified version for use in a shell script.
28049configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28050
28051# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028053$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028055$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028057$as_echo "" >&6; }
28058AutotraceDecodeDelegateDefault='autotrace'
28059AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028060BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028061BZIPDelegateDefault='bzip2'
28062BrowseDelegateDefault='xdg-open'
28063CGMDecodeDelegateDefault='ralcgm'
28064CatDelegateDefault='cat'
28065DNGDecodeDelegateDefault='ufraw-batch'
28066GVCDecodeDelegateDefault='dot'
28067DVIDecodeDelegateDefault='dvips'
28068EchoDelegateDefault='echo'
28069EditorDelegateDefault='xterm'
28070FIGDecodeDelegateDefault='fig2dev'
28071ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28072DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28073MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28074GnuplotDecodeDelegateDefault='gnuplot'
28075HDRDecodeDelegateDefault='ra_pfm'
28076HPGLDecodeDelegateDefault='hp2xx'
28077HTMLDecodeDelegateDefault='html2ps'
28078ILBMDecodeDelegateDefault='ilbmtoppm'
28079ILBMEncodeDelegateDefault='ppmtoilbm'
28080LPDelegateDefault='lp'
28081LPRDelegateDefault='lpr'
28082LZWDecodeDelegateDefault='uncompress'
28083LZWEncodeDelegateDefault='compress'
28084LaunchDelegateDefault='gimp'
28085MANDelegateDefault='groff'
28086MPEGDecodeDelegateDefault='ffmpeg'
28087MPEGEncodeDelegateDefault='ffmpeg'
28088MVDelegateDefault='mv'
28089PCLDelegateDefault='pcl6'
28090PGPDecodeDelegateDefault='pgpv'
28091POVDelegateDefault='povray'
28092if test "$native_win32_build" = 'yes'; then
28093 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028094elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028095 PSDelegateDefault='gsc'
28096else
28097 PSDelegateDefault='gs'
28098fi
28099RLEEncodeDelegateDefault='rawtorle'
28100RMDelegateDefault='rm'
28101SCANDecodeDelegateDefault='scanimage'
28102TXTDelegateDefault='enscript'
28103WMFDecodeDelegateDefault='wmf2eps'
28104WWWDecodeDelegateDefault='curl'
28105XPSDelegateDefault='gxps'
28106ZipDelegateDefault='gzip'
28107
28108# Search for delegates
28109# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28110set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028112$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028113if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 $as_echo_n "(cached) " >&6
28115else
28116 case $AutotraceDecodeDelegate in
28117 [\\/]* | ?:[\\/]*)
28118 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28119 ;;
28120 *)
28121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28122for as_dir in $PATH
28123do
28124 IFS=$as_save_IFS
28125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28128 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028130 break 2
28131 fi
28132done
cristy8b350f62009-11-15 23:12:43 +000028133 done
cristy3ed852e2009-09-05 21:47:34 +000028134IFS=$as_save_IFS
28135
28136 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28137 ;;
28138esac
28139fi
28140AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28141if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo "$AutotraceDecodeDelegate" >&6; }
28144else
cristy8b350f62009-11-15 23:12:43 +000028145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028146$as_echo "no" >&6; }
28147fi
28148
28149
28150# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28151set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028153$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028154if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028155 $as_echo_n "(cached) " >&6
28156else
28157 case $AVIDecodeDelegate in
28158 [\\/]* | ?:[\\/]*)
28159 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28160 ;;
28161 *)
28162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28163for as_dir in $PATH
28164do
28165 IFS=$as_save_IFS
28166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28169 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028171 break 2
28172 fi
28173done
cristy8b350f62009-11-15 23:12:43 +000028174 done
cristy3ed852e2009-09-05 21:47:34 +000028175IFS=$as_save_IFS
28176
28177 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28178 ;;
28179esac
28180fi
28181AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28182if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo "$AVIDecodeDelegate" >&6; }
28185else
cristy8b350f62009-11-15 23:12:43 +000028186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028187$as_echo "no" >&6; }
28188fi
28189
28190
28191# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28192set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028194$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028195if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028196 $as_echo_n "(cached) " >&6
28197else
28198 case $BlenderDecodeDelegate in
28199 [\\/]* | ?:[\\/]*)
28200 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28201 ;;
28202 *)
28203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28204for as_dir in $PATH
28205do
28206 IFS=$as_save_IFS
28207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28210 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028212 break 2
28213 fi
28214done
cristy8b350f62009-11-15 23:12:43 +000028215 done
cristy3ed852e2009-09-05 21:47:34 +000028216IFS=$as_save_IFS
28217
28218 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28219 ;;
28220esac
28221fi
28222BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28223if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028225$as_echo "$BlenderDecodeDelegate" >&6; }
28226else
cristy8b350f62009-11-15 23:12:43 +000028227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028228$as_echo "no" >&6; }
28229fi
28230
28231
28232# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28233set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028235$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028236if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028237 $as_echo_n "(cached) " >&6
28238else
28239 case $BZIPDelegate in
28240 [\\/]* | ?:[\\/]*)
28241 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28242 ;;
28243 *)
28244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28245for as_dir in $PATH
28246do
28247 IFS=$as_save_IFS
28248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28251 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028253 break 2
28254 fi
28255done
cristy8b350f62009-11-15 23:12:43 +000028256 done
cristy3ed852e2009-09-05 21:47:34 +000028257IFS=$as_save_IFS
28258
28259 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28260 ;;
28261esac
28262fi
28263BZIPDelegate=$ac_cv_path_BZIPDelegate
28264if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028266$as_echo "$BZIPDelegate" >&6; }
28267else
cristy8b350f62009-11-15 23:12:43 +000028268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028269$as_echo "no" >&6; }
28270fi
28271
28272
28273# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28274set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028277if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 $as_echo_n "(cached) " >&6
28279else
28280 case $BrowseDelegate in
28281 [\\/]* | ?:[\\/]*)
28282 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28283 ;;
28284 *)
28285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28286for as_dir in $PATH
28287do
28288 IFS=$as_save_IFS
28289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28292 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028294 break 2
28295 fi
28296done
cristy8b350f62009-11-15 23:12:43 +000028297 done
cristy3ed852e2009-09-05 21:47:34 +000028298IFS=$as_save_IFS
28299
28300 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28301 ;;
28302esac
28303fi
28304BrowseDelegate=$ac_cv_path_BrowseDelegate
28305if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028307$as_echo "$BrowseDelegate" >&6; }
28308else
cristy8b350f62009-11-15 23:12:43 +000028309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028310$as_echo "no" >&6; }
28311fi
28312
28313
28314# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28315set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028317$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028318if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028319 $as_echo_n "(cached) " >&6
28320else
28321 case $CGMDecodeDelegate in
28322 [\\/]* | ?:[\\/]*)
28323 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28324 ;;
28325 *)
28326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28327for as_dir in $PATH
28328do
28329 IFS=$as_save_IFS
28330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28333 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028335 break 2
28336 fi
28337done
cristy8b350f62009-11-15 23:12:43 +000028338 done
cristy3ed852e2009-09-05 21:47:34 +000028339IFS=$as_save_IFS
28340
28341 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28342 ;;
28343esac
28344fi
28345CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28346if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028348$as_echo "$CGMDecodeDelegate" >&6; }
28349else
cristy8b350f62009-11-15 23:12:43 +000028350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028351$as_echo "no" >&6; }
28352fi
28353
28354
28355# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28356set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028358$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028359if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028360 $as_echo_n "(cached) " >&6
28361else
28362 case $CatDelegate in
28363 [\\/]* | ?:[\\/]*)
28364 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28365 ;;
28366 *)
28367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28368for as_dir in $PATH
28369do
28370 IFS=$as_save_IFS
28371 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28374 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028376 break 2
28377 fi
28378done
cristy8b350f62009-11-15 23:12:43 +000028379 done
cristy3ed852e2009-09-05 21:47:34 +000028380IFS=$as_save_IFS
28381
28382 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28383 ;;
28384esac
28385fi
28386CatDelegate=$ac_cv_path_CatDelegate
28387if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028389$as_echo "$CatDelegate" >&6; }
28390else
cristy8b350f62009-11-15 23:12:43 +000028391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028392$as_echo "no" >&6; }
28393fi
28394
28395
28396# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28397set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028399$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028400if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028401 $as_echo_n "(cached) " >&6
28402else
28403 case $DNGDecodeDelegate in
28404 [\\/]* | ?:[\\/]*)
28405 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28406 ;;
28407 *)
28408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28409for as_dir in $PATH
28410do
28411 IFS=$as_save_IFS
28412 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028413 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28415 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028417 break 2
28418 fi
28419done
cristy8b350f62009-11-15 23:12:43 +000028420 done
cristy3ed852e2009-09-05 21:47:34 +000028421IFS=$as_save_IFS
28422
28423 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28424 ;;
28425esac
28426fi
28427DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28428if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028430$as_echo "$DNGDecodeDelegate" >&6; }
28431else
cristy8b350f62009-11-15 23:12:43 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028433$as_echo "no" >&6; }
28434fi
28435
28436
28437# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28438set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028440$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028441if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028442 $as_echo_n "(cached) " >&6
28443else
28444 case $GVCDecodeDelegate in
28445 [\\/]* | ?:[\\/]*)
28446 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28447 ;;
28448 *)
28449 as_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_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
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
28464 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28465 ;;
28466esac
28467fi
28468GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28469if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028471$as_echo "$GVCDecodeDelegate" >&6; }
28472else
cristy8b350f62009-11-15 23:12:43 +000028473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028474$as_echo "no" >&6; }
28475fi
28476
28477
28478# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28479set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028481$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028482if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028483 $as_echo_n "(cached) " >&6
28484else
28485 case $DVIDecodeDelegate in
28486 [\\/]* | ?:[\\/]*)
28487 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28488 ;;
28489 *)
28490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28491for as_dir in $PATH
28492do
28493 IFS=$as_save_IFS
28494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28497 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028499 break 2
28500 fi
28501done
cristy8b350f62009-11-15 23:12:43 +000028502 done
cristy3ed852e2009-09-05 21:47:34 +000028503IFS=$as_save_IFS
28504
28505 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28506 ;;
28507esac
28508fi
28509DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28510if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028512$as_echo "$DVIDecodeDelegate" >&6; }
28513else
cristy8b350f62009-11-15 23:12:43 +000028514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028515$as_echo "no" >&6; }
28516fi
28517
28518
28519# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28520set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028522$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028523if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028524 $as_echo_n "(cached) " >&6
28525else
28526 case $EchoDelegate in
28527 [\\/]* | ?:[\\/]*)
28528 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28529 ;;
28530 *)
28531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28532for as_dir in $PATH
28533do
28534 IFS=$as_save_IFS
28535 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28538 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028540 break 2
28541 fi
28542done
cristy8b350f62009-11-15 23:12:43 +000028543 done
cristy3ed852e2009-09-05 21:47:34 +000028544IFS=$as_save_IFS
28545
28546 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28547 ;;
28548esac
28549fi
28550EchoDelegate=$ac_cv_path_EchoDelegate
28551if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028553$as_echo "$EchoDelegate" >&6; }
28554else
cristy8b350f62009-11-15 23:12:43 +000028555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028556$as_echo "no" >&6; }
28557fi
28558
28559
28560# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28561set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028563$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028564if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028565 $as_echo_n "(cached) " >&6
28566else
28567 case $EditorDelegate in
28568 [\\/]* | ?:[\\/]*)
28569 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28570 ;;
28571 *)
28572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28573for as_dir in $PATH
28574do
28575 IFS=$as_save_IFS
28576 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28579 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581 break 2
28582 fi
28583done
cristy8b350f62009-11-15 23:12:43 +000028584 done
cristy3ed852e2009-09-05 21:47:34 +000028585IFS=$as_save_IFS
28586
28587 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28588 ;;
28589esac
28590fi
28591EditorDelegate=$ac_cv_path_EditorDelegate
28592if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028594$as_echo "$EditorDelegate" >&6; }
28595else
cristy8b350f62009-11-15 23:12:43 +000028596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028597$as_echo "no" >&6; }
28598fi
28599
28600
28601# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28602set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028604$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028605if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028606 $as_echo_n "(cached) " >&6
28607else
28608 case $FIGDecodeDelegate in
28609 [\\/]* | ?:[\\/]*)
28610 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28611 ;;
28612 *)
28613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28614for as_dir in $PATH
28615do
28616 IFS=$as_save_IFS
28617 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028618 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28620 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028622 break 2
28623 fi
28624done
cristy8b350f62009-11-15 23:12:43 +000028625 done
cristy3ed852e2009-09-05 21:47:34 +000028626IFS=$as_save_IFS
28627
28628 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28629 ;;
28630esac
28631fi
28632FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28633if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028635$as_echo "$FIGDecodeDelegate" >&6; }
28636else
cristy8b350f62009-11-15 23:12:43 +000028637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028638$as_echo "no" >&6; }
28639fi
28640
28641
28642# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28643set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028645$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028646if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028647 $as_echo_n "(cached) " >&6
28648else
28649 case $ConvertDelegate in
28650 [\\/]* | ?:[\\/]*)
28651 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28652 ;;
28653 *)
28654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28655for as_dir in $PATH
28656do
28657 IFS=$as_save_IFS
28658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28661 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028663 break 2
28664 fi
28665done
cristy8b350f62009-11-15 23:12:43 +000028666 done
cristy3ed852e2009-09-05 21:47:34 +000028667IFS=$as_save_IFS
28668
28669 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28670 ;;
28671esac
28672fi
28673ConvertDelegate=$ac_cv_path_ConvertDelegate
28674if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028676$as_echo "$ConvertDelegate" >&6; }
28677else
cristy8b350f62009-11-15 23:12:43 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo "no" >&6; }
28680fi
28681
28682
28683# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28684set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028686$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028687if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028688 $as_echo_n "(cached) " >&6
28689else
28690 case $DisplayDelegate in
28691 [\\/]* | ?:[\\/]*)
28692 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28693 ;;
28694 *)
28695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28696for as_dir in $PATH
28697do
28698 IFS=$as_save_IFS
28699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28702 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028704 break 2
28705 fi
28706done
cristy8b350f62009-11-15 23:12:43 +000028707 done
cristy3ed852e2009-09-05 21:47:34 +000028708IFS=$as_save_IFS
28709
28710 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28711 ;;
28712esac
28713fi
28714DisplayDelegate=$ac_cv_path_DisplayDelegate
28715if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028717$as_echo "$DisplayDelegate" >&6; }
28718else
cristy8b350f62009-11-15 23:12:43 +000028719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028720$as_echo "no" >&6; }
28721fi
28722
28723
28724# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28725set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028727$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028728if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028729 $as_echo_n "(cached) " >&6
28730else
28731 case $MogrifyDelegate in
28732 [\\/]* | ?:[\\/]*)
28733 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28734 ;;
28735 *)
28736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28737for as_dir in $PATH
28738do
28739 IFS=$as_save_IFS
28740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28743 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028745 break 2
28746 fi
28747done
cristy8b350f62009-11-15 23:12:43 +000028748 done
cristy3ed852e2009-09-05 21:47:34 +000028749IFS=$as_save_IFS
28750
28751 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28752 ;;
28753esac
28754fi
28755MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28756if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028758$as_echo "$MogrifyDelegate" >&6; }
28759else
cristy8b350f62009-11-15 23:12:43 +000028760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028761$as_echo "no" >&6; }
28762fi
28763
28764
28765# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28766set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028768$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028769if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028770 $as_echo_n "(cached) " >&6
28771else
28772 case $GnuplotDecodeDelegate in
28773 [\\/]* | ?:[\\/]*)
28774 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28775 ;;
28776 *)
28777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28778for as_dir in $PATH
28779do
28780 IFS=$as_save_IFS
28781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28784 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028786 break 2
28787 fi
28788done
cristy8b350f62009-11-15 23:12:43 +000028789 done
cristy3ed852e2009-09-05 21:47:34 +000028790IFS=$as_save_IFS
28791
28792 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28793 ;;
28794esac
28795fi
28796GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28797if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028799$as_echo "$GnuplotDecodeDelegate" >&6; }
28800else
cristy8b350f62009-11-15 23:12:43 +000028801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028802$as_echo "no" >&6; }
28803fi
28804
28805
28806# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28807set dummy "$HDRDecodeDelegateDefault"; 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_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028811 $as_echo_n "(cached) " >&6
28812else
28813 case $HDRDecodeDelegate in
28814 [\\/]* | ?:[\\/]*)
28815 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # 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_HDRDecodeDelegate="$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_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28834 ;;
28835esac
28836fi
28837HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28838if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028840$as_echo "$HDRDecodeDelegate" >&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 ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28848set dummy "$HPGLDecodeDelegateDefault"; 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_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028852 $as_echo_n "(cached) " >&6
28853else
28854 case $HPGLDecodeDelegate in
28855 [\\/]* | ?:[\\/]*)
28856 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # 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_HPGLDecodeDelegate="$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_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28875 ;;
28876esac
28877fi
28878HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28879if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028881$as_echo "$HPGLDecodeDelegate" >&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 ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28889set dummy "$HTMLDecodeDelegateDefault"; 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_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028893 $as_echo_n "(cached) " >&6
28894else
28895 case $HTMLDecodeDelegate in
28896 [\\/]* | ?:[\\/]*)
28897 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # 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_HTMLDecodeDelegate="$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_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28916 ;;
28917esac
28918fi
28919HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28920if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028922$as_echo "$HTMLDecodeDelegate" >&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 ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28930set dummy "$ILBMDecodeDelegateDefault"; 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_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028934 $as_echo_n "(cached) " >&6
28935else
28936 case $ILBMDecodeDelegate in
28937 [\\/]* | ?:[\\/]*)
28938 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # 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_ILBMDecodeDelegate="$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_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28957 ;;
28958esac
28959fi
28960ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28961if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028963$as_echo "$ILBMDecodeDelegate" >&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 ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28971set dummy "$ILBMEncodeDelegateDefault"; 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_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028975 $as_echo_n "(cached) " >&6
28976else
28977 case $ILBMEncodeDelegate in
28978 [\\/]* | ?:[\\/]*)
28979 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # 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_ILBMEncodeDelegate="$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_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
28998 ;;
28999esac
29000fi
29001ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29002if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029004$as_echo "$ILBMEncodeDelegate" >&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 ""$LPDelegateDefault"", so it can be a program name with args.
29012set dummy "$LPDelegateDefault"; 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_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029016 $as_echo_n "(cached) " >&6
29017else
29018 case $LPDelegate in
29019 [\\/]* | ?:[\\/]*)
29020 ac_cv_path_LPDelegate="$LPDelegate" # 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_LPDelegate="$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_LPDelegate" && ac_cv_path_LPDelegate="no"
29039 ;;
29040esac
29041fi
29042LPDelegate=$ac_cv_path_LPDelegate
29043if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029045$as_echo "$LPDelegate" >&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 ""$LPRDelegateDefault"", so it can be a program name with args.
29053set dummy "$LPRDelegateDefault"; 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_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029057 $as_echo_n "(cached) " >&6
29058else
29059 case $LPRDelegate in
29060 [\\/]* | ?:[\\/]*)
29061 ac_cv_path_LPRDelegate="$LPRDelegate" # 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_LPRDelegate="$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_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29080 ;;
29081esac
29082fi
29083LPRDelegate=$ac_cv_path_LPRDelegate
29084if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029086$as_echo "$LPRDelegate" >&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 ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29094set dummy "$LZWDecodeDelegateDefault"; 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_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029098 $as_echo_n "(cached) " >&6
29099else
29100 case $LZWDecodeDelegate in
29101 [\\/]* | ?:[\\/]*)
29102 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # 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_LZWDecodeDelegate="$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_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29121 ;;
29122esac
29123fi
29124LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29125if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029127$as_echo "$LZWDecodeDelegate" >&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 ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29135set dummy "$LZWEncodeDelegateDefault"; 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_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029139 $as_echo_n "(cached) " >&6
29140else
29141 case $LZWEncodeDelegate in
29142 [\\/]* | ?:[\\/]*)
29143 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # 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_LZWEncodeDelegate="$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_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29162 ;;
29163esac
29164fi
29165LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29166if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029168$as_echo "$LZWEncodeDelegate" >&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 ""$LaunchDelegateDefault"", so it can be a program name with args.
29176set dummy "$LaunchDelegateDefault"; 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_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029180 $as_echo_n "(cached) " >&6
29181else
29182 case $LaunchDelegate in
29183 [\\/]* | ?:[\\/]*)
29184 ac_cv_path_LaunchDelegate="$LaunchDelegate" # 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_LaunchDelegate="$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_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29203 ;;
29204esac
29205fi
29206LaunchDelegate=$ac_cv_path_LaunchDelegate
29207if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029209$as_echo "$LaunchDelegate" >&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 ""$MANDelegateDefault"", so it can be a program name with args.
29217set dummy "$MANDelegateDefault"; 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_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029221 $as_echo_n "(cached) " >&6
29222else
29223 case $MANDelegate in
29224 [\\/]* | ?:[\\/]*)
29225 ac_cv_path_MANDelegate="$MANDelegate" # 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_MANDelegate="$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_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29244 ;;
29245esac
29246fi
29247MANDelegate=$ac_cv_path_MANDelegate
29248if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029250$as_echo "$MANDelegate" >&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 ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29258set dummy "$MPEGDecodeDelegateDefault"; 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_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029262 $as_echo_n "(cached) " >&6
29263else
29264 case $MPEGDecodeDelegate in
29265 [\\/]* | ?:[\\/]*)
29266 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # 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_MPEGDecodeDelegate="$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_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29285 ;;
29286esac
29287fi
29288MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29289if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo "$MPEGDecodeDelegate" >&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 ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29299set dummy "$MPEGEncodeDelegateDefault"; 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_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029303 $as_echo_n "(cached) " >&6
29304else
29305 case $MPEGEncodeDelegate in
29306 [\\/]* | ?:[\\/]*)
29307 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # 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_MPEGEncodeDelegate="$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_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29326 ;;
29327esac
29328fi
29329MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29330if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029332$as_echo "$MPEGEncodeDelegate" >&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 ""$MVDelegateDefault"", so it can be a program name with args.
29340set dummy "$MVDelegateDefault"; 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_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029344 $as_echo_n "(cached) " >&6
29345else
29346 case $MVDelegate in
29347 [\\/]* | ?:[\\/]*)
29348 ac_cv_path_MVDelegate="$MVDelegate" # 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_MVDelegate="$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_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29367 ;;
29368esac
29369fi
29370MVDelegate=$ac_cv_path_MVDelegate
29371if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029373$as_echo "$MVDelegate" >&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 ""$PCLDelegateDefault"", so it can be a program name with args.
29381set dummy "$PCLDelegateDefault"; 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_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029385 $as_echo_n "(cached) " >&6
29386else
29387 case $PCLDelegate in
29388 [\\/]* | ?:[\\/]*)
29389 ac_cv_path_PCLDelegate="$PCLDelegate" # 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_PCLDelegate="$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_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29408 ;;
29409esac
29410fi
29411PCLDelegate=$ac_cv_path_PCLDelegate
29412if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029414$as_echo "$PCLDelegate" >&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 ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29422set dummy "$PGPDecodeDelegateDefault"; 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_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029426 $as_echo_n "(cached) " >&6
29427else
29428 case $PGPDecodeDelegate in
29429 [\\/]* | ?:[\\/]*)
29430 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # 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_PGPDecodeDelegate="$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_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29449 ;;
29450esac
29451fi
29452PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29453if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029455$as_echo "$PGPDecodeDelegate" >&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 ""$POVDelegateDefault"", so it can be a program name with args.
29463set dummy "$POVDelegateDefault"; 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_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029467 $as_echo_n "(cached) " >&6
29468else
29469 case $POVDelegate in
29470 [\\/]* | ?:[\\/]*)
29471 ac_cv_path_POVDelegate="$POVDelegate" # 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_POVDelegate="$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_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29490 ;;
29491esac
29492fi
29493POVDelegate=$ac_cv_path_POVDelegate
29494if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029496$as_echo "$POVDelegate" >&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
29503for ac_prog in gsx gsc "$PSDelegateDefault"
29504do
29505 # Extract the first word of "$ac_prog", so it can be a program name with args.
29506set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029508$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029509if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029510 $as_echo_n "(cached) " >&6
29511else
29512 case $PSDelegate in
29513 [\\/]* | ?:[\\/]*)
29514 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29515 ;;
29516 *)
29517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29518for as_dir in $PATH
29519do
29520 IFS=$as_save_IFS
29521 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29524 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029526 break 2
29527 fi
29528done
cristy8b350f62009-11-15 23:12:43 +000029529 done
cristy3ed852e2009-09-05 21:47:34 +000029530IFS=$as_save_IFS
29531
29532 ;;
29533esac
29534fi
29535PSDelegate=$ac_cv_path_PSDelegate
29536if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029538$as_echo "$PSDelegate" >&6; }
29539else
cristy8b350f62009-11-15 23:12:43 +000029540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029541$as_echo "no" >&6; }
29542fi
29543
29544
29545 test -n "$PSDelegate" && break
29546done
29547test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29548
29549# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29550set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029552$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029553if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029554 $as_echo_n "(cached) " >&6
29555else
29556 case $RLEEncodeDelegate in
29557 [\\/]* | ?:[\\/]*)
29558 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29559 ;;
29560 *)
29561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29562for as_dir in $PATH
29563do
29564 IFS=$as_save_IFS
29565 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029566 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29568 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029570 break 2
29571 fi
29572done
cristy8b350f62009-11-15 23:12:43 +000029573 done
cristy3ed852e2009-09-05 21:47:34 +000029574IFS=$as_save_IFS
29575
29576 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29577 ;;
29578esac
29579fi
29580RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29581if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029583$as_echo "$RLEEncodeDelegate" >&6; }
29584else
cristy8b350f62009-11-15 23:12:43 +000029585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029586$as_echo "no" >&6; }
29587fi
29588
29589
29590# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29591set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029593$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029594if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029595 $as_echo_n "(cached) " >&6
29596else
29597 case $RMDelegate in
29598 [\\/]* | ?:[\\/]*)
29599 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29600 ;;
29601 *)
29602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29603for as_dir in $PATH
29604do
29605 IFS=$as_save_IFS
29606 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29609 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029611 break 2
29612 fi
29613done
cristy8b350f62009-11-15 23:12:43 +000029614 done
cristy3ed852e2009-09-05 21:47:34 +000029615IFS=$as_save_IFS
29616
29617 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29618 ;;
29619esac
29620fi
29621RMDelegate=$ac_cv_path_RMDelegate
29622if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029624$as_echo "$RMDelegate" >&6; }
29625else
cristy8b350f62009-11-15 23:12:43 +000029626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627$as_echo "no" >&6; }
29628fi
29629
29630
29631# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29632set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029634$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029635if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029636 $as_echo_n "(cached) " >&6
29637else
29638 case $SCANDecodeDelegate in
29639 [\\/]* | ?:[\\/]*)
29640 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29641 ;;
29642 *)
29643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29644for as_dir in $PATH
29645do
29646 IFS=$as_save_IFS
29647 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29650 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029652 break 2
29653 fi
29654done
cristy8b350f62009-11-15 23:12:43 +000029655 done
cristy3ed852e2009-09-05 21:47:34 +000029656IFS=$as_save_IFS
29657
29658 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29659 ;;
29660esac
29661fi
29662SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29663if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029665$as_echo "$SCANDecodeDelegate" >&6; }
29666else
cristy8b350f62009-11-15 23:12:43 +000029667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029668$as_echo "no" >&6; }
29669fi
29670
29671
29672# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29673set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029675$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029676if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029677 $as_echo_n "(cached) " >&6
29678else
29679 case $TXTDelegate in
29680 [\\/]* | ?:[\\/]*)
29681 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29682 ;;
29683 *)
29684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29685for as_dir in $PATH
29686do
29687 IFS=$as_save_IFS
29688 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029689 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29691 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693 break 2
29694 fi
29695done
cristy8b350f62009-11-15 23:12:43 +000029696 done
cristy3ed852e2009-09-05 21:47:34 +000029697IFS=$as_save_IFS
29698
29699 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29700 ;;
29701esac
29702fi
29703TXTDelegate=$ac_cv_path_TXTDelegate
29704if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029706$as_echo "$TXTDelegate" >&6; }
29707else
cristy8b350f62009-11-15 23:12:43 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029709$as_echo "no" >&6; }
29710fi
29711
29712
29713# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29714set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029716$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029717if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029718 $as_echo_n "(cached) " >&6
29719else
29720 case $WMFDecodeDelegate in
29721 [\\/]* | ?:[\\/]*)
29722 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29723 ;;
29724 *)
29725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29726for as_dir in $PATH
29727do
29728 IFS=$as_save_IFS
29729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29732 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029734 break 2
29735 fi
29736done
cristy8b350f62009-11-15 23:12:43 +000029737 done
cristy3ed852e2009-09-05 21:47:34 +000029738IFS=$as_save_IFS
29739
29740 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29741 ;;
29742esac
29743fi
29744WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29745if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029747$as_echo "$WMFDecodeDelegate" >&6; }
29748else
cristy8b350f62009-11-15 23:12:43 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029750$as_echo "no" >&6; }
29751fi
29752
29753
29754# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29755set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029757$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029758if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029759 $as_echo_n "(cached) " >&6
29760else
29761 case $WWWDecodeDelegate in
29762 [\\/]* | ?:[\\/]*)
29763 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29764 ;;
29765 *)
29766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29767for as_dir in $PATH
29768do
29769 IFS=$as_save_IFS
29770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29773 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029775 break 2
29776 fi
29777done
cristy8b350f62009-11-15 23:12:43 +000029778 done
cristy3ed852e2009-09-05 21:47:34 +000029779IFS=$as_save_IFS
29780
29781 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29782 ;;
29783esac
29784fi
29785WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29786if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029788$as_echo "$WWWDecodeDelegate" >&6; }
29789else
cristy8b350f62009-11-15 23:12:43 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791$as_echo "no" >&6; }
29792fi
29793
29794
29795# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29796set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029798$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029799if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029800 $as_echo_n "(cached) " >&6
29801else
29802 case $XPSDelegate in
29803 [\\/]* | ?:[\\/]*)
29804 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29805 ;;
29806 *)
29807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29808for as_dir in $PATH
29809do
29810 IFS=$as_save_IFS
29811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29814 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029816 break 2
29817 fi
29818done
cristy8b350f62009-11-15 23:12:43 +000029819 done
cristy3ed852e2009-09-05 21:47:34 +000029820IFS=$as_save_IFS
29821
29822 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29823 ;;
29824esac
29825fi
29826XPSDelegate=$ac_cv_path_XPSDelegate
29827if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029829$as_echo "$XPSDelegate" >&6; }
29830else
cristy8b350f62009-11-15 23:12:43 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832$as_echo "no" >&6; }
29833fi
29834
29835
29836# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29837set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029839$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029840if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029841 $as_echo_n "(cached) " >&6
29842else
29843 case $ZipDelegate in
29844 [\\/]* | ?:[\\/]*)
29845 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29846 ;;
29847 *)
29848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29849for as_dir in $PATH
29850do
29851 IFS=$as_save_IFS
29852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29855 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029857 break 2
29858 fi
29859done
cristy8b350f62009-11-15 23:12:43 +000029860 done
cristy3ed852e2009-09-05 21:47:34 +000029861IFS=$as_save_IFS
29862
29863 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29864 ;;
29865esac
29866fi
29867ZipDelegate=$ac_cv_path_ZipDelegate
29868if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029870$as_echo "$ZipDelegate" >&6; }
29871else
cristy8b350f62009-11-15 23:12:43 +000029872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029873$as_echo "no" >&6; }
29874fi
29875
29876
29877
29878# Prefer lpr to lp; lp needs options tacked on.
29879if test "$LPRDelegate" != no; then
29880 PrintDelegate="$LPRDelegate"
29881else
29882 PrintDelegate="$LPDelegate -c -s"
29883fi
29884
29885
29886# Installed ImageMagick utiltity paths
29887ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29888DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29889MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29890
29891# Set delegate booleans
29892have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29893have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29894have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29895have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29896have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29897have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29898have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29899have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29900have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29901have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29902have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29903
29904#
29905# Test for font directories
29906#
29907type_include_files=''
29908
29909# Windows
29910windows_font_dir=''
29911if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29912 windows_font_dir="${with_windows_font_dir}/"
29913fi
29914if test -n "$windows_font_dir"; then
29915 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29916 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29917 fi
29918 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29919 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29920 fi
29921 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29922 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29923 fi
29924fi
29925if test -n "$windows_font_dir"; then
29926 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29927fi
29928
29929
29930# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029932$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29933ghostscript_font_dir=''
29934if test "${with_gs_font_dir}" != 'default'; then
29935 ghostscript_font_dir="${with_gs_font_dir}/"
29936else
29937 if test "${native_win32_build}" = 'yes'; then
29938 # Native Windows Build
29939 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29940 if test -f "${font_dir}a010013l.pfb"; then
29941 ghostscript_font_dir="$font_dir"
29942 break 1
29943 fi
29944 done
29945 if test "${PSDelegate}" != 'gswin32c'; then
29946 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29947 fi
29948 else
29949 # Linux / Mac OS X / Unix Build
29950 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
29951 if test -f "${font_dir}a010013l.pfb"; then
29952 ghostscript_font_dir="${font_dir}"
29953 break 1
29954 fi
29955 done
29956 if test "${ghostscript_font_dir}x" = 'x'; then
29957 if test "$PSDelegate" != 'gs'; then
29958 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29959 fi
29960 fi
29961 fi
29962fi
29963if test "${ghostscript_font_dir}x" != 'x'; then
29964 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029966$as_echo "$ghostscript_font_dir" >&6; }
29967else
cristy8b350f62009-11-15 23:12:43 +000029968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029969$as_echo "not found!" >&6; };
29970fi
29971
29972case "${build_os}" in
29973 mingw* )
29974 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29975 ;;
29976esac
29977
29978
29979
29980#
29981# Handle case where user doesn't want frozen paths
29982#
29983if test "$with_frozenpaths" != 'yes'; then
29984 # Re-set delegate definitions to default (no paths)
29985 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29986 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29987 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29988 BZIPDelegate="$BZIPDelegateDefault"
29989 BrowseDelegate="$BrowseDelegateDefault"
29990 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29991 CatDelegate="$CatDelegateDefault"
29992 ConvertDelegate="$ConvertDelegateDefault"
29993 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29994 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
29995 EchoDelegate="$EchoDelegateDefault"
29996 EditorDelegate="$EditorDelegateDefault"
29997 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
29998 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
29999 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30000 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30001 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30002 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30003 LPDelegate="$LPDelegateDefault"
30004 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30005 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30006 LaunchDelegate="$LaunchDelegateDefault"
30007 MANDelegate="$MANDelegateDefault"
30008 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30009 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30010 MVDelegate="$MVDelegateDefault"
30011 MogrifyDelegate="$MogrifyDelegateDefault"
30012 PCLDelegate="$PCLDelegateDefault"
30013 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30014 POVDelegate="$POVDelegateDefault"
30015 PSDelegate="$PSDelegateDefault"
30016 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30017 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30018 RMDelegate="$RMDelegateDefault"
30019 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30020 ShowImageDelegate="$ShowImageDelegateDefault"
30021 TXTDelegate="$TXTDelegateDefault"
30022 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30023 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30024 XPSDelegate="$XPSDelegateDefault"
30025 ZipDelegate="$ZipDelegateDefault"
30026fi
30027
30028# Delegate substitutions
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071#
30072# RPM support.
30073#
30074RPM=''
30075for ac_prog in gnutar gtar tar
30076do
30077 # Extract the first word of "$ac_prog", so it can be a program name with args.
30078set dummy $ac_prog; 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_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030082 $as_echo_n "(cached) " >&6
30083else
30084 if test -n "$TAR"; then
30085 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30086else
30087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30088for as_dir in $PATH
30089do
30090 IFS=$as_save_IFS
30091 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30094 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030096 break 2
30097 fi
30098done
cristy8b350f62009-11-15 23:12:43 +000030099 done
cristy3ed852e2009-09-05 21:47:34 +000030100IFS=$as_save_IFS
30101
30102fi
30103fi
30104TAR=$ac_cv_prog_TAR
30105if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030107$as_echo "$TAR" >&6; }
30108else
cristy8b350f62009-11-15 23:12:43 +000030109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030110$as_echo "no" >&6; }
30111fi
30112
30113
30114 test -n "$TAR" && break
30115done
30116
30117for ac_prog in perl
30118do
30119 # Extract the first word of "$ac_prog", so it can be a program name with args.
30120set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030122$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030123if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030124 $as_echo_n "(cached) " >&6
30125else
30126 if test -n "$PERL"; then
30127 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30128else
30129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30130for as_dir in $PATH
30131do
30132 IFS=$as_save_IFS
30133 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30136 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030138 break 2
30139 fi
30140done
cristy8b350f62009-11-15 23:12:43 +000030141 done
cristy3ed852e2009-09-05 21:47:34 +000030142IFS=$as_save_IFS
30143
30144fi
30145fi
30146PERL=$ac_cv_prog_PERL
30147if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030149$as_echo "$PERL" >&6; }
30150else
cristy8b350f62009-11-15 23:12:43 +000030151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030152$as_echo "no" >&6; }
30153fi
30154
30155
30156 test -n "$PERL" && break
30157done
30158
30159for ac_prog in rpmbuild rpm
30160do
30161 # Extract the first word of "$ac_prog", so it can be a program name with args.
30162set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030164$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030165if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030166 $as_echo_n "(cached) " >&6
30167else
30168 if test -n "$RPM"; then
30169 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30170else
30171as_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_prog_RPM="$ac_prog"
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
30186fi
30187fi
30188RPM=$ac_cv_prog_RPM
30189if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo "$RPM" >&6; }
30192else
cristy8b350f62009-11-15 23:12:43 +000030193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030194$as_echo "no" >&6; }
30195fi
30196
30197
30198 test -n "$RPM" && break
30199done
30200
30201
30202ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30203
30204
30205AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30206
30207
30208AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30209
30210
30211AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30212
30213
30214 if test "x$RPM" != "x" ; then
30215 RPM_DELEGATE_TRUE=
30216 RPM_DELEGATE_FALSE='#'
30217else
30218 RPM_DELEGATE_TRUE='#'
30219 RPM_DELEGATE_FALSE=
30220fi
30221
30222
30223#
30224# 7ZIP support (http://p7zip.sourceforge.net/)
30225#
30226P7ZIP=''
30227for ac_prog in 7za
30228do
30229 # Extract the first word of "$ac_prog", so it can be a program name with args.
30230set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030233if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030234 $as_echo_n "(cached) " >&6
30235else
30236 if test -n "$P7ZIP"; then
30237 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30238else
30239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30240for as_dir in $PATH
30241do
30242 IFS=$as_save_IFS
30243 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30246 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030248 break 2
30249 fi
30250done
cristy8b350f62009-11-15 23:12:43 +000030251 done
cristy3ed852e2009-09-05 21:47:34 +000030252IFS=$as_save_IFS
30253
30254fi
30255fi
30256P7ZIP=$ac_cv_prog_P7ZIP
30257if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030259$as_echo "$P7ZIP" >&6; }
30260else
cristy8b350f62009-11-15 23:12:43 +000030261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030262$as_echo "no" >&6; }
30263fi
30264
30265
30266 test -n "$P7ZIP" && break
30267done
30268
30269
30270 if test "x$P7ZIP" != "x" ; then
30271 P7ZIP_DELEGATE_TRUE=
30272 P7ZIP_DELEGATE_FALSE='#'
30273else
30274 P7ZIP_DELEGATE_TRUE='#'
30275 P7ZIP_DELEGATE_FALSE=
30276fi
30277
30278
30279#
30280# ZIP support (http://www.info-zip.org/Zip.html)
30281#
30282ZIP=''
30283for ac_prog in zip
30284do
30285 # Extract the first word of "$ac_prog", so it can be a program name with args.
30286set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030288$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030289if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030290 $as_echo_n "(cached) " >&6
30291else
30292 if test -n "$ZIP"; then
30293 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30294else
30295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30296for as_dir in $PATH
30297do
30298 IFS=$as_save_IFS
30299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30302 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304 break 2
30305 fi
30306done
cristy8b350f62009-11-15 23:12:43 +000030307 done
cristy3ed852e2009-09-05 21:47:34 +000030308IFS=$as_save_IFS
30309
30310fi
30311fi
30312ZIP=$ac_cv_prog_ZIP
30313if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030315$as_echo "$ZIP" >&6; }
30316else
cristy8b350f62009-11-15 23:12:43 +000030317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030318$as_echo "no" >&6; }
30319fi
30320
30321
30322 test -n "$ZIP" && break
30323done
30324
30325
30326 if test "x$ZIP" != "x" ; then
30327 ZIP_DELEGATE_TRUE=
30328 ZIP_DELEGATE_FALSE='#'
30329else
30330 ZIP_DELEGATE_TRUE='#'
30331 ZIP_DELEGATE_FALSE=
30332fi
30333
30334
30335#
30336# GhostPCL related configuration.
30337#
30338PCLColorDevice=ppmraw
30339PCLCMYKDevice=bmpsep8
30340PCLMonoDevice=pbmraw
30341if test -z "$PCLVersion"; then
30342 PCLVersion='unknown'
30343fi
30344if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030346$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030348$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030350$as_echo "" >&6; }
30351 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030353$as_echo_n "checking for pcl color device... " >&6; }
30354 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30355 :
30356 else
30357 PCLColorDevice=ppmraw
30358 fi
cristy8b350f62009-11-15 23:12:43 +000030359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030360$as_echo "$PCLColorDevice" >&6; }
30361
30362 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030364$as_echo_n "checking for pcl CMYK device... " >&6; }
30365 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30366 :
30367 else
30368 PCLCMYKDevice=$PCLColorDevice
30369 fi
cristy8b350f62009-11-15 23:12:43 +000030370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030371$as_echo "$PCLCMYKDevice" >&6; }
30372
30373 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030375$as_echo_n "checking for pcl mono device... " >&6; }
30376 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30377 :
30378 else
30379 PCLMonoDevice=$PCLColorDevice
30380 fi
cristy8b350f62009-11-15 23:12:43 +000030381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030382$as_echo "$PCLMonoDevice" >&6; }
30383fi
30384
30385
30386
30387
30388
30389
30390#
30391# GhostXPS related configuration.
30392#
30393XPSColorDevice=ppmraw
30394XPSCMYKDevice=bmpsep8
30395XPSMonoDevice=pbmraw
30396if test -z "$XPSVersion"; then
30397 XPSVersion='unknown'
30398fi
30399if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030401$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030403$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030405$as_echo "" >&6; }
30406 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030408$as_echo_n "checking for xps color device... " >&6; }
30409 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30410 :
30411 else
30412 XPSColorDevice=ppmraw
30413 fi
cristy8b350f62009-11-15 23:12:43 +000030414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030415$as_echo "$XPSColorDevice" >&6; }
30416
30417 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030419$as_echo_n "checking for xps CMYK device... " >&6; }
30420 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30421 :
30422 else
30423 XPSCMYKDevice=$XPSColorDevice
30424 fi
cristy8b350f62009-11-15 23:12:43 +000030425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030426$as_echo "$XPSCMYKDevice" >&6; }
30427
30428 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030430$as_echo_n "checking for xps mono device... " >&6; }
30431 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30432 :
30433 else
30434 XPSMonoDevice=$XPSColorDevice
30435 fi
cristy8b350f62009-11-15 23:12:43 +000030436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030437$as_echo "$XPSMonoDevice" >&6; }
30438fi
30439
30440
30441
30442
30443
30444
30445#
30446# Ghostscript related configuration.
30447#
30448if test "$have_png" = 'yes'; then
30449 GSAlphaDevice=pngalpha
30450else
30451 GSAlphaDevice=pnmraw
30452fi
30453GSColorDevice=pnmraw
30454GSCMYKDevice=pam
30455GSMonoDevice=pbmraw
30456GSPDFDevice=pdfwrite
30457GSPSDevice=pswrite
30458GSEPSDevice=epswrite
30459GSVersion='unknown'
30460if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030462$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030464$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030466$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030468$as_echo_n "checking for Ghostscript version... " >&6; }
30469 if GSVersion=`$PSDelegate --version`; then
30470 :
30471 else
30472 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30473 fi
cristy8b350f62009-11-15 23:12:43 +000030474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030475$as_echo "$GSVersion" >&6; }
30476
30477 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030479$as_echo_n "checking for gs alpha device... " >&6; }
30480 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30481 :
30482 else
30483 GSAlphaDevice=pnmraw
30484 fi
cristy8b350f62009-11-15 23:12:43 +000030485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030486$as_echo "$GSAlphaDevice" >&6; }
30487
30488 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030490$as_echo_n "checking for gs color device... " >&6; }
30491 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30492 :
30493 else
30494 GSColorDevice=pnmraw
30495 fi
cristy8b350f62009-11-15 23:12:43 +000030496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030497$as_echo "$GSColorDevice" >&6; }
30498
30499 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030501$as_echo_n "checking for gs CMYK device... " >&6; }
30502 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30503 :
30504 else
30505 GSCMYKDevice=bmpsep8
30506 fi
cristy8b350f62009-11-15 23:12:43 +000030507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030508$as_echo "$GSCMYKDevice" >&6; }
30509
30510 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030512$as_echo_n "checking for gs mono device... " >&6; }
30513 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30514 :
30515 else
30516 GSMonoDevice=$GSColorDevice
30517 fi
cristy8b350f62009-11-15 23:12:43 +000030518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030519$as_echo "$GSMonoDevice" >&6; }
30520
30521 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030523$as_echo_n "checking for gs PDF writing device... " >&6; }
30524 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30525 :
30526 else
30527 GSPDFDevice=nodevice
30528 fi
cristy8b350f62009-11-15 23:12:43 +000030529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030530$as_echo "$GSPDFDevice" >&6; }
30531
30532 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030534$as_echo_n "checking for gs PS writing device... " >&6; }
30535 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30536 :
30537 else
30538 GSPSDevice=nodevice
30539 fi
cristy8b350f62009-11-15 23:12:43 +000030540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030541$as_echo "$GSPSDevice" >&6; }
30542
30543 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030545$as_echo_n "checking for gs EPS writing device... " >&6; }
30546 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30547 :
30548 else
30549 GSEPSDevice=nodevice
30550 fi
cristy8b350f62009-11-15 23:12:43 +000030551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030552$as_echo "$GSEPSDevice" >&6; }
30553fi
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564#
30565# PerlMagick-related configuration
30566#
30567
30568# Look for PERL if PerlMagick requested
30569# If name/path of desired PERL interpreter is specified, look for that one first
30570have_perl='no'
30571if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030573$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030575$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030577$as_echo "" >&6; }
30578 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030580$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030581if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030582 $as_echo_n "(cached) " >&6
30583else
30584 ac_cv_path_PERL="$with_perl"
30585fi
cristy8b350f62009-11-15 23:12:43 +000030586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030587$as_echo "$ac_cv_path_PERL" >&6; };
30588 PERL=$ac_cv_path_PERL
30589 have_perl="$ac_cv_path_PERL"
30590 else
30591 for ac_prog in perl perl5
30592do
30593 # Extract the first word of "$ac_prog", so it can be a program name with args.
30594set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030596$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030597if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030598 $as_echo_n "(cached) " >&6
30599else
30600 case $PERL in
30601 [\\/]* | ?:[\\/]*)
30602 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30603 ;;
30604 *)
30605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30606for as_dir in $PATH
30607do
30608 IFS=$as_save_IFS
30609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30612 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030614 break 2
30615 fi
30616done
cristy8b350f62009-11-15 23:12:43 +000030617 done
cristy3ed852e2009-09-05 21:47:34 +000030618IFS=$as_save_IFS
30619
30620 ;;
30621esac
30622fi
30623PERL=$ac_cv_path_PERL
30624if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030626$as_echo "$PERL" >&6; }
30627else
cristy8b350f62009-11-15 23:12:43 +000030628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030629$as_echo "no" >&6; }
30630fi
30631
30632
30633 test -n "$PERL" && break
30634done
30635 if test "$ac_cv_path_PERL"; then
30636 have_perl="$ac_cv_path_PERL"
30637 fi
30638 fi
30639fi
30640
30641with_perl_static='no'
30642with_perl_dynamic='no'
30643if test "$have_perl" != 'no'; then
30644 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30645 with_perl_static='yes'
30646 fi
30647 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30648 with_perl_dynamic='yes'
30649 fi
30650 # Is PERL's MakeMaker new enough to support DESTDIR?
30651 # Make sure we have perl
30652if test -z "$PERL"; then
30653# Extract the first word of "perl", so it can be a program name with args.
30654set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030656$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030657if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030658 $as_echo_n "(cached) " >&6
30659else
30660 if test -n "$PERL"; then
30661 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30662else
30663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30664for as_dir in $PATH
30665do
30666 IFS=$as_save_IFS
30667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30670 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030672 break 2
30673 fi
30674done
cristy8b350f62009-11-15 23:12:43 +000030675 done
cristy3ed852e2009-09-05 21:47:34 +000030676IFS=$as_save_IFS
30677
30678fi
30679fi
30680PERL=$ac_cv_prog_PERL
30681if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030683$as_echo "$PERL" >&6; }
30684else
cristy8b350f62009-11-15 23:12:43 +000030685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030686$as_echo "no" >&6; }
30687fi
30688
30689
30690fi
30691
30692# Check if version of Perl is sufficient
30693ac_perl_version="5.8.1"
30694
30695if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030696 { $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 +000030697$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30698 # NB: It would be nice to log the error if there is one, but we cannot rely
30699 # on autoconf internals
30700 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30701 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030703$as_echo "no" >&6; };
30704 PERL_SUPPORTS_DESTDIR='no'
30705 else
cristy8b350f62009-11-15 23:12:43 +000030706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030707$as_echo "ok" >&6; };
30708 PERL_SUPPORTS_DESTDIR='yes'
30709 fi
30710else
cristy8b350f62009-11-15 23:12:43 +000030711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030712$as_echo "$as_me: WARNING: could not find perl" >&2;}
30713fi
30714
30715fi
30716 if test "$have_perl" != 'no'; then
30717 WITH_PERL_TRUE=
30718 WITH_PERL_FALSE='#'
30719else
30720 WITH_PERL_TRUE='#'
30721 WITH_PERL_FALSE=
30722fi
30723
30724 if test $with_perl_static = 'yes'; then
30725 WITH_PERL_STATIC_TRUE=
30726 WITH_PERL_STATIC_FALSE='#'
30727else
30728 WITH_PERL_STATIC_TRUE='#'
30729 WITH_PERL_STATIC_FALSE=
30730fi
30731
30732 if test $with_perl_dynamic = 'yes'; then
30733 WITH_PERL_DYNAMIC_TRUE=
30734 WITH_PERL_DYNAMIC_FALSE='#'
30735else
30736 WITH_PERL_DYNAMIC_TRUE='#'
30737 WITH_PERL_DYNAMIC_FALSE=
30738fi
30739
30740
30741
30742# Determine path to pick up MagickCore library from for use with building PerlMagick
30743MAGICKCORE_PATH="${LIB_DIR}"
30744if test $with_perl_static = 'yes'; then
30745 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30746 libtool_objdir=$objdir
30747
30748 # Linker search path to library, followed by -lMagickCore
30749 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30750fi
30751
30752
30753# Create a simple string containing format names for all delegate libraries
30754DELEGATES=''
30755if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30756if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30757if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30758if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30759if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30760if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30761if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30762if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30763if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30764if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30765if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30766if test "$have_jpeg" = 'yes'; then
30767 DELEGATES="$DELEGATES jpeg";
30768 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30769fi
30770if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30771if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30772if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30773if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30774if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30775if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30776if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30777if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30778if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30779if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30780if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30781if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30782
30783
30784
30785#
30786# Handle special compiler flags
30787#
30788
30789# Add '-p' if prof source profiling support enabled
30790if test "$enable_prof" = 'yes'; then
30791 CFLAGS="-p $CFLAGS"
30792 CXXFLAGS="-p $CXXFLAGS"
30793 LDFLAGS="-p $LDFLAGS"
30794fi
30795
30796# Add '-pg' if gprof source profiling support enabled
30797if test "$enable_gprof" = 'yes'; then
30798 CFLAGS="-pg $CFLAGS"
30799 CXXFLAGS="-pg $CXXFLAGS"
30800 LDFLAGS="-pg $LDFLAGS"
30801fi
30802
30803# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30804# This is a gcc-specific feature
30805if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030807$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030808if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030809 $as_echo_n "(cached) " >&6
30810else
30811 ac_check_lib_save_LIBS=$LIBS
30812LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030814/* end confdefs.h. */
30815
30816/* Override any GCC internal prototype to avoid an error.
30817 Use char because int might match the return type of a GCC
30818 builtin and then its argument prototype would still apply. */
30819#ifdef __cplusplus
30820extern "C"
30821#endif
30822char _gcov_init ();
30823int
30824main ()
30825{
30826return _gcov_init ();
30827 ;
30828 return 0;
30829}
30830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030832 ac_cv_lib_gcov__gcov_init=yes
30833else
cristy8b350f62009-11-15 23:12:43 +000030834 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030835fi
cristy8b350f62009-11-15 23:12:43 +000030836rm -f core conftest.err conftest.$ac_objext \
30837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030838LIBS=$ac_check_lib_save_LIBS
30839fi
cristy8b350f62009-11-15 23:12:43 +000030840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030842if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030843 cat >>confdefs.h <<_ACEOF
30844#define HAVE_LIBGCOV 1
30845_ACEOF
30846
30847 LIBS="-lgcov $LIBS"
30848
30849fi
30850
cristy8b350f62009-11-15 23:12:43 +000030851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030852$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030853if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030854 $as_echo_n "(cached) " >&6
30855else
30856 ac_check_lib_save_LIBS=$LIBS
30857LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030859/* end confdefs.h. */
30860
30861/* Override any GCC internal prototype to avoid an error.
30862 Use char because int might match the return type of a GCC
30863 builtin and then its argument prototype would still apply. */
30864#ifdef __cplusplus
30865extern "C"
30866#endif
30867char __gcov_init ();
30868int
30869main ()
30870{
30871return __gcov_init ();
30872 ;
30873 return 0;
30874}
30875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030876if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030877 ac_cv_lib_gcov___gcov_init=yes
30878else
cristy8b350f62009-11-15 23:12:43 +000030879 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030880fi
cristy8b350f62009-11-15 23:12:43 +000030881rm -f core conftest.err conftest.$ac_objext \
30882 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030883LIBS=$ac_check_lib_save_LIBS
30884fi
cristy8b350f62009-11-15 23:12:43 +000030885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030886$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030887if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030888 cat >>confdefs.h <<_ACEOF
30889#define HAVE_LIBGCOV 1
30890_ACEOF
30891
30892 LIBS="-lgcov $LIBS"
30893
30894fi
30895
30896 case "$target_os" in
30897 darwin*)
30898 OSX_GCOV_LDFLAG="-Wl,-single_module"
30899 ;;
30900 *)
30901 OSX_GCOV_LDFLAG=""
30902 ;;
30903 esac
30904
30905 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30906 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30907 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30908fi
30909
30910#
30911# Build library dependency list for libMagickCore
30912#
30913
30914MAGICK_LIBLTDL='' # Libltdl for build
30915MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30916MAGICK_LTDLDEPS='' # extra libltdl dependencies
30917if test "$with_ltdl" != 'no'
30918then
30919 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30920 MAGICK_API_LIBLTDL='-lltdl'
30921 fi
30922 MAGICK_LIBLTDL=${LIBLTDL}
30923 MAGICK_LTDLDEPS=${LTDLDEPS}
30924fi
30925
30926
30927
30928if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030929 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 +000030930else
cristy2e8b51d2009-10-17 18:26:15 +000030931 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 +000030932fi
30933
30934
30935#
30936# Remove extraneous spaces from output variables (asthetic)
30937#
30938X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30939X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30940X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30941X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30942
30943CC=`echo $CC | sed -e 's/ */ /g'`
30944CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30945CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30946CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30947DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30948DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30949LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30950TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30951MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30952#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30953
30954# Pass only user-provided LIBS as "global" libraries
30955LIBS=$USER_LIBS
30956
30957#AC_SUBST(CPPFLAGS)
30958
30959#AC_SUBST(LDFLAGS)
30960#AC_SUBST(X_PRE_LIBS)
30961#AC_SUBST(X_LIBS)
30962#AC_SUBST(X_EXTRA_LIBS)
30963
30964MAGICK_CFLAGS=$CFLAGS
30965MAGICK_CXXFLAGS="$CXXFLAGS"
30966MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30967MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30968MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30969MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30970
30971
30972
30973
30974
30975
30976
30977
30978# Set configured scripts to executable.
30979ac_config_commands="$ac_config_commands default"
30980
30981ac_config_commands="$ac_config_commands MagickCore-config.in"
30982
30983ac_config_commands="$ac_config_commands Magick-config.in"
30984
30985ac_config_commands="$ac_config_commands MagickWand-config.in"
30986
30987ac_config_commands="$ac_config_commands Wand-config.in"
30988
30989ac_config_commands="$ac_config_commands Magick++-config.in"
30990
30991ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30992
30993
cristy8b350f62009-11-15 23:12:43 +000030994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030995$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000030997$as_echo "Update ImageMagick configuration" >&6; }
30998cat >confcache <<\_ACEOF
30999# This file is a shell script that caches the results of configure
31000# tests run on this system so they can be shared between configure
31001# scripts and configure runs, see configure's option --config-cache.
31002# It is not useful on other systems. If it contains results you don't
31003# want to keep, you may remove or edit it.
31004#
31005# config.status only pays attention to the cache file if you give it
31006# the --recheck option to rerun configure.
31007#
31008# `ac_cv_env_foo' variables (set or unset) will be overridden when
31009# loading this file, other *unset* `ac_cv_foo' will be assigned the
31010# following values.
31011
31012_ACEOF
31013
31014# The following way of writing the cache mishandles newlines in values,
31015# but we know of no workaround that is simple, portable, and efficient.
31016# So, we kill variables containing newlines.
31017# Ultrix sh set writes to stderr and can't be redirected directly,
31018# and sets the high bit in the cache file unless we assign to the vars.
31019(
31020 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31021 eval ac_val=\$$ac_var
31022 case $ac_val in #(
31023 *${as_nl}*)
31024 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000031025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000031026$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31027 esac
31028 case $ac_var in #(
31029 _ | IFS | as_nl) ;; #(
31030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000031031 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000031032 esac ;;
31033 esac
31034 done
31035
31036 (set) 2>&1 |
31037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31038 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000031039 # `set' does not quote correctly, so add quotes: double-quote
31040 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000031041 sed -n \
31042 "s/'/'\\\\''/g;
31043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31044 ;; #(
31045 *)
31046 # `set' quotes correctly as required by POSIX, so do not add quotes.
31047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31048 ;;
31049 esac |
31050 sort
31051) |
31052 sed '
31053 /^ac_cv_env_/b end
31054 t clear
31055 :clear
31056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31057 t end
31058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31059 :end' >>confcache
31060if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31061 if test -w "$cache_file"; then
31062 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000031063 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031064$as_echo "$as_me: updating cache $cache_file" >&6;}
31065 cat confcache >$cache_file
31066 else
cristy8b350f62009-11-15 23:12:43 +000031067 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000031068$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31069 fi
31070fi
31071rm -f confcache
31072
31073test "x$prefix" = xNONE && prefix=$ac_default_prefix
31074# Let make expand exec_prefix.
31075test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31076
31077DEFS=-DHAVE_CONFIG_H
31078
31079ac_libobjs=
31080ac_ltlibobjs=
31081for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31082 # 1. Remove the extension, and $U if already installed.
31083 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31084 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31086 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031087 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31088 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031089done
31090LIBOBJS=$ac_libobjs
31091
31092LTLIBOBJS=$ac_ltlibobjs
31093
31094
31095 if test -n "$EXEEXT"; then
31096 am__EXEEXT_TRUE=
31097 am__EXEEXT_FALSE='#'
31098else
31099 am__EXEEXT_TRUE='#'
31100 am__EXEEXT_FALSE=
31101fi
31102
31103if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031104 as_fn_error "conditional \"AMDEP\" was never defined.
31105Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031106fi
31107if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031108 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31109Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031110fi
31111if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031112 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31113Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031114fi
31115if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031116 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31117Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031118fi
31119if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031120 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31121Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031122fi
31123if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031124 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31125Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031126fi
31127if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031128 as_fn_error "conditional \"USING_CL\" was never defined.
31129Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031130fi
cristy18304f92009-11-22 15:48:26 +000031131if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31132 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31133Usually this means the macro was only invoked conditionally." "$LINENO" 5
31134fi
cristy3ed852e2009-09-05 21:47:34 +000031135if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031136 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31137Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031138fi
31139if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031140 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31141Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031142fi
31143LT_CONFIG_H=config/config.h
31144
31145 _ltdl_libobjs=
31146 _ltdl_ltlibobjs=
31147 if test -n "$_LT_LIBOBJS"; then
31148 # Remove the extension.
31149 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31150 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31151 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31152 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31153 done
31154 fi
31155 ltdl_LIBOBJS=$_ltdl_libobjs
31156
31157 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31158
31159
31160if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031161 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31162Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031163fi
31164if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031165 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31166Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031167fi
31168if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031169 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31170Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031171fi
31172
31173if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031174 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31175Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031176fi
31177if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031178 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31179Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031180fi
31181if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031182 as_fn_error "conditional \"HasUMEM\" was never defined.
31183Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031184fi
31185if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031186 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31187Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031188fi
31189if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031190 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31191Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031192fi
31193if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031194 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31195Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031196fi
31197if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031198 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31199Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031200fi
31201if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031202 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31203Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031204fi
31205if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031206 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31207Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031208fi
31209if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031210 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31211Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031212fi
31213if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031214 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31215Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031216fi
31217if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031218 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31219Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031220fi
31221if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031222 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31223Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031224fi
31225if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031226 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31227Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031228fi
31229if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031230 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31231Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031232fi
31233if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031234 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31235Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031236fi
31237if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031238 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31239Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031240fi
31241if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031242 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31243Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031244fi
31245if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031246 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31247Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031248fi
31249if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031250 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31251Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031252fi
31253if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031254 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31255Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031256fi
31257if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031258 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31259Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031260fi
31261if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031262 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31263Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031264fi
31265if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031266 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31267Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031268fi
31269if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031270 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31271Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031272fi
31273if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031274 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31275Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031276fi
31277if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031278 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31279Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031280fi
31281if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031282 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31283Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031284fi
31285if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031286 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31287Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031288fi
31289if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031290 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31291Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031292fi
31293if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031294 as_fn_error "conditional \"WITH_PERL\" was never defined.
31295Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031296fi
31297if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031298 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31299Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031300fi
31301if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031302 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31303Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031304fi
31305
31306: ${CONFIG_STATUS=./config.status}
31307ac_write_fail=0
31308ac_clean_files_save=$ac_clean_files
31309ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031310{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031311$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031312as_write_fail=0
31313cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031314#! $SHELL
31315# Generated by $as_me.
31316# Run this file to recreate the current configuration.
31317# Compiler output produced by configure, useful for debugging
31318# configure, is in config.log if it exists.
31319
31320debug=false
31321ac_cs_recheck=false
31322ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031323
cristy8b350f62009-11-15 23:12:43 +000031324SHELL=\${CONFIG_SHELL-$SHELL}
31325export SHELL
31326_ASEOF
31327cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31328## -------------------- ##
31329## M4sh Initialization. ##
31330## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031331
31332# Be more Bourne compatible
31333DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031334if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031335 emulate sh
31336 NULLCMD=:
31337 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31338 # is contrary to our usage. Disable this feature.
31339 alias -g '${1+"$@"}'='"$@"'
31340 setopt NO_GLOB_SUBST
31341else
cristy8b350f62009-11-15 23:12:43 +000031342 case `(set -o) 2>/dev/null` in #(
31343 *posix*) :
31344 set -o posix ;; #(
31345 *) :
31346 ;;
cristy3ed852e2009-09-05 21:47:34 +000031347esac
cristy3ed852e2009-09-05 21:47:34 +000031348fi
31349
31350
cristy3ed852e2009-09-05 21:47:34 +000031351as_nl='
31352'
31353export as_nl
31354# Printing a long string crashes Solaris 7 /usr/bin/printf.
31355as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31356as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31357as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031358# Prefer a ksh shell builtin over an external printf program on Solaris,
31359# but without wasting forks for bash or zsh.
31360if test -z "$BASH_VERSION$ZSH_VERSION" \
31361 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31362 as_echo='print -r --'
31363 as_echo_n='print -rn --'
31364elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031365 as_echo='printf %s\n'
31366 as_echo_n='printf %s'
31367else
31368 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31369 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31370 as_echo_n='/usr/ucb/echo -n'
31371 else
31372 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31373 as_echo_n_body='eval
31374 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031375 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031376 *"$as_nl"*)
31377 expr "X$arg" : "X\\(.*\\)$as_nl";
31378 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31379 esac;
31380 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31381 '
31382 export as_echo_n_body
31383 as_echo_n='sh -c $as_echo_n_body as_echo'
31384 fi
31385 export as_echo_body
31386 as_echo='sh -c $as_echo_body as_echo'
31387fi
31388
31389# The user is always right.
31390if test "${PATH_SEPARATOR+set}" != set; then
31391 PATH_SEPARATOR=:
31392 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31393 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31394 PATH_SEPARATOR=';'
31395 }
31396fi
31397
cristy3ed852e2009-09-05 21:47:34 +000031398
31399# IFS
31400# We need space, tab and new line, in precisely that order. Quoting is
31401# there to prevent editors from complaining about space-tab.
31402# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31403# splitting by setting IFS to empty value.)
31404IFS=" "" $as_nl"
31405
31406# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031407case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031408 *[\\/]* ) as_myself=$0 ;;
31409 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31410for as_dir in $PATH
31411do
31412 IFS=$as_save_IFS
31413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031414 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31415 done
cristy3ed852e2009-09-05 21:47:34 +000031416IFS=$as_save_IFS
31417
31418 ;;
31419esac
31420# We did not find ourselves, most probably we were run as `sh COMMAND'
31421# in which case we are not to be found in the path.
31422if test "x$as_myself" = x; then
31423 as_myself=$0
31424fi
31425if test ! -f "$as_myself"; then
31426 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031427 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031428fi
31429
cristy8b350f62009-11-15 23:12:43 +000031430# Unset variables that we do not need and which cause bugs (e.g. in
31431# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31432# suppresses any "Segmentation fault" message there. '((' could
31433# trigger a bug in pdksh 5.2.14.
31434for as_var in BASH_ENV ENV MAIL MAILPATH
31435do eval test x\${$as_var+set} = xset \
31436 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031437done
31438PS1='$ '
31439PS2='> '
31440PS4='+ '
31441
31442# NLS nuisances.
31443LC_ALL=C
31444export LC_ALL
31445LANGUAGE=C
31446export LANGUAGE
31447
cristy8b350f62009-11-15 23:12:43 +000031448# CDPATH.
31449(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31450
31451
31452# as_fn_error ERROR [LINENO LOG_FD]
31453# ---------------------------------
31454# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31455# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31456# script with status $?, using 1 if that was 0.
31457as_fn_error ()
31458{
31459 as_status=$?; test $as_status -eq 0 && as_status=1
31460 if test "$3"; then
31461 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31462 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31463 fi
31464 $as_echo "$as_me: error: $1" >&2
31465 as_fn_exit $as_status
31466} # as_fn_error
31467
31468
31469# as_fn_set_status STATUS
31470# -----------------------
31471# Set $? to STATUS, without forking.
31472as_fn_set_status ()
31473{
31474 return $1
31475} # as_fn_set_status
31476
31477# as_fn_exit STATUS
31478# -----------------
31479# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31480as_fn_exit ()
31481{
31482 set +e
31483 as_fn_set_status $1
31484 exit $1
31485} # as_fn_exit
31486
31487# as_fn_unset VAR
31488# ---------------
31489# Portably unset VAR.
31490as_fn_unset ()
31491{
31492 { eval $1=; unset $1;}
31493}
31494as_unset=as_fn_unset
31495# as_fn_append VAR VALUE
31496# ----------------------
31497# Append the text in VALUE to the end of the definition contained in VAR. Take
31498# advantage of any shell optimizations that allow amortized linear growth over
31499# repeated appends, instead of the typical quadratic growth present in naive
31500# implementations.
31501if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31502 eval 'as_fn_append ()
31503 {
31504 eval $1+=\$2
31505 }'
31506else
31507 as_fn_append ()
31508 {
31509 eval $1=\$$1\$2
31510 }
31511fi # as_fn_append
31512
31513# as_fn_arith ARG...
31514# ------------------
31515# Perform arithmetic evaluation on the ARGs, and store the result in the
31516# global $as_val. Take advantage of shells that can avoid forks. The arguments
31517# must be portable across $(()) and expr.
31518if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31519 eval 'as_fn_arith ()
31520 {
31521 as_val=$(( $* ))
31522 }'
31523else
31524 as_fn_arith ()
31525 {
31526 as_val=`expr "$@" || test $? -eq 1`
31527 }
31528fi # as_fn_arith
31529
31530
cristy3ed852e2009-09-05 21:47:34 +000031531if expr a : '\(a\)' >/dev/null 2>&1 &&
31532 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31533 as_expr=expr
31534else
31535 as_expr=false
31536fi
31537
31538if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31539 as_basename=basename
31540else
31541 as_basename=false
31542fi
31543
cristy8b350f62009-11-15 23:12:43 +000031544if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31545 as_dirname=dirname
31546else
31547 as_dirname=false
31548fi
cristy3ed852e2009-09-05 21:47:34 +000031549
cristy3ed852e2009-09-05 21:47:34 +000031550as_me=`$as_basename -- "$0" ||
31551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31552 X"$0" : 'X\(//\)$' \| \
31553 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31554$as_echo X/"$0" |
31555 sed '/^.*\/\([^/][^/]*\)\/*$/{
31556 s//\1/
31557 q
31558 }
31559 /^X\/\(\/\/\)$/{
31560 s//\1/
31561 q
31562 }
31563 /^X\/\(\/\).*/{
31564 s//\1/
31565 q
31566 }
31567 s/.*/./; q'`
31568
cristy8b350f62009-11-15 23:12:43 +000031569# Avoid depending upon Character Ranges.
31570as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31571as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31572as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31573as_cr_digits='0123456789'
31574as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031575
31576ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031577case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031578-n*)
cristy8b350f62009-11-15 23:12:43 +000031579 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031580 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031581 xy) ECHO_C='\c';;
31582 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31583 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031584 esac;;
31585*)
31586 ECHO_N='-n';;
31587esac
cristy3ed852e2009-09-05 21:47:34 +000031588
31589rm -f conf$$ conf$$.exe conf$$.file
31590if test -d conf$$.dir; then
31591 rm -f conf$$.dir/conf$$.file
31592else
31593 rm -f conf$$.dir
31594 mkdir conf$$.dir 2>/dev/null
31595fi
31596if (echo >conf$$.file) 2>/dev/null; then
31597 if ln -s conf$$.file conf$$ 2>/dev/null; then
31598 as_ln_s='ln -s'
31599 # ... but there are two gotchas:
31600 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31601 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31602 # In both cases, we have to default to `cp -p'.
31603 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31604 as_ln_s='cp -p'
31605 elif ln conf$$.file conf$$ 2>/dev/null; then
31606 as_ln_s=ln
31607 else
31608 as_ln_s='cp -p'
31609 fi
31610else
31611 as_ln_s='cp -p'
31612fi
31613rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31614rmdir conf$$.dir 2>/dev/null
31615
cristy8b350f62009-11-15 23:12:43 +000031616
31617# as_fn_mkdir_p
31618# -------------
31619# Create "$as_dir" as a directory, including parents if necessary.
31620as_fn_mkdir_p ()
31621{
31622
31623 case $as_dir in #(
31624 -*) as_dir=./$as_dir;;
31625 esac
31626 test -d "$as_dir" || eval $as_mkdir_p || {
31627 as_dirs=
31628 while :; do
31629 case $as_dir in #(
31630 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31631 *) as_qdir=$as_dir;;
31632 esac
31633 as_dirs="'$as_qdir' $as_dirs"
31634 as_dir=`$as_dirname -- "$as_dir" ||
31635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31636 X"$as_dir" : 'X\(//\)[^/]' \| \
31637 X"$as_dir" : 'X\(//\)$' \| \
31638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31639$as_echo X"$as_dir" |
31640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31641 s//\1/
31642 q
31643 }
31644 /^X\(\/\/\)[^/].*/{
31645 s//\1/
31646 q
31647 }
31648 /^X\(\/\/\)$/{
31649 s//\1/
31650 q
31651 }
31652 /^X\(\/\).*/{
31653 s//\1/
31654 q
31655 }
31656 s/.*/./; q'`
31657 test -d "$as_dir" && break
31658 done
31659 test -z "$as_dirs" || eval "mkdir $as_dirs"
31660 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31661
31662
31663} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031664if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031665 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031666else
31667 test -d ./-p && rmdir ./-p
31668 as_mkdir_p=false
31669fi
31670
31671if test -x / >/dev/null 2>&1; then
31672 as_test_x='test -x'
31673else
31674 if ls -dL / >/dev/null 2>&1; then
31675 as_ls_L_option=L
31676 else
31677 as_ls_L_option=
31678 fi
31679 as_test_x='
31680 eval sh -c '\''
31681 if test -d "$1"; then
31682 test -d "$1/.";
31683 else
cristy8b350f62009-11-15 23:12:43 +000031684 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031685 -*)set "./$1";;
31686 esac;
cristy8b350f62009-11-15 23:12:43 +000031687 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031688 ???[sx]*):;;*)false;;esac;fi
31689 '\'' sh
31690 '
31691fi
31692as_executable_p=$as_test_x
31693
31694# Sed expression to map a string onto a valid CPP name.
31695as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31696
31697# Sed expression to map a string onto a valid variable name.
31698as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31699
31700
31701exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031702## ----------------------------------- ##
31703## Main body of $CONFIG_STATUS script. ##
31704## ----------------------------------- ##
31705_ASEOF
31706test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031707
cristy8b350f62009-11-15 23:12:43 +000031708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31709# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031710# report actual input values of CONFIG_FILES etc. instead of their
31711# values after options handling.
31712ac_log="
cristy89effd22009-11-24 20:56:45 +000031713This file was extended by ImageMagick $as_me 6.5.8, which was
cristycd4c5312009-11-22 01:19:08 +000031714generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031715
31716 CONFIG_FILES = $CONFIG_FILES
31717 CONFIG_HEADERS = $CONFIG_HEADERS
31718 CONFIG_LINKS = $CONFIG_LINKS
31719 CONFIG_COMMANDS = $CONFIG_COMMANDS
31720 $ $0 $@
31721
31722on `(hostname || uname -n) 2>/dev/null | sed 1q`
31723"
31724
31725_ACEOF
31726
31727case $ac_config_files in *"
31728"*) set x $ac_config_files; shift; ac_config_files=$*;;
31729esac
31730
31731case $ac_config_headers in *"
31732"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31733esac
31734
31735
31736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31737# Files that config.status was made for.
31738config_files="$ac_config_files"
31739config_headers="$ac_config_headers"
31740config_commands="$ac_config_commands"
31741
31742_ACEOF
31743
31744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31745ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031746\`$as_me' instantiates files and other configuration actions
31747from templates according to the current configuration. Unless the files
31748and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031749
cristy8b350f62009-11-15 23:12:43 +000031750Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031751
31752 -h, --help print this help, then exit
31753 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000031754 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000031755 -q, --quiet, --silent
31756 do not print progress messages
31757 -d, --debug don't remove temporary files
31758 --recheck update $as_me by reconfiguring in the same conditions
31759 --file=FILE[:TEMPLATE]
31760 instantiate the configuration file FILE
31761 --header=FILE[:TEMPLATE]
31762 instantiate the configuration header FILE
31763
31764Configuration files:
31765$config_files
31766
31767Configuration headers:
31768$config_headers
31769
31770Configuration commands:
31771$config_commands
31772
cristy8b350f62009-11-15 23:12:43 +000031773Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031774
31775_ACEOF
31776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000031777ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000031778ac_cs_version="\\
cristy89effd22009-11-24 20:56:45 +000031779ImageMagick config.status 6.5.8
cristycd4c5312009-11-22 01:19:08 +000031780configured by $0, generated by GNU Autoconf 2.65,
31781 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000031782
cristy8b350f62009-11-15 23:12:43 +000031783Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031784This config.status script is free software; the Free Software Foundation
31785gives unlimited permission to copy, distribute and modify it."
31786
31787ac_pwd='$ac_pwd'
31788srcdir='$srcdir'
31789INSTALL='$INSTALL'
31790MKDIR_P='$MKDIR_P'
31791AWK='$AWK'
31792test -n "\$AWK" || AWK=awk
31793_ACEOF
31794
31795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31796# The default lists apply if the user does not specify any file.
31797ac_need_defaults=:
31798while test $# != 0
31799do
31800 case $1 in
31801 --*=*)
31802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31803 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31804 ac_shift=:
31805 ;;
31806 *)
31807 ac_option=$1
31808 ac_optarg=$2
31809 ac_shift=shift
31810 ;;
31811 esac
31812
31813 case $ac_option in
31814 # Handling of the options.
31815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31816 ac_cs_recheck=: ;;
31817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31818 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000031819 --config | --confi | --conf | --con | --co | --c )
31820 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000031821 --debug | --debu | --deb | --de | --d | -d )
31822 debug=: ;;
31823 --file | --fil | --fi | --f )
31824 $ac_shift
31825 case $ac_optarg in
31826 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31827 esac
cristy8b350f62009-11-15 23:12:43 +000031828 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031829 ac_need_defaults=false;;
31830 --header | --heade | --head | --hea )
31831 $ac_shift
31832 case $ac_optarg in
31833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31834 esac
cristy8b350f62009-11-15 23:12:43 +000031835 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031836 ac_need_defaults=false;;
31837 --he | --h)
31838 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031839 as_fn_error "ambiguous option: \`$1'
31840Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031841 --help | --hel | -h )
31842 $as_echo "$ac_cs_usage"; exit ;;
31843 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31844 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31845 ac_cs_silent=: ;;
31846
31847 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031848 -*) as_fn_error "unrecognized option: \`$1'
31849Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031850
cristy8b350f62009-11-15 23:12:43 +000031851 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031852 ac_need_defaults=false ;;
31853
31854 esac
31855 shift
31856done
31857
31858ac_configure_extra_args=
31859
31860if $ac_cs_silent; then
31861 exec 6>/dev/null
31862 ac_configure_extra_args="$ac_configure_extra_args --silent"
31863fi
31864
31865_ACEOF
31866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31867if \$ac_cs_recheck; then
31868 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31869 shift
31870 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31871 CONFIG_SHELL='$SHELL'
31872 export CONFIG_SHELL
31873 exec "\$@"
31874fi
31875
31876_ACEOF
31877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31878exec 5>>config.log
31879{
31880 echo
31881 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31882## Running $as_me. ##
31883_ASBOX
31884 $as_echo "$ac_log"
31885} >&5
31886
31887_ACEOF
31888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31889#
31890# INIT-COMMANDS
31891#
31892PACKAGE="$PACKAGE"
31893AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31894
31895
31896# The HP-UX ksh and POSIX shell print the target directory to stdout
31897# if CDPATH is set.
31898(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31899
31900sed_quote_subst='$sed_quote_subst'
31901double_quote_subst='$double_quote_subst'
31902delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000031903SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31904Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31905GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31906EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31907FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31908LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31909macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31910macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31911AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31912DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31913OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31914enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31915enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31916pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31917enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31918host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31919host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31920host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31921build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31922build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31923build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31924NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31925LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31926max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31927ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31928exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31929lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31930lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31931lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31932reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31933reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31934deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31935file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31936AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31937AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31938STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31939RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31940old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31941old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31942old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31943CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31944CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31945compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31946GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31947lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31948lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31949lt_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"`'
31950lt_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"`'
31951objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31952SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31953ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31954MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31955lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31956lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31957lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31958lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31959lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31960need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31961DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31962NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31963LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31964OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31965OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31966libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31967shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31968extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31969archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31970enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31971export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31972whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31973compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31974old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31975old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31976archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31977archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31978module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31979module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31980with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31981allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31982no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31983hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31984hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31985hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31986hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31987hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31988hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31989hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31990hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31991inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31992link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31993fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31994always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
31995export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31996exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31997include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31998prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31999file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32000variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32001need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32002need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32003version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32004runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32005shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32006shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32007libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32008library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32009soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32010postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32011postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32012finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32013finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32014hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32015sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32016sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32017hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32018enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32019enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32020enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32021old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32022striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32023compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32024predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32025postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32026predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32027postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32028compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32029LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32030old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32031compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32032GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32033lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32034lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32035lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32036lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32037lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32038archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32039enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32040export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32041whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32042compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32043old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32044old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32045archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32075compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032076
32077LTCC='$LTCC'
32078LTCFLAGS='$LTCFLAGS'
32079compiler='$compiler_DEFAULT'
32080
32081# Quote evaled strings.
32082for var in SED \
32083GREP \
32084EGREP \
32085FGREP \
32086LD \
32087NM \
32088LN_S \
32089lt_SP2NL \
32090lt_NL2SP \
32091reload_flag \
32092deplibs_check_method \
32093file_magic_cmd \
32094AR \
32095AR_FLAGS \
32096STRIP \
32097RANLIB \
32098CC \
32099CFLAGS \
32100compiler \
32101lt_cv_sys_global_symbol_pipe \
32102lt_cv_sys_global_symbol_to_cdecl \
32103lt_cv_sys_global_symbol_to_c_name_address \
32104lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032105SHELL \
32106ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032107lt_prog_compiler_no_builtin_flag \
32108lt_prog_compiler_wl \
32109lt_prog_compiler_pic \
32110lt_prog_compiler_static \
32111lt_cv_prog_compiler_c_o \
32112need_locks \
32113DSYMUTIL \
32114NMEDIT \
32115LIPO \
32116OTOOL \
32117OTOOL64 \
32118shrext_cmds \
32119export_dynamic_flag_spec \
32120whole_archive_flag_spec \
32121compiler_needs_object \
32122with_gnu_ld \
32123allow_undefined_flag \
32124no_undefined_flag \
32125hardcode_libdir_flag_spec \
32126hardcode_libdir_flag_spec_ld \
32127hardcode_libdir_separator \
32128fix_srcfile_path \
32129exclude_expsyms \
32130include_expsyms \
32131file_list_spec \
32132variables_saved_for_relink \
32133libname_spec \
32134library_names_spec \
32135soname_spec \
32136finish_eval \
32137old_striplib \
32138striplib \
32139compiler_lib_search_dirs \
32140predep_objects \
32141postdep_objects \
32142predeps \
32143postdeps \
32144compiler_lib_search_path \
32145LD_CXX \
32146compiler_CXX \
32147lt_prog_compiler_no_builtin_flag_CXX \
32148lt_prog_compiler_wl_CXX \
32149lt_prog_compiler_pic_CXX \
32150lt_prog_compiler_static_CXX \
32151lt_cv_prog_compiler_c_o_CXX \
32152export_dynamic_flag_spec_CXX \
32153whole_archive_flag_spec_CXX \
32154compiler_needs_object_CXX \
32155with_gnu_ld_CXX \
32156allow_undefined_flag_CXX \
32157no_undefined_flag_CXX \
32158hardcode_libdir_flag_spec_CXX \
32159hardcode_libdir_flag_spec_ld_CXX \
32160hardcode_libdir_separator_CXX \
32161fix_srcfile_path_CXX \
32162exclude_expsyms_CXX \
32163include_expsyms_CXX \
32164file_list_spec_CXX \
32165compiler_lib_search_dirs_CXX \
32166predep_objects_CXX \
32167postdep_objects_CXX \
32168predeps_CXX \
32169postdeps_CXX \
32170compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032171 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032172 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032173 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032174 ;;
32175 *)
32176 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32177 ;;
32178 esac
32179done
32180
32181# Double-quote double-evaled strings.
32182for var in reload_cmds \
32183old_postinstall_cmds \
32184old_postuninstall_cmds \
32185old_archive_cmds \
32186extract_expsyms_cmds \
32187old_archive_from_new_cmds \
32188old_archive_from_expsyms_cmds \
32189archive_cmds \
32190archive_expsym_cmds \
32191module_cmds \
32192module_expsym_cmds \
32193export_symbols_cmds \
32194prelink_cmds \
32195postinstall_cmds \
32196postuninstall_cmds \
32197finish_cmds \
32198sys_lib_search_path_spec \
32199sys_lib_dlsearch_path_spec \
32200old_archive_cmds_CXX \
32201old_archive_from_new_cmds_CXX \
32202old_archive_from_expsyms_cmds_CXX \
32203archive_cmds_CXX \
32204archive_expsym_cmds_CXX \
32205module_cmds_CXX \
32206module_expsym_cmds_CXX \
32207export_symbols_cmds_CXX \
32208prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032209 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032210 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032211 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 +000032212 ;;
32213 *)
32214 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32215 ;;
32216 esac
32217done
32218
cristy18304f92009-11-22 15:48:26 +000032219# Fix-up fallback echo if it was mangled by the above quoting rules.
32220case \$lt_ECHO in
32221*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32222 ;;
32223esac
32224
cristy3ed852e2009-09-05 21:47:34 +000032225ac_aux_dir='$ac_aux_dir'
32226xsi_shell='$xsi_shell'
32227lt_shell_append='$lt_shell_append'
32228
32229# See if we are running on zsh, and set the options which allow our
32230# commands through without removal of \ escapes INIT.
32231if test -n "\${ZSH_VERSION+set}" ; then
32232 setopt NO_GLOB_SUBST
32233fi
32234
32235
32236 PACKAGE='$PACKAGE'
32237 VERSION='$VERSION'
32238 TIMESTAMP='$TIMESTAMP'
32239 RM='$RM'
32240 ofile='$ofile'
32241
32242
32243
32244
32245
32246
32247_ACEOF
32248
32249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32250
32251# Handling of arguments.
32252for ac_config_target in $ac_config_targets
32253do
32254 case $ac_config_target in
32255 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32256 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32257 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32258 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32259 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32260 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32261 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32262 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32263 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32264 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32265 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32266 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32267 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32268 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32269 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32270 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32271 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32272 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32273 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32274 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32275 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32276 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32277 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32278 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32279 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32280 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32281 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32282 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32283 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32284 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32285 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32286 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32287 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32288 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32289 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32290 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32291 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32292 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32293 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32294 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32295 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32296 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32297 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32298 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32299 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32300 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32301 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32302 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32303 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32304
cristy8b350f62009-11-15 23:12:43 +000032305 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032306 esac
32307done
32308
32309
32310# If the user did not use the arguments to specify the items to instantiate,
32311# then the envvar interface is used. Set only those that are not.
32312# We use the long form for the default assignment because of an extremely
32313# bizarre bug on SunOS 4.1.3.
32314if $ac_need_defaults; then
32315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32318fi
32319
32320# Have a temporary directory for convenience. Make it in the build tree
32321# simply because there is no reason against having it here, and in addition,
32322# creating and moving files from /tmp can sometimes cause problems.
32323# Hook for its removal unless debugging.
32324# Note that there is a small window in which the directory will not be cleaned:
32325# after its creation but before its name has been assigned to `$tmp'.
32326$debug ||
32327{
32328 tmp=
32329 trap 'exit_status=$?
32330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32331' 0
cristy8b350f62009-11-15 23:12:43 +000032332 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032333}
32334# Create a (secure) tmp directory for tmp files.
32335
32336{
32337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32338 test -n "$tmp" && test -d "$tmp"
32339} ||
32340{
32341 tmp=./conf$$-$RANDOM
32342 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032343} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032344
32345# Set up the scripts for CONFIG_FILES section.
32346# No need to generate them if there are no CONFIG_FILES.
32347# This happens for instance with `./config.status config.h'.
32348if test -n "$CONFIG_FILES"; then
32349
32350
cristy8b350f62009-11-15 23:12:43 +000032351ac_cr=`echo X | tr X '\015'`
32352# On cygwin, bash can eat \r inside `` if the user requested igncr.
32353# But we know of no other shell where ac_cr would be empty at this
32354# point, so we can use a bashism as a fallback.
32355if test "x$ac_cr" = x; then
32356 eval ac_cr=\$\'\\r\'
32357fi
cristy3ed852e2009-09-05 21:47:34 +000032358ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32359if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032360 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032361else
32362 ac_cs_awk_cr=$ac_cr
32363fi
32364
32365echo 'BEGIN {' >"$tmp/subs1.awk" &&
32366_ACEOF
32367
32368
32369{
32370 echo "cat >conf$$subs.awk <<_ACEOF" &&
32371 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32372 echo "_ACEOF"
32373} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032374 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032375ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32376ac_delim='%!_!# '
32377for ac_last_try in false false false false false :; do
32378 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032380
32381 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32382 if test $ac_delim_n = $ac_delim_num; then
32383 break
32384 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032386 else
32387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32388 fi
32389done
32390rm -f conf$$subs.sh
32391
32392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32393cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32394_ACEOF
32395sed -n '
32396h
32397s/^/S["/; s/!.*/"]=/
32398p
32399g
32400s/^[^!]*!//
32401:repl
32402t repl
32403s/'"$ac_delim"'$//
32404t delim
32405:nl
32406h
cristycd4c5312009-11-22 01:19:08 +000032407s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032408t more1
32409s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32410p
32411n
32412b repl
32413:more1
32414s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32415p
32416g
32417s/.\{148\}//
32418t nl
32419:delim
32420h
cristycd4c5312009-11-22 01:19:08 +000032421s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032422t more2
32423s/["\\]/\\&/g; s/^/"/; s/$/"/
32424p
32425b
32426:more2
32427s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32428p
32429g
32430s/.\{148\}//
32431t delim
32432' <conf$$subs.awk | sed '
32433/^[^""]/{
32434 N
32435 s/\n//
32436}
32437' >>$CONFIG_STATUS || ac_write_fail=1
32438rm -f conf$$subs.awk
32439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32440_ACAWK
32441cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32442 for (key in S) S_is_set[key] = 1
32443 FS = ""
32444
32445}
32446{
32447 line = $ 0
32448 nfields = split(line, field, "@")
32449 substed = 0
32450 len = length(field[1])
32451 for (i = 2; i < nfields; i++) {
32452 key = field[i]
32453 keylen = length(key)
32454 if (S_is_set[key]) {
32455 value = S[key]
32456 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32457 len += length(value) + length(field[++i])
32458 substed = 1
32459 } else
32460 len += 1 + keylen
32461 }
32462
32463 print line
32464}
32465
32466_ACAWK
32467_ACEOF
32468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32469if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32470 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32471else
32472 cat
32473fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032474 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032475_ACEOF
32476
32477# VPATH may cause trouble with some makes, so we remove $(srcdir),
32478# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32479# trailing colons and then remove the whole line if VPATH becomes empty
32480# (actually we leave an empty line to preserve line numbers).
32481if test "x$srcdir" = x.; then
32482 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32483s/:*\$(srcdir):*/:/
32484s/:*\${srcdir}:*/:/
32485s/:*@srcdir@:*/:/
32486s/^\([^=]*=[ ]*\):*/\1/
32487s/:*$//
32488s/^[^=]*=[ ]*$//
32489}'
32490fi
32491
32492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32493fi # test -n "$CONFIG_FILES"
32494
32495# Set up the scripts for CONFIG_HEADERS section.
32496# No need to generate them if there are no CONFIG_HEADERS.
32497# This happens for instance with `./config.status Makefile'.
32498if test -n "$CONFIG_HEADERS"; then
32499cat >"$tmp/defines.awk" <<\_ACAWK ||
32500BEGIN {
32501_ACEOF
32502
32503# Transform confdefs.h into an awk script `defines.awk', embedded as
32504# here-document in config.status, that substitutes the proper values into
32505# config.h.in to produce config.h.
32506
32507# Create a delimiter string that does not exist in confdefs.h, to ease
32508# handling of long lines.
32509ac_delim='%!_!# '
32510for ac_last_try in false false :; do
32511 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32512 if test -z "$ac_t"; then
32513 break
32514 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032515 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032516 else
32517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32518 fi
32519done
32520
32521# For the awk script, D is an array of macro values keyed by name,
32522# likewise P contains macro parameters if any. Preserve backslash
32523# newline sequences.
32524
32525ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32526sed -n '
32527s/.\{148\}/&'"$ac_delim"'/g
32528t rset
32529:rset
32530s/^[ ]*#[ ]*define[ ][ ]*/ /
32531t def
32532d
32533:def
32534s/\\$//
32535t bsnl
32536s/["\\]/\\&/g
32537s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32538D["\1"]=" \3"/p
32539s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32540d
32541:bsnl
32542s/["\\]/\\&/g
32543s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32544D["\1"]=" \3\\\\\\n"\\/p
32545t cont
32546s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32547t cont
32548d
32549:cont
32550n
32551s/.\{148\}/&'"$ac_delim"'/g
32552t clear
32553:clear
32554s/\\$//
32555t bsnlc
32556s/["\\]/\\&/g; s/^/"/; s/$/"/p
32557d
32558:bsnlc
32559s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32560b cont
32561' <confdefs.h | sed '
32562s/'"$ac_delim"'/"\\\
32563"/g' >>$CONFIG_STATUS || ac_write_fail=1
32564
32565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32566 for (key in D) D_is_set[key] = 1
32567 FS = ""
32568}
32569/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32570 line = \$ 0
32571 split(line, arg, " ")
32572 if (arg[1] == "#") {
32573 defundef = arg[2]
32574 mac1 = arg[3]
32575 } else {
32576 defundef = substr(arg[1], 2)
32577 mac1 = arg[2]
32578 }
32579 split(mac1, mac2, "(") #)
32580 macro = mac2[1]
32581 prefix = substr(line, 1, index(line, defundef) - 1)
32582 if (D_is_set[macro]) {
32583 # Preserve the white space surrounding the "#".
32584 print prefix "define", macro P[macro] D[macro]
32585 next
32586 } else {
32587 # Replace #undef with comments. This is necessary, for example,
32588 # in the case of _POSIX_SOURCE, which is predefined and required
32589 # on some systems where configure will not decide to define it.
32590 if (defundef == "undef") {
32591 print "/*", prefix defundef, macro, "*/"
32592 next
32593 }
32594 }
32595}
32596{ print }
32597_ACAWK
32598_ACEOF
32599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032600 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032601fi # test -n "$CONFIG_HEADERS"
32602
32603
32604eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32605shift
32606for ac_tag
32607do
32608 case $ac_tag in
32609 :[FHLC]) ac_mode=$ac_tag; continue;;
32610 esac
32611 case $ac_mode$ac_tag in
32612 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032613 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032614 :[FH]-) ac_tag=-:-;;
32615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32616 esac
32617 ac_save_IFS=$IFS
32618 IFS=:
32619 set x $ac_tag
32620 IFS=$ac_save_IFS
32621 shift
32622 ac_file=$1
32623 shift
32624
32625 case $ac_mode in
32626 :L) ac_source=$1;;
32627 :[FH])
32628 ac_file_inputs=
32629 for ac_f
32630 do
32631 case $ac_f in
32632 -) ac_f="$tmp/stdin";;
32633 *) # Look for the file first in the build tree, then in the source tree
32634 # (if the path is not absolute). The absolute path cannot be DOS-style,
32635 # because $ac_f cannot contain `:'.
32636 test -f "$ac_f" ||
32637 case $ac_f in
32638 [\\/$]*) false;;
32639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32640 esac ||
cristy8b350f62009-11-15 23:12:43 +000032641 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032642 esac
32643 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032644 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032645 done
32646
32647 # Let's still pretend it is `configure' which instantiates (i.e., don't
32648 # use $as_me), people would be surprised to read:
32649 # /* config.h. Generated by config.status. */
32650 configure_input='Generated from '`
32651 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32652 `' by configure.'
32653 if test x"$ac_file" != x-; then
32654 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656$as_echo "$as_me: creating $ac_file" >&6;}
32657 fi
32658 # Neutralize special characters interpreted by sed in replacement strings.
32659 case $configure_input in #(
32660 *\&* | *\|* | *\\* )
32661 ac_sed_conf_input=`$as_echo "$configure_input" |
32662 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32663 *) ac_sed_conf_input=$configure_input;;
32664 esac
32665
32666 case $ac_tag in
32667 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032668 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032669 esac
32670 ;;
32671 esac
32672
32673 ac_dir=`$as_dirname -- "$ac_file" ||
32674$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32675 X"$ac_file" : 'X\(//\)[^/]' \| \
32676 X"$ac_file" : 'X\(//\)$' \| \
32677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32678$as_echo X"$ac_file" |
32679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32680 s//\1/
32681 q
32682 }
32683 /^X\(\/\/\)[^/].*/{
32684 s//\1/
32685 q
32686 }
32687 /^X\(\/\/\)$/{
32688 s//\1/
32689 q
32690 }
32691 /^X\(\/\).*/{
32692 s//\1/
32693 q
32694 }
32695 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032696 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032697 ac_builddir=.
32698
32699case "$ac_dir" in
32700.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32701*)
32702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32703 # A ".." for each directory in $ac_dir_suffix.
32704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32705 case $ac_top_builddir_sub in
32706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32708 esac ;;
32709esac
32710ac_abs_top_builddir=$ac_pwd
32711ac_abs_builddir=$ac_pwd$ac_dir_suffix
32712# for backward compatibility:
32713ac_top_builddir=$ac_top_build_prefix
32714
32715case $srcdir in
32716 .) # We are building in place.
32717 ac_srcdir=.
32718 ac_top_srcdir=$ac_top_builddir_sub
32719 ac_abs_top_srcdir=$ac_pwd ;;
32720 [\\/]* | ?:[\\/]* ) # Absolute name.
32721 ac_srcdir=$srcdir$ac_dir_suffix;
32722 ac_top_srcdir=$srcdir
32723 ac_abs_top_srcdir=$srcdir ;;
32724 *) # Relative name.
32725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32726 ac_top_srcdir=$ac_top_build_prefix$srcdir
32727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32728esac
32729ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32730
32731
32732 case $ac_mode in
32733 :F)
32734 #
32735 # CONFIG_FILE
32736 #
32737
32738 case $INSTALL in
32739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32741 esac
32742 ac_MKDIR_P=$MKDIR_P
32743 case $MKDIR_P in
32744 [\\/$]* | ?:[\\/]* ) ;;
32745 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32746 esac
32747_ACEOF
32748
32749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32750# If the template does not know about datarootdir, expand it.
32751# FIXME: This hack should be removed a few years after 2.60.
32752ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032753ac_sed_dataroot='
32754/datarootdir/ {
32755 p
32756 q
32757}
32758/@datadir@/p
32759/@docdir@/p
32760/@infodir@/p
32761/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032762/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032763case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32764*datarootdir*) ac_datarootdir_seen=yes;;
32765*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032767$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32768_ACEOF
32769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32770 ac_datarootdir_hack='
32771 s&@datadir@&$datadir&g
32772 s&@docdir@&$docdir&g
32773 s&@infodir@&$infodir&g
32774 s&@localedir@&$localedir&g
32775 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032776 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032777esac
32778_ACEOF
32779
32780# Neutralize VPATH when `$srcdir' = `.'.
32781# Shell code in configure.ac might set extrasub.
32782# FIXME: do we really want to maintain this feature?
32783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32784ac_sed_extra="$ac_vpsub
32785$extrasub
32786_ACEOF
32787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32788:t
32789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32790s|@configure_input@|$ac_sed_conf_input|;t t
32791s&@top_builddir@&$ac_top_builddir_sub&;t t
32792s&@top_build_prefix@&$ac_top_build_prefix&;t t
32793s&@srcdir@&$ac_srcdir&;t t
32794s&@abs_srcdir@&$ac_abs_srcdir&;t t
32795s&@top_srcdir@&$ac_top_srcdir&;t t
32796s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32797s&@builddir@&$ac_builddir&;t t
32798s&@abs_builddir@&$ac_abs_builddir&;t t
32799s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32800s&@INSTALL@&$ac_INSTALL&;t t
32801s&@MKDIR_P@&$ac_MKDIR_P&;t t
32802$ac_datarootdir_hack
32803"
32804eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032805 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032806
32807test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32808 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032811which seems to be undefined. Please make sure it is defined." >&5
32812$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32813which seems to be undefined. Please make sure it is defined." >&2;}
32814
32815 rm -f "$tmp/stdin"
32816 case $ac_file in
32817 -) cat "$tmp/out" && rm -f "$tmp/out";;
32818 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32819 esac \
cristy8b350f62009-11-15 23:12:43 +000032820 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032821 ;;
32822 :H)
32823 #
32824 # CONFIG_HEADER
32825 #
32826 if test x"$ac_file" != x-; then
32827 {
32828 $as_echo "/* $configure_input */" \
32829 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32830 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032831 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032832 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032833 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032834$as_echo "$as_me: $ac_file is unchanged" >&6;}
32835 else
32836 rm -f "$ac_file"
32837 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032838 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032839 fi
32840 else
32841 $as_echo "/* $configure_input */" \
32842 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032843 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032844 fi
32845# Compute "$ac_file"'s index in $config_headers.
32846_am_arg="$ac_file"
32847_am_stamp_count=1
32848for _am_header in $config_headers :; do
32849 case $_am_header in
32850 $_am_arg | $_am_arg:* )
32851 break ;;
32852 * )
32853 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32854 esac
32855done
32856echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32857$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32858 X"$_am_arg" : 'X\(//\)[^/]' \| \
32859 X"$_am_arg" : 'X\(//\)$' \| \
32860 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32861$as_echo X"$_am_arg" |
32862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32863 s//\1/
32864 q
32865 }
32866 /^X\(\/\/\)[^/].*/{
32867 s//\1/
32868 q
32869 }
32870 /^X\(\/\/\)$/{
32871 s//\1/
32872 q
32873 }
32874 /^X\(\/\).*/{
32875 s//\1/
32876 q
32877 }
32878 s/.*/./; q'`/stamp-h$_am_stamp_count
32879 ;;
32880
cristy8b350f62009-11-15 23:12:43 +000032881 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo "$as_me: executing $ac_file commands" >&6;}
32883 ;;
32884 esac
32885
32886
32887 case $ac_file$ac_mode in
32888 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32889ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32890ac_prefix_conf_PKG=`echo MagickCore`
32891ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32892ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32893ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32894if test ".$ac_prefix_conf_INP" = "."; then
32895 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32896 case "$ac_file" in
32897 *.h) ac_prefix_conf_INP=$ac_file ;;
32898 *)
32899 esac
32900 test ".$ac_prefix_conf_INP" != "." && break
32901 done
32902fi
32903if test ".$ac_prefix_conf_INP" = "."; then
32904 case "$ac_prefix_conf_OUT" in
32905 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32906 ;;
32907 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32908 ;;
32909 *) ac_prefix_conf_INP=config.h
32910 ;;
32911 esac
32912fi
32913if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032914 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032915else
32916 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32917 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32918 fi fi
cristy8b350f62009-11-15 23:12:43 +000032919 { $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 +000032920$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32921 if test -f $ac_prefix_conf_INP ; then
32922 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32923 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32924 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32925 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32926 echo "#endif/" >>conftest.prefix
32927 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32928 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32929 echo "#endif/" >> conftest.prefix
32930 # now executing _script on _DEF input to create _OUT output file
32931 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32932 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32933 echo ' ' >>$tmp/pconfig.h
32934 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32935
32936 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32937 echo ' ' >>$tmp/pconfig.h
32938 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32939 echo "#endif" >>$tmp/pconfig.h
32940 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032941 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32943 else
32944 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32945$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32946 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32947 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32948 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32949$as_echo X"$ac_prefix_conf_OUT" |
32950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32951 s//\1/
32952 q
32953 }
32954 /^X\(\/\/\)[^/].*/{
32955 s//\1/
32956 q
32957 }
32958 /^X\(\/\/\)$/{
32959 s//\1/
32960 q
32961 }
32962 /^X\(\/\).*/{
32963 s//\1/
32964 q
32965 }
32966 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032967 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032968 rm -f "$ac_prefix_conf_OUT"
32969 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32970 fi
32971 cp conftest.prefix _configs.sed
32972 else
cristy8b350f62009-11-15 23:12:43 +000032973 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 +000032974 fi
32975 rm -f conftest.*
32976fi
32977 ;;
32978 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32979 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32980 # are listed without --file. Let's play safe and only enable the eval
32981 # if we detect the quoting.
32982 case $CONFIG_FILES in
32983 *\'*) eval set x "$CONFIG_FILES" ;;
32984 *) set x $CONFIG_FILES ;;
32985 esac
32986 shift
32987 for mf
32988 do
32989 # Strip MF so we end up with the name of the file.
32990 mf=`echo "$mf" | sed -e 's/:.*$//'`
32991 # Check whether this is an Automake generated Makefile or not.
32992 # We used to match only the files named `Makefile.in', but
32993 # some people rename them; so instead we look at the file content.
32994 # Grep'ing the first line is not enough: some people post-process
32995 # each Makefile.in and add a new line on top of each file to say so.
32996 # Grep'ing the whole file is not good either: AIX grep has a line
32997 # limit of 2048, but all sed's we know have understand at least 4000.
32998 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32999 dirpart=`$as_dirname -- "$mf" ||
33000$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33001 X"$mf" : 'X\(//\)[^/]' \| \
33002 X"$mf" : 'X\(//\)$' \| \
33003 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33004$as_echo X"$mf" |
33005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33006 s//\1/
33007 q
33008 }
33009 /^X\(\/\/\)[^/].*/{
33010 s//\1/
33011 q
33012 }
33013 /^X\(\/\/\)$/{
33014 s//\1/
33015 q
33016 }
33017 /^X\(\/\).*/{
33018 s//\1/
33019 q
33020 }
33021 s/.*/./; q'`
33022 else
33023 continue
33024 fi
33025 # Extract the definition of DEPDIR, am__include, and am__quote
33026 # from the Makefile without running `make'.
33027 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33028 test -z "$DEPDIR" && continue
33029 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33030 test -z "am__include" && continue
33031 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33032 # When using ansi2knr, U may be empty or an underscore; expand it
33033 U=`sed -n 's/^U = //p' < "$mf"`
33034 # Find all dependency output files, they are included files with
33035 # $(DEPDIR) in their names. We invoke sed twice because it is the
33036 # simplest approach to changing $(DEPDIR) to its actual value in the
33037 # expansion.
33038 for file in `sed -n "
33039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33041 # Make sure the directory exists.
33042 test -f "$dirpart/$file" && continue
33043 fdir=`$as_dirname -- "$file" ||
33044$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33045 X"$file" : 'X\(//\)[^/]' \| \
33046 X"$file" : 'X\(//\)$' \| \
33047 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33048$as_echo X"$file" |
33049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33050 s//\1/
33051 q
33052 }
33053 /^X\(\/\/\)[^/].*/{
33054 s//\1/
33055 q
33056 }
33057 /^X\(\/\/\)$/{
33058 s//\1/
33059 q
33060 }
33061 /^X\(\/\).*/{
33062 s//\1/
33063 q
33064 }
33065 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033066 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033067 # echo "creating $dirpart/$file"
33068 echo '# dummy' > "$dirpart/$file"
33069 done
33070 done
33071}
33072 ;;
33073 "libtool":C)
33074
33075 # See if we are running on zsh, and set the options which allow our
33076 # commands through without removal of \ escapes.
33077 if test -n "${ZSH_VERSION+set}" ; then
33078 setopt NO_GLOB_SUBST
33079 fi
33080
33081 cfgfile="${ofile}T"
33082 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33083 $RM "$cfgfile"
33084
33085 cat <<_LT_EOF >> "$cfgfile"
33086#! $SHELL
33087
33088# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33089# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33090# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33091# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33092#
33093# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033094# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033095# Written by Gordon Matzigkeit, 1996
33096#
33097# This file is part of GNU Libtool.
33098#
33099# GNU Libtool is free software; you can redistribute it and/or
33100# modify it under the terms of the GNU General Public License as
33101# published by the Free Software Foundation; either version 2 of
33102# the License, or (at your option) any later version.
33103#
33104# As a special exception to the GNU General Public License,
33105# if you distribute this file as part of a program or library that
33106# is built using GNU Libtool, you may include this file under the
33107# same distribution terms that you use for the rest of that program.
33108#
33109# GNU Libtool is distributed in the hope that it will be useful,
33110# but WITHOUT ANY WARRANTY; without even the implied warranty of
33111# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33112# GNU General Public License for more details.
33113#
33114# You should have received a copy of the GNU General Public License
33115# along with GNU Libtool; see the file COPYING. If not, a copy
33116# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33117# obtained by writing to the Free Software Foundation, Inc.,
33118# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33119
33120
33121# The names of the tagged configurations supported by this script.
33122available_tags="CXX "
33123
33124# ### BEGIN LIBTOOL CONFIG
33125
33126# A sed program that does not truncate output.
33127SED=$lt_SED
33128
33129# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33130Xsed="\$SED -e 1s/^X//"
33131
33132# A grep program that handles long lines.
33133GREP=$lt_GREP
33134
33135# An ERE matcher.
33136EGREP=$lt_EGREP
33137
33138# A literal string matcher.
33139FGREP=$lt_FGREP
33140
33141# Which release of libtool.m4 was used?
33142macro_version=$macro_version
33143macro_revision=$macro_revision
33144
33145# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033146AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033147
33148# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033149DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033150
33151# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033152OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033153
33154# Whether or not to build shared libraries.
33155build_libtool_libs=$enable_shared
33156
33157# Whether or not to build static libraries.
33158build_old_libs=$enable_static
33159
33160# What type of objects to build.
33161pic_mode=$pic_mode
33162
33163# Whether or not to optimize for fast installation.
33164fast_install=$enable_fast_install
33165
33166# The host system.
33167host_alias=$host_alias
33168host=$host
33169host_os=$host_os
33170
33171# The build system.
33172build_alias=$build_alias
33173build=$build
33174build_os=$build_os
33175
33176# A BSD- or MS-compatible name lister.
33177NM=$lt_NM
33178
33179# Whether we need soft or hard links.
33180LN_S=$lt_LN_S
33181
33182# What is the maximum length of a command?
33183max_cmd_len=$max_cmd_len
33184
33185# Object file suffix (normally "o").
33186objext=$ac_objext
33187
33188# Executable file suffix (normally "").
33189exeext=$exeext
33190
33191# whether the shell understands "unset".
33192lt_unset=$lt_unset
33193
33194# turn spaces into newlines.
33195SP2NL=$lt_lt_SP2NL
33196
33197# turn newlines into spaces.
33198NL2SP=$lt_lt_NL2SP
33199
cristy18304f92009-11-22 15:48:26 +000033200# How to create reloadable object files.
33201reload_flag=$lt_reload_flag
33202reload_cmds=$lt_reload_cmds
33203
cristy3ed852e2009-09-05 21:47:34 +000033204# Method to check whether dependent libraries are shared objects.
33205deplibs_check_method=$lt_deplibs_check_method
33206
33207# Command to use when deplibs_check_method == "file_magic".
33208file_magic_cmd=$lt_file_magic_cmd
33209
33210# The archiver.
33211AR=$lt_AR
33212AR_FLAGS=$lt_AR_FLAGS
33213
33214# A symbol stripping program.
33215STRIP=$lt_STRIP
33216
33217# Commands used to install an old-style archive.
33218RANLIB=$lt_RANLIB
33219old_postinstall_cmds=$lt_old_postinstall_cmds
33220old_postuninstall_cmds=$lt_old_postuninstall_cmds
33221
33222# A C compiler.
33223LTCC=$lt_CC
33224
33225# LTCC compiler flags.
33226LTCFLAGS=$lt_CFLAGS
33227
33228# Take the output of nm and produce a listing of raw symbols and C names.
33229global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33230
33231# Transform the output of nm in a proper C declaration.
33232global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33233
33234# Transform the output of nm in a C name address pair.
33235global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33236
33237# Transform the output of nm in a C name address pair when lib prefix is needed.
33238global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33239
33240# The name of the directory that contains temporary libtool files.
33241objdir=$objdir
33242
cristy18304f92009-11-22 15:48:26 +000033243# Shell to use when invoking shell scripts.
33244SHELL=$lt_SHELL
33245
33246# An echo program that does not interpret backslashes.
33247ECHO=$lt_ECHO
33248
cristy3ed852e2009-09-05 21:47:34 +000033249# Used to examine libraries when file_magic_cmd begins with "file".
33250MAGIC_CMD=$MAGIC_CMD
33251
33252# Must we lock files when doing compilation?
33253need_locks=$lt_need_locks
33254
33255# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33256DSYMUTIL=$lt_DSYMUTIL
33257
33258# Tool to change global to local symbols on Mac OS X.
33259NMEDIT=$lt_NMEDIT
33260
33261# Tool to manipulate fat objects and archives on Mac OS X.
33262LIPO=$lt_LIPO
33263
33264# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33265OTOOL=$lt_OTOOL
33266
33267# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33268OTOOL64=$lt_OTOOL64
33269
33270# Old archive suffix (normally "a").
33271libext=$libext
33272
33273# Shared library suffix (normally ".so").
33274shrext_cmds=$lt_shrext_cmds
33275
33276# The commands to extract the exported symbol list from a shared archive.
33277extract_expsyms_cmds=$lt_extract_expsyms_cmds
33278
33279# Variables whose values should be saved in libtool wrapper scripts and
33280# restored at link time.
33281variables_saved_for_relink=$lt_variables_saved_for_relink
33282
33283# Do we need the "lib" prefix for modules?
33284need_lib_prefix=$need_lib_prefix
33285
33286# Do we need a version for libraries?
33287need_version=$need_version
33288
33289# Library versioning type.
33290version_type=$version_type
33291
33292# Shared library runtime path variable.
33293runpath_var=$runpath_var
33294
33295# Shared library path variable.
33296shlibpath_var=$shlibpath_var
33297
33298# Is shlibpath searched before the hard-coded library search path?
33299shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33300
33301# Format of library name prefix.
33302libname_spec=$lt_libname_spec
33303
33304# List of archive names. First name is the real one, the rest are links.
33305# The last name is the one that the linker finds with -lNAME
33306library_names_spec=$lt_library_names_spec
33307
33308# The coded name of the library, if different from the real name.
33309soname_spec=$lt_soname_spec
33310
33311# Command to use after installation of a shared archive.
33312postinstall_cmds=$lt_postinstall_cmds
33313
33314# Command to use after uninstallation of a shared archive.
33315postuninstall_cmds=$lt_postuninstall_cmds
33316
33317# Commands used to finish a libtool library installation in a directory.
33318finish_cmds=$lt_finish_cmds
33319
33320# As "finish_cmds", except a single script fragment to be evaled but
33321# not shown.
33322finish_eval=$lt_finish_eval
33323
33324# Whether we should hardcode library paths into libraries.
33325hardcode_into_libs=$hardcode_into_libs
33326
33327# Compile-time system search path for libraries.
33328sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33329
33330# Run-time system search path for libraries.
33331sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33332
33333# Whether dlopen is supported.
33334dlopen_support=$enable_dlopen
33335
33336# Whether dlopen of programs is supported.
33337dlopen_self=$enable_dlopen_self
33338
33339# Whether dlopen of statically linked programs is supported.
33340dlopen_self_static=$enable_dlopen_self_static
33341
33342# Commands to strip libraries.
33343old_striplib=$lt_old_striplib
33344striplib=$lt_striplib
33345
33346
33347# The linker used to build libraries.
33348LD=$lt_LD
33349
33350# Commands used to build an old-style archive.
33351old_archive_cmds=$lt_old_archive_cmds
33352
33353# A language specific compiler.
33354CC=$lt_compiler
33355
33356# Is the compiler the GNU compiler?
33357with_gcc=$GCC
33358
33359# Compiler flag to turn off builtin functions.
33360no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33361
33362# How to pass a linker flag through the compiler.
33363wl=$lt_lt_prog_compiler_wl
33364
33365# Additional compiler flags for building library objects.
33366pic_flag=$lt_lt_prog_compiler_pic
33367
33368# Compiler flag to prevent dynamic linking.
33369link_static_flag=$lt_lt_prog_compiler_static
33370
33371# Does compiler simultaneously support -c and -o options?
33372compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33373
33374# Whether or not to add -lc for building shared libraries.
33375build_libtool_need_lc=$archive_cmds_need_lc
33376
33377# Whether or not to disallow shared libs when runtime libs are static.
33378allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33379
33380# Compiler flag to allow reflexive dlopens.
33381export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33382
33383# Compiler flag to generate shared objects directly from archives.
33384whole_archive_flag_spec=$lt_whole_archive_flag_spec
33385
33386# Whether the compiler copes with passing no objects directly.
33387compiler_needs_object=$lt_compiler_needs_object
33388
33389# Create an old-style archive from a shared archive.
33390old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33391
33392# Create a temporary old-style archive to link instead of a shared archive.
33393old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33394
33395# Commands used to build a shared archive.
33396archive_cmds=$lt_archive_cmds
33397archive_expsym_cmds=$lt_archive_expsym_cmds
33398
33399# Commands used to build a loadable module if different from building
33400# a shared archive.
33401module_cmds=$lt_module_cmds
33402module_expsym_cmds=$lt_module_expsym_cmds
33403
33404# Whether we are building with GNU ld or not.
33405with_gnu_ld=$lt_with_gnu_ld
33406
33407# Flag that allows shared libraries with undefined symbols to be built.
33408allow_undefined_flag=$lt_allow_undefined_flag
33409
33410# Flag that enforces no undefined symbols.
33411no_undefined_flag=$lt_no_undefined_flag
33412
33413# Flag to hardcode \$libdir into a binary during linking.
33414# This must work even if \$libdir does not exist
33415hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33416
33417# If ld is used when linking, flag to hardcode \$libdir into a binary
33418# during linking. This must work even if \$libdir does not exist.
33419hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33420
33421# Whether we need a single "-rpath" flag with a separated argument.
33422hardcode_libdir_separator=$lt_hardcode_libdir_separator
33423
33424# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33425# DIR into the resulting binary.
33426hardcode_direct=$hardcode_direct
33427
33428# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33429# DIR into the resulting binary and the resulting library dependency is
33430# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33431# library is relocated.
33432hardcode_direct_absolute=$hardcode_direct_absolute
33433
33434# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33435# into the resulting binary.
33436hardcode_minus_L=$hardcode_minus_L
33437
33438# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33439# into the resulting binary.
33440hardcode_shlibpath_var=$hardcode_shlibpath_var
33441
33442# Set to "yes" if building a shared library automatically hardcodes DIR
33443# into the library and all subsequent libraries and executables linked
33444# against it.
33445hardcode_automatic=$hardcode_automatic
33446
33447# Set to yes if linker adds runtime paths of dependent libraries
33448# to runtime path list.
33449inherit_rpath=$inherit_rpath
33450
33451# Whether libtool must link a program against all its dependency libraries.
33452link_all_deplibs=$link_all_deplibs
33453
33454# Fix the shell variable \$srcfile for the compiler.
33455fix_srcfile_path=$lt_fix_srcfile_path
33456
33457# Set to "yes" if exported symbols are required.
33458always_export_symbols=$always_export_symbols
33459
33460# The commands to list exported symbols.
33461export_symbols_cmds=$lt_export_symbols_cmds
33462
33463# Symbols that should not be listed in the preloaded symbols.
33464exclude_expsyms=$lt_exclude_expsyms
33465
33466# Symbols that must always be exported.
33467include_expsyms=$lt_include_expsyms
33468
33469# Commands necessary for linking programs (against libraries) with templates.
33470prelink_cmds=$lt_prelink_cmds
33471
33472# Specify filename containing input files.
33473file_list_spec=$lt_file_list_spec
33474
33475# How to hardcode a shared library path into an executable.
33476hardcode_action=$hardcode_action
33477
33478# The directories searched by this compiler when creating a shared library.
33479compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33480
33481# Dependencies to place before and after the objects being linked to
33482# create a shared library.
33483predep_objects=$lt_predep_objects
33484postdep_objects=$lt_postdep_objects
33485predeps=$lt_predeps
33486postdeps=$lt_postdeps
33487
33488# The library search path used internally by the compiler when linking
33489# a shared library.
33490compiler_lib_search_path=$lt_compiler_lib_search_path
33491
33492# ### END LIBTOOL CONFIG
33493
33494_LT_EOF
33495
33496 case $host_os in
33497 aix3*)
33498 cat <<\_LT_EOF >> "$cfgfile"
33499# AIX sometimes has problems with the GCC collect2 program. For some
33500# reason, if we set the COLLECT_NAMES environment variable, the problems
33501# vanish in a puff of smoke.
33502if test "X${COLLECT_NAMES+set}" != Xset; then
33503 COLLECT_NAMES=
33504 export COLLECT_NAMES
33505fi
33506_LT_EOF
33507 ;;
33508 esac
33509
33510
33511ltmain="$ac_aux_dir/ltmain.sh"
33512
33513
33514 # We use sed instead of cat because bash on DJGPP gets confused if
33515 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33516 # text mode, it properly converts lines to CR/LF. This bash problem
33517 # is reportedly fixed, but why not run on old versions too?
33518 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33519 || (rm -f "$cfgfile"; exit 1)
33520
33521 case $xsi_shell in
33522 yes)
33523 cat << \_LT_EOF >> "$cfgfile"
33524
33525# func_dirname file append nondir_replacement
33526# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33527# otherwise set result to NONDIR_REPLACEMENT.
33528func_dirname ()
33529{
33530 case ${1} in
33531 */*) func_dirname_result="${1%/*}${2}" ;;
33532 * ) func_dirname_result="${3}" ;;
33533 esac
33534}
33535
33536# func_basename file
33537func_basename ()
33538{
33539 func_basename_result="${1##*/}"
33540}
33541
33542# func_dirname_and_basename file append nondir_replacement
33543# perform func_basename and func_dirname in a single function
33544# call:
33545# dirname: Compute the dirname of FILE. If nonempty,
33546# add APPEND to the result, otherwise set result
33547# to NONDIR_REPLACEMENT.
33548# value returned in "$func_dirname_result"
33549# basename: Compute filename of FILE.
33550# value retuned in "$func_basename_result"
33551# Implementation must be kept synchronized with func_dirname
33552# and func_basename. For efficiency, we do not delegate to
33553# those functions but instead duplicate the functionality here.
33554func_dirname_and_basename ()
33555{
33556 case ${1} in
33557 */*) func_dirname_result="${1%/*}${2}" ;;
33558 * ) func_dirname_result="${3}" ;;
33559 esac
33560 func_basename_result="${1##*/}"
33561}
33562
33563# func_stripname prefix suffix name
33564# strip PREFIX and SUFFIX off of NAME.
33565# PREFIX and SUFFIX must not contain globbing or regex special
33566# characters, hashes, percent signs, but SUFFIX may contain a leading
33567# dot (in which case that matches only a dot).
33568func_stripname ()
33569{
33570 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33571 # positional parameters, so assign one to ordinary parameter first.
33572 func_stripname_result=${3}
33573 func_stripname_result=${func_stripname_result#"${1}"}
33574 func_stripname_result=${func_stripname_result%"${2}"}
33575}
33576
33577# func_opt_split
33578func_opt_split ()
33579{
33580 func_opt_split_opt=${1%%=*}
33581 func_opt_split_arg=${1#*=}
33582}
33583
33584# func_lo2o object
33585func_lo2o ()
33586{
33587 case ${1} in
33588 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33589 *) func_lo2o_result=${1} ;;
33590 esac
33591}
33592
33593# func_xform libobj-or-source
33594func_xform ()
33595{
33596 func_xform_result=${1%.*}.lo
33597}
33598
33599# func_arith arithmetic-term...
33600func_arith ()
33601{
33602 func_arith_result=$(( $* ))
33603}
33604
33605# func_len string
33606# STRING may not start with a hyphen.
33607func_len ()
33608{
33609 func_len_result=${#1}
33610}
33611
33612_LT_EOF
33613 ;;
33614 *) # Bourne compatible functions.
33615 cat << \_LT_EOF >> "$cfgfile"
33616
33617# func_dirname file append nondir_replacement
33618# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33619# otherwise set result to NONDIR_REPLACEMENT.
33620func_dirname ()
33621{
33622 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000033623 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033624 if test "X$func_dirname_result" = "X${1}"; then
33625 func_dirname_result="${3}"
33626 else
33627 func_dirname_result="$func_dirname_result${2}"
33628 fi
33629}
33630
33631# func_basename file
33632func_basename ()
33633{
cristy18304f92009-11-22 15:48:26 +000033634 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033635}
33636
33637
33638# func_stripname prefix suffix name
33639# strip PREFIX and SUFFIX off of NAME.
33640# PREFIX and SUFFIX must not contain globbing or regex special
33641# characters, hashes, percent signs, but SUFFIX may contain a leading
33642# dot (in which case that matches only a dot).
33643# func_strip_suffix prefix name
33644func_stripname ()
33645{
33646 case ${2} in
cristy18304f92009-11-22 15:48:26 +000033647 .*) func_stripname_result=`$ECHO "X${3}" \
33648 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33649 *) func_stripname_result=`$ECHO "X${3}" \
33650 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033651 esac
33652}
33653
33654# sed scripts:
33655my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33656my_sed_long_arg='1s/^-[^=]*=//'
33657
33658# func_opt_split
33659func_opt_split ()
33660{
cristy18304f92009-11-22 15:48:26 +000033661 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33662 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033663}
33664
33665# func_lo2o object
33666func_lo2o ()
33667{
cristy18304f92009-11-22 15:48:26 +000033668 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033669}
33670
33671# func_xform libobj-or-source
33672func_xform ()
33673{
cristy18304f92009-11-22 15:48:26 +000033674 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033675}
33676
33677# func_arith arithmetic-term...
33678func_arith ()
33679{
33680 func_arith_result=`expr "$@"`
33681}
33682
33683# func_len string
33684# STRING may not start with a hyphen.
33685func_len ()
33686{
33687 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33688}
33689
33690_LT_EOF
33691esac
33692
33693case $lt_shell_append in
33694 yes)
33695 cat << \_LT_EOF >> "$cfgfile"
33696
33697# func_append var value
33698# Append VALUE to the end of shell variable VAR.
33699func_append ()
33700{
33701 eval "$1+=\$2"
33702}
33703_LT_EOF
33704 ;;
33705 *)
33706 cat << \_LT_EOF >> "$cfgfile"
33707
33708# func_append var value
33709# Append VALUE to the end of shell variable VAR.
33710func_append ()
33711{
33712 eval "$1=\$$1\$2"
33713}
33714
33715_LT_EOF
33716 ;;
33717 esac
33718
33719
33720 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33721 || (rm -f "$cfgfile"; exit 1)
33722
33723 mv -f "$cfgfile" "$ofile" ||
33724 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33725 chmod +x "$ofile"
33726
33727
33728 cat <<_LT_EOF >> "$ofile"
33729
33730# ### BEGIN LIBTOOL TAG CONFIG: CXX
33731
33732# The linker used to build libraries.
33733LD=$lt_LD_CXX
33734
33735# Commands used to build an old-style archive.
33736old_archive_cmds=$lt_old_archive_cmds_CXX
33737
33738# A language specific compiler.
33739CC=$lt_compiler_CXX
33740
33741# Is the compiler the GNU compiler?
33742with_gcc=$GCC_CXX
33743
33744# Compiler flag to turn off builtin functions.
33745no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33746
33747# How to pass a linker flag through the compiler.
33748wl=$lt_lt_prog_compiler_wl_CXX
33749
33750# Additional compiler flags for building library objects.
33751pic_flag=$lt_lt_prog_compiler_pic_CXX
33752
33753# Compiler flag to prevent dynamic linking.
33754link_static_flag=$lt_lt_prog_compiler_static_CXX
33755
33756# Does compiler simultaneously support -c and -o options?
33757compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33758
33759# Whether or not to add -lc for building shared libraries.
33760build_libtool_need_lc=$archive_cmds_need_lc_CXX
33761
33762# Whether or not to disallow shared libs when runtime libs are static.
33763allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33764
33765# Compiler flag to allow reflexive dlopens.
33766export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33767
33768# Compiler flag to generate shared objects directly from archives.
33769whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33770
33771# Whether the compiler copes with passing no objects directly.
33772compiler_needs_object=$lt_compiler_needs_object_CXX
33773
33774# Create an old-style archive from a shared archive.
33775old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33776
33777# Create a temporary old-style archive to link instead of a shared archive.
33778old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33779
33780# Commands used to build a shared archive.
33781archive_cmds=$lt_archive_cmds_CXX
33782archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33783
33784# Commands used to build a loadable module if different from building
33785# a shared archive.
33786module_cmds=$lt_module_cmds_CXX
33787module_expsym_cmds=$lt_module_expsym_cmds_CXX
33788
33789# Whether we are building with GNU ld or not.
33790with_gnu_ld=$lt_with_gnu_ld_CXX
33791
33792# Flag that allows shared libraries with undefined symbols to be built.
33793allow_undefined_flag=$lt_allow_undefined_flag_CXX
33794
33795# Flag that enforces no undefined symbols.
33796no_undefined_flag=$lt_no_undefined_flag_CXX
33797
33798# Flag to hardcode \$libdir into a binary during linking.
33799# This must work even if \$libdir does not exist
33800hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33801
33802# If ld is used when linking, flag to hardcode \$libdir into a binary
33803# during linking. This must work even if \$libdir does not exist.
33804hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33805
33806# Whether we need a single "-rpath" flag with a separated argument.
33807hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33808
33809# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33810# DIR into the resulting binary.
33811hardcode_direct=$hardcode_direct_CXX
33812
33813# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33814# DIR into the resulting binary and the resulting library dependency is
33815# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33816# library is relocated.
33817hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33818
33819# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33820# into the resulting binary.
33821hardcode_minus_L=$hardcode_minus_L_CXX
33822
33823# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33824# into the resulting binary.
33825hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33826
33827# Set to "yes" if building a shared library automatically hardcodes DIR
33828# into the library and all subsequent libraries and executables linked
33829# against it.
33830hardcode_automatic=$hardcode_automatic_CXX
33831
33832# Set to yes if linker adds runtime paths of dependent libraries
33833# to runtime path list.
33834inherit_rpath=$inherit_rpath_CXX
33835
33836# Whether libtool must link a program against all its dependency libraries.
33837link_all_deplibs=$link_all_deplibs_CXX
33838
33839# Fix the shell variable \$srcfile for the compiler.
33840fix_srcfile_path=$lt_fix_srcfile_path_CXX
33841
33842# Set to "yes" if exported symbols are required.
33843always_export_symbols=$always_export_symbols_CXX
33844
33845# The commands to list exported symbols.
33846export_symbols_cmds=$lt_export_symbols_cmds_CXX
33847
33848# Symbols that should not be listed in the preloaded symbols.
33849exclude_expsyms=$lt_exclude_expsyms_CXX
33850
33851# Symbols that must always be exported.
33852include_expsyms=$lt_include_expsyms_CXX
33853
33854# Commands necessary for linking programs (against libraries) with templates.
33855prelink_cmds=$lt_prelink_cmds_CXX
33856
33857# Specify filename containing input files.
33858file_list_spec=$lt_file_list_spec_CXX
33859
33860# How to hardcode a shared library path into an executable.
33861hardcode_action=$hardcode_action_CXX
33862
33863# The directories searched by this compiler when creating a shared library.
33864compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33865
33866# Dependencies to place before and after the objects being linked to
33867# create a shared library.
33868predep_objects=$lt_predep_objects_CXX
33869postdep_objects=$lt_postdep_objects_CXX
33870predeps=$lt_predeps_CXX
33871postdeps=$lt_postdeps_CXX
33872
33873# The library search path used internally by the compiler when linking
33874# a shared library.
33875compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33876
33877# ### END LIBTOOL TAG CONFIG: CXX
33878_LT_EOF
33879
33880 ;;
33881 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33882 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33883 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33884 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33885 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33886 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33887
33888 esac
33889done # for ac_tag
33890
33891
cristy8b350f62009-11-15 23:12:43 +000033892as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033893_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033894ac_clean_files=$ac_clean_files_save
33895
33896test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033897 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033898
33899
33900# configure is writing to config.log, and then calls config.status.
33901# config.status does its own redirection, appending to config.log.
33902# Unfortunately, on DOS this fails, as config.log is still kept open
33903# by configure, so config.status won't be able to write to it; its
33904# output is simply discarded. So we exec the FD to /dev/null,
33905# effectively closing config.log, so it can be properly (re)opened and
33906# appended to by config.status. When coming back to configure, we
33907# need to make the FD available again.
33908if test "$no_create" != yes; then
33909 ac_cs_success=:
33910 ac_config_status_args=
33911 test "$silent" = yes &&
33912 ac_config_status_args="$ac_config_status_args --quiet"
33913 exec 5>/dev/null
33914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33915 exec 5>>config.log
33916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33917 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033918 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033919fi
33920if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033922$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33923fi
33924
33925
33926rm -f magick-version
33927
33928result_ghostscript_font_dir='none'
33929if test "${ghostscript_font_dir}x" != 'x'; then
33930 result_ghostscript_font_dir=$ghostscript_font_dir
33931fi
33932
33933result_windows_font_dir='none'
33934if test "${windows_font_dir}x" != 'x'; then
33935 result_windows_font_dir=${windows_font_dir}
33936fi
33937
cristy8b350f62009-11-15 23:12:43 +000033938{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033939ImageMagick is configured as follows. Please verify that this configuration
33940matches your expectations.
33941
33942Host system type: $host
33943Build system type: $build
33944
33945 Option Value
33946-------------------------------------------------------------------------------
33947Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33948Static libraries --enable-static=$enable_static $libtool_build_static_libs
33949Module support --with-modules=$with_modules $with_modules
33950GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33951Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33952High Dynamic Range Imagery
33953 --enable-hdri=$enable_hdri $enable_hdri
33954
33955Delegate Configuration:
33956BZLIB --with-bzlib=$with_bzlib $have_bzlib
33957Autotrace --with-autotrace=$with_autotrace $have_autotrace
33958DJVU --with-djvu=$with_djvu $have_djvu
33959DPS --with-dps=$with_dps $have_dps
33960FFTW --with-fftw=$with_fftw $have_fftw
33961FlashPIX --with-fpx=$with_fpx $have_fpx
33962FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33963FreeType --with-freetype=$with_freetype $have_freetype
33964GhostPCL None $PCLDelegate ($PCLVersion)
33965GhostXPS None $XPSDelegate ($XPSVersion)
33966Ghostscript None $PSDelegate ($GSVersion)
33967Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33968Ghostscript lib --with-gslib=$with_gslib $have_gslib
33969Graphviz --with-gvc=$with_gvc $have_gvc
33970JBIG --with-jbig=$with_jbig $have_jbig
33971JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33972JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33973LCMS --with-lcms=$with_lcms $have_lcms
33974LQR --with-lqr=$with_lqr $have_lqr
33975Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33976OpenEXR --with-openexr=$with_openexr $have_openexr
33977PERL --with-perl=$with_perl $have_perl
33978PNG --with-png=$with_png $have_png
33979RSVG --with-rsvg=$with_rsvg $have_rsvg
33980TIFF --with-tiff=$with_tiff $have_tiff
33981Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33982WMF --with-wmf=$with_wmf $have_wmf
33983X11 --with-x=$with_x $have_x
33984XML --with-xml=$with_xml $have_xml
33985ZLIB --with-zlib=$with_zlib $have_zlib
33986
33987X11 Configuration:
33988 X_CFLAGS = $X_CFLAGS
33989 X_PRE_LIBS = $X_PRE_LIBS
33990 X_LIBS = $X_LIBS
33991 X_EXTRA_LIBS = $X_EXTRA_LIBS
33992
33993Options used to compile and link:
33994 PREFIX = $PREFIX_DIR
33995 EXEC-PREFIX = $EXEC_PREFIX_DIR
33996 VERSION = $PACKAGE_VERSION
33997 CC = $CC
33998 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033999 CPPFLAGS = $MAGICK_CPPFLAGS
34000 PCFLAGS = $MAGICK_PCFLAGS
34001 DEFS = $DEFS
34002 LDFLAGS = $LDFLAGS
34003 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34004 LIBS = $MAGICK_LIBS
34005 CXX = $CXX
34006 CXXFLAGS = $CXXFLAGS
34007" >&5
34008$as_echo "
34009ImageMagick is configured as follows. Please verify that this configuration
34010matches your expectations.
34011
34012Host system type: $host
34013Build system type: $build
34014
34015 Option Value
34016-------------------------------------------------------------------------------
34017Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34018Static libraries --enable-static=$enable_static $libtool_build_static_libs
34019Module support --with-modules=$with_modules $with_modules
34020GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34021Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34022High Dynamic Range Imagery
34023 --enable-hdri=$enable_hdri $enable_hdri
34024
34025Delegate Configuration:
34026BZLIB --with-bzlib=$with_bzlib $have_bzlib
34027Autotrace --with-autotrace=$with_autotrace $have_autotrace
34028DJVU --with-djvu=$with_djvu $have_djvu
34029DPS --with-dps=$with_dps $have_dps
34030FFTW --with-fftw=$with_fftw $have_fftw
34031FlashPIX --with-fpx=$with_fpx $have_fpx
34032FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34033FreeType --with-freetype=$with_freetype $have_freetype
34034GhostPCL None $PCLDelegate ($PCLVersion)
34035GhostXPS None $XPSDelegate ($XPSVersion)
34036Ghostscript None $PSDelegate ($GSVersion)
34037Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34038Ghostscript lib --with-gslib=$with_gslib $have_gslib
34039Graphviz --with-gvc=$with_gvc $have_gvc
34040JBIG --with-jbig=$with_jbig $have_jbig
34041JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34042JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34043LCMS --with-lcms=$with_lcms $have_lcms
34044LQR --with-lqr=$with_lqr $have_lqr
34045Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34046OpenEXR --with-openexr=$with_openexr $have_openexr
34047PERL --with-perl=$with_perl $have_perl
34048PNG --with-png=$with_png $have_png
34049RSVG --with-rsvg=$with_rsvg $have_rsvg
34050TIFF --with-tiff=$with_tiff $have_tiff
34051Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34052WMF --with-wmf=$with_wmf $have_wmf
34053X11 --with-x=$with_x $have_x
34054XML --with-xml=$with_xml $have_xml
34055ZLIB --with-zlib=$with_zlib $have_zlib
34056
34057X11 Configuration:
34058 X_CFLAGS = $X_CFLAGS
34059 X_PRE_LIBS = $X_PRE_LIBS
34060 X_LIBS = $X_LIBS
34061 X_EXTRA_LIBS = $X_EXTRA_LIBS
34062
34063Options used to compile and link:
34064 PREFIX = $PREFIX_DIR
34065 EXEC-PREFIX = $EXEC_PREFIX_DIR
34066 VERSION = $PACKAGE_VERSION
34067 CC = $CC
34068 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034069 CPPFLAGS = $MAGICK_CPPFLAGS
34070 PCFLAGS = $MAGICK_PCFLAGS
34071 DEFS = $DEFS
34072 LDFLAGS = $LDFLAGS
34073 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34074 LIBS = $MAGICK_LIBS
34075 CXX = $CXX
34076 CXXFLAGS = $CXXFLAGS
34077" >&6; }