blob: 9b9b10e9a06a0d121443962192c9a1e14d818d00 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyb36feb22010-03-26 16:54:37 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.1.
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'
cristyb36feb22010-03-26 16:54:37 +0000708PACKAGE_VERSION='6.6.1'
709PACKAGE_STRING='ImageMagick 6.6.1'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000776PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000777GSVersion
778GSPSDevice
779GSPDFDevice
780GSMonoDevice
781GSEPSDevice
782GSColorDevice
783GSCMYKDevice
784GSAlphaDevice
785XPSVersion
786XPSCMYKDevice
787XPSColorDevice
788XPSMonoDevice
789PCLVersion
790PCLCMYKDevice
791PCLColorDevice
792PCLMonoDevice
793ZIP_DELEGATE_FALSE
794ZIP_DELEGATE_TRUE
795ZIP
796P7ZIP_DELEGATE_FALSE
797P7ZIP_DELEGATE_TRUE
798P7ZIP
799RPM_DELEGATE_FALSE
800RPM_DELEGATE_TRUE
801RPM
802PERL
803TAR
804ShowImageDelegate
805type_include_files
806ghostscript_font_dir
807windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000808dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000809PrintDelegate
810ZipDelegate
811XPSDelegate
812WWWDecodeDelegate
813WMFDecodeDelegate
814TXTDelegate
815SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000816RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000817RMDelegate
818RLEEncodeDelegate
819PSDelegate
820POVDelegate
821PGPDecodeDelegate
822PCLDelegate
823MVDelegate
824MPEGEncodeDelegate
825MPEGDecodeDelegate
826MANDelegate
827LaunchDelegate
828LZWEncodeDelegate
829LZWDecodeDelegate
830LPRDelegate
831LPDelegate
832ILBMEncodeDelegate
833ILBMDecodeDelegate
834HTMLDecodeDelegate
835HPGLDecodeDelegate
836HDRDecodeDelegate
837GnuplotDecodeDelegate
838MogrifyDelegate
839DisplayDelegate
840ConvertDelegate
841FIGDecodeDelegate
842EditorDelegate
843EchoDelegate
844DVIDecodeDelegate
845GVCDecodeDelegate
846DNGDecodeDelegate
847CatDelegate
848CGMDecodeDelegate
849BrowseDelegate
850BZIPDelegate
851BlenderDecodeDelegate
852AVIDecodeDelegate
853AutotraceDecodeDelegate
854SHARE_CONFIGURE_PATH
855SHARE_PATH
856DOCUMENTATION_PATH
857FILTER_PATH
858CODER_PATH
859CONFIGURE_PATH
860LIBRARY_PATH
861EXECUTABLE_PATH
862PERLMAINCC
863XML_LIBS
864XML_DELEGATE_FALSE
865XML_DELEGATE_TRUE
866xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000867WMF_LIBS
868WMF_DELEGATE_FALSE
869WMF_DELEGATE_TRUE
870TIFF_LIBS
871TIFF_DELEGATE_FALSE
872TIFF_DELEGATE_TRUE
873CAIRO_DELEGATE_FALSE
874CAIRO_DELEGATE_TRUE
875RSVG_DELEGATE_FALSE
876RSVG_DELEGATE_TRUE
877CAIRO_SVG_LIBS
878CAIRO_SVG_CFLAGS
879RSVG_LIBS
880RSVG_CFLAGS
881PNG_LIBS
882PNG_DELEGATE_FALSE
883PNG_DELEGATE_TRUE
884OPENEXR_DELEGATE_FALSE
885OPENEXR_DELEGATE_TRUE
886OPENEXR_LIBS
887OPENEXR_CFLAGS
888LQR_DELEGATE_FALSE
889LQR_DELEGATE_TRUE
890LQR_LIBS
891LQR_CFLAGS
892LCMS_LIBS
893LCMS_DELEGATE_FALSE
894LCMS_DELEGATE_TRUE
895JP2_LIBS
896JP2_DELEGATE_FALSE
897JP2_DELEGATE_TRUE
898JPEG_LIBS
899JPEG_DELEGATE_FALSE
900JPEG_DELEGATE_TRUE
901JBIG_LIBS
902JBIG_DELEGATE_FALSE
903JBIG_DELEGATE_TRUE
904GVC_DELEGATE_FALSE
905GVC_DELEGATE_TRUE
906GVC_LIBS
907GVC_CFLAGS
908GS_LIBS
909GS_DELEGATE_FALSE
910GS_DELEGATE_TRUE
911FREETYPE_LIBS
912FREETYPE_DELEGATE_FALSE
913FREETYPE_DELEGATE_TRUE
914freetype_config
915FONTCONFIG_DELEGATE_FALSE
916FONTCONFIG_DELEGATE_TRUE
917FONTCONFIG_LIBS
918FONTCONFIG_CFLAGS
919FPX_LIBS
920FPX_DELEGATE_FALSE
921FPX_DELEGATE_TRUE
922FFTW_LIBS
923FFTW_DELEGATE_FALSE
924FFTW_DELEGATE_TRUE
925DJVU_LIBS
926DJVU_DELEGATE_FALSE
927DJVU_DELEGATE_TRUE
928DPS_LIBS
929DPS_DELEGATE_FALSE
930DPS_DELEGATE_TRUE
931AUTOTRACE_DELEGATE_FALSE
932AUTOTRACE_DELEGATE_TRUE
933AUTOTRACE_LIBS
934AUTOTRACE_CFLAGS
935LIB_DL
936ZLIB_LIBS
937ZLIB_DELEGATE_FALSE
938ZLIB_DELEGATE_TRUE
939XEXT_LIBS
940X11_LIBS
941X11_DELEGATE_FALSE
942X11_DELEGATE_TRUE
943X_EXTRA_LIBS
944X_LIBS
945X_PRE_LIBS
946X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000947XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000948BZLIB_LIBS
949BZLIB_DELEGATE_FALSE
950BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000951CCMALLOCDelegate
952UMEM_LIBS
953HasUMEM_FALSE
954HasUMEM_TRUE
955THREAD_LIBS
956GOMP_LIBS
957WITH_MAGICK_PLUS_PLUS_FALSE
958WITH_MAGICK_PLUS_PLUS_TRUE
959OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000960MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000961POW_LIB
962LIBOBJS
963UINTPTR_T
964UINTMAX_T
965UINT64_T
966INT64_T
967UINT32_T
968INT32_T
969UINT16_T
970INT16_T
971UINT8_T
972INT8_T
973LIBRARY_EXTRA_CPPFLAGS
974MODULE_EXTRA_CPPFLAGS
975LIBSTDCLDFLAGS
976PERL_MAKE_OPTIONS
977QUANTUM_DEPTH
978MAINT
979MAINTAINER_MODE_FALSE
980MAINTAINER_MODE_TRUE
981MAGICK_HDRI
982DLLDFLAGS
983WITH_LTDL_FALSE
984WITH_LTDL_TRUE
985WITH_MODULES_FALSE
986WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000987WITH_SHARED_LIBS_FALSE
988WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000989LTDLOPEN
990LT_CONFIG_H
991CONVENIENCE_LTDL_FALSE
992CONVENIENCE_LTDL_TRUE
993INSTALL_LTDL_FALSE
994INSTALL_LTDL_TRUE
995ARGZ_H
996sys_symbol_underscore
997LIBADD_DL
998LT_DLPREOPEN
999LIBADD_DLD_LINK
1000LIBADD_SHL_LOAD
1001LIBADD_DLOPEN
1002LT_DLLOADERS
1003INCLTDL
1004LTDLINCL
1005LTDLDEPS
1006LIBLTDL
1007LIBTOOL_DEPS
1008CXXCPP
1009OTOOL64
1010OTOOL
1011LIPO
1012NMEDIT
1013DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001014lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001015RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001016AR
1017NM
1018ac_ct_DUMPBIN
1019DUMPBIN
1020LIBTOOL
1021OBJDUMP
1022DLLTOOL
1023AS
1024LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001025CL_LIBS
1026CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001027OPENMP_CFLAGS
1028PTHREAD_CFLAGS
1029PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001030PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +00001031ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001032WinPathScript
1033USING_CL_FALSE
1034USING_CL_TRUE
1035CYGWIN_BUILD_FALSE
1036CYGWIN_BUILD_TRUE
1037WIN32_NATIVE_BUILD_FALSE
1038WIN32_NATIVE_BUILD_TRUE
1039WINGDI32_DELEGATE_FALSE
1040WINGDI32_DELEGATE_TRUE
1041GDI32_LIBS
1042PKG_CONFIG
1043LN_S
cristy3ed852e2009-09-05 21:47:34 +00001044LD
1045FGREP
cristy3ed852e2009-09-05 21:47:34 +00001046SED
cristy95646052009-11-28 23:05:30 +00001047am__fastdepCXX_FALSE
1048am__fastdepCXX_TRUE
1049CXXDEPMODE
1050ac_ct_CXX
1051CXXFLAGS
1052CXX
cristya0b81c32010-01-22 02:54:33 +00001053EGREP
1054GREP
1055CPP
cristy3ed852e2009-09-05 21:47:34 +00001056am__fastdepCC_FALSE
1057am__fastdepCC_TRUE
1058CCDEPMODE
1059AMDEPBACKSLASH
1060AMDEP_FALSE
1061AMDEP_TRUE
1062am__quote
1063am__include
1064DEPDIR
1065OBJEXT
1066EXEEXT
1067ac_ct_CC
1068CPPFLAGS
1069LDFLAGS
1070CFLAGS
1071CC
1072DIRSEP
1073MAGICK_FILTER_MODULE_PATH
1074MAGICK_CONFIGURE_BUILD_PATH
1075MAGICK_CONFIGURE_SRC_PATH
1076MAGICK_CODER_MODULE_PATH
1077MAN_DIR
1078INFO_DIR
1079PERSISTINCLUDE_DIR
1080INCLUDE_DIR
1081LIB_DIR
1082LOCALSTATE_DIR
1083SHAREDSTATE_DIR
1084SYSCONF_DIR
1085DATA_DIR
1086LIBEXEC_DIR
1087SBIN_DIR
1088BIN_DIR
1089EXEC_PREFIX_DIR
1090PREFIX_DIR
1091CONFIG_STATUS_DEPENDENCIES
1092MAGICK_LIB_VERSION_NUMBER
1093MAGICK_LIB_VERSION_TEXT
1094MAGICK_LIB_VERSION
1095AM_BACKSLASH
1096AM_DEFAULT_VERBOSITY
1097am__untar
1098am__tar
1099AMTAR
1100am__leading_dot
1101SET_MAKE
1102AWK
1103mkdir_p
1104MKDIR_P
1105INSTALL_STRIP_PROGRAM
1106STRIP
1107install_sh
1108MAKEINFO
1109AUTOHEADER
1110AUTOMAKE
1111AUTOCONF
1112ACLOCAL
1113VERSION
1114PACKAGE
1115CYGPATH_W
1116am__isrc
1117INSTALL_DATA
1118INSTALL_SCRIPT
1119INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001120PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001121PACKAGE_RELEASE_DATE
1122PACKAGE_LIB_VERSION_NUMBER
1123PACKAGE_LIB_VERSION
1124PACKAGE_CHANGE_DATE
1125PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001126MAGICK_LIBRARY_VERSION_INFO
1127MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001128MAGICK_LIBRARY_AGE
1129MAGICK_LIBRARY_REVISION
1130MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001131MAGICK_TARGET_OS
1132MAGICK_TARGET_VENDOR
1133MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001134target_os
1135target_vendor
1136target_cpu
1137target
1138host_os
1139host_vendor
1140host_cpu
1141host
1142build_os
1143build_vendor
1144build_cpu
1145build
1146CONFIGURE_ARGS
1147DISTCHECK_CONFIG_FLAGS
1148target_alias
1149host_alias
1150build_alias
1151LIBS
1152ECHO_T
1153ECHO_N
1154ECHO_C
1155DEFS
1156mandir
1157localedir
1158libdir
1159psdir
1160pdfdir
1161dvidir
1162htmldir
1163infodir
1164docdir
1165oldincludedir
1166includedir
1167localstatedir
1168sharedstatedir
1169sysconfdir
1170datadir
1171datarootdir
1172libexecdir
1173sbindir
1174bindir
1175program_transform_name
1176prefix
1177exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001178PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001179PACKAGE_BUGREPORT
1180PACKAGE_STRING
1181PACKAGE_VERSION
1182PACKAGE_TARNAME
1183PACKAGE_NAME
1184PATH_SEPARATOR
1185SHELL'
1186ac_subst_files=''
1187ac_user_opts='
1188enable_option_checking
1189enable_silent_rules
1190enable_dependency_tracking
1191with_gnu_ld
1192with_maximum_compile_warnings
1193with_dmalloc
1194enable_bounds_checking
1195enable_osx_universal_binary
1196with_threads
1197enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001198enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001199enable_largefile
1200enable_shared
1201enable_static
1202with_pic
1203enable_fast_install
1204enable_libtool_lock
1205with_included_ltdl
1206with_ltdl_include
1207with_ltdl_lib
1208enable_ltdl_install
1209with_modules
1210enable_delegate_build
1211enable_deprecated
1212enable_installed
1213enable_cipher
1214enable_embeddable
1215enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001216enable_assert
1217enable_maintainer_mode
1218enable_ccmalloc
1219enable_efence
1220enable_prof
1221enable_gprof
1222enable_gcov
1223with_method_prefix
1224with_quantum_depth
1225with_cache
1226with_frozenpaths
1227with_magick_plus_plus
1228with_perl
1229with_perl_options
1230with_umem
1231with_libstdc
1232with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001233with_x
cristy3ed852e2009-09-05 21:47:34 +00001234with_zlib
1235with_autotrace
1236with_dps
1237with_djvu
cristy430a7312010-01-21 20:44:04 +00001238with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001239with_fftw
1240with_fpx
1241with_fontconfig
1242with_freetype
1243with_gslib
1244with_fontpath
1245with_gs_font_dir
1246with_gvc
1247with_jbig
1248with_jpeg
1249with_jp2
1250with_lcms
1251with_lqr
1252with_openexr
1253with_png
1254with_rsvg
1255with_tiff
1256with_windows_font_dir
1257with_wmf
1258with_xml
1259'
1260 ac_precious_vars='build_alias
1261host_alias
1262target_alias
1263CC
1264CFLAGS
1265LDFLAGS
1266LIBS
1267CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001268CPP
cristy3ed852e2009-09-05 21:47:34 +00001269CXX
1270CXXFLAGS
1271CCC
1272PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001273CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001274XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001275AUTOTRACE_CFLAGS
1276AUTOTRACE_LIBS
1277FONTCONFIG_CFLAGS
1278FONTCONFIG_LIBS
1279GVC_CFLAGS
1280GVC_LIBS
1281LQR_CFLAGS
1282LQR_LIBS
1283OPENEXR_CFLAGS
1284OPENEXR_LIBS
1285RSVG_CFLAGS
1286RSVG_LIBS
1287CAIRO_SVG_CFLAGS
1288CAIRO_SVG_LIBS'
1289
1290
1291# Initialize some variables set by options.
1292ac_init_help=
1293ac_init_version=false
1294ac_unrecognized_opts=
1295ac_unrecognized_sep=
1296# The variables have the same names as the options, with
1297# dashes changed to underlines.
1298cache_file=/dev/null
1299exec_prefix=NONE
1300no_create=
1301no_recursion=
1302prefix=NONE
1303program_prefix=NONE
1304program_suffix=NONE
1305program_transform_name=s,x,x,
1306silent=
1307site=
1308srcdir=
1309verbose=
1310x_includes=NONE
1311x_libraries=NONE
1312
1313# Installation directory options.
1314# These are left unexpanded so users can "make install exec_prefix=/foo"
1315# and all the variables that are supposed to be based on exec_prefix
1316# by default will actually change.
1317# Use braces instead of parens because sh, perl, etc. also accept them.
1318# (The list follows the same order as the GNU Coding Standards.)
1319bindir='${exec_prefix}/bin'
1320sbindir='${exec_prefix}/sbin'
1321libexecdir='${exec_prefix}/libexec'
1322datarootdir='${prefix}/share'
1323datadir='${datarootdir}'
1324sysconfdir='${prefix}/etc'
1325sharedstatedir='${prefix}/com'
1326localstatedir='${prefix}/var'
1327includedir='${prefix}/include'
1328oldincludedir='/usr/include'
1329docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1330infodir='${datarootdir}/info'
1331htmldir='${docdir}'
1332dvidir='${docdir}'
1333pdfdir='${docdir}'
1334psdir='${docdir}'
1335libdir='${exec_prefix}/lib'
1336localedir='${datarootdir}/locale'
1337mandir='${datarootdir}/man'
1338
1339ac_prev=
1340ac_dashdash=
1341for ac_option
1342do
1343 # If the previous option needs an argument, assign it.
1344 if test -n "$ac_prev"; then
1345 eval $ac_prev=\$ac_option
1346 ac_prev=
1347 continue
1348 fi
1349
1350 case $ac_option in
1351 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1352 *) ac_optarg=yes ;;
1353 esac
1354
1355 # Accept the important Cygnus configure options, so we can diagnose typos.
1356
1357 case $ac_dashdash$ac_option in
1358 --)
1359 ac_dashdash=yes ;;
1360
1361 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1362 ac_prev=bindir ;;
1363 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1364 bindir=$ac_optarg ;;
1365
1366 -build | --build | --buil | --bui | --bu)
1367 ac_prev=build_alias ;;
1368 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1369 build_alias=$ac_optarg ;;
1370
1371 -cache-file | --cache-file | --cache-fil | --cache-fi \
1372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1373 ac_prev=cache_file ;;
1374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1376 cache_file=$ac_optarg ;;
1377
1378 --config-cache | -C)
1379 cache_file=config.cache ;;
1380
1381 -datadir | --datadir | --datadi | --datad)
1382 ac_prev=datadir ;;
1383 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1384 datadir=$ac_optarg ;;
1385
1386 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1387 | --dataroo | --dataro | --datar)
1388 ac_prev=datarootdir ;;
1389 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1390 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1391 datarootdir=$ac_optarg ;;
1392
1393 -disable-* | --disable-*)
1394 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001397 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001398 ac_useropt_orig=$ac_useropt
1399 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1401 *"
1402"enable_$ac_useropt"
1403"*) ;;
1404 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1405 ac_unrecognized_sep=', ';;
1406 esac
1407 eval enable_$ac_useropt=no ;;
1408
1409 -docdir | --docdir | --docdi | --doc | --do)
1410 ac_prev=docdir ;;
1411 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1412 docdir=$ac_optarg ;;
1413
1414 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1415 ac_prev=dvidir ;;
1416 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1417 dvidir=$ac_optarg ;;
1418
1419 -enable-* | --enable-*)
1420 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001423 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001424 ac_useropt_orig=$ac_useropt
1425 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1427 *"
1428"enable_$ac_useropt"
1429"*) ;;
1430 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1431 ac_unrecognized_sep=', ';;
1432 esac
1433 eval enable_$ac_useropt=\$ac_optarg ;;
1434
1435 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1436 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1437 | --exec | --exe | --ex)
1438 ac_prev=exec_prefix ;;
1439 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1440 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1441 | --exec=* | --exe=* | --ex=*)
1442 exec_prefix=$ac_optarg ;;
1443
1444 -gas | --gas | --ga | --g)
1445 # Obsolete; use --with-gas.
1446 with_gas=yes ;;
1447
1448 -help | --help | --hel | --he | -h)
1449 ac_init_help=long ;;
1450 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1451 ac_init_help=recursive ;;
1452 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1453 ac_init_help=short ;;
1454
1455 -host | --host | --hos | --ho)
1456 ac_prev=host_alias ;;
1457 -host=* | --host=* | --hos=* | --ho=*)
1458 host_alias=$ac_optarg ;;
1459
1460 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1461 ac_prev=htmldir ;;
1462 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1463 | --ht=*)
1464 htmldir=$ac_optarg ;;
1465
1466 -includedir | --includedir | --includedi | --included | --include \
1467 | --includ | --inclu | --incl | --inc)
1468 ac_prev=includedir ;;
1469 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1470 | --includ=* | --inclu=* | --incl=* | --inc=*)
1471 includedir=$ac_optarg ;;
1472
1473 -infodir | --infodir | --infodi | --infod | --info | --inf)
1474 ac_prev=infodir ;;
1475 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1476 infodir=$ac_optarg ;;
1477
1478 -libdir | --libdir | --libdi | --libd)
1479 ac_prev=libdir ;;
1480 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1481 libdir=$ac_optarg ;;
1482
1483 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1484 | --libexe | --libex | --libe)
1485 ac_prev=libexecdir ;;
1486 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1487 | --libexe=* | --libex=* | --libe=*)
1488 libexecdir=$ac_optarg ;;
1489
1490 -localedir | --localedir | --localedi | --localed | --locale)
1491 ac_prev=localedir ;;
1492 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1493 localedir=$ac_optarg ;;
1494
1495 -localstatedir | --localstatedir | --localstatedi | --localstated \
1496 | --localstate | --localstat | --localsta | --localst | --locals)
1497 ac_prev=localstatedir ;;
1498 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1499 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1500 localstatedir=$ac_optarg ;;
1501
1502 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1503 ac_prev=mandir ;;
1504 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1505 mandir=$ac_optarg ;;
1506
1507 -nfp | --nfp | --nf)
1508 # Obsolete; use --without-fp.
1509 with_fp=no ;;
1510
1511 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1512 | --no-cr | --no-c | -n)
1513 no_create=yes ;;
1514
1515 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1516 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1517 no_recursion=yes ;;
1518
1519 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1520 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1521 | --oldin | --oldi | --old | --ol | --o)
1522 ac_prev=oldincludedir ;;
1523 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1524 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1525 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1526 oldincludedir=$ac_optarg ;;
1527
1528 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1529 ac_prev=prefix ;;
1530 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1531 prefix=$ac_optarg ;;
1532
1533 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1534 | --program-pre | --program-pr | --program-p)
1535 ac_prev=program_prefix ;;
1536 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1537 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1538 program_prefix=$ac_optarg ;;
1539
1540 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1541 | --program-suf | --program-su | --program-s)
1542 ac_prev=program_suffix ;;
1543 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1544 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1545 program_suffix=$ac_optarg ;;
1546
1547 -program-transform-name | --program-transform-name \
1548 | --program-transform-nam | --program-transform-na \
1549 | --program-transform-n | --program-transform- \
1550 | --program-transform | --program-transfor \
1551 | --program-transfo | --program-transf \
1552 | --program-trans | --program-tran \
1553 | --progr-tra | --program-tr | --program-t)
1554 ac_prev=program_transform_name ;;
1555 -program-transform-name=* | --program-transform-name=* \
1556 | --program-transform-nam=* | --program-transform-na=* \
1557 | --program-transform-n=* | --program-transform-=* \
1558 | --program-transform=* | --program-transfor=* \
1559 | --program-transfo=* | --program-transf=* \
1560 | --program-trans=* | --program-tran=* \
1561 | --progr-tra=* | --program-tr=* | --program-t=*)
1562 program_transform_name=$ac_optarg ;;
1563
1564 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1565 ac_prev=pdfdir ;;
1566 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1567 pdfdir=$ac_optarg ;;
1568
1569 -psdir | --psdir | --psdi | --psd | --ps)
1570 ac_prev=psdir ;;
1571 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1572 psdir=$ac_optarg ;;
1573
1574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1575 | -silent | --silent | --silen | --sile | --sil)
1576 silent=yes ;;
1577
1578 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1579 ac_prev=sbindir ;;
1580 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1581 | --sbi=* | --sb=*)
1582 sbindir=$ac_optarg ;;
1583
1584 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1585 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1586 | --sharedst | --shareds | --shared | --share | --shar \
1587 | --sha | --sh)
1588 ac_prev=sharedstatedir ;;
1589 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1590 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1591 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1592 | --sha=* | --sh=*)
1593 sharedstatedir=$ac_optarg ;;
1594
1595 -site | --site | --sit)
1596 ac_prev=site ;;
1597 -site=* | --site=* | --sit=*)
1598 site=$ac_optarg ;;
1599
1600 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1601 ac_prev=srcdir ;;
1602 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1603 srcdir=$ac_optarg ;;
1604
1605 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1606 | --syscon | --sysco | --sysc | --sys | --sy)
1607 ac_prev=sysconfdir ;;
1608 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1609 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1610 sysconfdir=$ac_optarg ;;
1611
1612 -target | --target | --targe | --targ | --tar | --ta | --t)
1613 ac_prev=target_alias ;;
1614 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1615 target_alias=$ac_optarg ;;
1616
1617 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1618 verbose=yes ;;
1619
1620 -version | --version | --versio | --versi | --vers | -V)
1621 ac_init_version=: ;;
1622
1623 -with-* | --with-*)
1624 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001627 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1631 *"
1632"with_$ac_useropt"
1633"*) ;;
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1636 esac
1637 eval with_$ac_useropt=\$ac_optarg ;;
1638
1639 -without-* | --without-*)
1640 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1641 # Reject names that are not valid shell variable names.
1642 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001643 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001644 ac_useropt_orig=$ac_useropt
1645 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1646 case $ac_user_opts in
1647 *"
1648"with_$ac_useropt"
1649"*) ;;
1650 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1651 ac_unrecognized_sep=', ';;
1652 esac
1653 eval with_$ac_useropt=no ;;
1654
1655 --x)
1656 # Obsolete; use --with-x.
1657 with_x=yes ;;
1658
1659 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1660 | --x-incl | --x-inc | --x-in | --x-i)
1661 ac_prev=x_includes ;;
1662 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1663 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1664 x_includes=$ac_optarg ;;
1665
1666 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1667 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1668 ac_prev=x_libraries ;;
1669 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1670 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1671 x_libraries=$ac_optarg ;;
1672
cristy8b350f62009-11-15 23:12:43 +00001673 -*) as_fn_error "unrecognized option: \`$ac_option'
1674Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001675 ;;
1676
1677 *=*)
1678 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1679 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001680 case $ac_envvar in #(
1681 '' | [0-9]* | *[!_$as_cr_alnum]* )
1682 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1683 esac
cristy3ed852e2009-09-05 21:47:34 +00001684 eval $ac_envvar=\$ac_optarg
1685 export $ac_envvar ;;
1686
1687 *)
1688 # FIXME: should be removed in autoconf 3.0.
1689 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1690 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1691 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1692 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1693 ;;
1694
1695 esac
1696done
1697
1698if test -n "$ac_prev"; then
1699 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001700 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001701fi
1702
1703if test -n "$ac_unrecognized_opts"; then
1704 case $enable_option_checking in
1705 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001706 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001707 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1708 esac
1709fi
1710
1711# Check all directory arguments for consistency.
1712for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1713 datadir sysconfdir sharedstatedir localstatedir includedir \
1714 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1715 libdir localedir mandir
1716do
1717 eval ac_val=\$$ac_var
1718 # Remove trailing slashes.
1719 case $ac_val in
1720 */ )
1721 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1722 eval $ac_var=\$ac_val;;
1723 esac
1724 # Be sure to have absolute directory names.
1725 case $ac_val in
1726 [\\/$]* | ?:[\\/]* ) continue;;
1727 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1728 esac
cristy8b350f62009-11-15 23:12:43 +00001729 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001730done
1731
1732# There might be people who depend on the old broken behavior: `$host'
1733# used to hold the argument of --host etc.
1734# FIXME: To remove some day.
1735build=$build_alias
1736host=$host_alias
1737target=$target_alias
1738
1739# FIXME: To remove some day.
1740if test "x$host_alias" != x; then
1741 if test "x$build_alias" = x; then
1742 cross_compiling=maybe
1743 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1744 If a cross compiler is detected then cross compile mode will be used." >&2
1745 elif test "x$build_alias" != "x$host_alias"; then
1746 cross_compiling=yes
1747 fi
1748fi
1749
1750ac_tool_prefix=
1751test -n "$host_alias" && ac_tool_prefix=$host_alias-
1752
1753test "$silent" = yes && exec 6>/dev/null
1754
1755
1756ac_pwd=`pwd` && test -n "$ac_pwd" &&
1757ac_ls_di=`ls -di .` &&
1758ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001759 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001760test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001761 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001762
1763
1764# Find the source files, if location was not specified.
1765if test -z "$srcdir"; then
1766 ac_srcdir_defaulted=yes
1767 # Try the directory containing this script, then the parent directory.
1768 ac_confdir=`$as_dirname -- "$as_myself" ||
1769$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1770 X"$as_myself" : 'X\(//\)[^/]' \| \
1771 X"$as_myself" : 'X\(//\)$' \| \
1772 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1773$as_echo X"$as_myself" |
1774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1775 s//\1/
1776 q
1777 }
1778 /^X\(\/\/\)[^/].*/{
1779 s//\1/
1780 q
1781 }
1782 /^X\(\/\/\)$/{
1783 s//\1/
1784 q
1785 }
1786 /^X\(\/\).*/{
1787 s//\1/
1788 q
1789 }
1790 s/.*/./; q'`
1791 srcdir=$ac_confdir
1792 if test ! -r "$srcdir/$ac_unique_file"; then
1793 srcdir=..
1794 fi
1795else
1796 ac_srcdir_defaulted=no
1797fi
1798if test ! -r "$srcdir/$ac_unique_file"; then
1799 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001800 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001801fi
1802ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1803ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001804 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001805 pwd)`
1806# When building in place, set srcdir=.
1807if test "$ac_abs_confdir" = "$ac_pwd"; then
1808 srcdir=.
1809fi
1810# Remove unnecessary trailing slashes from srcdir.
1811# Double slashes in file names in object file debugging info
1812# mess up M-x gdb in Emacs.
1813case $srcdir in
1814*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1815esac
1816for ac_var in $ac_precious_vars; do
1817 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1818 eval ac_env_${ac_var}_value=\$${ac_var}
1819 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1820 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1821done
1822
1823#
1824# Report the --help message.
1825#
1826if test "$ac_init_help" = "long"; then
1827 # Omit some internal or obsolete options to make the list less imposing.
1828 # This message is too long to be a string in the A/UX 3.1 sh.
1829 cat <<_ACEOF
cristyb36feb22010-03-26 16:54:37 +00001830\`configure' configures ImageMagick 6.6.1 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001831
1832Usage: $0 [OPTION]... [VAR=VALUE]...
1833
1834To assign environment variables (e.g., CC, CFLAGS...), specify them as
1835VAR=VALUE. See below for descriptions of some of the useful variables.
1836
1837Defaults for the options are specified in brackets.
1838
1839Configuration:
1840 -h, --help display this help and exit
1841 --help=short display options specific to this package
1842 --help=recursive display the short help of all the included packages
1843 -V, --version display version information and exit
1844 -q, --quiet, --silent do not print \`checking...' messages
1845 --cache-file=FILE cache test results in FILE [disabled]
1846 -C, --config-cache alias for \`--cache-file=config.cache'
1847 -n, --no-create do not create output files
1848 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1849
1850Installation directories:
1851 --prefix=PREFIX install architecture-independent files in PREFIX
1852 [$ac_default_prefix]
1853 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1854 [PREFIX]
1855
1856By default, \`make install' will install all the files in
1857\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1858an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1859for instance \`--prefix=\$HOME'.
1860
1861For better control, use the options below.
1862
1863Fine tuning of the installation directories:
1864 --bindir=DIR user executables [EPREFIX/bin]
1865 --sbindir=DIR system admin executables [EPREFIX/sbin]
1866 --libexecdir=DIR program executables [EPREFIX/libexec]
1867 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1868 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1869 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1870 --libdir=DIR object code libraries [EPREFIX/lib]
1871 --includedir=DIR C header files [PREFIX/include]
1872 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1873 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1874 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1875 --infodir=DIR info documentation [DATAROOTDIR/info]
1876 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1877 --mandir=DIR man documentation [DATAROOTDIR/man]
1878 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1879 --htmldir=DIR html documentation [DOCDIR]
1880 --dvidir=DIR dvi documentation [DOCDIR]
1881 --pdfdir=DIR pdf documentation [DOCDIR]
1882 --psdir=DIR ps documentation [DOCDIR]
1883_ACEOF
1884
1885 cat <<\_ACEOF
1886
1887Program names:
1888 --program-prefix=PREFIX prepend PREFIX to installed program names
1889 --program-suffix=SUFFIX append SUFFIX to installed program names
1890 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1891
1892X features:
1893 --x-includes=DIR X include files are in DIR
1894 --x-libraries=DIR X library files are in DIR
1895
1896System types:
1897 --build=BUILD configure for building on BUILD [guessed]
1898 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1899 --target=TARGET configure for building compilers for TARGET [HOST]
1900_ACEOF
1901fi
1902
1903if test -n "$ac_init_help"; then
1904 case $ac_init_help in
cristyb36feb22010-03-26 16:54:37 +00001905 short | recursive ) echo "Configuration of ImageMagick 6.6.1:";;
cristy3ed852e2009-09-05 21:47:34 +00001906 esac
1907 cat <<\_ACEOF
1908
1909Optional Features:
1910 --disable-option-checking ignore unrecognized --enable/--with options
1911 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1912 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1913 --enable-silent-rules less verbose build output (undo: `make V=1')
1914 --disable-silent-rules verbose build output (undo: `make V=0')
1915 --disable-dependency-tracking speeds up one-time build
1916 --enable-dependency-tracking do not reject slow dependency extractors
1917 --bounds-checking enable run-time bounds-checking
1918 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001919 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001920 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001921 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001922 --disable-largefile omit support for large files
1923 --enable-shared[=PKGS] build shared libraries [default=yes]
1924 --enable-static[=PKGS] build static libraries [default=yes]
1925 --enable-fast-install[=PKGS]
1926 optimize for fast installation [default=yes]
1927 --disable-libtool-lock avoid locking (might break parallel builds)
1928 --enable-ltdl-install install libltdl
1929 --enable-delegate-build look for delegate libraries in build directory
1930 --disable-deprecated exclude deprecated methods in MagickCore and
1931 MagickWand API's
1932 --disable-installed Formally install ImageMagick under PREFIX
1933 --disable-cipher disable enciphering and deciphering image pixels
1934 --enable-embeddable enable self-contained, embeddable,
1935 zero-configuration ImageMagick
1936 --enable-hdri accurately represent the wide range of intensity
1937 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001938 --disable-assert disable assert() statements in build
1939 --enable-maintainer-mode enable make rules and dependencies not useful
1940 (and sometimes confusing) to the casual installer
1941 --enable-ccmalloc enable 'ccmalloc' memory debug support
1942 --enable-efence enable 'efence' memory debug support
1943 --enable-prof enable 'prof' profiling support
1944 --enable-gprof enable 'gprof' profiling support
1945 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001946 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001947
1948Optional Packages:
1949 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1950 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1951 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1952 --without-maximum-compile-warnings
1953 Disable maximum warning verbosity
1954 --with-dmalloc use dmalloc, as in
1955 http://www.dmalloc.com/dmalloc.tar.gz
1956 --without-threads disable threads support
1957 --with-pic try to use only PIC/non-PIC objects [default=use
1958 both]
1959 --with-included-ltdl use the GNU ltdl sources included here
1960 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1961 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1962 --with-modules enable building dynamically loadable modules
1963 --with-method-prefix=PREFIX
1964 prefix MagickCore API methods
1965 --with-quantum-depth=DEPTH
1966 number of bits in a pixel quantum (default 16)
1967 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1968 memory)
1969 --with-frozenpaths freeze delegate paths
1970 --without-magick-plus-plus
1971 disable build/install of Magick++
1972 --with-perl enable build/install of PerlMagick
1973 --with-perl-options=OPTIONS
1974 options to pass on command-line when generating
1975 PerlMagick's build file
1976 --with-umem enable umem memory allocation library support
1977 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1978 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001979 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001980 --without-zlib disable ZLIB support
1981 --with-autotrace enable autotrace support
1982 --without-dps disable Display Postscript support
1983 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001984 --with-dejavu-font-dir=DIR
1985 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001986 --without-fftw disable FFTW support
1987 --without-fpx disable FlashPIX support
1988 --without-fontconfig disable fontconfig support
1989 --without-freetype disable Freetype support
1990 --without-gslib enable Ghostscript library support
1991 --with-fontpath=DIR prepend to default font search path
1992 --with-gs-font-dir=DIR Ghostscript font directory
1993 --without-gvc disable GVC support
1994 --without-jbig disable JBIG support
1995 --without-jpeg disable JPEG support
1996 --without-jp2 disable JPEG-2000 support
1997 --without-lcms disable LCMS support
cristyf0c78232010-03-15 12:53:40 +00001998 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001999 --without-openexr disable OpenEXR support
2000 --without-png disable PNG support
2001 --without-rsvg disable RSVG support
2002 --without-tiff disable TIFF support
2003 --with-windows-font-dir=DIR
2004 directory containing MS-Windows fonts
2005 --without-wmf disable WMF support
2006 --without-xml disable XML support
2007
2008Some influential environment variables:
2009 CC C compiler command
2010 CFLAGS C compiler flags
2011 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2012 nonstandard directory <lib dir>
2013 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002014 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002015 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002016 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002017 CXX C++ compiler command
2018 CXXFLAGS C++ compiler flags
2019 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002020 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002021 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002022 AUTOTRACE_CFLAGS
2023 C compiler flags for AUTOTRACE, overriding pkg-config
2024 AUTOTRACE_LIBS
2025 linker flags for AUTOTRACE, overriding pkg-config
2026 FONTCONFIG_CFLAGS
2027 C compiler flags for FONTCONFIG, overriding pkg-config
2028 FONTCONFIG_LIBS
2029 linker flags for FONTCONFIG, overriding pkg-config
2030 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2031 GVC_LIBS linker flags for GVC, overriding pkg-config
2032 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2033 LQR_LIBS linker flags for LQR, overriding pkg-config
2034 OPENEXR_CFLAGS
2035 C compiler flags for OPENEXR, overriding pkg-config
2036 OPENEXR_LIBS
2037 linker flags for OPENEXR, overriding pkg-config
2038 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2039 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2040 CAIRO_SVG_CFLAGS
2041 C compiler flags for CAIRO_SVG, overriding pkg-config
2042 CAIRO_SVG_LIBS
2043 linker flags for CAIRO_SVG, overriding pkg-config
2044
2045Use these variables to override the choices made by `configure' or to help
2046it to find libraries and programs with nonstandard names/locations.
2047
2048Report bugs to <http://www.imagemagick.org>.
2049_ACEOF
2050ac_status=$?
2051fi
2052
2053if test "$ac_init_help" = "recursive"; then
2054 # If there are subdirs, report their specific --help.
2055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2056 test -d "$ac_dir" ||
2057 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2058 continue
2059 ac_builddir=.
2060
2061case "$ac_dir" in
2062.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063*)
2064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2065 # A ".." for each directory in $ac_dir_suffix.
2066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2067 case $ac_top_builddir_sub in
2068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2070 esac ;;
2071esac
2072ac_abs_top_builddir=$ac_pwd
2073ac_abs_builddir=$ac_pwd$ac_dir_suffix
2074# for backward compatibility:
2075ac_top_builddir=$ac_top_build_prefix
2076
2077case $srcdir in
2078 .) # We are building in place.
2079 ac_srcdir=.
2080 ac_top_srcdir=$ac_top_builddir_sub
2081 ac_abs_top_srcdir=$ac_pwd ;;
2082 [\\/]* | ?:[\\/]* ) # Absolute name.
2083 ac_srcdir=$srcdir$ac_dir_suffix;
2084 ac_top_srcdir=$srcdir
2085 ac_abs_top_srcdir=$srcdir ;;
2086 *) # Relative name.
2087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2088 ac_top_srcdir=$ac_top_build_prefix$srcdir
2089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2090esac
2091ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2092
2093 cd "$ac_dir" || { ac_status=$?; continue; }
2094 # Check for guested configure.
2095 if test -f "$ac_srcdir/configure.gnu"; then
2096 echo &&
2097 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2098 elif test -f "$ac_srcdir/configure"; then
2099 echo &&
2100 $SHELL "$ac_srcdir/configure" --help=recursive
2101 else
2102 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2103 fi || ac_status=$?
2104 cd "$ac_pwd" || { ac_status=$?; break; }
2105 done
2106fi
2107
2108test -n "$ac_init_help" && exit $ac_status
2109if $ac_init_version; then
2110 cat <<\_ACEOF
cristyb36feb22010-03-26 16:54:37 +00002111ImageMagick configure 6.6.1
cristycd4c5312009-11-22 01:19:08 +00002112generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002113
cristy8b350f62009-11-15 23:12:43 +00002114Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002115This configure script is free software; the Free Software Foundation
2116gives unlimited permission to copy, distribute and modify it.
2117_ACEOF
2118 exit
2119fi
cristy8b350f62009-11-15 23:12:43 +00002120
2121## ------------------------ ##
2122## Autoconf initialization. ##
2123## ------------------------ ##
2124
2125# ac_fn_c_try_compile LINENO
2126# --------------------------
2127# Try to compile conftest.$ac_ext, and return whether this succeeded.
2128ac_fn_c_try_compile ()
2129{
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 rm -f conftest.$ac_objext
2132 if { { ac_try="$ac_compile"
2133case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_compile") 2>conftest.err
2140 ac_status=$?
2141 if test -s conftest.err; then
2142 grep -v '^ *+' conftest.err >conftest.er1
2143 cat conftest.er1 >&5
2144 mv -f conftest.er1 conftest.err
2145 fi
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && {
2148 test -z "$ac_c_werror_flag" ||
2149 test ! -s conftest.err
2150 } && test -s conftest.$ac_objext; then :
2151 ac_retval=0
2152else
2153 $as_echo "$as_me: failed program was:" >&5
2154sed 's/^/| /' conftest.$ac_ext >&5
2155
2156 ac_retval=1
2157fi
2158 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002159 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002160
2161} # ac_fn_c_try_compile
2162
cristy95646052009-11-28 23:05:30 +00002163# ac_fn_c_try_cpp LINENO
2164# ----------------------
2165# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2166ac_fn_c_try_cpp ()
2167{
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if { { ac_try="$ac_cpp conftest.$ac_ext"
2170case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173esac
2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175$as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } >/dev/null && {
2185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2186 test ! -s conftest.err
2187 }; then :
2188 ac_retval=0
2189else
2190 $as_echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_retval=1
2194fi
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 as_fn_set_status $ac_retval
2197
2198} # ac_fn_c_try_cpp
2199
cristy8b350f62009-11-15 23:12:43 +00002200# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2201# -------------------------------------------------------
2202# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2203# the include files in INCLUDES and setting the cache variable VAR
2204# accordingly.
2205ac_fn_c_check_header_mongrel ()
2206{
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210$as_echo_n "checking for $2... " >&6; }
2211if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2212 $as_echo_n "(cached) " >&6
2213fi
2214eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216$as_echo "$ac_res" >&6; }
2217else
2218 # Is the header compilable?
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2220$as_echo_n "checking $2 usability... " >&6; }
2221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h. */
2223$4
2224#include <$2>
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_header_compiler=yes
2228else
2229 ac_header_compiler=no
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2233$as_echo "$ac_header_compiler" >&6; }
2234
2235# Is the header present?
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2237$as_echo_n "checking $2 presence... " >&6; }
2238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h. */
2240#include <$2>
2241_ACEOF
2242if ac_fn_c_try_cpp "$LINENO"; then :
2243 ac_header_preproc=yes
2244else
2245 ac_header_preproc=no
2246fi
2247rm -f conftest.err conftest.$ac_ext
2248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2249$as_echo "$ac_header_preproc" >&6; }
2250
2251# So? What about this header?
2252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2253 yes:no: )
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2255$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2258 ;;
2259 no:yes:* )
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2261$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2263$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2265$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2267$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2269$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2270( cat <<\_ASBOX
2271## ----------------------------------------- ##
2272## Report this to http://www.imagemagick.org ##
2273## ----------------------------------------- ##
2274_ASBOX
2275 ) | sed "s/^/$as_me: WARNING: /" >&2
2276 ;;
2277esac
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279$as_echo_n "checking for $2... " >&6; }
2280if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2282else
2283 eval "$3=\$ac_header_compiler"
2284fi
2285eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287$as_echo "$ac_res" >&6; }
2288fi
2289 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290
2291} # ac_fn_c_check_header_mongrel
2292
2293# ac_fn_c_try_run LINENO
2294# ----------------------
2295# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2296# that executables *can* be run.
2297ac_fn_c_try_run ()
2298{
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 if { { ac_try="$ac_link"
2301case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304esac
2305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306$as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>&5
2308 ac_status=$?
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311 { { case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314esac
2315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316$as_echo "$ac_try_echo"; } >&5
2317 (eval "$ac_try") 2>&5
2318 ac_status=$?
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; }; }; then :
2321 ac_retval=0
2322else
2323 $as_echo "$as_me: program exited with status $ac_status" >&5
2324 $as_echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 ac_retval=$ac_status
2328fi
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002331 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002332
2333} # ac_fn_c_try_run
2334
2335# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2336# -------------------------------------------------------
2337# Tests whether HEADER exists and can be compiled using the include files in
2338# INCLUDES, setting the cache variable VAR accordingly.
2339ac_fn_c_check_header_compile ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343$as_echo_n "checking for $2... " >&6; }
2344if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2346else
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h. */
2349$4
2350#include <$2>
2351_ACEOF
2352if ac_fn_c_try_compile "$LINENO"; then :
2353 eval "$3=yes"
2354else
2355 eval "$3=no"
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358fi
2359eval ac_res=\$$3
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361$as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363
2364} # ac_fn_c_check_header_compile
2365
cristya0b81c32010-01-22 02:54:33 +00002366# ac_fn_cxx_try_compile LINENO
2367# ----------------------------
2368# Try to compile conftest.$ac_ext, and return whether this succeeded.
2369ac_fn_cxx_try_compile ()
2370{
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 rm -f conftest.$ac_objext
2373 if { { ac_try="$ac_compile"
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
2378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379$as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_compile") 2>conftest.err
2381 ac_status=$?
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2386 fi
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_cxx_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest.$ac_objext; then :
2392 ac_retval=0
2393else
2394 $as_echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 ac_retval=1
2398fi
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 as_fn_set_status $ac_retval
2401
2402} # ac_fn_cxx_try_compile
2403
cristy8b350f62009-11-15 23:12:43 +00002404# ac_fn_c_try_link LINENO
2405# -----------------------
2406# Try to link conftest.$ac_ext, and return whether this succeeded.
2407ac_fn_c_try_link ()
2408{
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 rm -f conftest.$ac_objext conftest$ac_exeext
2411 if { { ac_try="$ac_link"
2412case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415esac
2416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417$as_echo "$ac_try_echo"; } >&5
2418 (eval "$ac_link") 2>conftest.err
2419 ac_status=$?
2420 if test -s conftest.err; then
2421 grep -v '^ *+' conftest.err >conftest.er1
2422 cat conftest.er1 >&5
2423 mv -f conftest.er1 conftest.err
2424 fi
2425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426 test $ac_status = 0; } && {
2427 test -z "$ac_c_werror_flag" ||
2428 test ! -s conftest.err
2429 } && test -s conftest$ac_exeext && {
2430 test "$cross_compiling" = yes ||
2431 $as_test_x conftest$ac_exeext
2432 }; then :
2433 ac_retval=0
2434else
2435 $as_echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_retval=1
2439fi
2440 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2441 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2442 # interfere with the next link command; also delete a directory that is
2443 # left behind by Apple's compiler. We do this before executing the actions.
2444 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002446 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002447
2448} # ac_fn_c_try_link
2449
2450# ac_fn_c_check_func LINENO FUNC VAR
2451# ----------------------------------
2452# Tests whether FUNC exists, setting the cache variable VAR accordingly
2453ac_fn_c_check_func ()
2454{
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457$as_echo_n "checking for $2... " >&6; }
2458if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2460else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462/* end confdefs.h. */
2463/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2465#define $2 innocuous_$2
2466
2467/* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $2 (); below.
2469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 <limits.h> exists even on freestanding compilers. */
2471
2472#ifdef __STDC__
2473# include <limits.h>
2474#else
2475# include <assert.h>
2476#endif
2477
2478#undef $2
2479
2480/* Override any GCC internal prototype to avoid an error.
2481 Use char because int might match the return type of a GCC
2482 builtin and then its argument prototype would still apply. */
2483#ifdef __cplusplus
2484extern "C"
2485#endif
2486char $2 ();
2487/* The GNU C library defines this for functions which it implements
2488 to always fail with ENOSYS. Some functions are actually named
2489 something starting with __ and the normal name is an alias. */
2490#if defined __stub_$2 || defined __stub___$2
2491choke me
2492#endif
2493
2494int
2495main ()
2496{
2497return $2 ();
2498 ;
2499 return 0;
2500}
2501_ACEOF
2502if ac_fn_c_try_link "$LINENO"; then :
2503 eval "$3=yes"
2504else
2505 eval "$3=no"
2506fi
2507rm -f core conftest.err conftest.$ac_objext \
2508 conftest$ac_exeext conftest.$ac_ext
2509fi
2510eval ac_res=\$$3
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512$as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514
2515} # ac_fn_c_check_func
2516
2517# ac_fn_cxx_try_cpp LINENO
2518# ------------------------
2519# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2520ac_fn_cxx_try_cpp ()
2521{
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 if { { ac_try="$ac_cpp conftest.$ac_ext"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2529$as_echo "$ac_try_echo"; } >&5
2530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2531 ac_status=$?
2532 if test -s conftest.err; then
2533 grep -v '^ *+' conftest.err >conftest.er1
2534 cat conftest.er1 >&5
2535 mv -f conftest.er1 conftest.err
2536 fi
2537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2538 test $ac_status = 0; } >/dev/null && {
2539 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2540 test ! -s conftest.err
2541 }; then :
2542 ac_retval=0
2543else
2544 $as_echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_retval=1
2548fi
2549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002550 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002551
2552} # ac_fn_cxx_try_cpp
2553
2554# ac_fn_cxx_try_link LINENO
2555# -------------------------
2556# Try to link conftest.$ac_ext, and return whether this succeeded.
2557ac_fn_cxx_try_link ()
2558{
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560 rm -f conftest.$ac_objext conftest$ac_exeext
2561 if { { ac_try="$ac_link"
2562case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565esac
2566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567$as_echo "$ac_try_echo"; } >&5
2568 (eval "$ac_link") 2>conftest.err
2569 ac_status=$?
2570 if test -s conftest.err; then
2571 grep -v '^ *+' conftest.err >conftest.er1
2572 cat conftest.er1 >&5
2573 mv -f conftest.er1 conftest.err
2574 fi
2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 test $ac_status = 0; } && {
2577 test -z "$ac_cxx_werror_flag" ||
2578 test ! -s conftest.err
2579 } && test -s conftest$ac_exeext && {
2580 test "$cross_compiling" = yes ||
2581 $as_test_x conftest$ac_exeext
2582 }; then :
2583 ac_retval=0
2584else
2585 $as_echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 ac_retval=1
2589fi
2590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2592 # interfere with the next link command; also delete a directory that is
2593 # left behind by Apple's compiler. We do this before executing the actions.
2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002596 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002597
2598} # ac_fn_cxx_try_link
2599
2600# ac_fn_c_check_decl LINENO SYMBOL VAR
2601# ------------------------------------
2602# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2603ac_fn_c_check_decl ()
2604{
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2607$as_echo_n "checking whether $2 is declared... " >&6; }
2608if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2610else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612/* end confdefs.h. */
2613$4
2614int
2615main ()
2616{
2617#ifndef $2
2618 (void) $2;
2619#endif
2620
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 eval "$3=yes"
2627else
2628 eval "$3=no"
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632eval ac_res=\$$3
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634$as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636
2637} # ac_fn_c_check_decl
2638
2639# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2640# -------------------------------------------
2641# Tests whether TYPE exists after having included INCLUDES, setting cache
2642# variable VAR accordingly.
2643ac_fn_c_check_type ()
2644{
2645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2647$as_echo_n "checking for $2... " >&6; }
2648if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2649 $as_echo_n "(cached) " >&6
2650else
2651 eval "$3=no"
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h. */
2654$4
2655int
2656main ()
2657{
2658if (sizeof ($2))
2659 return 0;
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_compile "$LINENO"; then :
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$4
2668int
2669main ()
2670{
2671if (sizeof (($2)))
2672 return 0;
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678
2679else
2680 eval "$3=yes"
2681fi
2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683fi
2684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685fi
2686eval ac_res=\$$3
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688$as_echo "$ac_res" >&6; }
2689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690
2691} # ac_fn_c_check_type
2692
2693# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2694# --------------------------------------------
2695# Tries to find the compile-time value of EXPR in a program that includes
2696# INCLUDES, setting VAR accordingly. Returns whether the value could be
2697# computed
2698ac_fn_c_compute_int ()
2699{
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 if test "$cross_compiling" = yes; then
2702 # Depending upon the size, compute the lo and hi bounds.
2703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h. */
2705$4
2706int
2707main ()
2708{
2709static int test_array [1 - 2 * !(($2) >= 0)];
2710test_array [0] = 0
2711
2712 ;
2713 return 0;
2714}
2715_ACEOF
2716if ac_fn_c_try_compile "$LINENO"; then :
2717 ac_lo=0 ac_mid=0
2718 while :; do
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$4
2722int
2723main ()
2724{
2725static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2726test_array [0] = 0
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_hi=$ac_mid; break
2734else
2735 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2736 if test $ac_lo -le $ac_mid; then
2737 ac_lo= ac_hi=
2738 break
2739 fi
2740 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2741fi
2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 done
2744else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746/* end confdefs.h. */
2747$4
2748int
2749main ()
2750{
2751static int test_array [1 - 2 * !(($2) < 0)];
2752test_array [0] = 0
2753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758if ac_fn_c_try_compile "$LINENO"; then :
2759 ac_hi=-1 ac_mid=-1
2760 while :; do
2761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2762/* end confdefs.h. */
2763$4
2764int
2765main ()
2766{
2767static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2768test_array [0] = 0
2769
2770 ;
2771 return 0;
2772}
2773_ACEOF
2774if ac_fn_c_try_compile "$LINENO"; then :
2775 ac_lo=$ac_mid; break
2776else
2777 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2778 if test $ac_mid -le $ac_hi; then
2779 ac_lo= ac_hi=
2780 break
2781 fi
2782 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2783fi
2784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 done
2786else
2787 ac_lo= ac_hi=
2788fi
2789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790fi
2791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792# Binary search between lo and hi bounds.
2793while test "x$ac_lo" != "x$ac_hi"; do
2794 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796/* end confdefs.h. */
2797$4
2798int
2799main ()
2800{
2801static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2802test_array [0] = 0
2803
2804 ;
2805 return 0;
2806}
2807_ACEOF
2808if ac_fn_c_try_compile "$LINENO"; then :
2809 ac_hi=$ac_mid
2810else
2811 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2812fi
2813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814done
2815case $ac_lo in #((
2816?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2817'') ac_retval=1 ;;
2818esac
2819 else
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821/* end confdefs.h. */
2822$4
2823static long int longval () { return $2; }
2824static unsigned long int ulongval () { return $2; }
2825#include <stdio.h>
2826#include <stdlib.h>
2827int
2828main ()
2829{
2830
2831 FILE *f = fopen ("conftest.val", "w");
2832 if (! f)
2833 return 1;
2834 if (($2) < 0)
2835 {
2836 long int i = longval ();
2837 if (i != ($2))
2838 return 1;
2839 fprintf (f, "%ld", i);
2840 }
2841 else
2842 {
2843 unsigned long int i = ulongval ();
2844 if (i != ($2))
2845 return 1;
2846 fprintf (f, "%lu", i);
2847 }
2848 /* Do not output a trailing newline, as this causes \r\n confusion
2849 on some platforms. */
2850 return ferror (f) || fclose (f) != 0;
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_run "$LINENO"; then :
2857 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2858else
2859 ac_retval=1
2860fi
2861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2862 conftest.$ac_objext conftest.beam conftest.$ac_ext
2863rm -f conftest.val
2864
2865 fi
2866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002867 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002868
2869} # ac_fn_c_compute_int
2870
2871# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2872# ---------------------------------------------------------
2873# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2874# the include files in INCLUDES and setting the cache variable VAR
2875# accordingly.
2876ac_fn_cxx_check_header_mongrel ()
2877{
2878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2881$as_echo_n "checking for $2... " >&6; }
2882if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2883 $as_echo_n "(cached) " >&6
2884fi
2885eval ac_res=\$$3
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2887$as_echo "$ac_res" >&6; }
2888else
2889 # Is the header compilable?
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2891$as_echo_n "checking $2 usability... " >&6; }
2892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893/* end confdefs.h. */
2894$4
2895#include <$2>
2896_ACEOF
2897if ac_fn_cxx_try_compile "$LINENO"; then :
2898 ac_header_compiler=yes
2899else
2900 ac_header_compiler=no
2901fi
2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2904$as_echo "$ac_header_compiler" >&6; }
2905
2906# Is the header present?
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2908$as_echo_n "checking $2 presence... " >&6; }
2909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910/* end confdefs.h. */
2911#include <$2>
2912_ACEOF
2913if ac_fn_cxx_try_cpp "$LINENO"; then :
2914 ac_header_preproc=yes
2915else
2916 ac_header_preproc=no
2917fi
2918rm -f conftest.err conftest.$ac_ext
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2920$as_echo "$ac_header_preproc" >&6; }
2921
2922# So? What about this header?
2923case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2924 yes:no: )
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2926$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2928$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2929 ;;
2930 no:yes:* )
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2932$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2934$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2936$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2938$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2941( cat <<\_ASBOX
2942## ----------------------------------------- ##
2943## Report this to http://www.imagemagick.org ##
2944## ----------------------------------------- ##
2945_ASBOX
2946 ) | sed "s/^/$as_me: WARNING: /" >&2
2947 ;;
2948esac
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2950$as_echo_n "checking for $2... " >&6; }
2951if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2952 $as_echo_n "(cached) " >&6
2953else
2954 eval "$3=\$ac_header_compiler"
2955fi
2956eval ac_res=\$$3
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2958$as_echo "$ac_res" >&6; }
2959fi
2960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2961
2962} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002963cat >config.log <<_ACEOF
2964This file contains any messages produced by compilers while
2965running configure, to aid debugging if configure makes a mistake.
2966
cristyb36feb22010-03-26 16:54:37 +00002967It was created by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +00002968generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002969
2970 $ $0 $@
2971
2972_ACEOF
2973exec 5>>config.log
2974{
2975cat <<_ASUNAME
2976## --------- ##
2977## Platform. ##
2978## --------- ##
2979
2980hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2981uname -m = `(uname -m) 2>/dev/null || echo unknown`
2982uname -r = `(uname -r) 2>/dev/null || echo unknown`
2983uname -s = `(uname -s) 2>/dev/null || echo unknown`
2984uname -v = `(uname -v) 2>/dev/null || echo unknown`
2985
2986/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2987/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2988
2989/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2990/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2991/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2992/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2993/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2994/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2995/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2996
2997_ASUNAME
2998
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003004 $as_echo "PATH: $as_dir"
3005 done
cristy3ed852e2009-09-05 21:47:34 +00003006IFS=$as_save_IFS
3007
3008} >&5
3009
3010cat >&5 <<_ACEOF
3011
3012
3013## ----------- ##
3014## Core tests. ##
3015## ----------- ##
3016
3017_ACEOF
3018
3019
3020# Keep a trace of the command line.
3021# Strip out --no-create and --no-recursion so they do not pile up.
3022# Strip out --silent because we don't want to record it for future runs.
3023# Also quote any args containing shell meta-characters.
3024# Make two passes to allow for proper duplicate-argument suppression.
3025ac_configure_args=
3026ac_configure_args0=
3027ac_configure_args1=
3028ac_must_keep_next=false
3029for ac_pass in 1 2
3030do
3031 for ac_arg
3032 do
3033 case $ac_arg in
3034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3036 | -silent | --silent | --silen | --sile | --sil)
3037 continue ;;
3038 *\'*)
3039 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3040 esac
3041 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003042 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003043 2)
cristy8b350f62009-11-15 23:12:43 +00003044 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003045 if test $ac_must_keep_next = true; then
3046 ac_must_keep_next=false # Got value, back to normal.
3047 else
3048 case $ac_arg in
3049 *=* | --config-cache | -C | -disable-* | --disable-* \
3050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3052 | -with-* | --with-* | -without-* | --without-* | --x)
3053 case "$ac_configure_args0 " in
3054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3055 esac
3056 ;;
3057 -* ) ac_must_keep_next=true ;;
3058 esac
3059 fi
cristy8b350f62009-11-15 23:12:43 +00003060 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003061 ;;
3062 esac
3063 done
3064done
cristy8b350f62009-11-15 23:12:43 +00003065{ ac_configure_args0=; unset ac_configure_args0;}
3066{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003067
3068# When interrupted or exit'd, cleanup temporary files, and complete
3069# config.log. We remove comments because anyway the quotes in there
3070# would cause problems or look ugly.
3071# WARNING: Use '\'' to represent an apostrophe within the trap.
3072# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3073trap 'exit_status=$?
3074 # Save into config.log some information that might help in debugging.
3075 {
3076 echo
3077
3078 cat <<\_ASBOX
3079## ---------------- ##
3080## Cache variables. ##
3081## ---------------- ##
3082_ASBOX
3083 echo
3084 # The following way of writing the cache mishandles newlines in values,
3085(
3086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3087 eval ac_val=\$$ac_var
3088 case $ac_val in #(
3089 *${as_nl}*)
3090 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3093 esac
3094 case $ac_var in #(
3095 _ | IFS | as_nl) ;; #(
3096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003097 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003098 esac ;;
3099 esac
3100 done
3101 (set) 2>&1 |
3102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3103 *${as_nl}ac_space=\ *)
3104 sed -n \
3105 "s/'\''/'\''\\\\'\'''\''/g;
3106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3107 ;; #(
3108 *)
3109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3110 ;;
3111 esac |
3112 sort
3113)
3114 echo
3115
3116 cat <<\_ASBOX
3117## ----------------- ##
3118## Output variables. ##
3119## ----------------- ##
3120_ASBOX
3121 echo
3122 for ac_var in $ac_subst_vars
3123 do
3124 eval ac_val=\$$ac_var
3125 case $ac_val in
3126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3127 esac
3128 $as_echo "$ac_var='\''$ac_val'\''"
3129 done | sort
3130 echo
3131
3132 if test -n "$ac_subst_files"; then
3133 cat <<\_ASBOX
3134## ------------------- ##
3135## File substitutions. ##
3136## ------------------- ##
3137_ASBOX
3138 echo
3139 for ac_var in $ac_subst_files
3140 do
3141 eval ac_val=\$$ac_var
3142 case $ac_val in
3143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3144 esac
3145 $as_echo "$ac_var='\''$ac_val'\''"
3146 done | sort
3147 echo
3148 fi
3149
3150 if test -s confdefs.h; then
3151 cat <<\_ASBOX
3152## ----------- ##
3153## confdefs.h. ##
3154## ----------- ##
3155_ASBOX
3156 echo
3157 cat confdefs.h
3158 echo
3159 fi
3160 test "$ac_signal" != 0 &&
3161 $as_echo "$as_me: caught signal $ac_signal"
3162 $as_echo "$as_me: exit $exit_status"
3163 } >&5
3164 rm -f core *.core core.conftest.* &&
3165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3166 exit $exit_status
3167' 0
3168for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003170done
3171ac_signal=0
3172
3173# confdefs.h avoids OS command line length limits that DEFS can exceed.
3174rm -f -r conftest* confdefs.h
3175
cristy8b350f62009-11-15 23:12:43 +00003176$as_echo "/* confdefs.h */" > confdefs.h
3177
cristy3ed852e2009-09-05 21:47:34 +00003178# Predefined preprocessor variables.
3179
3180cat >>confdefs.h <<_ACEOF
3181#define PACKAGE_NAME "$PACKAGE_NAME"
3182_ACEOF
3183
cristy3ed852e2009-09-05 21:47:34 +00003184cat >>confdefs.h <<_ACEOF
3185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3186_ACEOF
3187
cristy3ed852e2009-09-05 21:47:34 +00003188cat >>confdefs.h <<_ACEOF
3189#define PACKAGE_VERSION "$PACKAGE_VERSION"
3190_ACEOF
3191
cristy3ed852e2009-09-05 21:47:34 +00003192cat >>confdefs.h <<_ACEOF
3193#define PACKAGE_STRING "$PACKAGE_STRING"
3194_ACEOF
3195
cristy3ed852e2009-09-05 21:47:34 +00003196cat >>confdefs.h <<_ACEOF
3197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3198_ACEOF
3199
cristy8b350f62009-11-15 23:12:43 +00003200cat >>confdefs.h <<_ACEOF
3201#define PACKAGE_URL "$PACKAGE_URL"
3202_ACEOF
3203
cristy3ed852e2009-09-05 21:47:34 +00003204
3205# Let the site file select an alternate cache file if it wants to.
3206# Prefer an explicitly selected file to automatically selected ones.
3207ac_site_file1=NONE
3208ac_site_file2=NONE
3209if test -n "$CONFIG_SITE"; then
3210 ac_site_file1=$CONFIG_SITE
3211elif test "x$prefix" != xNONE; then
3212 ac_site_file1=$prefix/share/config.site
3213 ac_site_file2=$prefix/etc/config.site
3214else
3215 ac_site_file1=$ac_default_prefix/share/config.site
3216 ac_site_file2=$ac_default_prefix/etc/config.site
3217fi
3218for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3219do
3220 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003221 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003223$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3224 sed 's/^/| /' "$ac_site_file" >&5
3225 . "$ac_site_file"
3226 fi
3227done
3228
3229if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003230 # Some versions of bash will fail to source /dev/null (special files
3231 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003234$as_echo "$as_me: loading cache $cache_file" >&6;}
3235 case $cache_file in
3236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3237 *) . "./$cache_file";;
3238 esac
3239 fi
3240else
cristy8b350f62009-11-15 23:12:43 +00003241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003242$as_echo "$as_me: creating cache $cache_file" >&6;}
3243 >$cache_file
3244fi
3245
cristycd4c5312009-11-22 01:19:08 +00003246as_fn_append ac_header_list " stdlib.h"
3247as_fn_append ac_header_list " unistd.h"
3248as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003249# Check that the precious variables saved in the cache have kept the same
3250# value.
3251ac_cache_corrupted=false
3252for ac_var in $ac_precious_vars; do
3253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3254 eval ac_new_set=\$ac_env_${ac_var}_set
3255 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3256 eval ac_new_val=\$ac_env_${ac_var}_value
3257 case $ac_old_set,$ac_new_set in
3258 set,)
cristy8b350f62009-11-15 23:12:43 +00003259 { $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 +00003260$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3261 ac_cache_corrupted=: ;;
3262 ,set)
cristy8b350f62009-11-15 23:12:43 +00003263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003264$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3265 ac_cache_corrupted=: ;;
3266 ,);;
3267 *)
3268 if test "x$ac_old_val" != "x$ac_new_val"; then
3269 # differences in whitespace do not lead to failure.
3270 ac_old_val_w=`echo x $ac_old_val`
3271 ac_new_val_w=`echo x $ac_new_val`
3272 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003274$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3275 ac_cache_corrupted=:
3276 else
cristy8b350f62009-11-15 23:12:43 +00003277 { $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 +00003278$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3279 eval $ac_var=\$ac_old_val
3280 fi
cristy8b350f62009-11-15 23:12:43 +00003281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003282$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003284$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3285 fi;;
3286 esac
3287 # Pass precious variables to config.status.
3288 if test "$ac_new_set" = set; then
3289 case $ac_new_val in
3290 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3291 *) ac_arg=$ac_var=$ac_new_val ;;
3292 esac
3293 case " $ac_configure_args " in
3294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003295 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003296 esac
3297 fi
3298done
3299if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003303$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003304 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003305fi
cristy8b350f62009-11-15 23:12:43 +00003306## -------------------- ##
3307## Main body of script. ##
3308## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003309
3310ac_ext=c
3311ac_cpp='$CPP $CPPFLAGS'
3312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
3316
3317
3318ac_aux_dir=
3319for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003320 for ac_t in install-sh install.sh shtool; do
3321 if test -f "$ac_dir/$ac_t"; then
3322 ac_aux_dir=$ac_dir
3323 ac_install_sh="$ac_aux_dir/$ac_t -c"
3324 break 2
3325 fi
3326 done
cristy3ed852e2009-09-05 21:47:34 +00003327done
3328if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003329 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003330fi
3331
3332# These three variables are undocumented and unsupported,
3333# and are intended to be withdrawn in a future Autoconf release.
3334# They can cause serious problems if a builder's source tree is in a directory
3335# whose full name contains unusual characters.
3336ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3337ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3338ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3339
3340
3341
3342
3343ac_config_headers="$ac_config_headers config/config.h"
3344
3345ac_config_commands="$ac_config_commands magick/magick-config.h"
3346
cristy430a7312010-01-21 20:44:04 +00003347ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003348
3349
3350#
3351# Save initial user-tunable values
3352#
3353USER_LIBS=$LIBS
3354for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3355 eval isset=\${$var+set}
3356 if test "$isset" = 'set'; then
3357 eval val=$`echo $var`
3358 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3359 fi
3360done
3361
3362
3363CONFIGURE_ARGS="$0 ${ac_configure_args}"
3364
3365
3366# Source file containing package/library versioning information.
3367. ${srcdir}/version.sh
3368
cristy15a88782010-01-31 23:24:49 +00003369echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003370# Make sure we can run config.sub.
3371$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003372 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003373
cristy8b350f62009-11-15 23:12:43 +00003374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003375$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003376if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003377 $as_echo_n "(cached) " >&6
3378else
3379 ac_build_alias=$build_alias
3380test "x$ac_build_alias" = x &&
3381 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3382test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003383 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003384ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003385 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003386
3387fi
cristy8b350f62009-11-15 23:12:43 +00003388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003389$as_echo "$ac_cv_build" >&6; }
3390case $ac_cv_build in
3391*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003392*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003393esac
3394build=$ac_cv_build
3395ac_save_IFS=$IFS; IFS='-'
3396set x $ac_cv_build
3397shift
3398build_cpu=$1
3399build_vendor=$2
3400shift; shift
3401# Remember, the first character of IFS is used to create $*,
3402# except with old shells:
3403build_os=$*
3404IFS=$ac_save_IFS
3405case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3406
3407
cristy8b350f62009-11-15 23:12:43 +00003408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003410if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003411 $as_echo_n "(cached) " >&6
3412else
3413 if test "x$host_alias" = x; then
3414 ac_cv_host=$ac_cv_build
3415else
3416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003417 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003418fi
3419
3420fi
cristy8b350f62009-11-15 23:12:43 +00003421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003422$as_echo "$ac_cv_host" >&6; }
3423case $ac_cv_host in
3424*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003425*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003426esac
3427host=$ac_cv_host
3428ac_save_IFS=$IFS; IFS='-'
3429set x $ac_cv_host
3430shift
3431host_cpu=$1
3432host_vendor=$2
3433shift; shift
3434# Remember, the first character of IFS is used to create $*,
3435# except with old shells:
3436host_os=$*
3437IFS=$ac_save_IFS
3438case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3439
3440
cristy8b350f62009-11-15 23:12:43 +00003441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003442$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003443if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003444 $as_echo_n "(cached) " >&6
3445else
3446 if test "x$target_alias" = x; then
3447 ac_cv_target=$ac_cv_host
3448else
3449 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003450 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003451fi
3452
3453fi
cristy8b350f62009-11-15 23:12:43 +00003454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003455$as_echo "$ac_cv_target" >&6; }
3456case $ac_cv_target in
3457*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003458*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003459esac
3460target=$ac_cv_target
3461ac_save_IFS=$IFS; IFS='-'
3462set x $ac_cv_target
3463shift
3464target_cpu=$1
3465target_vendor=$2
3466shift; shift
3467# Remember, the first character of IFS is used to create $*,
3468# except with old shells:
3469target_os=$*
3470IFS=$ac_save_IFS
3471case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3472
3473
3474# The aliases save the names the user supplied, while $host etc.
3475# will get canonicalized.
3476test -n "$target_alias" &&
3477 test "$program_prefix$program_suffix$program_transform_name" = \
3478 NONENONEs,x,x, &&
3479 program_prefix=${target_alias}-
3480
cristy837d6dc2010-02-27 01:16:57 +00003481
3482
3483
3484
cristy3225a072010-04-17 01:47:28 +00003485MAGICK_TARGET_CPU=$target_cpu
3486
3487
3488MAGICK_TARGET_VENDOR=$target_vendor
3489
3490
3491MAGICK_TARGET_OS=$target_os
3492
3493
cristy3ed852e2009-09-05 21:47:34 +00003494# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003495MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3496
3497MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3498
cristy3ed852e2009-09-05 21:47:34 +00003499
3500
3501# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003503$as_echo_n "checking whether build environment is sane... " >&6; }
3504# Just in case
3505sleep 1
3506echo timestamp > conftest.file
3507# Reject unsafe characters in $srcdir or the absolute working directory
3508# name. Accept space and tab only in the latter.
3509am_lf='
3510'
3511case `pwd` in
3512 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003513 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003514esac
3515case $srcdir in
3516 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003517 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003518esac
3519
3520# Do `set' in a subshell so we don't clobber the current shell's
3521# arguments. Must try -L first in case configure is actually a
3522# symlink; some systems play weird games with the mod time of symlinks
3523# (eg FreeBSD returns the mod time of the symlink's containing
3524# directory).
3525if (
3526 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3527 if test "$*" = "X"; then
3528 # -L didn't work.
3529 set X `ls -t "$srcdir/configure" conftest.file`
3530 fi
3531 rm -f conftest.file
3532 if test "$*" != "X $srcdir/configure conftest.file" \
3533 && test "$*" != "X conftest.file $srcdir/configure"; then
3534
3535 # If neither matched, then we have a broken ls. This can happen
3536 # if, for instance, CONFIG_SHELL is bash and it inherits a
3537 # broken ls alias from the environment. This has actually
3538 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003539 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3540alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541 fi
3542
3543 test "$2" = conftest.file
3544 )
3545then
3546 # Ok.
3547 :
3548else
cristy8b350f62009-11-15 23:12:43 +00003549 as_fn_error "newly created file is older than distributed files!
3550Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003551fi
cristy8b350f62009-11-15 23:12:43 +00003552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003553$as_echo "yes" >&6; }
3554
3555am__api_version='1.11'
3556
3557# Find a good install program. We prefer a C program (faster),
3558# so one script is as good as another. But avoid the broken or
3559# incompatible versions:
3560# SysV /etc/install, /usr/sbin/install
3561# SunOS /usr/etc/install
3562# IRIX /sbin/install
3563# AIX /bin/install
3564# AmigaOS /C/install, which installs bootblocks on floppy discs
3565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3566# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3568# OS/2's system install, which has a completely different semantic
3569# ./install, which can be erroneously created by make from ./install.sh.
3570# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003572$as_echo_n "checking for a BSD-compatible install... " >&6; }
3573if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003574if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003575 $as_echo_n "(cached) " >&6
3576else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003582 # Account for people who put trailing slashes in PATH elements.
3583case $as_dir/ in #((
3584 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003586 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003587 /usr/ucb/* ) ;;
3588 *)
3589 # OSF1 and SCO ODT 3.0 have their own names for install.
3590 # Don't use installbsd from OSF since it installs stuff as root
3591 # by default.
3592 for ac_prog in ginstall scoinst install; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3595 if test $ac_prog = install &&
3596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # AIX install. It has an incompatible calling convention.
3598 :
3599 elif test $ac_prog = install &&
3600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3601 # program-specific install script used by HP pwplus--don't use.
3602 :
3603 else
3604 rm -rf conftest.one conftest.two conftest.dir
3605 echo one > conftest.one
3606 echo two > conftest.two
3607 mkdir conftest.dir
3608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3609 test -s conftest.one && test -s conftest.two &&
3610 test -s conftest.dir/conftest.one &&
3611 test -s conftest.dir/conftest.two
3612 then
3613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3614 break 3
3615 fi
3616 fi
3617 fi
3618 done
3619 done
3620 ;;
3621esac
3622
cristy8b350f62009-11-15 23:12:43 +00003623 done
cristy3ed852e2009-09-05 21:47:34 +00003624IFS=$as_save_IFS
3625
3626rm -rf conftest.one conftest.two conftest.dir
3627
3628fi
3629 if test "${ac_cv_path_install+set}" = set; then
3630 INSTALL=$ac_cv_path_install
3631 else
3632 # As a last resort, use the slow shell script. Don't cache a
3633 # value for INSTALL within a source directory, because that will
3634 # break other packages using the cache if that directory is
3635 # removed, or if the value is a relative name.
3636 INSTALL=$ac_install_sh
3637 fi
3638fi
cristy8b350f62009-11-15 23:12:43 +00003639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003640$as_echo "$INSTALL" >&6; }
3641
3642# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3643# It thinks the first close brace ends the variable substitution.
3644test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3645
3646test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3647
3648test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3649
3650test "$program_prefix" != NONE &&
3651 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3652# Use a double $ so make ignores it.
3653test "$program_suffix" != NONE &&
3654 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3655# Double any \ or $.
3656# By default was `s,x,x', remove it if useless.
3657ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3658program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3659
3660# expand $ac_aux_dir to an absolute path
3661am_aux_dir=`cd $ac_aux_dir && pwd`
3662
3663if test x"${MISSING+set}" != xset; then
3664 case $am_aux_dir in
3665 *\ * | *\ *)
3666 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3667 *)
3668 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3669 esac
3670fi
3671# Use eval to expand $SHELL
3672if eval "$MISSING --run true"; then
3673 am_missing_run="$MISSING --run "
3674else
3675 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003677$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3678fi
3679
3680if test x"${install_sh}" != xset; then
3681 case $am_aux_dir in
3682 *\ * | *\ *)
3683 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3684 *)
3685 install_sh="\${SHELL} $am_aux_dir/install-sh"
3686 esac
3687fi
3688
3689# Installed binaries are usually stripped using `strip' when the user
3690# run `make install-strip'. However `strip' might not be the right
3691# tool to use in cross-compilation environments, therefore Automake
3692# will honor the `STRIP' environment variable to overrule this program.
3693if test "$cross_compiling" != no; then
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3696set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003698$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003699if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003700 $as_echo_n "(cached) " >&6
3701else
3702 if test -n "$STRIP"; then
3703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003714 break 2
3715 fi
3716done
cristy8b350f62009-11-15 23:12:43 +00003717 done
cristy3ed852e2009-09-05 21:47:34 +00003718IFS=$as_save_IFS
3719
3720fi
3721fi
3722STRIP=$ac_cv_prog_STRIP
3723if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003725$as_echo "$STRIP" >&6; }
3726else
cristy8b350f62009-11-15 23:12:43 +00003727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003728$as_echo "no" >&6; }
3729fi
3730
3731
3732fi
3733if test -z "$ac_cv_prog_STRIP"; then
3734 ac_ct_STRIP=$STRIP
3735 # Extract the first word of "strip", so it can be a program name with args.
3736set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003738$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003739if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003740 $as_echo_n "(cached) " >&6
3741else
3742 if test -n "$ac_ct_STRIP"; then
3743 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3744else
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003754 break 2
3755 fi
3756done
cristy8b350f62009-11-15 23:12:43 +00003757 done
cristy3ed852e2009-09-05 21:47:34 +00003758IFS=$as_save_IFS
3759
3760fi
3761fi
3762ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3763if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003765$as_echo "$ac_ct_STRIP" >&6; }
3766else
cristy8b350f62009-11-15 23:12:43 +00003767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003768$as_echo "no" >&6; }
3769fi
3770
3771 if test "x$ac_ct_STRIP" = x; then
3772 STRIP=":"
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775yes:)
cristy8b350f62009-11-15 23:12:43 +00003776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778ac_tool_warned=yes ;;
3779esac
3780 STRIP=$ac_ct_STRIP
3781 fi
3782else
3783 STRIP="$ac_cv_prog_STRIP"
3784fi
3785
3786fi
3787INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3788
cristy8b350f62009-11-15 23:12:43 +00003789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003790$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3791if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003792 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003793 $as_echo_n "(cached) " >&6
3794else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003800 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3803 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3804 'mkdir (GNU coreutils) '* | \
3805 'mkdir (coreutils) '* | \
3806 'mkdir (fileutils) '4.1*)
3807 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3808 break 3;;
3809 esac
3810 done
3811 done
cristy8b350f62009-11-15 23:12:43 +00003812 done
cristy3ed852e2009-09-05 21:47:34 +00003813IFS=$as_save_IFS
3814
3815fi
3816
cristycd4c5312009-11-22 01:19:08 +00003817 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003818 if test "${ac_cv_path_mkdir+set}" = set; then
3819 MKDIR_P="$ac_cv_path_mkdir -p"
3820 else
3821 # As a last resort, use the slow shell script. Don't cache a
3822 # value for MKDIR_P within a source directory, because that will
3823 # break other packages using the cache if that directory is
3824 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003825 MKDIR_P="$ac_install_sh -d"
3826 fi
3827fi
cristy8b350f62009-11-15 23:12:43 +00003828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003829$as_echo "$MKDIR_P" >&6; }
3830
3831mkdir_p="$MKDIR_P"
3832case $mkdir_p in
3833 [\\/$]* | ?:[\\/]*) ;;
3834 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3835esac
3836
3837for ac_prog in gawk mawk nawk awk
3838do
3839 # Extract the first word of "$ac_prog", so it can be a program name with args.
3840set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003842$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003843if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003844 $as_echo_n "(cached) " >&6
3845else
3846 if test -n "$AWK"; then
3847 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3848else
3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003858 break 2
3859 fi
3860done
cristy8b350f62009-11-15 23:12:43 +00003861 done
cristy3ed852e2009-09-05 21:47:34 +00003862IFS=$as_save_IFS
3863
3864fi
3865fi
3866AWK=$ac_cv_prog_AWK
3867if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003869$as_echo "$AWK" >&6; }
3870else
cristy8b350f62009-11-15 23:12:43 +00003871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003872$as_echo "no" >&6; }
3873fi
3874
3875
3876 test -n "$AWK" && break
3877done
3878
cristy8b350f62009-11-15 23:12:43 +00003879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003880$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3881set x ${MAKE-make}
3882ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003883if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003884 $as_echo_n "(cached) " >&6
3885else
3886 cat >conftest.make <<\_ACEOF
3887SHELL = /bin/sh
3888all:
3889 @echo '@@@%%%=$(MAKE)=@@@%%%'
3890_ACEOF
3891# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3892case `${MAKE-make} -f conftest.make 2>/dev/null` in
3893 *@@@%%%=?*=@@@%%%*)
3894 eval ac_cv_prog_make_${ac_make}_set=yes;;
3895 *)
3896 eval ac_cv_prog_make_${ac_make}_set=no;;
3897esac
3898rm -f conftest.make
3899fi
3900if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003902$as_echo "yes" >&6; }
3903 SET_MAKE=
3904else
cristy8b350f62009-11-15 23:12:43 +00003905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003906$as_echo "no" >&6; }
3907 SET_MAKE="MAKE=${MAKE-make}"
3908fi
3909
3910rm -rf .tst 2>/dev/null
3911mkdir .tst 2>/dev/null
3912if test -d .tst; then
3913 am__leading_dot=.
3914else
3915 am__leading_dot=_
3916fi
3917rmdir .tst 2>/dev/null
3918
3919if test "`cd $srcdir && pwd`" != "`pwd`"; then
3920 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3921 # is not polluted with repeated "-I."
3922 am__isrc=' -I$(srcdir)'
3923 # test to see if srcdir already configured
3924 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003925 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003926 fi
3927fi
3928
3929# test whether we have cygpath
3930if test -z "$CYGPATH_W"; then
3931 if (cygpath --version) >/dev/null 2>/dev/null; then
3932 CYGPATH_W='cygpath -w'
3933 else
3934 CYGPATH_W=echo
3935 fi
3936fi
3937
3938
3939# Define the identity of the package.
3940 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003941 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003942
3943
3944# Some tools Automake needs.
3945
3946ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3947
3948
3949AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3950
3951
3952AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3953
3954
3955AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3956
3957
3958MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3959
3960# We need awk for the "check" target. The system "awk" is bad on
3961# some platforms.
3962# Always define AMTAR for backward compatibility.
3963
3964AMTAR=${AMTAR-"${am_missing_run}tar"}
3965
3966am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3967
3968
3969
3970
3971
3972
3973# Enable support for silent build rules
3974# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003975if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003976 enableval=$enable_silent_rules;
3977fi
3978
3979case $enable_silent_rules in
3980yes) AM_DEFAULT_VERBOSITY=0;;
3981no) AM_DEFAULT_VERBOSITY=1;;
3982*) AM_DEFAULT_VERBOSITY=0;;
3983esac
3984AM_BACKSLASH='\'
3985
3986
3987MAGICK_LIB_VERSION="0x"
3988if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3989 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3990fi
3991MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3992if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3993 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3994fi
3995MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3996if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3997 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3998fi
3999MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4000
4001
4002# Definition used to define MagickLibVersionText in version.h
4003MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4004
4005
4006# Definition used to define MagickLibVersionNumber in version.h
4007MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4008
4009
4010# Regenerate config.status if ChangeLog or version.sh is updated.
4011CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4012
4013
4014PERLMAINCC=$CC
4015
4016MAGICK_CFLAGS=''
4017MAGICK_CPPFLAGS=$CPPFLAGS_USER
4018MAGICK_PCFLAGS=$CPPFLAGS_USER
4019MAGICK_LDFLAGS=''
4020MAGICK_LIBS=''
4021
4022#
4023# Evaluate shell variable equivalents to Makefile directory variables
4024#
4025if test "x$prefix" = xNONE; then
4026 prefix=$ac_default_prefix
4027fi
4028# Let make expand exec_prefix.
4029if test "x$exec_prefix" = xNONE; then
4030 exec_prefix='${prefix}'
4031fi
4032
4033#
4034eval "eval PREFIX_DIR=${prefix}"
4035
4036eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4037
4038eval "eval BIN_DIR=$bindir"
4039
4040eval "eval SBIN_DIR=$sbindir"
4041
4042eval "eval LIBEXEC_DIR=$libexecdir"
4043
4044eval "eval DATA_DIR=$datadir"
4045
4046eval "eval SYSCONF_DIR=$sysconfdir"
4047
4048eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4049
4050eval "eval LOCALSTATE_DIR=$localstatedir"
4051
4052eval "eval LIB_DIR=$libdir"
4053
4054eval "eval INCLUDE_DIR=$includedir"
4055
4056eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4057
4058eval "eval INFO_DIR=$infodir"
4059
4060eval "eval MAN_DIR=$mandir"
4061
4062
4063# Get full paths to source and build directories
4064srcdirfull="`cd $srcdir && pwd`"
4065builddir="`pwd`"
4066
4067#
4068# Compute variables useful for running uninstalled software.
4069#
4070MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4071MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4072MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4073MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4074DIRSEP=':'
4075case "${build_os}" in
4076 mingw* )
4077 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4078 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4079 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4080 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4081 DIRSEP=';'
4082 ;;
4083esac
4084case "${host_os}" in
4085 mingw* )
4086 DIRSEP=';'
4087 ;;
4088esac
4089
4090
4091
4092
4093
4094
cristya0b81c32010-01-22 02:54:33 +00004095
4096#
4097# Enable OS features.
4098#
4099DEPDIR="${am__leading_dot}deps"
4100
4101ac_config_commands="$ac_config_commands depfiles"
4102
4103
4104am_make=${MAKE-make}
4105cat > confinc << 'END'
4106am__doit:
4107 @echo this is the am__doit target
4108.PHONY: am__doit
4109END
4110# If we don't find an include directive, just comment out the code.
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4112$as_echo_n "checking for style of include used by $am_make... " >&6; }
4113am__include="#"
4114am__quote=
4115_am_result=none
4116# First try GNU make style include.
4117echo "include confinc" > confmf
4118# Ignore all kinds of additional output from `make'.
4119case `$am_make -s -f confmf 2> /dev/null` in #(
4120*the\ am__doit\ target*)
4121 am__include=include
4122 am__quote=
4123 _am_result=GNU
4124 ;;
4125esac
4126# Now try BSD make style include.
4127if test "$am__include" = "#"; then
4128 echo '.include "confinc"' > confmf
4129 case `$am_make -s -f confmf 2> /dev/null` in #(
4130 *the\ am__doit\ target*)
4131 am__include=.include
4132 am__quote="\""
4133 _am_result=BSD
4134 ;;
4135 esac
4136fi
4137
4138
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4140$as_echo "$_am_result" >&6; }
4141rm -f confinc confmf
4142
4143# Check whether --enable-dependency-tracking was given.
4144if test "${enable_dependency_tracking+set}" = set; then :
4145 enableval=$enable_dependency_tracking;
4146fi
4147
4148if test "x$enable_dependency_tracking" != xno; then
4149 am_depcomp="$ac_aux_dir/depcomp"
4150 AMDEPBACKSLASH='\'
4151fi
4152 if test "x$enable_dependency_tracking" != xno; then
4153 AMDEP_TRUE=
4154 AMDEP_FALSE='#'
4155else
4156 AMDEP_TRUE='#'
4157 AMDEP_FALSE=
4158fi
4159
4160
cristy3ed852e2009-09-05 21:47:34 +00004161ac_ext=c
4162ac_cpp='$CPP $CPPFLAGS'
4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4168set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004171if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004172 $as_echo_n "(cached) " >&6
4173else
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004186 break 2
4187 fi
4188done
cristy8b350f62009-11-15 23:12:43 +00004189 done
cristy3ed852e2009-09-05 21:47:34 +00004190IFS=$as_save_IFS
4191
4192fi
4193fi
4194CC=$ac_cv_prog_CC
4195if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo "$CC" >&6; }
4198else
cristy8b350f62009-11-15 23:12:43 +00004199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004200$as_echo "no" >&6; }
4201fi
4202
4203
4204fi
4205if test -z "$ac_cv_prog_CC"; then
4206 ac_ct_CC=$CC
4207 # Extract the first word of "gcc", so it can be a program name with args.
4208set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004210$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004211if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004212 $as_echo_n "(cached) " >&6
4213else
4214 if test -n "$ac_ct_CC"; then
4215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4216else
4217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH
4219do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004226 break 2
4227 fi
4228done
cristy8b350f62009-11-15 23:12:43 +00004229 done
cristy3ed852e2009-09-05 21:47:34 +00004230IFS=$as_save_IFS
4231
4232fi
4233fi
4234ac_ct_CC=$ac_cv_prog_ac_ct_CC
4235if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004237$as_echo "$ac_ct_CC" >&6; }
4238else
cristy8b350f62009-11-15 23:12:43 +00004239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004240$as_echo "no" >&6; }
4241fi
4242
4243 if test "x$ac_ct_CC" = x; then
4244 CC=""
4245 else
4246 case $cross_compiling:$ac_tool_warned in
4247yes:)
cristy8b350f62009-11-15 23:12:43 +00004248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250ac_tool_warned=yes ;;
4251esac
4252 CC=$ac_ct_CC
4253 fi
4254else
4255 CC="$ac_cv_prog_CC"
4256fi
4257
4258if test -z "$CC"; then
4259 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4261set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004263$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004264if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004265 $as_echo_n "(cached) " >&6
4266else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004279 break 2
4280 fi
4281done
cristy8b350f62009-11-15 23:12:43 +00004282 done
cristy3ed852e2009-09-05 21:47:34 +00004283IFS=$as_save_IFS
4284
4285fi
4286fi
4287CC=$ac_cv_prog_CC
4288if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004290$as_echo "$CC" >&6; }
4291else
cristy8b350f62009-11-15 23:12:43 +00004292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004293$as_echo "no" >&6; }
4294fi
4295
4296
4297 fi
4298fi
4299if test -z "$CC"; then
4300 # Extract the first word of "cc", so it can be a program name with args.
4301set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004303$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004304if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004305 $as_echo_n "(cached) " >&6
4306else
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309else
4310 ac_prog_rejected=no
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4319 ac_prog_rejected=yes
4320 continue
4321 fi
4322 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324 break 2
4325 fi
4326done
cristy8b350f62009-11-15 23:12:43 +00004327 done
cristy3ed852e2009-09-05 21:47:34 +00004328IFS=$as_save_IFS
4329
4330if test $ac_prog_rejected = yes; then
4331 # We found a bogon in the path, so make sure we never use it.
4332 set dummy $ac_cv_prog_CC
4333 shift
4334 if test $# != 0; then
4335 # We chose a different compiler from the bogus one.
4336 # However, it has the same basename, so the bogon will be chosen
4337 # first if we set CC to just the basename; use the full file name.
4338 shift
4339 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4340 fi
4341fi
4342fi
4343fi
4344CC=$ac_cv_prog_CC
4345if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004347$as_echo "$CC" >&6; }
4348else
cristy8b350f62009-11-15 23:12:43 +00004349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo "no" >&6; }
4351fi
4352
4353
4354fi
4355if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 for ac_prog in cl.exe
4358 do
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004362$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004363if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004364 $as_echo_n "(cached) " >&6
4365else
4366 if test -n "$CC"; then
4367 ac_cv_prog_CC="$CC" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004378 break 2
4379 fi
4380done
cristy8b350f62009-11-15 23:12:43 +00004381 done
cristy3ed852e2009-09-05 21:47:34 +00004382IFS=$as_save_IFS
4383
4384fi
4385fi
4386CC=$ac_cv_prog_CC
4387if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004389$as_echo "$CC" >&6; }
4390else
cristy8b350f62009-11-15 23:12:43 +00004391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004392$as_echo "no" >&6; }
4393fi
4394
4395
4396 test -n "$CC" && break
4397 done
4398fi
4399if test -z "$CC"; then
4400 ac_ct_CC=$CC
4401 for ac_prog in cl.exe
4402do
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004406$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004408 $as_echo_n "(cached) " >&6
4409else
4410 if test -n "$ac_ct_CC"; then
4411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004422 break 2
4423 fi
4424done
cristy8b350f62009-11-15 23:12:43 +00004425 done
cristy3ed852e2009-09-05 21:47:34 +00004426IFS=$as_save_IFS
4427
4428fi
4429fi
4430ac_ct_CC=$ac_cv_prog_ac_ct_CC
4431if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433$as_echo "$ac_ct_CC" >&6; }
4434else
cristy8b350f62009-11-15 23:12:43 +00004435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004436$as_echo "no" >&6; }
4437fi
4438
4439
4440 test -n "$ac_ct_CC" && break
4441done
4442
4443 if test "x$ac_ct_CC" = x; then
4444 CC=""
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447yes:)
cristy8b350f62009-11-15 23:12:43 +00004448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450ac_tool_warned=yes ;;
4451esac
4452 CC=$ac_ct_CC
4453 fi
4454fi
4455
4456fi
4457
4458
cristy8b350f62009-11-15 23:12:43 +00004459test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004461as_fn_error "no acceptable C compiler found in \$PATH
4462See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004463
4464# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004465$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004466set X $ac_compile
4467ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004468for ac_option in --version -v -V -qversion; do
4469 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004470case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
cristy8b350f62009-11-15 23:12:43 +00004474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475$as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004477 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004478 if test -s conftest.err; then
4479 sed '10a\
4480... rest of stderr output deleted ...
4481 10q' conftest.err >conftest.er1
4482 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004483 fi
cristycd4c5312009-11-22 01:19:08 +00004484 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }
4487done
cristy3ed852e2009-09-05 21:47:34 +00004488
cristy8b350f62009-11-15 23:12:43 +00004489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004490/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004491
cristy3ed852e2009-09-05 21:47:34 +00004492int
4493main ()
4494{
4495
4496 ;
4497 return 0;
4498}
4499_ACEOF
4500ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004501ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004502# Try to create an executable without -o first, disregard a.out.
4503# It will help us diagnose broken compilers, and finding out an intuition
4504# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4506$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004507ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4508
4509# The possible output files:
4510ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4511
4512ac_rmfiles=
4513for ac_file in $ac_files
4514do
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4518 esac
4519done
4520rm -f $ac_rmfiles
4521
cristy8b350f62009-11-15 23:12:43 +00004522if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004523case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
cristy8b350f62009-11-15 23:12:43 +00004527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004529 (eval "$ac_link_default") 2>&5
4530 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4534# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4535# in a Makefile. We should not override ac_cv_exeext if it was cached,
4536# so that the user can short-circuit this test for compilers unknown to
4537# Autoconf.
4538for ac_file in $ac_files ''
4539do
4540 test -f "$ac_file" || continue
4541 case $ac_file in
4542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4543 ;;
4544 [ab].out )
4545 # We found the default executable, but exeext='' is most
4546 # certainly right.
4547 break;;
4548 *.* )
cristy8b350f62009-11-15 23:12:43 +00004549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004550 then :; else
4551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4552 fi
4553 # We set ac_cv_exeext here because the later test for it is not
4554 # safe: cross compilers may not add the suffix if given an `-o'
4555 # argument, so we may need to know it at that point already.
4556 # Even if this section looks crufty: it has the advantage of
4557 # actually working.
4558 break;;
4559 * )
4560 break;;
4561 esac
4562done
4563test "$ac_cv_exeext" = no && ac_cv_exeext=
4564
4565else
4566 ac_file=''
4567fi
cristy8b350f62009-11-15 23:12:43 +00004568if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570$as_echo "no" >&6; }
4571$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572sed 's/^/| /' conftest.$ac_ext >&5
4573
cristy8b350f62009-11-15 23:12:43 +00004574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004576{ as_fn_set_status 77
4577as_fn_error "C compiler cannot create executables
4578See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004579else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4581$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004582fi
cristycd4c5312009-11-22 01:19:08 +00004583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4584$as_echo_n "checking for C compiler default output file name... " >&6; }
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4586$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004587ac_exeext=$ac_cv_exeext
4588
cristycd4c5312009-11-22 01:19:08 +00004589rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004590ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004592$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004593if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004594case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
cristy8b350f62009-11-15 23:12:43 +00004598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4599$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004600 (eval "$ac_link") 2>&5
4601 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004604 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4605# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4606# work properly (i.e., refer to `conftest.exe'), while it won't with
4607# `rm'.
4608for ac_file in conftest.exe conftest conftest.*; do
4609 test -f "$ac_file" || continue
4610 case $ac_file in
4611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4612 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4613 break;;
4614 * ) break;;
4615 esac
4616done
4617else
cristy8b350f62009-11-15 23:12:43 +00004618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004620as_fn_error "cannot compute suffix of executables: cannot compile and link
4621See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004622fi
cristycd4c5312009-11-22 01:19:08 +00004623rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004625$as_echo "$ac_cv_exeext" >&6; }
4626
4627rm -f conftest.$ac_ext
4628EXEEXT=$ac_cv_exeext
4629ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h. */
4632#include <stdio.h>
4633int
4634main ()
4635{
4636FILE *f = fopen ("conftest.out", "w");
4637 return ferror (f) || fclose (f) != 0;
4638
4639 ;
4640 return 0;
4641}
4642_ACEOF
4643ac_clean_files="$ac_clean_files conftest.out"
4644# Check that the compiler produces executables we can run. If not, either
4645# the compiler is broken, or we cross compile.
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4647$as_echo_n "checking whether we are cross compiling... " >&6; }
4648if test "$cross_compiling" != yes; then
4649 { { ac_try="$ac_link"
4650case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653esac
4654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655$as_echo "$ac_try_echo"; } >&5
4656 (eval "$ac_link") 2>&5
4657 ac_status=$?
4658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }
4660 if { ac_try='./conftest$ac_cv_exeext'
4661 { { case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664esac
4665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666$as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_try") 2>&5
4668 ac_status=$?
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }; }; then
4671 cross_compiling=no
4672 else
4673 if test "$cross_compiling" = maybe; then
4674 cross_compiling=yes
4675 else
4676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4678as_fn_error "cannot run C compiled programs.
4679If you meant to cross compile, use \`--host'.
4680See \`config.log' for more details." "$LINENO" 5; }
4681 fi
4682 fi
4683fi
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4685$as_echo "$cross_compiling" >&6; }
4686
4687rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4688ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004691if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004692 $as_echo_n "(cached) " >&6
4693else
cristy8b350f62009-11-15 23:12:43 +00004694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004695/* end confdefs.h. */
4696
4697int
4698main ()
4699{
4700
4701 ;
4702 return 0;
4703}
4704_ACEOF
4705rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004706if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004707case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710esac
cristy8b350f62009-11-15 23:12:43 +00004711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004713 (eval "$ac_compile") 2>&5
4714 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004717 for ac_file in conftest.o conftest.obj conftest.*; do
4718 test -f "$ac_file" || continue;
4719 case $ac_file in
4720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4722 break;;
4723 esac
4724done
4725else
4726 $as_echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
cristy8b350f62009-11-15 23:12:43 +00004729{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004731as_fn_error "cannot compute suffix of object files: cannot compile
4732See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004733fi
cristy3ed852e2009-09-05 21:47:34 +00004734rm -f conftest.$ac_cv_objext conftest.$ac_ext
4735fi
cristy8b350f62009-11-15 23:12:43 +00004736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004737$as_echo "$ac_cv_objext" >&6; }
4738OBJEXT=$ac_cv_objext
4739ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004742if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 $as_echo_n "(cached) " >&6
4744else
cristy8b350f62009-11-15 23:12:43 +00004745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004746/* end confdefs.h. */
4747
4748int
4749main ()
4750{
4751#ifndef __GNUC__
4752 choke me
4753#endif
4754
4755 ;
4756 return 0;
4757}
4758_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004759if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004760 ac_compiler_gnu=yes
4761else
cristy8b350f62009-11-15 23:12:43 +00004762 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004763fi
cristy3ed852e2009-09-05 21:47:34 +00004764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765ac_cv_c_compiler_gnu=$ac_compiler_gnu
4766
4767fi
cristy8b350f62009-11-15 23:12:43 +00004768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004769$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4770if test $ac_compiler_gnu = yes; then
4771 GCC=yes
4772else
4773 GCC=
4774fi
4775ac_test_CFLAGS=${CFLAGS+set}
4776ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004778$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004779if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004780 $as_echo_n "(cached) " >&6
4781else
4782 ac_save_c_werror_flag=$ac_c_werror_flag
4783 ac_c_werror_flag=yes
4784 ac_cv_prog_cc_g=no
4785 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004787/* end confdefs.h. */
4788
4789int
4790main ()
4791{
4792
4793 ;
4794 return 0;
4795}
4796_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004797if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004798 ac_cv_prog_cc_g=yes
4799else
cristy8b350f62009-11-15 23:12:43 +00004800 CFLAGS=""
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004802/* end confdefs.h. */
4803
4804int
4805main ()
4806{
4807
4808 ;
4809 return 0;
4810}
4811_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004812if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004813
cristy8b350f62009-11-15 23:12:43 +00004814else
4815 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004816 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004818/* end confdefs.h. */
4819
4820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004828if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004829 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004830fi
cristy3ed852e2009-09-05 21:47:34 +00004831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832fi
cristy3ed852e2009-09-05 21:47:34 +00004833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834fi
cristy3ed852e2009-09-05 21:47:34 +00004835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 ac_c_werror_flag=$ac_save_c_werror_flag
4837fi
cristy8b350f62009-11-15 23:12:43 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo "$ac_cv_prog_cc_g" >&6; }
4840if test "$ac_test_CFLAGS" = set; then
4841 CFLAGS=$ac_save_CFLAGS
4842elif test $ac_cv_prog_cc_g = yes; then
4843 if test "$GCC" = yes; then
4844 CFLAGS="-g -O2"
4845 else
4846 CFLAGS="-g"
4847 fi
4848else
4849 if test "$GCC" = yes; then
4850 CFLAGS="-O2"
4851 else
4852 CFLAGS=
4853 fi
4854fi
cristy8b350f62009-11-15 23:12:43 +00004855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004856$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004857if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004858 $as_echo_n "(cached) " >&6
4859else
4860 ac_cv_prog_cc_c89=no
4861ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004863/* end confdefs.h. */
4864#include <stdarg.h>
4865#include <stdio.h>
4866#include <sys/types.h>
4867#include <sys/stat.h>
4868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869struct buf { int x; };
4870FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871static char *e (p, i)
4872 char **p;
4873 int i;
4874{
4875 return p[i];
4876}
4877static char *f (char * (*g) (char **, int), char **p, ...)
4878{
4879 char *s;
4880 va_list v;
4881 va_start (v,p);
4882 s = g (p, va_arg (v,int));
4883 va_end (v);
4884 return s;
4885}
4886
4887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
4890 as 'x'. The following induces an error, until -std is added to get
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
4893 that's true only with -std. */
4894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4895
4896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4897 inside strings and character constants. */
4898#define FOO(x) 'x'
4899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4900
4901int test (int i, double x);
4902struct s1 {int (*f) (int a);};
4903struct s2 {int (*f) (double a);};
4904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4905int argc;
4906char **argv;
4907int
4908main ()
4909{
4910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4917do
4918 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004919 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004920 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004921fi
cristy3ed852e2009-09-05 21:47:34 +00004922rm -f core conftest.err conftest.$ac_objext
4923 test "x$ac_cv_prog_cc_c89" != "xno" && break
4924done
4925rm -f conftest.$ac_ext
4926CC=$ac_save_CC
4927
4928fi
4929# AC_CACHE_VAL
4930case "x$ac_cv_prog_cc_c89" in
4931 x)
cristy8b350f62009-11-15 23:12:43 +00004932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004933$as_echo "none needed" >&6; } ;;
4934 xno)
cristy8b350f62009-11-15 23:12:43 +00004935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004936$as_echo "unsupported" >&6; } ;;
4937 *)
4938 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004940$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4941esac
cristy8b350f62009-11-15 23:12:43 +00004942if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004943
cristy8b350f62009-11-15 23:12:43 +00004944fi
cristy3ed852e2009-09-05 21:47:34 +00004945
4946ac_ext=c
4947ac_cpp='$CPP $CPPFLAGS'
4948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004951
cristya0b81c32010-01-22 02:54:33 +00004952depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004953
cristya0b81c32010-01-22 02:54:33 +00004954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4955$as_echo_n "checking dependency style of $depcc... " >&6; }
4956if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004958else
cristya0b81c32010-01-22 02:54:33 +00004959 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4960 # We make a subdir and do the tests there. Otherwise we can end up
4961 # making bogus files that we don't know about and never remove. For
4962 # instance it was reported that on HP-UX the gcc test will end up
4963 # making a dummy file named `D' -- because `-MD' means `put the output
4964 # in D'.
4965 mkdir conftest.dir
4966 # Copy depcomp to subdir because otherwise we won't find it if we're
4967 # using a relative directory.
4968 cp "$am_depcomp" conftest.dir
4969 cd conftest.dir
4970 # We will build objects and dependencies in a subdirectory because
4971 # it helps to detect inapplicable dependency modes. For instance
4972 # both Tru64's cc and ICC support -MD to output dependencies as a
4973 # side effect of compilation, but ICC will put the dependencies in
4974 # the current directory while Tru64 will put them in the object
4975 # directory.
4976 mkdir sub
4977
4978 am_cv_CC_dependencies_compiler_type=none
4979 if test "$am_compiler_list" = ""; then
4980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4981 fi
4982 am__universal=false
4983 case " $depcc " in #(
4984 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4985 esac
4986
4987 for depmode in $am_compiler_list; do
4988 # Setup a source with many dependencies, because some compilers
4989 # like to wrap large dependency lists on column 80 (with \), and
4990 # we should not choose a depcomp mode which is confused by this.
4991 #
4992 # We need to recreate these files for each test, as the compiler may
4993 # overwrite some of them when testing with obscure command lines.
4994 # This happens at least with the AIX C compiler.
4995 : > sub/conftest.c
4996 for i in 1 2 3 4 5 6; do
4997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4998 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4999 # Solaris 8's {/usr,}/bin/sh.
5000 touch sub/conftst$i.h
5001 done
5002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5003
5004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5005 # mode. It turns out that the SunPro C++ compiler does not properly
5006 # handle `-M -o', and we need to detect this. Also, some Intel
5007 # versions had trouble with output in subdirs
5008 am__obj=sub/conftest.${OBJEXT-o}
5009 am__minus_obj="-o $am__obj"
5010 case $depmode in
5011 gcc)
5012 # This depmode causes a compiler race in universal mode.
5013 test "$am__universal" = false || continue
5014 ;;
5015 nosideeffect)
5016 # after this tag, mechanisms are not by side-effect, so they'll
5017 # only be used when explicitly requested
5018 if test "x$enable_dependency_tracking" = xyes; then
5019 continue
5020 else
5021 break
5022 fi
5023 ;;
5024 msvisualcpp | msvcmsys)
5025 # This compiler won't grok `-c -o', but also, the minuso test has
5026 # not run yet. These depmodes are late enough in the game, and
5027 # so weak that their functioning should not be impacted.
5028 am__obj=conftest.${OBJEXT-o}
5029 am__minus_obj=
5030 ;;
5031 none) break ;;
5032 esac
5033 if depmode=$depmode \
5034 source=sub/conftest.c object=$am__obj \
5035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5037 >/dev/null 2>conftest.err &&
5038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5042 # icc doesn't choke on unknown options, it will just issue warnings
5043 # or remarks (even with -Werror). So we grep stderr for any message
5044 # that says an option was ignored or not supported.
5045 # When given -MP, icc 7.0 and 7.1 complain thusly:
5046 # icc: Command line warning: ignoring option '-M'; no argument required
5047 # The diagnosis changed in icc 8.0:
5048 # icc: Command line remark: option '-MP' not supported
5049 if (grep 'ignoring option' conftest.err ||
5050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5051 am_cv_CC_dependencies_compiler_type=$depmode
5052 break
5053 fi
5054 fi
5055 done
5056
5057 cd ..
5058 rm -rf conftest.dir
5059else
5060 am_cv_CC_dependencies_compiler_type=none
5061fi
5062
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5065$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5066CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5067
5068 if
5069 test "x$enable_dependency_tracking" != xno \
5070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5071 am__fastdepCC_TRUE=
5072 am__fastdepCC_FALSE='#'
5073else
5074 am__fastdepCC_TRUE='#'
5075 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005076fi
5077
5078
5079
cristya0b81c32010-01-22 02:54:33 +00005080ac_ext=c
5081ac_cpp='$CPP $CPPFLAGS'
5082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5086$as_echo_n "checking how to run the C preprocessor... " >&6; }
5087# On Suns, sometimes $CPP names a directory.
5088if test -n "$CPP" && test -d "$CPP"; then
5089 CPP=
5090fi
5091if test -z "$CPP"; then
5092 if test "${ac_cv_prog_CPP+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5094else
5095 # Double quotes because CPP needs to be expanded
5096 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5097 do
5098 ac_preproc_ok=false
5099for ac_c_preproc_warn_flag in '' yes
5100do
5101 # Use a header file that comes with gcc, so configuring glibc
5102 # with a fresh cross-compiler works.
5103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104 # <limits.h> exists even on freestanding compilers.
5105 # On the NeXT, cc -E runs the code through the compiler's parser,
5106 # not just through cpp. "Syntax error" is here to catch this case.
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h. */
5109#ifdef __STDC__
5110# include <limits.h>
5111#else
5112# include <assert.h>
5113#endif
5114 Syntax error
5115_ACEOF
5116if ac_fn_c_try_cpp "$LINENO"; then :
5117
5118else
5119 # Broken: fails on valid input.
5120continue
5121fi
5122rm -f conftest.err conftest.$ac_ext
5123
5124 # OK, works on sane cases. Now check whether nonexistent headers
5125 # can be detected and how.
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h. */
5128#include <ac_nonexistent.h>
5129_ACEOF
5130if ac_fn_c_try_cpp "$LINENO"; then :
5131 # Broken: success on invalid input.
5132continue
5133else
5134 # Passes both tests.
5135ac_preproc_ok=:
5136break
5137fi
5138rm -f conftest.err conftest.$ac_ext
5139
5140done
5141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142rm -f conftest.err conftest.$ac_ext
5143if $ac_preproc_ok; then :
5144 break
5145fi
5146
5147 done
5148 ac_cv_prog_CPP=$CPP
5149
5150fi
5151 CPP=$ac_cv_prog_CPP
5152else
5153 ac_cv_prog_CPP=$CPP
5154fi
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5156$as_echo "$CPP" >&6; }
5157ac_preproc_ok=false
5158for ac_c_preproc_warn_flag in '' yes
5159do
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h. */
5168#ifdef __STDC__
5169# include <limits.h>
5170#else
5171# include <assert.h>
5172#endif
5173 Syntax error
5174_ACEOF
5175if ac_fn_c_try_cpp "$LINENO"; then :
5176
5177else
5178 # Broken: fails on valid input.
5179continue
5180fi
5181rm -f conftest.err conftest.$ac_ext
5182
5183 # OK, works on sane cases. Now check whether nonexistent headers
5184 # can be detected and how.
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h. */
5187#include <ac_nonexistent.h>
5188_ACEOF
5189if ac_fn_c_try_cpp "$LINENO"; then :
5190 # Broken: success on invalid input.
5191continue
5192else
5193 # Passes both tests.
5194ac_preproc_ok=:
5195break
5196fi
5197rm -f conftest.err conftest.$ac_ext
5198
5199done
5200# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5201rm -f conftest.err conftest.$ac_ext
5202if $ac_preproc_ok; then :
5203
5204else
5205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5207as_fn_error "C preprocessor \"$CPP\" fails sanity check
5208See \`config.log' for more details." "$LINENO" 5; }
5209fi
5210
5211ac_ext=c
5212ac_cpp='$CPP $CPPFLAGS'
5213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5219$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5220if test "${ac_cv_path_GREP+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222else
5223 if test -z "$GREP"; then
5224 ac_path_GREP_found=false
5225 # Loop through the user's path and test for each of PROGNAME-LIST
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_prog in grep ggrep; do
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5235# Check for GNU ac_path_GREP and select it if it is found.
5236 # Check for GNU $ac_path_GREP
5237case `"$ac_path_GREP" --version 2>&1` in
5238*GNU*)
5239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5240*)
5241 ac_count=0
5242 $as_echo_n 0123456789 >"conftest.in"
5243 while :
5244 do
5245 cat "conftest.in" "conftest.in" >"conftest.tmp"
5246 mv "conftest.tmp" "conftest.in"
5247 cp "conftest.in" "conftest.nl"
5248 $as_echo 'GREP' >> "conftest.nl"
5249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5251 as_fn_arith $ac_count + 1 && ac_count=$as_val
5252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5253 # Best one so far, save it but keep looking for a better one
5254 ac_cv_path_GREP="$ac_path_GREP"
5255 ac_path_GREP_max=$ac_count
5256 fi
5257 # 10*(2^10) chars as input seems more than enough
5258 test $ac_count -gt 10 && break
5259 done
5260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261esac
5262
5263 $ac_path_GREP_found && break 3
5264 done
5265 done
5266 done
5267IFS=$as_save_IFS
5268 if test -z "$ac_cv_path_GREP"; then
5269 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 fi
5271else
5272 ac_cv_path_GREP=$GREP
5273fi
5274
5275fi
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5277$as_echo "$ac_cv_path_GREP" >&6; }
5278 GREP="$ac_cv_path_GREP"
5279
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5282$as_echo_n "checking for egrep... " >&6; }
5283if test "${ac_cv_path_EGREP+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5285else
5286 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5287 then ac_cv_path_EGREP="$GREP -E"
5288 else
5289 if test -z "$EGREP"; then
5290 ac_path_EGREP_found=false
5291 # Loop through the user's path and test for each of PROGNAME-LIST
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5294do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_prog in egrep; do
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5300 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5301# Check for GNU ac_path_EGREP and select it if it is found.
5302 # Check for GNU $ac_path_EGREP
5303case `"$ac_path_EGREP" --version 2>&1` in
5304*GNU*)
5305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5306*)
5307 ac_count=0
5308 $as_echo_n 0123456789 >"conftest.in"
5309 while :
5310 do
5311 cat "conftest.in" "conftest.in" >"conftest.tmp"
5312 mv "conftest.tmp" "conftest.in"
5313 cp "conftest.in" "conftest.nl"
5314 $as_echo 'EGREP' >> "conftest.nl"
5315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5317 as_fn_arith $ac_count + 1 && ac_count=$as_val
5318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5319 # Best one so far, save it but keep looking for a better one
5320 ac_cv_path_EGREP="$ac_path_EGREP"
5321 ac_path_EGREP_max=$ac_count
5322 fi
5323 # 10*(2^10) chars as input seems more than enough
5324 test $ac_count -gt 10 && break
5325 done
5326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5327esac
5328
5329 $ac_path_EGREP_found && break 3
5330 done
5331 done
5332 done
5333IFS=$as_save_IFS
5334 if test -z "$ac_cv_path_EGREP"; then
5335 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5336 fi
5337else
5338 ac_cv_path_EGREP=$EGREP
5339fi
5340
5341 fi
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5344$as_echo "$ac_cv_path_EGREP" >&6; }
5345 EGREP="$ac_cv_path_EGREP"
5346
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5349$as_echo_n "checking for ANSI C header files... " >&6; }
5350if test "${ac_cv_header_stdc+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h. */
5355#include <stdlib.h>
5356#include <stdarg.h>
5357#include <string.h>
5358#include <float.h>
5359
5360int
5361main ()
5362{
5363
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368if ac_fn_c_try_compile "$LINENO"; then :
5369 ac_cv_header_stdc=yes
5370else
5371 ac_cv_header_stdc=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374
5375if test $ac_cv_header_stdc = yes; then
5376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h. */
5379#include <string.h>
5380
5381_ACEOF
5382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "memchr" >/dev/null 2>&1; then :
5384
5385else
5386 ac_cv_header_stdc=no
5387fi
5388rm -f conftest*
5389
5390fi
5391
5392if test $ac_cv_header_stdc = yes; then
5393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h. */
5396#include <stdlib.h>
5397
5398_ACEOF
5399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5400 $EGREP "free" >/dev/null 2>&1; then :
5401
5402else
5403 ac_cv_header_stdc=no
5404fi
5405rm -f conftest*
5406
5407fi
5408
5409if test $ac_cv_header_stdc = yes; then
5410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5411 if test "$cross_compiling" = yes; then :
5412 :
5413else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416#include <ctype.h>
5417#include <stdlib.h>
5418#if ((' ' & 0x0FF) == 0x020)
5419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5421#else
5422# define ISLOWER(c) \
5423 (('a' <= (c) && (c) <= 'i') \
5424 || ('j' <= (c) && (c) <= 'r') \
5425 || ('s' <= (c) && (c) <= 'z'))
5426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5427#endif
5428
5429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5430int
5431main ()
5432{
5433 int i;
5434 for (i = 0; i < 256; i++)
5435 if (XOR (islower (i), ISLOWER (i))
5436 || toupper (i) != TOUPPER (i))
5437 return 2;
5438 return 0;
5439}
5440_ACEOF
5441if ac_fn_c_try_run "$LINENO"; then :
5442
5443else
5444 ac_cv_header_stdc=no
5445fi
5446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5447 conftest.$ac_objext conftest.beam conftest.$ac_ext
5448fi
5449
5450fi
5451fi
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5453$as_echo "$ac_cv_header_stdc" >&6; }
5454if test $ac_cv_header_stdc = yes; then
5455
5456$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5457
5458fi
5459
5460# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5461for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5462 inttypes.h stdint.h unistd.h
5463do :
5464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5465ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5466"
5467eval as_val=\$$as_ac_Header
5468 if test "x$as_val" = x""yes; then :
5469 cat >>confdefs.h <<_ACEOF
5470#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5471_ACEOF
5472
5473fi
5474
5475done
5476
5477
5478
5479 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5480if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5481 MINIX=yes
5482else
5483 MINIX=
5484fi
5485
5486
5487 if test "$MINIX" = yes; then
5488
5489$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5490
5491
5492$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5493
5494
5495$as_echo "#define _MINIX 1" >>confdefs.h
5496
5497 fi
5498
5499
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5501$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5502if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5503 $as_echo_n "(cached) " >&6
5504else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h. */
5507
5508# define __EXTENSIONS__ 1
5509 $ac_includes_default
5510int
5511main ()
5512{
5513
5514 ;
5515 return 0;
5516}
5517_ACEOF
5518if ac_fn_c_try_compile "$LINENO"; then :
5519 ac_cv_safe_to_define___extensions__=yes
5520else
5521 ac_cv_safe_to_define___extensions__=no
5522fi
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5526$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5527 test $ac_cv_safe_to_define___extensions__ = yes &&
5528 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5529
5530 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5531
5532 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5533
5534 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5535
5536 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5537
5538
5539
5540# Check for programs
5541ac_ext=c
5542ac_cpp='$CPP $CPPFLAGS'
5543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546if test -n "$ac_tool_prefix"; then
5547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5548set dummy ${ac_tool_prefix}gcc; ac_word=$2
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550$as_echo_n "checking for $ac_word... " >&6; }
5551if test "${ac_cv_prog_CC+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5553else
5554 if test -n "$CC"; then
5555 ac_cv_prog_CC="$CC" # Let the user override the test.
5556else
5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568done
5569 done
5570IFS=$as_save_IFS
5571
5572fi
5573fi
5574CC=$ac_cv_prog_CC
5575if test -n "$CC"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5577$as_echo "$CC" >&6; }
5578else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580$as_echo "no" >&6; }
5581fi
5582
5583
5584fi
5585if test -z "$ac_cv_prog_CC"; then
5586 ac_ct_CC=$CC
5587 # Extract the first word of "gcc", so it can be a program name with args.
5588set dummy gcc; ac_word=$2
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590$as_echo_n "checking for $ac_word... " >&6; }
5591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593else
5594 if test -n "$ac_ct_CC"; then
5595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_ac_ct_CC="gcc"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608done
5609 done
5610IFS=$as_save_IFS
5611
5612fi
5613fi
5614ac_ct_CC=$ac_cv_prog_ac_ct_CC
5615if test -n "$ac_ct_CC"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5617$as_echo "$ac_ct_CC" >&6; }
5618else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622
5623 if test "x$ac_ct_CC" = x; then
5624 CC=""
5625 else
5626 case $cross_compiling:$ac_tool_warned in
5627yes:)
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630ac_tool_warned=yes ;;
5631esac
5632 CC=$ac_ct_CC
5633 fi
5634else
5635 CC="$ac_cv_prog_CC"
5636fi
5637
5638if test -z "$CC"; then
5639 if test -n "$ac_tool_prefix"; then
5640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5641set dummy ${ac_tool_prefix}cc; ac_word=$2
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643$as_echo_n "checking for $ac_word... " >&6; }
5644if test "${ac_cv_prog_CC+set}" = set; then :
5645 $as_echo_n "(cached) " >&6
5646else
5647 if test -n "$CC"; then
5648 ac_cv_prog_CC="$CC" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 ac_cv_prog_CC="${ac_tool_prefix}cc"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661done
5662 done
5663IFS=$as_save_IFS
5664
5665fi
5666fi
5667CC=$ac_cv_prog_CC
5668if test -n "$CC"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5670$as_echo "$CC" >&6; }
5671else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673$as_echo "no" >&6; }
5674fi
5675
5676
5677 fi
5678fi
5679if test -z "$CC"; then
5680 # Extract the first word of "cc", so it can be a program name with args.
5681set dummy cc; ac_word=$2
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683$as_echo_n "checking for $ac_word... " >&6; }
5684if test "${ac_cv_prog_CC+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686else
5687 if test -n "$CC"; then
5688 ac_cv_prog_CC="$CC" # Let the user override the test.
5689else
5690 ac_prog_rejected=no
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5699 ac_prog_rejected=yes
5700 continue
5701 fi
5702 ac_cv_prog_CC="cc"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710if test $ac_prog_rejected = yes; then
5711 # We found a bogon in the path, so make sure we never use it.
5712 set dummy $ac_cv_prog_CC
5713 shift
5714 if test $# != 0; then
5715 # We chose a different compiler from the bogus one.
5716 # However, it has the same basename, so the bogon will be chosen
5717 # first if we set CC to just the basename; use the full file name.
5718 shift
5719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5720 fi
5721fi
5722fi
5723fi
5724CC=$ac_cv_prog_CC
5725if test -n "$CC"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727$as_echo "$CC" >&6; }
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
5731fi
5732
5733
5734fi
5735if test -z "$CC"; then
5736 if test -n "$ac_tool_prefix"; then
5737 for ac_prog in cl.exe
5738 do
5739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742$as_echo_n "checking for $ac_word... " >&6; }
5743if test "${ac_cv_prog_CC+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745else
5746 if test -n "$CC"; then
5747 ac_cv_prog_CC="$CC" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761 done
5762IFS=$as_save_IFS
5763
5764fi
5765fi
5766CC=$ac_cv_prog_CC
5767if test -n "$CC"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5769$as_echo "$CC" >&6; }
5770else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772$as_echo "no" >&6; }
5773fi
5774
5775
5776 test -n "$CC" && break
5777 done
5778fi
5779if test -z "$CC"; then
5780 ac_ct_CC=$CC
5781 for ac_prog in cl.exe
5782do
5783 # Extract the first word of "$ac_prog", so it can be a program name with args.
5784set dummy $ac_prog; ac_word=$2
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786$as_echo_n "checking for $ac_word... " >&6; }
5787if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5789else
5790 if test -n "$ac_ct_CC"; then
5791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5792else
5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794for as_dir in $PATH
5795do
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5800 ac_cv_prog_ac_ct_CC="$ac_prog"
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5803 fi
5804done
5805 done
5806IFS=$as_save_IFS
5807
5808fi
5809fi
5810ac_ct_CC=$ac_cv_prog_ac_ct_CC
5811if test -n "$ac_ct_CC"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5813$as_echo "$ac_ct_CC" >&6; }
5814else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816$as_echo "no" >&6; }
5817fi
5818
5819
5820 test -n "$ac_ct_CC" && break
5821done
5822
5823 if test "x$ac_ct_CC" = x; then
5824 CC=""
5825 else
5826 case $cross_compiling:$ac_tool_warned in
5827yes:)
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5830ac_tool_warned=yes ;;
5831esac
5832 CC=$ac_ct_CC
5833 fi
5834fi
5835
5836fi
5837
5838
5839test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5841as_fn_error "no acceptable C compiler found in \$PATH
5842See \`config.log' for more details." "$LINENO" 5; }
5843
5844# Provide some information about the compiler.
5845$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5846set X $ac_compile
5847ac_compiler=$2
5848for ac_option in --version -v -V -qversion; do
5849 { { ac_try="$ac_compiler $ac_option >&5"
5850case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5855$as_echo "$ac_try_echo"; } >&5
5856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5857 ac_status=$?
5858 if test -s conftest.err; then
5859 sed '10a\
5860... rest of stderr output deleted ...
5861 10q' conftest.err >conftest.er1
5862 cat conftest.er1 >&5
5863 fi
5864 rm -f conftest.er1 conftest.err
5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866 test $ac_status = 0; }
5867done
5868
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5870$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5871if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5873else
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h. */
5876
5877int
5878main ()
5879{
5880#ifndef __GNUC__
5881 choke me
5882#endif
5883
5884 ;
5885 return 0;
5886}
5887_ACEOF
5888if ac_fn_c_try_compile "$LINENO"; then :
5889 ac_compiler_gnu=yes
5890else
5891 ac_compiler_gnu=no
5892fi
5893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894ac_cv_c_compiler_gnu=$ac_compiler_gnu
5895
5896fi
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5898$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5899if test $ac_compiler_gnu = yes; then
5900 GCC=yes
5901else
5902 GCC=
5903fi
5904ac_test_CFLAGS=${CFLAGS+set}
5905ac_save_CFLAGS=$CFLAGS
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5907$as_echo_n "checking whether $CC accepts -g... " >&6; }
5908if test "${ac_cv_prog_cc_g+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5910else
5911 ac_save_c_werror_flag=$ac_c_werror_flag
5912 ac_c_werror_flag=yes
5913 ac_cv_prog_cc_g=no
5914 CFLAGS="-g"
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h. */
5917
5918int
5919main ()
5920{
5921
5922 ;
5923 return 0;
5924}
5925_ACEOF
5926if ac_fn_c_try_compile "$LINENO"; then :
5927 ac_cv_prog_cc_g=yes
5928else
5929 CFLAGS=""
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h. */
5932
5933int
5934main ()
5935{
5936
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941if ac_fn_c_try_compile "$LINENO"; then :
5942
5943else
5944 ac_c_werror_flag=$ac_save_c_werror_flag
5945 CFLAGS="-g"
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h. */
5948
5949int
5950main ()
5951{
5952
5953 ;
5954 return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_compile "$LINENO"; then :
5958 ac_cv_prog_cc_g=yes
5959fi
5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961fi
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_c_werror_flag=$ac_save_c_werror_flag
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5968$as_echo "$ac_cv_prog_cc_g" >&6; }
5969if test "$ac_test_CFLAGS" = set; then
5970 CFLAGS=$ac_save_CFLAGS
5971elif test $ac_cv_prog_cc_g = yes; then
5972 if test "$GCC" = yes; then
5973 CFLAGS="-g -O2"
5974 else
5975 CFLAGS="-g"
5976 fi
5977else
5978 if test "$GCC" = yes; then
5979 CFLAGS="-O2"
5980 else
5981 CFLAGS=
5982 fi
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5985$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5986if test "${ac_cv_prog_cc_c89+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5988else
5989 ac_cv_prog_cc_c89=no
5990ac_save_CC=$CC
5991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h. */
5993#include <stdarg.h>
5994#include <stdio.h>
5995#include <sys/types.h>
5996#include <sys/stat.h>
5997/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5998struct buf { int x; };
5999FILE * (*rcsopen) (struct buf *, struct stat *, int);
6000static char *e (p, i)
6001 char **p;
6002 int i;
6003{
6004 return p[i];
6005}
6006static char *f (char * (*g) (char **, int), char **p, ...)
6007{
6008 char *s;
6009 va_list v;
6010 va_start (v,p);
6011 s = g (p, va_arg (v,int));
6012 va_end (v);
6013 return s;
6014}
6015
6016/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6017 function prototypes and stuff, but not '\xHH' hex character constants.
6018 These don't provoke an error unfortunately, instead are silently treated
6019 as 'x'. The following induces an error, until -std is added to get
6020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6021 array size at least. It's necessary to write '\x00'==0 to get something
6022 that's true only with -std. */
6023int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6024
6025/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6026 inside strings and character constants. */
6027#define FOO(x) 'x'
6028int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6029
6030int test (int i, double x);
6031struct s1 {int (*f) (int a);};
6032struct s2 {int (*f) (double a);};
6033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6034int argc;
6035char **argv;
6036int
6037main ()
6038{
6039return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6040 ;
6041 return 0;
6042}
6043_ACEOF
6044for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6046do
6047 CC="$ac_save_CC $ac_arg"
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049 ac_cv_prog_cc_c89=$ac_arg
6050fi
6051rm -f core conftest.err conftest.$ac_objext
6052 test "x$ac_cv_prog_cc_c89" != "xno" && break
6053done
6054rm -f conftest.$ac_ext
6055CC=$ac_save_CC
6056
6057fi
6058# AC_CACHE_VAL
6059case "x$ac_cv_prog_cc_c89" in
6060 x)
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6062$as_echo "none needed" >&6; } ;;
6063 xno)
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6065$as_echo "unsupported" >&6; } ;;
6066 *)
6067 CC="$CC $ac_cv_prog_cc_c89"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6069$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6070esac
6071if test "x$ac_cv_prog_cc_c89" != xno; then :
6072
6073fi
6074
6075ac_ext=c
6076ac_cpp='$CPP $CPPFLAGS'
6077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079ac_compiler_gnu=$ac_cv_c_compiler_gnu
6080
cristy3ed852e2009-09-05 21:47:34 +00006081depcc="$CC" am_compiler_list=
6082
cristy8b350f62009-11-15 23:12:43 +00006083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006084$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006085if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006086 $as_echo_n "(cached) " >&6
6087else
6088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6089 # We make a subdir and do the tests there. Otherwise we can end up
6090 # making bogus files that we don't know about and never remove. For
6091 # instance it was reported that on HP-UX the gcc test will end up
6092 # making a dummy file named `D' -- because `-MD' means `put the output
6093 # in D'.
6094 mkdir conftest.dir
6095 # Copy depcomp to subdir because otherwise we won't find it if we're
6096 # using a relative directory.
6097 cp "$am_depcomp" conftest.dir
6098 cd conftest.dir
6099 # We will build objects and dependencies in a subdirectory because
6100 # it helps to detect inapplicable dependency modes. For instance
6101 # both Tru64's cc and ICC support -MD to output dependencies as a
6102 # side effect of compilation, but ICC will put the dependencies in
6103 # the current directory while Tru64 will put them in the object
6104 # directory.
6105 mkdir sub
6106
6107 am_cv_CC_dependencies_compiler_type=none
6108 if test "$am_compiler_list" = ""; then
6109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6110 fi
6111 am__universal=false
6112 case " $depcc " in #(
6113 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6114 esac
6115
6116 for depmode in $am_compiler_list; do
6117 # Setup a source with many dependencies, because some compilers
6118 # like to wrap large dependency lists on column 80 (with \), and
6119 # we should not choose a depcomp mode which is confused by this.
6120 #
6121 # We need to recreate these files for each test, as the compiler may
6122 # overwrite some of them when testing with obscure command lines.
6123 # This happens at least with the AIX C compiler.
6124 : > sub/conftest.c
6125 for i in 1 2 3 4 5 6; do
6126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6127 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6128 # Solaris 8's {/usr,}/bin/sh.
6129 touch sub/conftst$i.h
6130 done
6131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6132
6133 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6134 # mode. It turns out that the SunPro C++ compiler does not properly
6135 # handle `-M -o', and we need to detect this. Also, some Intel
6136 # versions had trouble with output in subdirs
6137 am__obj=sub/conftest.${OBJEXT-o}
6138 am__minus_obj="-o $am__obj"
6139 case $depmode in
6140 gcc)
6141 # This depmode causes a compiler race in universal mode.
6142 test "$am__universal" = false || continue
6143 ;;
6144 nosideeffect)
6145 # after this tag, mechanisms are not by side-effect, so they'll
6146 # only be used when explicitly requested
6147 if test "x$enable_dependency_tracking" = xyes; then
6148 continue
6149 else
6150 break
6151 fi
6152 ;;
6153 msvisualcpp | msvcmsys)
6154 # This compiler won't grok `-c -o', but also, the minuso test has
6155 # not run yet. These depmodes are late enough in the game, and
6156 # so weak that their functioning should not be impacted.
6157 am__obj=conftest.${OBJEXT-o}
6158 am__minus_obj=
6159 ;;
6160 none) break ;;
6161 esac
6162 if depmode=$depmode \
6163 source=sub/conftest.c object=$am__obj \
6164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6165 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6166 >/dev/null 2>conftest.err &&
6167 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6169 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6171 # icc doesn't choke on unknown options, it will just issue warnings
6172 # or remarks (even with -Werror). So we grep stderr for any message
6173 # that says an option was ignored or not supported.
6174 # When given -MP, icc 7.0 and 7.1 complain thusly:
6175 # icc: Command line warning: ignoring option '-M'; no argument required
6176 # The diagnosis changed in icc 8.0:
6177 # icc: Command line remark: option '-MP' not supported
6178 if (grep 'ignoring option' conftest.err ||
6179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6180 am_cv_CC_dependencies_compiler_type=$depmode
6181 break
6182 fi
6183 fi
6184 done
6185
6186 cd ..
6187 rm -rf conftest.dir
6188else
6189 am_cv_CC_dependencies_compiler_type=none
6190fi
6191
6192fi
cristy8b350f62009-11-15 23:12:43 +00006193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006194$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6195CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6196
6197 if
6198 test "x$enable_dependency_tracking" != xno \
6199 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6200 am__fastdepCC_TRUE=
6201 am__fastdepCC_FALSE='#'
6202else
6203 am__fastdepCC_TRUE='#'
6204 am__fastdepCC_FALSE=
6205fi
6206
6207
cristy95646052009-11-28 23:05:30 +00006208ac_ext=cpp
6209ac_cpp='$CXXCPP $CPPFLAGS'
6210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6213if test -z "$CXX"; then
6214 if test -n "$CCC"; then
6215 CXX=$CCC
6216 else
6217 if test -n "$ac_tool_prefix"; then
6218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6219 do
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223$as_echo_n "checking for $ac_word... " >&6; }
6224if test "${ac_cv_prog_CXX+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6226else
6227 if test -n "$CXX"; then
6228 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241done
6242 done
6243IFS=$as_save_IFS
6244
6245fi
6246fi
6247CXX=$ac_cv_prog_CXX
6248if test -n "$CXX"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6250$as_echo "$CXX" >&6; }
6251else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253$as_echo "no" >&6; }
6254fi
6255
6256
6257 test -n "$CXX" && break
6258 done
6259fi
6260if test -z "$CXX"; then
6261 ac_ct_CXX=$CXX
6262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6263do
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265set dummy $ac_prog; ac_word=$2
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267$as_echo_n "checking for $ac_word... " >&6; }
6268if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270else
6271 if test -n "$ac_ct_CXX"; then
6272 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_CXX="$ac_prog"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285done
6286 done
6287IFS=$as_save_IFS
6288
6289fi
6290fi
6291ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6292if test -n "$ac_ct_CXX"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6294$as_echo "$ac_ct_CXX" >&6; }
6295else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297$as_echo "no" >&6; }
6298fi
6299
6300
6301 test -n "$ac_ct_CXX" && break
6302done
6303
6304 if test "x$ac_ct_CXX" = x; then
6305 CXX="g++"
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308yes:)
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311ac_tool_warned=yes ;;
6312esac
6313 CXX=$ac_ct_CXX
6314 fi
6315fi
6316
6317 fi
6318fi
6319# Provide some information about the compiler.
6320$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6321set X $ac_compile
6322ac_compiler=$2
6323for ac_option in --version -v -V -qversion; do
6324 { { ac_try="$ac_compiler $ac_option >&5"
6325case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328esac
6329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6330$as_echo "$ac_try_echo"; } >&5
6331 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6332 ac_status=$?
6333 if test -s conftest.err; then
6334 sed '10a\
6335... rest of stderr output deleted ...
6336 10q' conftest.err >conftest.er1
6337 cat conftest.er1 >&5
6338 fi
6339 rm -f conftest.er1 conftest.err
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }
6342done
6343
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6345$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6346if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6348else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h. */
6351
6352int
6353main ()
6354{
6355#ifndef __GNUC__
6356 choke me
6357#endif
6358
6359 ;
6360 return 0;
6361}
6362_ACEOF
6363if ac_fn_cxx_try_compile "$LINENO"; then :
6364 ac_compiler_gnu=yes
6365else
6366 ac_compiler_gnu=no
6367fi
6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6370
6371fi
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6373$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6374if test $ac_compiler_gnu = yes; then
6375 GXX=yes
6376else
6377 GXX=
6378fi
6379ac_test_CXXFLAGS=${CXXFLAGS+set}
6380ac_save_CXXFLAGS=$CXXFLAGS
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6382$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6383if test "${ac_cv_prog_cxx_g+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385else
6386 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6387 ac_cxx_werror_flag=yes
6388 ac_cv_prog_cxx_g=no
6389 CXXFLAGS="-g"
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h. */
6392
6393int
6394main ()
6395{
6396
6397 ;
6398 return 0;
6399}
6400_ACEOF
6401if ac_fn_cxx_try_compile "$LINENO"; then :
6402 ac_cv_prog_cxx_g=yes
6403else
6404 CXXFLAGS=""
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406/* end confdefs.h. */
6407
6408int
6409main ()
6410{
6411
6412 ;
6413 return 0;
6414}
6415_ACEOF
6416if ac_fn_cxx_try_compile "$LINENO"; then :
6417
6418else
6419 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6420 CXXFLAGS="-g"
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h. */
6423
6424int
6425main ()
6426{
6427
6428 ;
6429 return 0;
6430}
6431_ACEOF
6432if ac_fn_cxx_try_compile "$LINENO"; then :
6433 ac_cv_prog_cxx_g=yes
6434fi
6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436fi
6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438fi
6439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6443$as_echo "$ac_cv_prog_cxx_g" >&6; }
6444if test "$ac_test_CXXFLAGS" = set; then
6445 CXXFLAGS=$ac_save_CXXFLAGS
6446elif test $ac_cv_prog_cxx_g = yes; then
6447 if test "$GXX" = yes; then
6448 CXXFLAGS="-g -O2"
6449 else
6450 CXXFLAGS="-g"
6451 fi
6452else
6453 if test "$GXX" = yes; then
6454 CXXFLAGS="-O2"
6455 else
6456 CXXFLAGS=
6457 fi
6458fi
6459ac_ext=c
6460ac_cpp='$CPP $CPPFLAGS'
6461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464
6465depcc="$CXX" am_compiler_list=
6466
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6468$as_echo_n "checking dependency style of $depcc... " >&6; }
6469if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
6471else
6472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6473 # We make a subdir and do the tests there. Otherwise we can end up
6474 # making bogus files that we don't know about and never remove. For
6475 # instance it was reported that on HP-UX the gcc test will end up
6476 # making a dummy file named `D' -- because `-MD' means `put the output
6477 # in D'.
6478 mkdir conftest.dir
6479 # Copy depcomp to subdir because otherwise we won't find it if we're
6480 # using a relative directory.
6481 cp "$am_depcomp" conftest.dir
6482 cd conftest.dir
6483 # We will build objects and dependencies in a subdirectory because
6484 # it helps to detect inapplicable dependency modes. For instance
6485 # both Tru64's cc and ICC support -MD to output dependencies as a
6486 # side effect of compilation, but ICC will put the dependencies in
6487 # the current directory while Tru64 will put them in the object
6488 # directory.
6489 mkdir sub
6490
6491 am_cv_CXX_dependencies_compiler_type=none
6492 if test "$am_compiler_list" = ""; then
6493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6494 fi
6495 am__universal=false
6496 case " $depcc " in #(
6497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6498 esac
6499
6500 for depmode in $am_compiler_list; do
6501 # Setup a source with many dependencies, because some compilers
6502 # like to wrap large dependency lists on column 80 (with \), and
6503 # we should not choose a depcomp mode which is confused by this.
6504 #
6505 # We need to recreate these files for each test, as the compiler may
6506 # overwrite some of them when testing with obscure command lines.
6507 # This happens at least with the AIX C compiler.
6508 : > sub/conftest.c
6509 for i in 1 2 3 4 5 6; do
6510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6512 # Solaris 8's {/usr,}/bin/sh.
6513 touch sub/conftst$i.h
6514 done
6515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6516
6517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6518 # mode. It turns out that the SunPro C++ compiler does not properly
6519 # handle `-M -o', and we need to detect this. Also, some Intel
6520 # versions had trouble with output in subdirs
6521 am__obj=sub/conftest.${OBJEXT-o}
6522 am__minus_obj="-o $am__obj"
6523 case $depmode in
6524 gcc)
6525 # This depmode causes a compiler race in universal mode.
6526 test "$am__universal" = false || continue
6527 ;;
6528 nosideeffect)
6529 # after this tag, mechanisms are not by side-effect, so they'll
6530 # only be used when explicitly requested
6531 if test "x$enable_dependency_tracking" = xyes; then
6532 continue
6533 else
6534 break
6535 fi
6536 ;;
6537 msvisualcpp | msvcmsys)
6538 # This compiler won't grok `-c -o', but also, the minuso test has
6539 # not run yet. These depmodes are late enough in the game, and
6540 # so weak that their functioning should not be impacted.
6541 am__obj=conftest.${OBJEXT-o}
6542 am__minus_obj=
6543 ;;
6544 none) break ;;
6545 esac
6546 if depmode=$depmode \
6547 source=sub/conftest.c object=$am__obj \
6548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6550 >/dev/null 2>conftest.err &&
6551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6555 # icc doesn't choke on unknown options, it will just issue warnings
6556 # or remarks (even with -Werror). So we grep stderr for any message
6557 # that says an option was ignored or not supported.
6558 # When given -MP, icc 7.0 and 7.1 complain thusly:
6559 # icc: Command line warning: ignoring option '-M'; no argument required
6560 # The diagnosis changed in icc 8.0:
6561 # icc: Command line remark: option '-MP' not supported
6562 if (grep 'ignoring option' conftest.err ||
6563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6564 am_cv_CXX_dependencies_compiler_type=$depmode
6565 break
6566 fi
6567 fi
6568 done
6569
6570 cd ..
6571 rm -rf conftest.dir
6572else
6573 am_cv_CXX_dependencies_compiler_type=none
6574fi
6575
6576fi
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6578$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6579CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6580
6581 if
6582 test "x$enable_dependency_tracking" != xno \
6583 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6584 am__fastdepCXX_TRUE=
6585 am__fastdepCXX_FALSE='#'
6586else
6587 am__fastdepCXX_TRUE='#'
6588 am__fastdepCXX_FALSE=
6589fi
6590
6591
cristy8b350f62009-11-15 23:12:43 +00006592 case $ac_cv_prog_cc_stdc in #(
6593 no) :
6594 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6595 *) :
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006597$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006598if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006599 $as_echo_n "(cached) " >&6
6600else
6601 ac_cv_prog_cc_c99=no
6602ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006604/* end confdefs.h. */
6605#include <stdarg.h>
6606#include <stdbool.h>
6607#include <stdlib.h>
6608#include <wchar.h>
6609#include <stdio.h>
6610
6611// Check varargs macros. These examples are taken from C99 6.10.3.5.
6612#define debug(...) fprintf (stderr, __VA_ARGS__)
6613#define showlist(...) puts (#__VA_ARGS__)
6614#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6615static void
6616test_varargs_macros (void)
6617{
6618 int x = 1234;
6619 int y = 5678;
6620 debug ("Flag");
6621 debug ("X = %d\n", x);
6622 showlist (The first, second, and third items.);
6623 report (x>y, "x is %d but y is %d", x, y);
6624}
6625
6626// Check long long types.
6627#define BIG64 18446744073709551615ull
6628#define BIG32 4294967295ul
6629#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6630#if !BIG_OK
6631 your preprocessor is broken;
6632#endif
6633#if BIG_OK
6634#else
6635 your preprocessor is broken;
6636#endif
6637static long long int bignum = -9223372036854775807LL;
6638static unsigned long long int ubignum = BIG64;
6639
6640struct incomplete_array
6641{
6642 int datasize;
6643 double data[];
6644};
6645
6646struct named_init {
6647 int number;
6648 const wchar_t *name;
6649 double average;
6650};
6651
6652typedef const char *ccp;
6653
6654static inline int
6655test_restrict (ccp restrict text)
6656{
6657 // See if C++-style comments work.
6658 // Iterate through items via the restricted pointer.
6659 // Also check for declarations in for loops.
6660 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6661 continue;
6662 return 0;
6663}
6664
6665// Check varargs and va_copy.
6666static void
6667test_varargs (const char *format, ...)
6668{
6669 va_list args;
6670 va_start (args, format);
6671 va_list args_copy;
6672 va_copy (args_copy, args);
6673
6674 const char *str;
6675 int number;
6676 float fnumber;
6677
6678 while (*format)
6679 {
6680 switch (*format++)
6681 {
6682 case 's': // string
6683 str = va_arg (args_copy, const char *);
6684 break;
6685 case 'd': // int
6686 number = va_arg (args_copy, int);
6687 break;
6688 case 'f': // float
6689 fnumber = va_arg (args_copy, double);
6690 break;
6691 default:
6692 break;
6693 }
6694 }
6695 va_end (args_copy);
6696 va_end (args);
6697}
6698
6699int
6700main ()
6701{
6702
6703 // Check bool.
6704 _Bool success = false;
6705
6706 // Check restrict.
6707 if (test_restrict ("String literal") == 0)
6708 success = true;
6709 char *restrict newvar = "Another string";
6710
6711 // Check varargs.
6712 test_varargs ("s, d' f .", "string", 65, 34.234);
6713 test_varargs_macros ();
6714
6715 // Check flexible array members.
6716 struct incomplete_array *ia =
6717 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6718 ia->datasize = 10;
6719 for (int i = 0; i < ia->datasize; ++i)
6720 ia->data[i] = i * 1.234;
6721
6722 // Check named initializers.
6723 struct named_init ni = {
6724 .number = 34,
6725 .name = L"Test wide string",
6726 .average = 543.34343,
6727 };
6728
6729 ni.number = 58;
6730
6731 int dynamic_array[ni.number];
6732 dynamic_array[ni.number - 1] = 543;
6733
6734 // work around unused variable warnings
6735 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6736 || dynamic_array[ni.number - 1] != 543);
6737
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6743do
6744 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006745 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006746 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006747fi
cristy3ed852e2009-09-05 21:47:34 +00006748rm -f core conftest.err conftest.$ac_objext
6749 test "x$ac_cv_prog_cc_c99" != "xno" && break
6750done
6751rm -f conftest.$ac_ext
6752CC=$ac_save_CC
6753
6754fi
6755# AC_CACHE_VAL
6756case "x$ac_cv_prog_cc_c99" in
6757 x)
cristy8b350f62009-11-15 23:12:43 +00006758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006759$as_echo "none needed" >&6; } ;;
6760 xno)
cristy8b350f62009-11-15 23:12:43 +00006761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006762$as_echo "unsupported" >&6; } ;;
6763 *)
6764 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006766$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6767esac
cristy8b350f62009-11-15 23:12:43 +00006768if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006769 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6770else
cristy8b350f62009-11-15 23:12:43 +00006771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006772$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006773if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006774 $as_echo_n "(cached) " >&6
6775else
6776 ac_cv_prog_cc_c89=no
6777ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006779/* end confdefs.h. */
6780#include <stdarg.h>
6781#include <stdio.h>
6782#include <sys/types.h>
6783#include <sys/stat.h>
6784/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6785struct buf { int x; };
6786FILE * (*rcsopen) (struct buf *, struct stat *, int);
6787static char *e (p, i)
6788 char **p;
6789 int i;
6790{
6791 return p[i];
6792}
6793static char *f (char * (*g) (char **, int), char **p, ...)
6794{
6795 char *s;
6796 va_list v;
6797 va_start (v,p);
6798 s = g (p, va_arg (v,int));
6799 va_end (v);
6800 return s;
6801}
6802
6803/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6804 function prototypes and stuff, but not '\xHH' hex character constants.
6805 These don't provoke an error unfortunately, instead are silently treated
6806 as 'x'. The following induces an error, until -std is added to get
6807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6808 array size at least. It's necessary to write '\x00'==0 to get something
6809 that's true only with -std. */
6810int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6811
6812/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6813 inside strings and character constants. */
6814#define FOO(x) 'x'
6815int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6816
6817int test (int i, double x);
6818struct s1 {int (*f) (int a);};
6819struct s2 {int (*f) (double a);};
6820int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6821int argc;
6822char **argv;
6823int
6824main ()
6825{
6826return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6827 ;
6828 return 0;
6829}
6830_ACEOF
6831for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6833do
6834 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006835 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006836 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006837fi
cristy3ed852e2009-09-05 21:47:34 +00006838rm -f core conftest.err conftest.$ac_objext
6839 test "x$ac_cv_prog_cc_c89" != "xno" && break
6840done
6841rm -f conftest.$ac_ext
6842CC=$ac_save_CC
6843
6844fi
6845# AC_CACHE_VAL
6846case "x$ac_cv_prog_cc_c89" in
6847 x)
cristy8b350f62009-11-15 23:12:43 +00006848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006849$as_echo "none needed" >&6; } ;;
6850 xno)
cristy8b350f62009-11-15 23:12:43 +00006851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006852$as_echo "unsupported" >&6; } ;;
6853 *)
6854 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006856$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6857esac
cristy8b350f62009-11-15 23:12:43 +00006858if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006859 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6860else
6861 ac_cv_prog_cc_stdc=no
6862fi
6863
cristy3ed852e2009-09-05 21:47:34 +00006864fi
cristy3ed852e2009-09-05 21:47:34 +00006865 ;;
6866esac
cristy8b350f62009-11-15 23:12:43 +00006867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006868$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006869 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006870 $as_echo_n "(cached) " >&6
6871fi
6872
cristy8b350f62009-11-15 23:12:43 +00006873 case $ac_cv_prog_cc_stdc in #(
6874 no) :
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6876$as_echo "unsupported" >&6; } ;; #(
6877 '') :
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6879$as_echo "none needed" >&6; } ;; #(
6880 *) :
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006882$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6883esac
6884
cristy3ed852e2009-09-05 21:47:34 +00006885ac_ext=c
6886ac_cpp='$CPP $CPPFLAGS'
6887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006891$as_echo_n "checking how to run the C preprocessor... " >&6; }
6892# On Suns, sometimes $CPP names a directory.
6893if test -n "$CPP" && test -d "$CPP"; then
6894 CPP=
6895fi
6896if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006897 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006898 $as_echo_n "(cached) " >&6
6899else
6900 # Double quotes because CPP needs to be expanded
6901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6902 do
6903 ac_preproc_ok=false
6904for ac_c_preproc_warn_flag in '' yes
6905do
6906 # Use a header file that comes with gcc, so configuring glibc
6907 # with a fresh cross-compiler works.
6908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6909 # <limits.h> exists even on freestanding compilers.
6910 # On the NeXT, cc -E runs the code through the compiler's parser,
6911 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006913/* end confdefs.h. */
6914#ifdef __STDC__
6915# include <limits.h>
6916#else
6917# include <assert.h>
6918#endif
6919 Syntax error
6920_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006921if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006922
cristy8b350f62009-11-15 23:12:43 +00006923else
cristy3ed852e2009-09-05 21:47:34 +00006924 # Broken: fails on valid input.
6925continue
6926fi
cristy3ed852e2009-09-05 21:47:34 +00006927rm -f conftest.err conftest.$ac_ext
6928
6929 # OK, works on sane cases. Now check whether nonexistent headers
6930 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006932/* end confdefs.h. */
6933#include <ac_nonexistent.h>
6934_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006935if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006936 # Broken: success on invalid input.
6937continue
6938else
cristy3ed852e2009-09-05 21:47:34 +00006939 # Passes both tests.
6940ac_preproc_ok=:
6941break
6942fi
cristy3ed852e2009-09-05 21:47:34 +00006943rm -f conftest.err conftest.$ac_ext
6944
6945done
6946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6947rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006948if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006949 break
6950fi
6951
6952 done
6953 ac_cv_prog_CPP=$CPP
6954
6955fi
6956 CPP=$ac_cv_prog_CPP
6957else
6958 ac_cv_prog_CPP=$CPP
6959fi
cristy8b350f62009-11-15 23:12:43 +00006960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006961$as_echo "$CPP" >&6; }
6962ac_preproc_ok=false
6963for ac_c_preproc_warn_flag in '' yes
6964do
6965 # Use a header file that comes with gcc, so configuring glibc
6966 # with a fresh cross-compiler works.
6967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6968 # <limits.h> exists even on freestanding compilers.
6969 # On the NeXT, cc -E runs the code through the compiler's parser,
6970 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006972/* end confdefs.h. */
6973#ifdef __STDC__
6974# include <limits.h>
6975#else
6976# include <assert.h>
6977#endif
6978 Syntax error
6979_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006980if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006981
cristy8b350f62009-11-15 23:12:43 +00006982else
cristy3ed852e2009-09-05 21:47:34 +00006983 # Broken: fails on valid input.
6984continue
6985fi
cristy3ed852e2009-09-05 21:47:34 +00006986rm -f conftest.err conftest.$ac_ext
6987
6988 # OK, works on sane cases. Now check whether nonexistent headers
6989 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006991/* end confdefs.h. */
6992#include <ac_nonexistent.h>
6993_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006994if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006995 # Broken: success on invalid input.
6996continue
6997else
cristy3ed852e2009-09-05 21:47:34 +00006998 # Passes both tests.
6999ac_preproc_ok=:
7000break
7001fi
cristy3ed852e2009-09-05 21:47:34 +00007002rm -f conftest.err conftest.$ac_ext
7003
7004done
7005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7006rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007007if $ac_preproc_ok; then :
7008
cristy3ed852e2009-09-05 21:47:34 +00007009else
cristy8b350f62009-11-15 23:12:43 +00007010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007012as_fn_error "C preprocessor \"$CPP\" fails sanity check
7013See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007014fi
7015
7016ac_ext=c
7017ac_cpp='$CPP $CPPFLAGS'
7018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
cristy8b350f62009-11-15 23:12:43 +00007022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007023$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007024if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007025 $as_echo_n "(cached) " >&6
7026else
7027 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7028 for ac_i in 1 2 3 4 5 6 7; do
7029 ac_script="$ac_script$as_nl$ac_script"
7030 done
7031 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007032 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007033 if test -z "$SED"; then
7034 ac_path_SED_found=false
7035 # Loop through the user's path and test for each of PROGNAME-LIST
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007041 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7044 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7045# Check for GNU ac_path_SED and select it if it is found.
7046 # Check for GNU $ac_path_SED
7047case `"$ac_path_SED" --version 2>&1` in
7048*GNU*)
7049 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7050*)
7051 ac_count=0
7052 $as_echo_n 0123456789 >"conftest.in"
7053 while :
7054 do
7055 cat "conftest.in" "conftest.in" >"conftest.tmp"
7056 mv "conftest.tmp" "conftest.in"
7057 cp "conftest.in" "conftest.nl"
7058 $as_echo '' >> "conftest.nl"
7059 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007061 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007062 if test $ac_count -gt ${ac_path_SED_max-0}; then
7063 # Best one so far, save it but keep looking for a better one
7064 ac_cv_path_SED="$ac_path_SED"
7065 ac_path_SED_max=$ac_count
7066 fi
7067 # 10*(2^10) chars as input seems more than enough
7068 test $ac_count -gt 10 && break
7069 done
7070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7071esac
7072
7073 $ac_path_SED_found && break 3
7074 done
7075 done
cristy8b350f62009-11-15 23:12:43 +00007076 done
cristy3ed852e2009-09-05 21:47:34 +00007077IFS=$as_save_IFS
7078 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007079 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007080 fi
7081else
7082 ac_cv_path_SED=$SED
7083fi
7084
7085fi
cristy8b350f62009-11-15 23:12:43 +00007086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007087$as_echo "$ac_cv_path_SED" >&6; }
7088 SED="$ac_cv_path_SED"
7089 rm -f conftest.sed
7090
7091test -z "$SED" && SED=sed
7092Xsed="$SED -e 1s/^X//"
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
cristy8b350f62009-11-15 23:12:43 +00007104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007105$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007106if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007107 $as_echo_n "(cached) " >&6
7108else
7109 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7110 then ac_cv_path_FGREP="$GREP -F"
7111 else
7112 if test -z "$FGREP"; then
7113 ac_path_FGREP_found=false
7114 # Loop through the user's path and test for each of PROGNAME-LIST
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007120 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7123 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7124# Check for GNU ac_path_FGREP and select it if it is found.
7125 # Check for GNU $ac_path_FGREP
7126case `"$ac_path_FGREP" --version 2>&1` in
7127*GNU*)
7128 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7129*)
7130 ac_count=0
7131 $as_echo_n 0123456789 >"conftest.in"
7132 while :
7133 do
7134 cat "conftest.in" "conftest.in" >"conftest.tmp"
7135 mv "conftest.tmp" "conftest.in"
7136 cp "conftest.in" "conftest.nl"
7137 $as_echo 'FGREP' >> "conftest.nl"
7138 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007140 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007141 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7142 # Best one so far, save it but keep looking for a better one
7143 ac_cv_path_FGREP="$ac_path_FGREP"
7144 ac_path_FGREP_max=$ac_count
7145 fi
7146 # 10*(2^10) chars as input seems more than enough
7147 test $ac_count -gt 10 && break
7148 done
7149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7150esac
7151
7152 $ac_path_FGREP_found && break 3
7153 done
7154 done
cristy8b350f62009-11-15 23:12:43 +00007155 done
cristy3ed852e2009-09-05 21:47:34 +00007156IFS=$as_save_IFS
7157 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007158 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007159 fi
7160else
7161 ac_cv_path_FGREP=$FGREP
7162fi
7163
7164 fi
7165fi
cristy8b350f62009-11-15 23:12:43 +00007166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007167$as_echo "$ac_cv_path_FGREP" >&6; }
7168 FGREP="$ac_cv_path_FGREP"
7169
7170
7171test -z "$GREP" && GREP=grep
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007192if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007193 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7194else
7195 with_gnu_ld=no
7196fi
7197
7198ac_prog=ld
7199if test "$GCC" = yes; then
7200 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007202$as_echo_n "checking for ld used by $CC... " >&6; }
7203 case $host in
7204 *-*-mingw*)
7205 # gcc leaves a trailing carriage return which upsets mingw
7206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7207 *)
7208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7209 esac
7210 case $ac_prog in
7211 # Accept absolute paths.
7212 [\\/]* | ?:[\\/]*)
7213 re_direlt='/[^/][^/]*/\.\./'
7214 # Canonicalize the pathname of ld
7215 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7216 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7217 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7218 done
7219 test -z "$LD" && LD="$ac_prog"
7220 ;;
7221 "")
7222 # If it fails, then pretend we aren't using GCC.
7223 ac_prog=ld
7224 ;;
7225 *)
7226 # If it is relative, then search for the first ld in PATH.
7227 with_gnu_ld=unknown
7228 ;;
7229 esac
7230elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007232$as_echo_n "checking for GNU ld... " >&6; }
7233else
cristy8b350f62009-11-15 23:12:43 +00007234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007235$as_echo_n "checking for non-GNU ld... " >&6; }
7236fi
cristy8b350f62009-11-15 23:12:43 +00007237if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007238 $as_echo_n "(cached) " >&6
7239else
7240 if test -z "$LD"; then
7241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7242 for ac_dir in $PATH; do
7243 IFS="$lt_save_ifs"
7244 test -z "$ac_dir" && ac_dir=.
7245 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7246 lt_cv_path_LD="$ac_dir/$ac_prog"
7247 # Check to see if the program is GNU ld. I'd rather use --version,
7248 # but apparently some variants of GNU ld only accept -v.
7249 # Break only if it was the GNU/non-GNU ld that we prefer.
7250 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7251 *GNU* | *'with BFD'*)
7252 test "$with_gnu_ld" != no && break
7253 ;;
7254 *)
7255 test "$with_gnu_ld" != yes && break
7256 ;;
7257 esac
7258 fi
7259 done
7260 IFS="$lt_save_ifs"
7261else
7262 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7263fi
7264fi
7265
7266LD="$lt_cv_path_LD"
7267if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007269$as_echo "$LD" >&6; }
7270else
cristy8b350f62009-11-15 23:12:43 +00007271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007272$as_echo "no" >&6; }
7273fi
cristy8b350f62009-11-15 23:12:43 +00007274test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007276$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007277if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007278 $as_echo_n "(cached) " >&6
7279else
7280 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7281case `$LD -v 2>&1 </dev/null` in
7282*GNU* | *'with BFD'*)
7283 lt_cv_prog_gnu_ld=yes
7284 ;;
7285*)
7286 lt_cv_prog_gnu_ld=no
7287 ;;
7288esac
7289fi
cristy8b350f62009-11-15 23:12:43 +00007290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007291$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7292with_gnu_ld=$lt_cv_prog_gnu_ld
7293
7294
7295
7296
7297
7298
7299
7300
7301
cristy3ed852e2009-09-05 21:47:34 +00007302
cristy837d6dc2010-02-27 01:16:57 +00007303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7304$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7305if test "${ac_cv_prog_cc_c99+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7307else
7308 ac_cv_prog_cc_c99=no
7309ac_save_CC=$CC
7310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312#include <stdarg.h>
7313#include <stdbool.h>
7314#include <stdlib.h>
7315#include <wchar.h>
7316#include <stdio.h>
7317
7318// Check varargs macros. These examples are taken from C99 6.10.3.5.
7319#define debug(...) fprintf (stderr, __VA_ARGS__)
7320#define showlist(...) puts (#__VA_ARGS__)
7321#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7322static void
7323test_varargs_macros (void)
7324{
7325 int x = 1234;
7326 int y = 5678;
7327 debug ("Flag");
7328 debug ("X = %d\n", x);
7329 showlist (The first, second, and third items.);
7330 report (x>y, "x is %d but y is %d", x, y);
7331}
7332
7333// Check long long types.
7334#define BIG64 18446744073709551615ull
7335#define BIG32 4294967295ul
7336#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7337#if !BIG_OK
7338 your preprocessor is broken;
7339#endif
7340#if BIG_OK
7341#else
7342 your preprocessor is broken;
7343#endif
7344static long long int bignum = -9223372036854775807LL;
7345static unsigned long long int ubignum = BIG64;
7346
7347struct incomplete_array
7348{
7349 int datasize;
7350 double data[];
7351};
7352
7353struct named_init {
7354 int number;
7355 const wchar_t *name;
7356 double average;
7357};
7358
7359typedef const char *ccp;
7360
7361static inline int
7362test_restrict (ccp restrict text)
7363{
7364 // See if C++-style comments work.
7365 // Iterate through items via the restricted pointer.
7366 // Also check for declarations in for loops.
7367 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7368 continue;
7369 return 0;
7370}
7371
7372// Check varargs and va_copy.
7373static void
7374test_varargs (const char *format, ...)
7375{
7376 va_list args;
7377 va_start (args, format);
7378 va_list args_copy;
7379 va_copy (args_copy, args);
7380
7381 const char *str;
7382 int number;
7383 float fnumber;
7384
7385 while (*format)
7386 {
7387 switch (*format++)
7388 {
7389 case 's': // string
7390 str = va_arg (args_copy, const char *);
7391 break;
7392 case 'd': // int
7393 number = va_arg (args_copy, int);
7394 break;
7395 case 'f': // float
7396 fnumber = va_arg (args_copy, double);
7397 break;
7398 default:
7399 break;
7400 }
7401 }
7402 va_end (args_copy);
7403 va_end (args);
7404}
7405
7406int
7407main ()
7408{
7409
7410 // Check bool.
7411 _Bool success = false;
7412
7413 // Check restrict.
7414 if (test_restrict ("String literal") == 0)
7415 success = true;
7416 char *restrict newvar = "Another string";
7417
7418 // Check varargs.
7419 test_varargs ("s, d' f .", "string", 65, 34.234);
7420 test_varargs_macros ();
7421
7422 // Check flexible array members.
7423 struct incomplete_array *ia =
7424 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7425 ia->datasize = 10;
7426 for (int i = 0; i < ia->datasize; ++i)
7427 ia->data[i] = i * 1.234;
7428
7429 // Check named initializers.
7430 struct named_init ni = {
7431 .number = 34,
7432 .name = L"Test wide string",
7433 .average = 543.34343,
7434 };
7435
7436 ni.number = 58;
7437
7438 int dynamic_array[ni.number];
7439 dynamic_array[ni.number - 1] = 543;
7440
7441 // work around unused variable warnings
7442 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7443 || dynamic_array[ni.number - 1] != 543);
7444
7445 ;
7446 return 0;
7447}
7448_ACEOF
7449for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7450do
7451 CC="$ac_save_CC $ac_arg"
7452 if ac_fn_c_try_compile "$LINENO"; then :
7453 ac_cv_prog_cc_c99=$ac_arg
7454fi
7455rm -f core conftest.err conftest.$ac_objext
7456 test "x$ac_cv_prog_cc_c99" != "xno" && break
7457done
7458rm -f conftest.$ac_ext
7459CC=$ac_save_CC
7460
7461fi
7462# AC_CACHE_VAL
7463case "x$ac_cv_prog_cc_c99" in
7464 x)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7466$as_echo "none needed" >&6; } ;;
7467 xno)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7469$as_echo "unsupported" >&6; } ;;
7470 *)
7471 CC="$CC $ac_cv_prog_cc_c99"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7473$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7474esac
7475if test "x$ac_cv_prog_cc_c99" != xno; then :
7476
7477fi
7478
7479
cristy3ed852e2009-09-05 21:47:34 +00007480if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007482$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7483else
cristy8b350f62009-11-15 23:12:43 +00007484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007485$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7486fi
7487set dummy $CC; ac_cc=`$as_echo "$2" |
7488 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007489if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007490 $as_echo_n "(cached) " >&6
7491else
cristy8b350f62009-11-15 23:12:43 +00007492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007493/* end confdefs.h. */
7494
7495int
7496main ()
7497{
7498
7499 ;
7500 return 0;
7501}
7502_ACEOF
7503# Make sure it works both with $CC and with simple cc.
7504# We do the test twice because some compilers refuse to overwrite an
7505# existing .o file with -o, though they will create one.
7506ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7507rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007508if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511esac
cristy8b350f62009-11-15 23:12:43 +00007512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7513$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007514 (eval "$ac_try") 2>&5
7515 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; } &&
7518 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521esac
cristy8b350f62009-11-15 23:12:43 +00007522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7523$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007524 (eval "$ac_try") 2>&5
7525 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007528then
7529 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7530 if test "x$CC" != xcc; then
7531 # Test first that cc exists at all.
7532 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007533 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
cristy8b350f62009-11-15 23:12:43 +00007537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7538$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007539 (eval "$ac_try") 2>&5
7540 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007543 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7544 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007545 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
cristy8b350f62009-11-15 23:12:43 +00007549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7550$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007551 (eval "$ac_try") 2>&5
7552 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7554 test $ac_status = 0; } &&
7555 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558esac
cristy8b350f62009-11-15 23:12:43 +00007559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7560$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007561 (eval "$ac_try") 2>&5
7562 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7564 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007565 then
7566 # cc works too.
7567 :
7568 else
7569 # cc exists but doesn't like -o.
7570 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7571 fi
7572 fi
7573 fi
7574else
7575 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7576fi
7577rm -f core conftest*
7578
7579fi
7580if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007582$as_echo "yes" >&6; }
7583else
cristy8b350f62009-11-15 23:12:43 +00007584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007585$as_echo "no" >&6; }
7586
cristy8b350f62009-11-15 23:12:43 +00007587$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007588
7589fi
7590
7591# FIXME: we rely on the cache variable name because
7592# there is no other way.
7593set dummy $CC
7594am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7595eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7596if test "$am_t" != yes; then
7597 # Losing compiler, so override with the script.
7598 # FIXME: It is wrong to rewrite CC.
7599 # But if we don't then we get into trouble of one sort or another.
7600 # A longer-term fix would be to have automake use am__CC in this case,
7601 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7602 CC="$am_aux_dir/compile $CC"
7603fi
7604
7605
cristy3ed852e2009-09-05 21:47:34 +00007606
cristy8b350f62009-11-15 23:12:43 +00007607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007608$as_echo_n "checking maximum warning verbosity option... " >&6; }
7609
7610
7611
7612
7613# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00007614if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007615 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7616else
7617 ac_compile_warnings_on=""
7618fi
7619
7620
7621 if test x"$ac_compile_warnings_on" = xno
7622 then
7623 ac_compile_warnings_msg=no
7624 else
7625 if test -n "$CXX"
7626 then
7627 if test "$GXX" = "yes"
7628 then
cristybcbeec82010-01-22 03:20:31 +00007629 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007630 fi
7631 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7632 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7633 fi
7634
7635 if test -n "$CC"
7636 then
7637 if test "$GCC" = "yes"
7638 then
cristybcbeec82010-01-22 03:20:31 +00007639 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007640 fi
7641 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7642 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7643 fi
7644 fi
cristy8b350f62009-11-15 23:12:43 +00007645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00007646$as_echo "$ac_compile_warnings_msg" >&6; }
7647 unset ac_compile_warnings_msg
7648 unset ac_compile_warnings_opt
7649
cristya0b81c32010-01-22 02:54:33 +00007650$ac_includes_default
7651
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7653$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7654set x ${MAKE-make}
7655ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7656if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7657 $as_echo_n "(cached) " >&6
7658else
7659 cat >conftest.make <<\_ACEOF
7660SHELL = /bin/sh
7661all:
7662 @echo '@@@%%%=$(MAKE)=@@@%%%'
7663_ACEOF
7664# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7665case `${MAKE-make} -f conftest.make 2>/dev/null` in
7666 *@@@%%%=?*=@@@%%%*)
7667 eval ac_cv_prog_make_${ac_make}_set=yes;;
7668 *)
7669 eval ac_cv_prog_make_${ac_make}_set=no;;
7670esac
7671rm -f conftest.make
7672fi
7673if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675$as_echo "yes" >&6; }
7676 SET_MAKE=
7677else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
7680 SET_MAKE="MAKE=${MAKE-make}"
7681fi
7682
cristy8b350f62009-11-15 23:12:43 +00007683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007684$as_echo_n "checking whether ln -s works... " >&6; }
7685LN_S=$as_ln_s
7686if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007688$as_echo "yes" >&6; }
7689else
cristy8b350f62009-11-15 23:12:43 +00007690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007691$as_echo "no, using $LN_S" >&6; }
7692fi
7693
cristy8b350f62009-11-15 23:12:43 +00007694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007695$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7696
7697# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007698if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007699 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007701$as_echo "yes" >&6; }
7702
cristy8b350f62009-11-15 23:12:43 +00007703$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007704
7705 LIBS="$LIBS -ldmalloc"
7706 LDFLAGS="$LDFLAGS -g"
7707else
cristy8b350f62009-11-15 23:12:43 +00007708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007709$as_echo "no" >&6; }
7710fi
7711else
cristy8b350f62009-11-15 23:12:43 +00007712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007713$as_echo "no" >&6; }
7714fi
7715
7716
7717
7718
7719if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7722set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007724$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007725if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007726 $as_echo_n "(cached) " >&6
7727else
7728 case $PKG_CONFIG in
7729 [\\/]* | ?:[\\/]*)
7730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7731 ;;
7732 *)
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007742 break 2
7743 fi
7744done
cristy8b350f62009-11-15 23:12:43 +00007745 done
cristy3ed852e2009-09-05 21:47:34 +00007746IFS=$as_save_IFS
7747
7748 ;;
7749esac
7750fi
7751PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7752if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007754$as_echo "$PKG_CONFIG" >&6; }
7755else
cristy8b350f62009-11-15 23:12:43 +00007756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007757$as_echo "no" >&6; }
7758fi
7759
7760
7761fi
7762if test -z "$ac_cv_path_PKG_CONFIG"; then
7763 ac_pt_PKG_CONFIG=$PKG_CONFIG
7764 # Extract the first word of "pkg-config", so it can be a program name with args.
7765set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007767$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007768if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007769 $as_echo_n "(cached) " >&6
7770else
7771 case $ac_pt_PKG_CONFIG in
7772 [\\/]* | ?:[\\/]*)
7773 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7774 ;;
7775 *)
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007785 break 2
7786 fi
7787done
cristy8b350f62009-11-15 23:12:43 +00007788 done
cristy3ed852e2009-09-05 21:47:34 +00007789IFS=$as_save_IFS
7790
7791 ;;
7792esac
7793fi
7794ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7795if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007797$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7798else
cristy8b350f62009-11-15 23:12:43 +00007799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007800$as_echo "no" >&6; }
7801fi
7802
7803 if test "x$ac_pt_PKG_CONFIG" = x; then
7804 PKG_CONFIG=""
7805 else
7806 case $cross_compiling:$ac_tool_warned in
7807yes:)
cristy8b350f62009-11-15 23:12:43 +00007808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7810ac_tool_warned=yes ;;
7811esac
7812 PKG_CONFIG=$ac_pt_PKG_CONFIG
7813 fi
7814else
7815 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7816fi
7817
7818fi
7819if test -n "$PKG_CONFIG"; then
7820 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007822$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7823 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007825$as_echo "yes" >&6; }
7826 else
cristy8b350f62009-11-15 23:12:43 +00007827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007828$as_echo "no" >&6; }
7829 PKG_CONFIG=""
7830 fi
7831
7832fi
7833
7834#
cristy3ed852e2009-09-05 21:47:34 +00007835# Enable run-time checking.
7836#
7837# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007838if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007839 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7840else
7841 enable_bounds_checking='no'
7842fi
7843
7844
7845if test "$enable_bounds_checking" = yes; then
7846
cristy8b350f62009-11-15 23:12:43 +00007847$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007848
7849fi
7850
7851#
7852# Tests for Windows
7853#
7854
7855
7856
7857GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007858native_win32_build='no'
7859cygwin_build='no'
7860case "${host_os}" in
7861 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007862 cygwin_build='yes'
7863 GDI32_LIBS='-lgdi32'
7864 ;;
7865 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007866 native_win32_build='yes'
7867 GDI32_LIBS='-lgdi32'
7868 ;;
7869esac
7870if test "${GDI32_LIBS}x" != 'x'; then
7871
cristy8b350f62009-11-15 23:12:43 +00007872$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007873
7874fi
7875
7876 if test "${GDI32_LIBS}x" != 'x' ; then
7877 WINGDI32_DELEGATE_TRUE=
7878 WINGDI32_DELEGATE_FALSE='#'
7879else
7880 WINGDI32_DELEGATE_TRUE='#'
7881 WINGDI32_DELEGATE_FALSE=
7882fi
7883
7884 if test "${native_win32_build}" = 'yes' ; then
7885 WIN32_NATIVE_BUILD_TRUE=
7886 WIN32_NATIVE_BUILD_FALSE='#'
7887else
7888 WIN32_NATIVE_BUILD_TRUE='#'
7889 WIN32_NATIVE_BUILD_FALSE=
7890fi
7891
7892 if test "${cygwin_build}" = 'yes' ; then
7893 CYGWIN_BUILD_TRUE=
7894 CYGWIN_BUILD_FALSE='#'
7895else
7896 CYGWIN_BUILD_TRUE='#'
7897 CYGWIN_BUILD_FALSE=
7898fi
7899
7900 if test "x${CC}" = 'xcl.exe' ; then
7901 USING_CL_TRUE=
7902 USING_CL_FALSE='#'
7903else
7904 USING_CL_TRUE='#'
7905 USING_CL_FALSE=
7906fi
7907
7908
7909WinPathScript="${srcdirfull}/winpath.sh"
7910
7911
7912#
7913# Compiler flags tweaks
7914#
7915if test "${GCC}" != "yes"; then
7916 case "${host}" in
7917 *-*-hpux* )
7918 # aCC: HP ANSI C++ B3910B A.03.34
7919 CFLAGS="${CFLAGS} -Wp,-H30000"
7920 if test -n "${CXXFLAGS}"; then
7921 CXXFLAGS='-AA'
7922 else
7923 CXXFLAGS="${CXXFLAGS} -AA"
7924 fi
7925 ;;
7926 *-dec-osf5.* )
7927 # Compaq alphaev68-dec-osf5.1 compiler
7928 if test -n "${CXXFLAGS}"; then
7929 CXXFLAGS='-std strict_ansi -noimplicit_include'
7930 else
7931 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7932 fi
7933 esac
7934fi
7935
7936# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007938$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007939if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007940 $as_echo_n "(cached) " >&6
7941else
7942
7943im_cv_ld_lazyload='none'
7944case "${host}" in
7945 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7946 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7947 im_cv_ld_lazyload='-Wl,-zlazyload'
7948 fi
7949 ;;
7950esac
7951
7952fi
cristy8b350f62009-11-15 23:12:43 +00007953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007954$as_echo "$im_cv_ld_lazyload" >&6; }
7955if test "${im_cv_ld_lazyload}" != 'none' ; then
7956 if test -z "${LDFLAGS}" ; then
7957 LDFLAGS="${im_cv_ld_lazyload}"
7958 else
7959 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7960 fi
7961fi
7962
7963case "$host" in
7964*darwin* | *-macos10*)
7965 if test -d /opt/local ; then
7966 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7967 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7968 elif test -d /sw ; then
7969 CPPFLAGS="$CPPFLAGS -I/sw/include"
7970 LDFLAGS="$LDFLAGS -L/sw/lib"
7971 fi
7972 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007973if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007974 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7975else
7976 build_osxuniversal=no
7977fi
7978
7979
7980 if test "${build_osxuniversal}" != no ; then
7981 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007982 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007983Please re-run configure with these options:
7984 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007985 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007986 fi
7987 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7988 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7989 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7990 fi
7991 ;;
7992esac
7993
7994# Enable support for threads
7995
7996# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007997if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007998 withval=$with_threads; with_threads=$withval
7999else
8000 with_threads='yes'
8001fi
8002
8003
8004have_threads=no
8005if test "$with_threads" != 'no'; then
8006
8007
8008
8009ac_ext=c
8010ac_cpp='$CPP $CPPFLAGS'
8011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013ac_compiler_gnu=$ac_cv_c_compiler_gnu
8014
cristy964cb7f2010-04-25 23:18:00 +00008015ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008016
8017# We used to check for pthread.h first, but this fails if pthread.h
8018# requires special compiler flags (e.g. on True64 or Sequent).
8019# It gets checked for in the link test anyway.
8020
8021# First of all, check if the user has set any of the PTHREAD_LIBS,
8022# etcetera environment variables, and if threads linking works using
8023# them:
8024if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8025 save_CFLAGS="$CFLAGS"
8026 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8027 save_LIBS="$LIBS"
8028 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008029 { $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 +00008030$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008032/* end confdefs.h. */
8033
8034/* Override any GCC internal prototype to avoid an error.
8035 Use char because int might match the return type of a GCC
8036 builtin and then its argument prototype would still apply. */
8037#ifdef __cplusplus
8038extern "C"
8039#endif
8040char pthread_join ();
8041int
8042main ()
8043{
8044return pthread_join ();
8045 ;
8046 return 0;
8047}
8048_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008049if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008050 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008051fi
cristy8b350f62009-11-15 23:12:43 +00008052rm -f core conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8055$as_echo "$ax_pthread_ok" >&6; }
8056 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008057 PTHREAD_LIBS=""
8058 PTHREAD_CFLAGS=""
8059 fi
8060 LIBS="$save_LIBS"
8061 CFLAGS="$save_CFLAGS"
8062fi
8063
8064# We must check for the threads library under a number of different
8065# names; the ordering is very important because some systems
8066# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8067# libraries is broken (non-POSIX).
8068
8069# Create a list of thread flags to try. Items starting with a "-" are
8070# C compiler flags, and other items are library names, except for "none"
8071# which indicates that we try without any flags at all, and "pthread-config"
8072# which is a program returning the flags for the Pth emulation library.
8073
cristy964cb7f2010-04-25 23:18:00 +00008074ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008075
8076# The ordering *is* (sometimes) important. Some notes on the
8077# individual items follow:
8078
8079# pthreads: AIX (must check this before -lpthread)
8080# none: in case threads are in libc; should be tried before -Kthread and
8081# other compiler flags to prevent continual compiler warnings
8082# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8083# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8084# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8085# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8086# -pthreads: Solaris/gcc
8087# -mthreads: Mingw32/gcc, Lynx/gcc
8088# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8089# doesn't hurt to check since this sometimes defines pthreads too;
8090# also defines -D_REENTRANT)
8091# ... -mt is also the pthreads flag for HP/aCC
8092# pthread: Linux, etcetera
8093# --thread-safe: KAI C++
8094# pthread-config: use pthread-config program (for GNU Pth library)
8095
8096case "${host_cpu}-${host_os}" in
8097 *solaris*)
8098
8099 # On Solaris (at least, for some versions), libc contains stubbed
8100 # (non-functional) versions of the pthreads routines, so link-based
8101 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8102 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8103 # a function called by this macro, so we could check for that, but
8104 # who knows whether they'll stub that too in a future libc.) So,
8105 # we'll just look for -pthreads and -lpthread first:
8106
cristy964cb7f2010-04-25 23:18:00 +00008107 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008108 ;;
cristy964cb7f2010-04-25 23:18:00 +00008109
8110 *-darwin*)
8111 acx_pthread_flags="-pthread $acx_pthread_flags"
8112 ;;
cristy3ed852e2009-09-05 21:47:34 +00008113esac
8114
cristy964cb7f2010-04-25 23:18:00 +00008115if test x"$ax_pthread_ok" = xno; then
8116for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008117
8118 case $flag in
8119 none)
cristy8b350f62009-11-15 23:12:43 +00008120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008121$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8122 ;;
8123
8124 -*)
cristy8b350f62009-11-15 23:12:43 +00008125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008126$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8127 PTHREAD_CFLAGS="$flag"
8128 ;;
8129
8130 pthread-config)
8131 # Extract the first word of "pthread-config", so it can be a program name with args.
8132set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008134$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008135if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008136 $as_echo_n "(cached) " >&6
8137else
cristy964cb7f2010-04-25 23:18:00 +00008138 if test -n "$ax_pthread_config"; then
8139 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008140else
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008148 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008150 break 2
8151 fi
8152done
cristy8b350f62009-11-15 23:12:43 +00008153 done
cristy3ed852e2009-09-05 21:47:34 +00008154IFS=$as_save_IFS
8155
cristy964cb7f2010-04-25 23:18:00 +00008156 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008157fi
8158fi
cristy964cb7f2010-04-25 23:18:00 +00008159ax_pthread_config=$ac_cv_prog_ax_pthread_config
8160if test -n "$ax_pthread_config"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8162$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008163else
cristy8b350f62009-11-15 23:12:43 +00008164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008165$as_echo "no" >&6; }
8166fi
8167
8168
cristy964cb7f2010-04-25 23:18:00 +00008169 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008170 PTHREAD_CFLAGS="`pthread-config --cflags`"
8171 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8172 ;;
8173
8174 *)
cristy8b350f62009-11-15 23:12:43 +00008175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008176$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8177 PTHREAD_LIBS="-l$flag"
8178 ;;
8179 esac
8180
8181 save_LIBS="$LIBS"
8182 save_CFLAGS="$CFLAGS"
8183 LIBS="$PTHREAD_LIBS $LIBS"
8184 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8185
8186 # Check for various functions. We must include pthread.h,
8187 # since some functions may be macros. (On the Sequent, we
8188 # need a special flag -Kthread to make this header compile.)
8189 # We check for pthread_join because it is in -lpthread on IRIX
8190 # while pthread_create is in libc. We check for pthread_attr_init
8191 # due to DEC craziness with -lpthreads. We check for
8192 # pthread_cleanup_push because it is one of the few pthread
8193 # functions on Solaris that doesn't have a non-functional libc stub.
8194 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008196/* end confdefs.h. */
8197#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008198 static void routine(void* a) {a=0;}
8199 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008200int
8201main ()
8202{
cristy964cb7f2010-04-25 23:18:00 +00008203pthread_t th; pthread_attr_t attr;
8204 pthread_join(th, 0);
8205 pthread_attr_init(&attr);
8206 pthread_cleanup_push(routine, 0);
8207 pthread_create(&th,0,start_routine,0);
8208 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008209 ;
8210 return 0;
8211}
8212_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008213if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008214 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008215fi
cristy8b350f62009-11-15 23:12:43 +00008216rm -f core conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008218
8219 LIBS="$save_LIBS"
8220 CFLAGS="$save_CFLAGS"
8221
cristy964cb7f2010-04-25 23:18:00 +00008222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8223$as_echo "$ax_pthread_ok" >&6; }
8224 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008225 break;
8226 fi
8227
8228 PTHREAD_LIBS=""
8229 PTHREAD_CFLAGS=""
8230done
8231fi
8232
8233# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008234if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008235 save_LIBS="$LIBS"
8236 LIBS="$PTHREAD_LIBS $LIBS"
8237 save_CFLAGS="$CFLAGS"
8238 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8239
8240 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008242$as_echo_n "checking for joinable pthread attribute... " >&6; }
8243 attr_name=unknown
8244 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008246/* end confdefs.h. */
8247#include <pthread.h>
8248int
8249main ()
8250{
8251int attr=$attr; return attr;
8252 ;
8253 return 0;
8254}
8255_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008257 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008258fi
cristy8b350f62009-11-15 23:12:43 +00008259rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008261 done
cristy8b350f62009-11-15 23:12:43 +00008262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008263$as_echo "$attr_name" >&6; }
8264 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8265
8266cat >>confdefs.h <<_ACEOF
8267#define PTHREAD_CREATE_JOINABLE $attr_name
8268_ACEOF
8269
8270 fi
8271
cristy8b350f62009-11-15 23:12:43 +00008272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008273$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8274 flag=no
8275 case "${host_cpu}-${host_os}" in
8276 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8277 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8278 esac
cristy8b350f62009-11-15 23:12:43 +00008279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008280$as_echo "${flag}" >&6; }
8281 if test "x$flag" != xno; then
8282 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8283 fi
8284
8285 LIBS="$save_LIBS"
8286 CFLAGS="$save_CFLAGS"
8287
8288 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008289 if test x"$GCC" != xyes; then
8290 for ac_prog in xlc_r cc_r
8291do
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008295$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008296if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008297 $as_echo_n "(cached) " >&6
8298else
8299 if test -n "$PTHREAD_CC"; then
8300 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008308 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 +00008309 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008311 break 2
8312 fi
8313done
cristy8b350f62009-11-15 23:12:43 +00008314 done
cristy3ed852e2009-09-05 21:47:34 +00008315IFS=$as_save_IFS
8316
cristy3ed852e2009-09-05 21:47:34 +00008317fi
8318fi
8319PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8320if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008322$as_echo "$PTHREAD_CC" >&6; }
8323else
cristy8b350f62009-11-15 23:12:43 +00008324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008325$as_echo "no" >&6; }
8326fi
8327
cristy736173a2009-09-20 21:18:22 +00008328
8329 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008330done
cristy736173a2009-09-20 21:18:22 +00008331test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008332
cristy736173a2009-09-20 21:18:22 +00008333 else
8334 PTHREAD_CC=$CC
8335 fi
cristy3ed852e2009-09-05 21:47:34 +00008336else
cristy736173a2009-09-20 21:18:22 +00008337 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008338fi
8339
cristy3ed852e2009-09-05 21:47:34 +00008340
8341
8342
8343
8344# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008345if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008346
cristy8b350f62009-11-15 23:12:43 +00008347$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008348
8349 :
8350else
cristy964cb7f2010-04-25 23:18:00 +00008351 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008352
8353fi
8354ac_ext=c
8355ac_cpp='$CPP $CPPFLAGS'
8356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358ac_compiler_gnu=$ac_cv_c_compiler_gnu
8359
8360
cristy964cb7f2010-04-25 23:18:00 +00008361 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008362 have_threads=yes
8363 DEF_THREAD="$PTHREAD_CFLAGS"
8364 CFLAGS="$CFLAGS $DEF_THREAD"
8365 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8366 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008367 { $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 +00008368$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8369 CC="$PTHREAD_CC"
8370 fi
8371 fi
8372fi
8373
8374# Enable support for OpenMP
8375if test "$have_threads" != 'yes'; then
8376 ac_cv_prog_c_openmp=unsupported
8377fi
8378
8379 OPENMP_CFLAGS=
8380 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008381if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008382 enableval=$enable_openmp;
8383fi
8384
8385 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008387$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008388if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008389 $as_echo_n "(cached) " >&6
8390else
cristy8b350f62009-11-15 23:12:43 +00008391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008393
8394#ifndef _OPENMP
8395 choke me
8396#endif
8397#include <omp.h>
8398int main () { return omp_get_num_threads (); }
8399
8400_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008402 ac_cv_prog_c_openmp='none needed'
8403else
cristy8b350f62009-11-15 23:12:43 +00008404 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008405 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8406 ac_save_CFLAGS=$CFLAGS
8407 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008410
8411#ifndef _OPENMP
8412 choke me
8413#endif
8414#include <omp.h>
8415int main () { return omp_get_num_threads (); }
8416
8417_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008419 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008420fi
cristy8b350f62009-11-15 23:12:43 +00008421rm -f core conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008423 CFLAGS=$ac_save_CFLAGS
8424 if test "$ac_cv_prog_c_openmp" != unsupported; then
8425 break
8426 fi
8427 done
8428fi
cristy8b350f62009-11-15 23:12:43 +00008429rm -f core conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008431fi
cristy8b350f62009-11-15 23:12:43 +00008432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008433$as_echo "$ac_cv_prog_c_openmp" >&6; }
8434 case $ac_cv_prog_c_openmp in #(
8435 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008436 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008437 *)
cristy8b350f62009-11-15 23:12:43 +00008438 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008439 esac
8440 fi
8441
8442
8443CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8444MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8445
8446
cristy736173a2009-09-20 21:18:22 +00008447# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008448
cristy964cb7f2010-04-25 23:18:00 +00008449
8450
8451ac_ext=c
8452ac_cpp='$CPP $CPPFLAGS'
8453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8455ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456
8457ax_pthread_ok=no
8458
8459# We used to check for pthread.h first, but this fails if pthread.h
8460# requires special compiler flags (e.g. on True64 or Sequent).
8461# It gets checked for in the link test anyway.
8462
8463# First of all, check if the user has set any of the PTHREAD_LIBS,
8464# etcetera environment variables, and if threads linking works using
8465# them:
8466if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8467 save_CFLAGS="$CFLAGS"
8468 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8469 save_LIBS="$LIBS"
8470 LIBS="$PTHREAD_LIBS $LIBS"
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8472$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h. */
8475
8476/* Override any GCC internal prototype to avoid an error.
8477 Use char because int might match the return type of a GCC
8478 builtin and then its argument prototype would still apply. */
8479#ifdef __cplusplus
8480extern "C"
8481#endif
8482char pthread_join ();
8483int
8484main ()
8485{
8486return pthread_join ();
8487 ;
8488 return 0;
8489}
8490_ACEOF
8491if ac_fn_c_try_link "$LINENO"; then :
8492 ax_pthread_ok=yes
8493fi
8494rm -f core conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8497$as_echo "$ax_pthread_ok" >&6; }
8498 if test x"$ax_pthread_ok" = xno; then
8499 PTHREAD_LIBS=""
8500 PTHREAD_CFLAGS=""
8501 fi
8502 LIBS="$save_LIBS"
8503 CFLAGS="$save_CFLAGS"
8504fi
8505
8506# We must check for the threads library under a number of different
8507# names; the ordering is very important because some systems
8508# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8509# libraries is broken (non-POSIX).
8510
8511# Create a list of thread flags to try. Items starting with a "-" are
8512# C compiler flags, and other items are library names, except for "none"
8513# which indicates that we try without any flags at all, and "pthread-config"
8514# which is a program returning the flags for the Pth emulation library.
8515
8516ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8517
8518# The ordering *is* (sometimes) important. Some notes on the
8519# individual items follow:
8520
8521# pthreads: AIX (must check this before -lpthread)
8522# none: in case threads are in libc; should be tried before -Kthread and
8523# other compiler flags to prevent continual compiler warnings
8524# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8525# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8526# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8527# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8528# -pthreads: Solaris/gcc
8529# -mthreads: Mingw32/gcc, Lynx/gcc
8530# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8531# doesn't hurt to check since this sometimes defines pthreads too;
8532# also defines -D_REENTRANT)
8533# ... -mt is also the pthreads flag for HP/aCC
8534# pthread: Linux, etcetera
8535# --thread-safe: KAI C++
8536# pthread-config: use pthread-config program (for GNU Pth library)
8537
8538case "${host_cpu}-${host_os}" in
8539 *solaris*)
8540
8541 # On Solaris (at least, for some versions), libc contains stubbed
8542 # (non-functional) versions of the pthreads routines, so link-based
8543 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8544 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8545 # a function called by this macro, so we could check for that, but
8546 # who knows whether they'll stub that too in a future libc.) So,
8547 # we'll just look for -pthreads and -lpthread first:
8548
8549 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8550 ;;
8551
8552 *-darwin*)
8553 acx_pthread_flags="-pthread $acx_pthread_flags"
8554 ;;
8555esac
8556
8557if test x"$ax_pthread_ok" = xno; then
8558for flag in $ax_pthread_flags; do
8559
8560 case $flag in
8561 none)
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8563$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8564 ;;
8565
8566 -*)
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8568$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8569 PTHREAD_CFLAGS="$flag"
8570 ;;
8571
8572 pthread-config)
8573 # Extract the first word of "pthread-config", so it can be a program name with args.
8574set dummy pthread-config; ac_word=$2
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
8577if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579else
8580 if test -n "$ax_pthread_config"; then
8581 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8582else
8583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584for as_dir in $PATH
8585do
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8590 ac_cv_prog_ax_pthread_config="yes"
8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 break 2
8593 fi
8594done
8595 done
8596IFS=$as_save_IFS
8597
8598 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8599fi
8600fi
8601ax_pthread_config=$ac_cv_prog_ax_pthread_config
8602if test -n "$ax_pthread_config"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8604$as_echo "$ax_pthread_config" >&6; }
8605else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607$as_echo "no" >&6; }
8608fi
8609
8610
8611 if test x"$ax_pthread_config" = xno; then continue; fi
8612 PTHREAD_CFLAGS="`pthread-config --cflags`"
8613 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8614 ;;
8615
8616 *)
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8618$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8619 PTHREAD_LIBS="-l$flag"
8620 ;;
8621 esac
8622
8623 save_LIBS="$LIBS"
8624 save_CFLAGS="$CFLAGS"
8625 LIBS="$PTHREAD_LIBS $LIBS"
8626 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8627
8628 # Check for various functions. We must include pthread.h,
8629 # since some functions may be macros. (On the Sequent, we
8630 # need a special flag -Kthread to make this header compile.)
8631 # We check for pthread_join because it is in -lpthread on IRIX
8632 # while pthread_create is in libc. We check for pthread_attr_init
8633 # due to DEC craziness with -lpthreads. We check for
8634 # pthread_cleanup_push because it is one of the few pthread
8635 # functions on Solaris that doesn't have a non-functional libc stub.
8636 # We try pthread_create on general principles.
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h. */
8639#include <pthread.h>
8640 static void routine(void* a) {a=0;}
8641 static void* start_routine(void* a) {return a;}
8642int
8643main ()
8644{
8645pthread_t th; pthread_attr_t attr;
8646 pthread_join(th, 0);
8647 pthread_attr_init(&attr);
8648 pthread_cleanup_push(routine, 0);
8649 pthread_create(&th,0,start_routine,0);
8650 pthread_cleanup_pop(0);
8651 ;
8652 return 0;
8653}
8654_ACEOF
8655if ac_fn_c_try_link "$LINENO"; then :
8656 ax_pthread_ok=yes
8657fi
8658rm -f core conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8660
8661 LIBS="$save_LIBS"
8662 CFLAGS="$save_CFLAGS"
8663
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8665$as_echo "$ax_pthread_ok" >&6; }
8666 if test "x$ax_pthread_ok" = xyes; then
8667 break;
8668 fi
8669
8670 PTHREAD_LIBS=""
8671 PTHREAD_CFLAGS=""
8672done
8673fi
8674
8675# Various other checks:
8676if test "x$ax_pthread_ok" = xyes; then
8677 save_LIBS="$LIBS"
8678 LIBS="$PTHREAD_LIBS $LIBS"
8679 save_CFLAGS="$CFLAGS"
8680 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8681
8682 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8684$as_echo_n "checking for joinable pthread attribute... " >&6; }
8685 attr_name=unknown
8686 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h. */
8689#include <pthread.h>
8690int
8691main ()
8692{
8693int attr=$attr; return attr;
8694 ;
8695 return 0;
8696}
8697_ACEOF
8698if ac_fn_c_try_link "$LINENO"; then :
8699 attr_name=$attr; break
8700fi
8701rm -f core conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 done
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8705$as_echo "$attr_name" >&6; }
8706 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8707
8708cat >>confdefs.h <<_ACEOF
8709#define PTHREAD_CREATE_JOINABLE $attr_name
8710_ACEOF
8711
8712 fi
8713
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8715$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8716 flag=no
8717 case "${host_cpu}-${host_os}" in
8718 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8719 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8720 esac
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8722$as_echo "${flag}" >&6; }
8723 if test "x$flag" != xno; then
8724 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8725 fi
8726
8727 LIBS="$save_LIBS"
8728 CFLAGS="$save_CFLAGS"
8729
8730 # More AIX lossage: must compile with xlc_r or cc_r
8731 if test x"$GCC" != xyes; then
8732 for ac_prog in xlc_r cc_r
8733do
8734 # Extract the first word of "$ac_prog", so it can be a program name with args.
8735set dummy $ac_prog; ac_word=$2
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737$as_echo_n "checking for $ac_word... " >&6; }
8738if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740else
8741 if test -n "$PTHREAD_CC"; then
8742 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_prog_PTHREAD_CC="$ac_prog"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8754 fi
8755done
8756 done
8757IFS=$as_save_IFS
8758
8759fi
8760fi
8761PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8762if test -n "$PTHREAD_CC"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8764$as_echo "$PTHREAD_CC" >&6; }
8765else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
8768fi
8769
8770
8771 test -n "$PTHREAD_CC" && break
8772done
8773test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8774
8775 else
8776 PTHREAD_CC=$CC
8777 fi
8778else
8779 PTHREAD_CC="$CC"
8780fi
8781
8782
8783
8784
8785
8786# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8787if test x"$ax_pthread_ok" = xyes; then
8788
8789$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8790
8791 :
8792else
8793 ax_pthread_ok=no
8794
8795fi
8796ac_ext=c
8797ac_cpp='$CPP $CPPFLAGS'
8798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8800ac_compiler_gnu=$ac_cv_c_compiler_gnu
8801
8802
8803
cristy43596fe2010-01-21 16:46:08 +00008804# Check whether --enable-opencl was given.
8805if test "${enable_opencl+set}" = set; then :
8806 enableval=$enable_opencl; disable_opencl=$enableval
8807else
8808 disable_opencl='yes'
8809fi
8810
8811
8812if test "$disable_opencl" = 'yes'; then
8813 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008814ac_cpp='$CPP $CPPFLAGS'
8815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818
cristy43596fe2010-01-21 16:46:08 +00008819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008820$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008821if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008822 $as_echo_n "(cached) " >&6
8823else
cristy8b350f62009-11-15 23:12:43 +00008824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008825/* end confdefs.h. */
8826
8827int
8828main ()
8829{
8830#ifndef _MSC_VER
8831 choke me
8832#endif
8833
8834 ;
8835 return 0;
8836}
8837_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008838if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008839 ax_compiler_ms=yes
8840else
cristy8b350f62009-11-15 23:12:43 +00008841 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008842fi
cristy736173a2009-09-20 21:18:22 +00008843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844ax_cv_c_compiler_ms=$ax_compiler_ms
8845
8846fi
cristy8b350f62009-11-15 23:12:43 +00008847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008848$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008849 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008850 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8851fi
8852
cristy43596fe2010-01-21 16:46:08 +00008853 ax_save_CPPFLAGS=$CPPFLAGS
8854 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8855 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008856do :
8857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8858ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8859eval as_val=\$$as_ac_Header
8860 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008861 cat >>confdefs.h <<_ACEOF
8862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863_ACEOF
8864
8865fi
8866
8867done
8868
cristy43596fe2010-01-21 16:46:08 +00008869 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008870
cristy43596fe2010-01-21 16:46:08 +00008871 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008872do :
8873 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8874if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008875 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008876#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008877_ACEOF
8878
8879fi
8880
8881done
8882
8883
8884
8885
cristy43596fe2010-01-21 16:46:08 +00008886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008887$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008888if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008889 $as_echo_n "(cached) " >&6
8890else
8891 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008892 case $host_cpu in
8893 x86_64) ax_check_cl_libdir=lib64 ;;
8894 *) ax_check_cl_libdir=lib ;;
8895 esac
8896 ax_save_CPPFLAGS=$CPPFLAGS
8897 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8898 ax_save_LIBS=$LIBS
8899 LIBS=""
8900 ax_check_libs="-lOpenCL -lCL -lclparser"
8901 for ax_lib in $ax_check_libs; do
8902 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008903 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8904else
8905 ax_try_lib=$ax_lib
8906fi
cristy43596fe2010-01-21 16:46:08 +00008907 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008909/* end confdefs.h. */
8910
cristy43596fe2010-01-21 16:46:08 +00008911 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8912 # include <windows.h>
8913 # endif
8914 # ifdef HAVE_CL_CL_H
8915 # include <CL/cl.h>
8916 # elif defined(HAVE_OPENCL_CL_H)
8917 # include <OpenCL/cl.h>
8918 # else
8919 # error no CL.h
8920 # endif
cristy736173a2009-09-20 21:18:22 +00008921int
8922main ()
8923{
cristyc7083c12009-10-14 03:16:55 +00008924clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008925 ;
8926 return 0;
8927}
8928_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008929if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008930 ax_cv_check_cl_libcl=$ax_try_lib; break
8931else
cristy8b350f62009-11-15 23:12:43 +00008932 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
cristy43596fe2010-01-21 16:46:08 +00008933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008934/* end confdefs.h. */
8935
cristy43596fe2010-01-21 16:46:08 +00008936 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8937 # include <windows.h>
8938 # endif
8939 # ifdef HAVE_CL_CL_H
8940 # include <CL/cl.h>
8941 # elif defined(HAVE_OPENCL_CL_H)
8942 # include <OpenCL/cl.h>
8943 # else
8944 # error no CL.h
8945 # endif
cristy736173a2009-09-20 21:18:22 +00008946int
8947main ()
8948{
cristyc7083c12009-10-14 03:16:55 +00008949clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008950 ;
8951 return 0;
8952}
8953_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008954if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008955 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8956else
cristy4dc44432009-12-30 23:30:06 +00008957 ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy43596fe2010-01-21 16:46:08 +00008958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008959/* end confdefs.h. */
8960
cristy43596fe2010-01-21 16:46:08 +00008961 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8962 # include <windows.h>
8963 # endif
8964 # ifdef HAVE_CL_CL_H
8965 # include <CL/cl.h>
8966 # elif defined(HAVE_OPENCL_CL_H)
8967 # include <OpenCL/cl.h>
8968 # else
8969 # error no CL.h
8970 # endif
cristy736173a2009-09-20 21:18:22 +00008971int
8972main ()
8973{
cristyc7083c12009-10-14 03:16:55 +00008974clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008975 ;
8976 return 0;
8977}
8978_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008979if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008980 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00008981fi
cristy8b350f62009-11-15 23:12:43 +00008982rm -f core conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008984fi
cristy8b350f62009-11-15 23:12:43 +00008985rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008987fi
cristy8b350f62009-11-15 23:12:43 +00008988rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008990 done
cristy736173a2009-09-20 21:18:22 +00008991
cristy43596fe2010-01-21 16:46:08 +00008992 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008993 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00008994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008995/* end confdefs.h. */
8996
cristy43596fe2010-01-21 16:46:08 +00008997 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8998 # include <windows.h>
8999 # endif
9000 # ifdef HAVE_CL_CL_H
9001 # include <CL/cl.h>
9002 # elif defined(HAVE_OPENCL_CL_H)
9003 # include <OpenCL/cl.h>
9004 # else
9005 # error no CL.h
9006 # endif
cristy736173a2009-09-20 21:18:22 +00009007int
9008main ()
9009{
cristyc7083c12009-10-14 03:16:55 +00009010clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009011 ;
9012 return 0;
9013}
9014_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009015if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009016 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009017fi
cristy8b350f62009-11-15 23:12:43 +00009018rm -f core conftest.err conftest.$ac_objext \
9019 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009020fi
9021
cristy43596fe2010-01-21 16:46:08 +00009022 LIBS=$ax_save_LIBS
9023 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009024fi
cristy8b350f62009-11-15 23:12:43 +00009025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009026$as_echo "$ax_cv_check_cl_libcl" >&6; }
9027
cristy43596fe2010-01-21 16:46:08 +00009028 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009029 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9030else
cristy99cc3002010-01-21 14:50:11 +00009031 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9032$as_echo "#define _OPENCL 1" >>confdefs.h
9033
cristy736173a2009-09-20 21:18:22 +00009034fi
cristy43596fe2010-01-21 16:46:08 +00009035 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009036ac_cpp='$CPP $CPPFLAGS'
9037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9039ac_compiler_gnu=$ac_cv_c_compiler_gnu
9040
cristy43596fe2010-01-21 16:46:08 +00009041fi
cristy736173a2009-09-20 21:18:22 +00009042
9043
9044
9045
cristyc7083c12009-10-14 03:16:55 +00009046CFLAGS="$CL_CFLAGS $CFLAGS"
9047LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009048
cristy2e8b51d2009-10-17 18:26:15 +00009049
cristy3ed852e2009-09-05 21:47:34 +00009050########
9051#
9052# Check for large file support
9053#
9054########
9055# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009056if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009057 enableval=$enable_largefile;
9058fi
9059
9060if test "$enable_largefile" != no; then
9061
cristy8b350f62009-11-15 23:12:43 +00009062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009063$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009064if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009065 $as_echo_n "(cached) " >&6
9066else
9067 ac_cv_sys_largefile_CC=no
9068 if test "$GCC" != yes; then
9069 ac_save_CC=$CC
9070 while :; do
9071 # IRIX 6.2 and later do not support large files by default,
9072 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009074/* end confdefs.h. */
9075#include <sys/types.h>
9076 /* Check that off_t can represent 2**63 - 1 correctly.
9077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9078 since some C++ compilers masquerading as C compilers
9079 incorrectly reject 9223372036854775807. */
9080#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9082 && LARGE_OFF_T % 2147483647 == 1)
9083 ? 1 : -1];
9084int
9085main ()
9086{
9087
9088 ;
9089 return 0;
9090}
9091_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009092 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009093 break
cristy3ed852e2009-09-05 21:47:34 +00009094fi
cristy3ed852e2009-09-05 21:47:34 +00009095rm -f core conftest.err conftest.$ac_objext
9096 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009097 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009098 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009099fi
cristy3ed852e2009-09-05 21:47:34 +00009100rm -f core conftest.err conftest.$ac_objext
9101 break
9102 done
9103 CC=$ac_save_CC
9104 rm -f conftest.$ac_ext
9105 fi
9106fi
cristy8b350f62009-11-15 23:12:43 +00009107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009108$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9109 if test "$ac_cv_sys_largefile_CC" != no; then
9110 CC=$CC$ac_cv_sys_largefile_CC
9111 fi
9112
cristy8b350f62009-11-15 23:12:43 +00009113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009114$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009115if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009116 $as_echo_n "(cached) " >&6
9117else
9118 while :; do
cristy8b350f62009-11-15 23:12:43 +00009119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009120/* end confdefs.h. */
9121#include <sys/types.h>
9122 /* Check that off_t can represent 2**63 - 1 correctly.
9123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9124 since some C++ compilers masquerading as C compilers
9125 incorrectly reject 9223372036854775807. */
9126#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9128 && LARGE_OFF_T % 2147483647 == 1)
9129 ? 1 : -1];
9130int
9131main ()
9132{
9133
9134 ;
9135 return 0;
9136}
9137_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009138if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009139 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009140fi
cristy3ed852e2009-09-05 21:47:34 +00009141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009143/* end confdefs.h. */
9144#define _FILE_OFFSET_BITS 64
9145#include <sys/types.h>
9146 /* Check that off_t can represent 2**63 - 1 correctly.
9147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9148 since some C++ compilers masquerading as C compilers
9149 incorrectly reject 9223372036854775807. */
9150#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9152 && LARGE_OFF_T % 2147483647 == 1)
9153 ? 1 : -1];
9154int
9155main ()
9156{
9157
9158 ;
9159 return 0;
9160}
9161_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009162if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009163 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009164fi
cristy3ed852e2009-09-05 21:47:34 +00009165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9166 ac_cv_sys_file_offset_bits=unknown
9167 break
9168done
9169fi
cristy8b350f62009-11-15 23:12:43 +00009170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009171$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9172case $ac_cv_sys_file_offset_bits in #(
9173 no | unknown) ;;
9174 *)
9175cat >>confdefs.h <<_ACEOF
9176#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9177_ACEOF
9178;;
9179esac
9180rm -rf conftest*
9181 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009183$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009184if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009185 $as_echo_n "(cached) " >&6
9186else
9187 while :; do
cristy8b350f62009-11-15 23:12:43 +00009188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009189/* end confdefs.h. */
9190#include <sys/types.h>
9191 /* Check that off_t can represent 2**63 - 1 correctly.
9192 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9193 since some C++ compilers masquerading as C compilers
9194 incorrectly reject 9223372036854775807. */
9195#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9196 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9197 && LARGE_OFF_T % 2147483647 == 1)
9198 ? 1 : -1];
9199int
9200main ()
9201{
9202
9203 ;
9204 return 0;
9205}
9206_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009207if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009208 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009209fi
cristy3ed852e2009-09-05 21:47:34 +00009210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009212/* end confdefs.h. */
9213#define _LARGE_FILES 1
9214#include <sys/types.h>
9215 /* Check that off_t can represent 2**63 - 1 correctly.
9216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9217 since some C++ compilers masquerading as C compilers
9218 incorrectly reject 9223372036854775807. */
9219#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9221 && LARGE_OFF_T % 2147483647 == 1)
9222 ? 1 : -1];
9223int
9224main ()
9225{
9226
9227 ;
9228 return 0;
9229}
9230_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009231if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009232 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009233fi
cristy3ed852e2009-09-05 21:47:34 +00009234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 ac_cv_sys_large_files=unknown
9236 break
9237done
9238fi
cristy8b350f62009-11-15 23:12:43 +00009239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009240$as_echo "$ac_cv_sys_large_files" >&6; }
9241case $ac_cv_sys_large_files in #(
9242 no | unknown) ;;
9243 *)
9244cat >>confdefs.h <<_ACEOF
9245#define _LARGE_FILES $ac_cv_sys_large_files
9246_ACEOF
9247;;
9248esac
9249rm -rf conftest*
9250 fi
9251fi
9252
cristy8b350f62009-11-15 23:12:43 +00009253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009254$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009255if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009256 $as_echo_n "(cached) " >&6
9257else
9258 while :; do
cristy8b350f62009-11-15 23:12:43 +00009259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009260/* end confdefs.h. */
9261#include <sys/types.h> /* for off_t */
9262 #include <stdio.h>
9263int
9264main ()
9265{
9266int (*fp) (FILE *, off_t, int) = fseeko;
9267 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9268 ;
9269 return 0;
9270}
9271_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009272if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009273 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009274fi
cristy8b350f62009-11-15 23:12:43 +00009275rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009278/* end confdefs.h. */
9279#define _LARGEFILE_SOURCE 1
9280#include <sys/types.h> /* for off_t */
9281 #include <stdio.h>
9282int
9283main ()
9284{
9285int (*fp) (FILE *, off_t, int) = fseeko;
9286 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9287 ;
9288 return 0;
9289}
9290_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009291if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009292 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009293fi
cristy8b350f62009-11-15 23:12:43 +00009294rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009296 ac_cv_sys_largefile_source=unknown
9297 break
9298done
9299fi
cristy8b350f62009-11-15 23:12:43 +00009300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009301$as_echo "$ac_cv_sys_largefile_source" >&6; }
9302case $ac_cv_sys_largefile_source in #(
9303 no | unknown) ;;
9304 *)
9305cat >>confdefs.h <<_ACEOF
9306#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9307_ACEOF
9308;;
9309esac
9310rm -rf conftest*
9311
9312# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9313# in glibc 2.1.3, but that breaks too many other things.
9314# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9315if test $ac_cv_sys_largefile_source != unknown; then
9316
cristy8b350f62009-11-15 23:12:43 +00009317$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009318
9319fi
9320
9321LFS_CPPFLAGS=''
9322if test "$enable_largefile" != no; then
9323 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9324 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9325 else
cristy8b350f62009-11-15 23:12:43 +00009326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009327$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009328 if test "$cross_compiling" = yes; then :
9329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00009331as_fn_error "cannot run test program while cross compiling
9332See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009333else
cristy8b350f62009-11-15 23:12:43 +00009334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009336#include <unistd.h>
9337 main () {
9338 exit(!(sizeof(off_t) == 8));
9339 }
9340_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009341if ac_fn_c_try_run "$LINENO"; then :
9342 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009343
cristy8b350f62009-11-15 23:12:43 +00009344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009345$as_echo "yes" >&6; }
9346else
cristy8b350f62009-11-15 23:12:43 +00009347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009348$as_echo "no" >&6; }
9349fi
cristy8b350f62009-11-15 23:12:43 +00009350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9351 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009352fi
9353
cristy3ed852e2009-09-05 21:47:34 +00009354 fi
9355 if test "$ac_cv_sys_large_files" != 'no'; then
9356 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9357 fi
9358 if test "$ac_cv_sys_largefile_source" != 'no'; then
9359 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9360 fi
9361fi
9362
9363
9364#
9365# Configure libtool & libltdl
9366#
9367# Configure libtool
9368enable_dlopen=yes
9369
9370
9371
9372case `pwd` in
9373 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009375$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9376esac
9377
9378
9379
cristy18304f92009-11-22 15:48:26 +00009380macro_version='2.2.6b'
9381macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395ltmain="$ac_aux_dir/ltmain.sh"
9396
cristy8b350f62009-11-15 23:12:43 +00009397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009398$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009399if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009400 $as_echo_n "(cached) " >&6
9401else
9402 if test -n "$NM"; then
9403 # Let the user override the test.
9404 lt_cv_path_NM="$NM"
9405else
9406 lt_nm_to_check="${ac_tool_prefix}nm"
9407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9408 lt_nm_to_check="$lt_nm_to_check nm"
9409 fi
9410 for lt_tmp_nm in $lt_nm_to_check; do
9411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9412 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9413 IFS="$lt_save_ifs"
9414 test -z "$ac_dir" && ac_dir=.
9415 tmp_nm="$ac_dir/$lt_tmp_nm"
9416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9417 # Check to see if the nm accepts a BSD-compat flag.
9418 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9419 # nm: unknown option "B" ignored
9420 # Tru64's nm complains that /dev/null is an invalid object file
9421 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9422 */dev/null* | *'Invalid file or object type'*)
9423 lt_cv_path_NM="$tmp_nm -B"
9424 break
9425 ;;
9426 *)
9427 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9428 */dev/null*)
9429 lt_cv_path_NM="$tmp_nm -p"
9430 break
9431 ;;
9432 *)
9433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9434 continue # so that we can try to find one that supports BSD flags
9435 ;;
9436 esac
9437 ;;
9438 esac
9439 fi
9440 done
9441 IFS="$lt_save_ifs"
9442 done
9443 : ${lt_cv_path_NM=no}
9444fi
9445fi
cristy8b350f62009-11-15 23:12:43 +00009446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009447$as_echo "$lt_cv_path_NM" >&6; }
9448if test "$lt_cv_path_NM" != "no"; then
9449 NM="$lt_cv_path_NM"
9450else
9451 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009452 if test -n "$ac_tool_prefix"; then
9453 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009454 do
9455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9456set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009458$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009459if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009460 $as_echo_n "(cached) " >&6
9461else
9462 if test -n "$DUMPBIN"; then
9463 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9464else
9465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466for as_dir in $PATH
9467do
9468 IFS=$as_save_IFS
9469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009474 break 2
9475 fi
9476done
cristy8b350f62009-11-15 23:12:43 +00009477 done
cristy3ed852e2009-09-05 21:47:34 +00009478IFS=$as_save_IFS
9479
9480fi
9481fi
9482DUMPBIN=$ac_cv_prog_DUMPBIN
9483if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009485$as_echo "$DUMPBIN" >&6; }
9486else
cristy8b350f62009-11-15 23:12:43 +00009487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009488$as_echo "no" >&6; }
9489fi
9490
9491
9492 test -n "$DUMPBIN" && break
9493 done
9494fi
9495if test -z "$DUMPBIN"; then
9496 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009497 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009498do
9499 # Extract the first word of "$ac_prog", so it can be a program name with args.
9500set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009502$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009503if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009504 $as_echo_n "(cached) " >&6
9505else
9506 if test -n "$ac_ct_DUMPBIN"; then
9507 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9508else
9509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510for as_dir in $PATH
9511do
9512 IFS=$as_save_IFS
9513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9516 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009518 break 2
9519 fi
9520done
cristy8b350f62009-11-15 23:12:43 +00009521 done
cristy3ed852e2009-09-05 21:47:34 +00009522IFS=$as_save_IFS
9523
9524fi
9525fi
9526ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9527if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009529$as_echo "$ac_ct_DUMPBIN" >&6; }
9530else
cristy8b350f62009-11-15 23:12:43 +00009531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009532$as_echo "no" >&6; }
9533fi
9534
9535
9536 test -n "$ac_ct_DUMPBIN" && break
9537done
9538
9539 if test "x$ac_ct_DUMPBIN" = x; then
9540 DUMPBIN=":"
9541 else
9542 case $cross_compiling:$ac_tool_warned in
9543yes:)
cristy8b350f62009-11-15 23:12:43 +00009544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9546ac_tool_warned=yes ;;
9547esac
9548 DUMPBIN=$ac_ct_DUMPBIN
9549 fi
9550fi
9551
9552
9553 if test "$DUMPBIN" != ":"; then
9554 NM="$DUMPBIN"
9555 fi
9556fi
9557test -z "$NM" && NM=nm
9558
9559
9560
9561
9562
9563
cristy8b350f62009-11-15 23:12:43 +00009564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009566if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009567 $as_echo_n "(cached) " >&6
9568else
9569 lt_cv_nm_interface="BSD nm"
9570 echo "int some_variable = 0;" > conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00009571 (eval echo "\"\$as_me:9571: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009572 (eval "$ac_compile" 2>conftest.err)
9573 cat conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +00009574 (eval echo "\"\$as_me:9574: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009575 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9576 cat conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +00009577 (eval echo "\"\$as_me:9577: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009578 cat conftest.out >&5
9579 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9580 lt_cv_nm_interface="MS dumpbin"
9581 fi
9582 rm -f conftest*
9583fi
cristy8b350f62009-11-15 23:12:43 +00009584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009585$as_echo "$lt_cv_nm_interface" >&6; }
9586
9587# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009589$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009590if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009591 $as_echo_n "(cached) " >&6
9592else
9593 i=0
9594 teststring="ABCD"
9595
9596 case $build_os in
9597 msdosdjgpp*)
9598 # On DJGPP, this test can blow up pretty badly due to problems in libc
9599 # (any single argument exceeding 2000 bytes causes a buffer overrun
9600 # during glob expansion). Even if it were fixed, the result of this
9601 # check would be larger than it should be.
9602 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9603 ;;
9604
9605 gnu*)
9606 # Under GNU Hurd, this test is not required because there is
9607 # no limit to the length of command line arguments.
9608 # Libtool will interpret -1 as no limit whatsoever
9609 lt_cv_sys_max_cmd_len=-1;
9610 ;;
9611
9612 cygwin* | mingw* | cegcc*)
9613 # On Win9x/ME, this test blows up -- it succeeds, but takes
9614 # about 5 minutes as the teststring grows exponentially.
9615 # Worse, since 9x/ME are not pre-emptively multitasking,
9616 # you end up with a "frozen" computer, even though with patience
9617 # the test eventually succeeds (with a max line length of 256k).
9618 # Instead, let's just punt: use the minimum linelength reported by
9619 # all of the supported platforms: 8192 (on NT/2K/XP).
9620 lt_cv_sys_max_cmd_len=8192;
9621 ;;
9622
9623 amigaos*)
9624 # On AmigaOS with pdksh, this test takes hours, literally.
9625 # So we just punt and use a minimum line length of 8192.
9626 lt_cv_sys_max_cmd_len=8192;
9627 ;;
9628
9629 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9630 # This has been around since 386BSD, at least. Likely further.
9631 if test -x /sbin/sysctl; then
9632 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9633 elif test -x /usr/sbin/sysctl; then
9634 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9635 else
9636 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9637 fi
9638 # And add a safety zone
9639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9641 ;;
9642
9643 interix*)
9644 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9645 lt_cv_sys_max_cmd_len=196608
9646 ;;
9647
9648 osf*)
9649 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9650 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9651 # nice to cause kernel panics so lets avoid the loop below.
9652 # First set a reasonable default.
9653 lt_cv_sys_max_cmd_len=16384
9654 #
9655 if test -x /sbin/sysconfig; then
9656 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9657 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9658 esac
9659 fi
9660 ;;
9661 sco3.2v5*)
9662 lt_cv_sys_max_cmd_len=102400
9663 ;;
9664 sysv5* | sco5v6* | sysv4.2uw2*)
9665 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9666 if test -n "$kargmax"; then
9667 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9668 else
9669 lt_cv_sys_max_cmd_len=32768
9670 fi
9671 ;;
9672 *)
9673 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9674 if test -n "$lt_cv_sys_max_cmd_len"; then
9675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9677 else
9678 # Make teststring a little bigger before we do anything with it.
9679 # a 1K string should be a reasonable start.
9680 for i in 1 2 3 4 5 6 7 8 ; do
9681 teststring=$teststring$teststring
9682 done
9683 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9684 # If test is not a shell built-in, we'll probably end up computing a
9685 # maximum length that is only half of the actual maximum length, but
9686 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009687 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9688 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009689 test $i != 17 # 1/2 MB should be enough
9690 do
9691 i=`expr $i + 1`
9692 teststring=$teststring$teststring
9693 done
9694 # Only check the string length outside the loop.
9695 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9696 teststring=
9697 # Add a significant safety factor because C++ compilers can tack on
9698 # massive amounts of additional arguments before passing them to the
9699 # linker. It appears as though 1/2 is a usable value.
9700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9701 fi
9702 ;;
9703 esac
9704
9705fi
9706
9707if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009709$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9710else
cristy8b350f62009-11-15 23:12:43 +00009711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009712$as_echo "none" >&6; }
9713fi
9714max_cmd_len=$lt_cv_sys_max_cmd_len
9715
9716
9717
9718
9719
9720
9721: ${CP="cp -f"}
9722: ${MV="mv -f"}
9723: ${RM="rm -f"}
9724
cristy8b350f62009-11-15 23:12:43 +00009725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009726$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9727# Try some XSI features
9728xsi_shell=no
9729( _lt_dummy="a/b/c"
9730 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9731 = c,a/b,, \
9732 && eval 'test $(( 1 + 1 )) -eq 2 \
9733 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9734 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009736$as_echo "$xsi_shell" >&6; }
9737
9738
cristy8b350f62009-11-15 23:12:43 +00009739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009740$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9741lt_shell_append=no
9742( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9743 >/dev/null 2>&1 \
9744 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009746$as_echo "$lt_shell_append" >&6; }
9747
9748
9749if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9750 lt_unset=unset
9751else
9752 lt_unset=false
9753fi
9754
9755
9756
9757
9758
9759# test EBCDIC or ASCII
9760case `echo X|tr X '\101'` in
9761 A) # ASCII based system
9762 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9763 lt_SP2NL='tr \040 \012'
9764 lt_NL2SP='tr \015\012 \040\040'
9765 ;;
9766 *) # EBCDIC based system
9767 lt_SP2NL='tr \100 \n'
9768 lt_NL2SP='tr \r\n \100\100'
9769 ;;
9770esac
9771
9772
9773
9774
9775
9776
9777
9778
9779
cristy8b350f62009-11-15 23:12:43 +00009780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009781$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009782if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009783 $as_echo_n "(cached) " >&6
9784else
9785 lt_cv_ld_reload_flag='-r'
9786fi
cristy8b350f62009-11-15 23:12:43 +00009787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009788$as_echo "$lt_cv_ld_reload_flag" >&6; }
9789reload_flag=$lt_cv_ld_reload_flag
9790case $reload_flag in
9791"" | " "*) ;;
9792*) reload_flag=" $reload_flag" ;;
9793esac
9794reload_cmds='$LD$reload_flag -o $output$reload_objs'
9795case $host_os in
9796 darwin*)
9797 if test "$GCC" = yes; then
9798 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9799 else
9800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9801 fi
9802 ;;
9803esac
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813if test -n "$ac_tool_prefix"; then
9814 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9815set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009817$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009818if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009819 $as_echo_n "(cached) " >&6
9820else
9821 if test -n "$OBJDUMP"; then
9822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9823else
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009833 break 2
9834 fi
9835done
cristy8b350f62009-11-15 23:12:43 +00009836 done
cristy3ed852e2009-09-05 21:47:34 +00009837IFS=$as_save_IFS
9838
9839fi
9840fi
9841OBJDUMP=$ac_cv_prog_OBJDUMP
9842if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009844$as_echo "$OBJDUMP" >&6; }
9845else
cristy8b350f62009-11-15 23:12:43 +00009846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009847$as_echo "no" >&6; }
9848fi
9849
9850
9851fi
9852if test -z "$ac_cv_prog_OBJDUMP"; then
9853 ac_ct_OBJDUMP=$OBJDUMP
9854 # Extract the first word of "objdump", so it can be a program name with args.
9855set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009857$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009858if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009859 $as_echo_n "(cached) " >&6
9860else
9861 if test -n "$ac_ct_OBJDUMP"; then
9862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9863else
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009873 break 2
9874 fi
9875done
cristy8b350f62009-11-15 23:12:43 +00009876 done
cristy3ed852e2009-09-05 21:47:34 +00009877IFS=$as_save_IFS
9878
9879fi
9880fi
9881ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9882if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009884$as_echo "$ac_ct_OBJDUMP" >&6; }
9885else
cristy8b350f62009-11-15 23:12:43 +00009886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009887$as_echo "no" >&6; }
9888fi
9889
9890 if test "x$ac_ct_OBJDUMP" = x; then
9891 OBJDUMP="false"
9892 else
9893 case $cross_compiling:$ac_tool_warned in
9894yes:)
cristy8b350f62009-11-15 23:12:43 +00009895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9897ac_tool_warned=yes ;;
9898esac
9899 OBJDUMP=$ac_ct_OBJDUMP
9900 fi
9901else
9902 OBJDUMP="$ac_cv_prog_OBJDUMP"
9903fi
9904
9905test -z "$OBJDUMP" && OBJDUMP=objdump
9906
9907
9908
9909
9910
9911
cristy8b350f62009-11-15 23:12:43 +00009912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009913$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009914if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009915 $as_echo_n "(cached) " >&6
9916else
9917 lt_cv_file_magic_cmd='$MAGIC_CMD'
9918lt_cv_file_magic_test_file=
9919lt_cv_deplibs_check_method='unknown'
9920# Need to set the preceding variable on all platforms that support
9921# interlibrary dependencies.
9922# 'none' -- dependencies not supported.
9923# `unknown' -- same as none, but documents that we really don't know.
9924# 'pass_all' -- all dependencies passed with no checks.
9925# 'test_compile' -- check by making test program.
9926# 'file_magic [[regex]]' -- check by looking for files in library path
9927# which responds to the $file_magic_cmd with a given extended regex.
9928# If you have `file' or equivalent on your system and you're not sure
9929# whether `pass_all' will *always* work, you probably want this one.
9930
9931case $host_os in
9932aix[4-9]*)
9933 lt_cv_deplibs_check_method=pass_all
9934 ;;
9935
9936beos*)
9937 lt_cv_deplibs_check_method=pass_all
9938 ;;
9939
9940bsdi[45]*)
9941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9942 lt_cv_file_magic_cmd='/usr/bin/file -L'
9943 lt_cv_file_magic_test_file=/shlib/libc.so
9944 ;;
9945
9946cygwin*)
9947 # func_win32_libid is a shell function defined in ltmain.sh
9948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9949 lt_cv_file_magic_cmd='func_win32_libid'
9950 ;;
9951
9952mingw* | pw32*)
9953 # Base MSYS/MinGW do not provide the 'file' command needed by
9954 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9955 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00009956 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00009957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9958 lt_cv_file_magic_cmd='func_win32_libid'
9959 else
9960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9961 lt_cv_file_magic_cmd='$OBJDUMP -f'
9962 fi
9963 ;;
9964
cristy18304f92009-11-22 15:48:26 +00009965cegcc)
cristy3ed852e2009-09-05 21:47:34 +00009966 # use the weaker test based on 'objdump'. See mingw*.
9967 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9968 lt_cv_file_magic_cmd='$OBJDUMP -f'
9969 ;;
9970
9971darwin* | rhapsody*)
9972 lt_cv_deplibs_check_method=pass_all
9973 ;;
9974
9975freebsd* | dragonfly*)
9976 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9977 case $host_cpu in
9978 i*86 )
9979 # Not sure whether the presence of OpenBSD here was a mistake.
9980 # Let's accept both of them until this is cleared up.
9981 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9982 lt_cv_file_magic_cmd=/usr/bin/file
9983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9984 ;;
9985 esac
9986 else
9987 lt_cv_deplibs_check_method=pass_all
9988 fi
9989 ;;
9990
9991gnu*)
9992 lt_cv_deplibs_check_method=pass_all
9993 ;;
9994
9995hpux10.20* | hpux11*)
9996 lt_cv_file_magic_cmd=/usr/bin/file
9997 case $host_cpu in
9998 ia64*)
9999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10001 ;;
10002 hppa*64*)
cristy18304f92009-11-22 15:48:26 +000010003 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 +000010004 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10005 ;;
10006 *)
cristy18304f92009-11-22 15:48:26 +000010007 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 +000010008 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10009 ;;
10010 esac
10011 ;;
10012
10013interix[3-9]*)
10014 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10016 ;;
10017
10018irix5* | irix6* | nonstopux*)
10019 case $LD in
10020 *-32|*"-32 ") libmagic=32-bit;;
10021 *-n32|*"-n32 ") libmagic=N32;;
10022 *-64|*"-64 ") libmagic=64-bit;;
10023 *) libmagic=never-match;;
10024 esac
10025 lt_cv_deplibs_check_method=pass_all
10026 ;;
10027
10028# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000010029linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010030 lt_cv_deplibs_check_method=pass_all
10031 ;;
10032
10033netbsd*)
10034 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10036 else
10037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10038 fi
10039 ;;
10040
10041newos6*)
10042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10043 lt_cv_file_magic_cmd=/usr/bin/file
10044 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10045 ;;
10046
10047*nto* | *qnx*)
10048 lt_cv_deplibs_check_method=pass_all
10049 ;;
10050
10051openbsd*)
10052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10054 else
10055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10056 fi
10057 ;;
10058
10059osf3* | osf4* | osf5*)
10060 lt_cv_deplibs_check_method=pass_all
10061 ;;
10062
10063rdos*)
10064 lt_cv_deplibs_check_method=pass_all
10065 ;;
10066
10067solaris*)
10068 lt_cv_deplibs_check_method=pass_all
10069 ;;
10070
10071sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10072 lt_cv_deplibs_check_method=pass_all
10073 ;;
10074
10075sysv4 | sysv4.3*)
10076 case $host_vendor in
10077 motorola)
10078 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]'
10079 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10080 ;;
10081 ncr)
10082 lt_cv_deplibs_check_method=pass_all
10083 ;;
10084 sequent)
10085 lt_cv_file_magic_cmd='/bin/file'
10086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10087 ;;
10088 sni)
10089 lt_cv_file_magic_cmd='/bin/file'
10090 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10091 lt_cv_file_magic_test_file=/lib/libc.so
10092 ;;
10093 siemens)
10094 lt_cv_deplibs_check_method=pass_all
10095 ;;
10096 pc)
10097 lt_cv_deplibs_check_method=pass_all
10098 ;;
10099 esac
10100 ;;
10101
10102tpf*)
10103 lt_cv_deplibs_check_method=pass_all
10104 ;;
10105esac
10106
10107fi
cristy8b350f62009-11-15 23:12:43 +000010108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010109$as_echo "$lt_cv_deplibs_check_method" >&6; }
10110file_magic_cmd=$lt_cv_file_magic_cmd
10111deplibs_check_method=$lt_cv_deplibs_check_method
10112test -z "$deplibs_check_method" && deplibs_check_method=unknown
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125if test -n "$ac_tool_prefix"; then
10126 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10127set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010129$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010130if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010131 $as_echo_n "(cached) " >&6
10132else
10133 if test -n "$AR"; then
10134 ac_cv_prog_AR="$AR" # Let the user override the test.
10135else
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10143 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010145 break 2
10146 fi
10147done
cristy8b350f62009-11-15 23:12:43 +000010148 done
cristy3ed852e2009-09-05 21:47:34 +000010149IFS=$as_save_IFS
10150
10151fi
10152fi
10153AR=$ac_cv_prog_AR
10154if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010156$as_echo "$AR" >&6; }
10157else
cristy8b350f62009-11-15 23:12:43 +000010158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010159$as_echo "no" >&6; }
10160fi
10161
10162
10163fi
10164if test -z "$ac_cv_prog_AR"; then
10165 ac_ct_AR=$AR
10166 # Extract the first word of "ar", so it can be a program name with args.
10167set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010169$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010170if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010171 $as_echo_n "(cached) " >&6
10172else
10173 if test -n "$ac_ct_AR"; then
10174 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10175else
10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10183 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010185 break 2
10186 fi
10187done
cristy8b350f62009-11-15 23:12:43 +000010188 done
cristy3ed852e2009-09-05 21:47:34 +000010189IFS=$as_save_IFS
10190
10191fi
10192fi
10193ac_ct_AR=$ac_cv_prog_ac_ct_AR
10194if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010196$as_echo "$ac_ct_AR" >&6; }
10197else
cristy8b350f62009-11-15 23:12:43 +000010198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010199$as_echo "no" >&6; }
10200fi
10201
10202 if test "x$ac_ct_AR" = x; then
10203 AR="false"
10204 else
10205 case $cross_compiling:$ac_tool_warned in
10206yes:)
cristy8b350f62009-11-15 23:12:43 +000010207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10209ac_tool_warned=yes ;;
10210esac
10211 AR=$ac_ct_AR
10212 fi
10213else
10214 AR="$ac_cv_prog_AR"
10215fi
10216
10217test -z "$AR" && AR=ar
10218test -z "$AR_FLAGS" && AR_FLAGS=cru
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230if test -n "$ac_tool_prefix"; then
10231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10232set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010234$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010235if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010236 $as_echo_n "(cached) " >&6
10237else
10238 if test -n "$STRIP"; then
10239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10240else
10241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242for as_dir in $PATH
10243do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010250 break 2
10251 fi
10252done
cristy8b350f62009-11-15 23:12:43 +000010253 done
cristy3ed852e2009-09-05 21:47:34 +000010254IFS=$as_save_IFS
10255
10256fi
10257fi
10258STRIP=$ac_cv_prog_STRIP
10259if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010261$as_echo "$STRIP" >&6; }
10262else
cristy8b350f62009-11-15 23:12:43 +000010263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010264$as_echo "no" >&6; }
10265fi
10266
10267
10268fi
10269if test -z "$ac_cv_prog_STRIP"; then
10270 ac_ct_STRIP=$STRIP
10271 # Extract the first word of "strip", so it can be a program name with args.
10272set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010274$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010275if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010276 $as_echo_n "(cached) " >&6
10277else
10278 if test -n "$ac_ct_STRIP"; then
10279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10280else
10281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282for as_dir in $PATH
10283do
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10288 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010290 break 2
10291 fi
10292done
cristy8b350f62009-11-15 23:12:43 +000010293 done
cristy3ed852e2009-09-05 21:47:34 +000010294IFS=$as_save_IFS
10295
10296fi
10297fi
10298ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10299if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010301$as_echo "$ac_ct_STRIP" >&6; }
10302else
cristy8b350f62009-11-15 23:12:43 +000010303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010304$as_echo "no" >&6; }
10305fi
10306
10307 if test "x$ac_ct_STRIP" = x; then
10308 STRIP=":"
10309 else
10310 case $cross_compiling:$ac_tool_warned in
10311yes:)
cristy8b350f62009-11-15 23:12:43 +000010312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10314ac_tool_warned=yes ;;
10315esac
10316 STRIP=$ac_ct_STRIP
10317 fi
10318else
10319 STRIP="$ac_cv_prog_STRIP"
10320fi
10321
10322test -z "$STRIP" && STRIP=:
10323
10324
10325
10326
10327
10328
10329if test -n "$ac_tool_prefix"; then
10330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10331set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010333$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010334if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010335 $as_echo_n "(cached) " >&6
10336else
10337 if test -n "$RANLIB"; then
10338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10339else
10340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341for as_dir in $PATH
10342do
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010349 break 2
10350 fi
10351done
cristy8b350f62009-11-15 23:12:43 +000010352 done
cristy3ed852e2009-09-05 21:47:34 +000010353IFS=$as_save_IFS
10354
10355fi
10356fi
10357RANLIB=$ac_cv_prog_RANLIB
10358if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010360$as_echo "$RANLIB" >&6; }
10361else
cristy8b350f62009-11-15 23:12:43 +000010362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010363$as_echo "no" >&6; }
10364fi
10365
10366
10367fi
10368if test -z "$ac_cv_prog_RANLIB"; then
10369 ac_ct_RANLIB=$RANLIB
10370 # Extract the first word of "ranlib", so it can be a program name with args.
10371set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010373$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010374if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010375 $as_echo_n "(cached) " >&6
10376else
10377 if test -n "$ac_ct_RANLIB"; then
10378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10379else
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010389 break 2
10390 fi
10391done
cristy8b350f62009-11-15 23:12:43 +000010392 done
cristy3ed852e2009-09-05 21:47:34 +000010393IFS=$as_save_IFS
10394
10395fi
10396fi
10397ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10398if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010400$as_echo "$ac_ct_RANLIB" >&6; }
10401else
cristy8b350f62009-11-15 23:12:43 +000010402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010403$as_echo "no" >&6; }
10404fi
10405
10406 if test "x$ac_ct_RANLIB" = x; then
10407 RANLIB=":"
10408 else
10409 case $cross_compiling:$ac_tool_warned in
10410yes:)
cristy8b350f62009-11-15 23:12:43 +000010411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10413ac_tool_warned=yes ;;
10414esac
10415 RANLIB=$ac_ct_RANLIB
10416 fi
10417else
10418 RANLIB="$ac_cv_prog_RANLIB"
10419fi
10420
10421test -z "$RANLIB" && RANLIB=:
10422
10423
10424
10425
10426
10427
10428# Determine commands to create old-style static archives.
10429old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10430old_postinstall_cmds='chmod 644 $oldlib'
10431old_postuninstall_cmds=
10432
10433if test -n "$RANLIB"; then
10434 case $host_os in
10435 openbsd*)
10436 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10437 ;;
10438 *)
10439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10440 ;;
10441 esac
10442 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10443fi
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478# If no C compiler was specified, use CC.
10479LTCC=${LTCC-"$CC"}
10480
10481# If no C compiler flags were specified, use CFLAGS.
10482LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10483
10484# Allow CC to be a program name with arguments.
10485compiler=$CC
10486
10487
10488# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010490$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010491if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010492 $as_echo_n "(cached) " >&6
10493else
10494
10495# These are sane defaults that work on at least a few old systems.
10496# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10497
10498# Character class describing NM global symbol codes.
10499symcode='[BCDEGRST]'
10500
10501# Regexp to match symbols that can be accessed directly from C.
10502sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10503
10504# Define system-specific variables.
10505case $host_os in
10506aix*)
10507 symcode='[BCDT]'
10508 ;;
10509cygwin* | mingw* | pw32* | cegcc*)
10510 symcode='[ABCDGISTW]'
10511 ;;
10512hpux*)
10513 if test "$host_cpu" = ia64; then
10514 symcode='[ABCDEGRST]'
10515 fi
10516 ;;
10517irix* | nonstopux*)
10518 symcode='[BCDEGRST]'
10519 ;;
10520osf*)
10521 symcode='[BCDEGQRST]'
10522 ;;
10523solaris*)
10524 symcode='[BDRT]'
10525 ;;
10526sco3.2v5*)
10527 symcode='[DT]'
10528 ;;
10529sysv4.2uw2*)
10530 symcode='[DT]'
10531 ;;
10532sysv5* | sco5v6* | unixware* | OpenUNIX*)
10533 symcode='[ABDT]'
10534 ;;
10535sysv4)
10536 symcode='[DFNSTU]'
10537 ;;
10538esac
10539
10540# If we're using GNU nm, then use its standard symbol codes.
10541case `$NM -V 2>&1` in
10542*GNU* | *'with BFD'*)
10543 symcode='[ABCDGIRSTW]' ;;
10544esac
10545
10546# Transform an extracted symbol line into a proper C declaration.
10547# Some systems (esp. on ia64) link data and code symbols differently,
10548# so use this general approach.
10549lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10550
10551# Transform an extracted symbol line into symbol name and symbol address
10552lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10553lt_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'"
10554
10555# Handle CRLF in mingw tool chain
10556opt_cr=
10557case $build_os in
10558mingw*)
10559 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10560 ;;
10561esac
10562
10563# Try without a prefix underscore, then with it.
10564for ac_symprfx in "" "_"; do
10565
10566 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10567 symxfrm="\\1 $ac_symprfx\\2 \\2"
10568
10569 # Write the raw and C identifiers.
10570 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10571 # Fake it for dumpbin and say T for any non-static function
10572 # and D for any global variable.
10573 # Also find C++ and __fastcall symbols from MSVC++,
10574 # which start with @ or ?.
10575 lt_cv_sys_global_symbol_pipe="$AWK '"\
10576" {last_section=section; section=\$ 3};"\
10577" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10578" \$ 0!~/External *\|/{next};"\
10579" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10580" {if(hide[section]) next};"\
10581" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10582" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10583" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10584" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10585" ' prfx=^$ac_symprfx"
10586 else
10587 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10588 fi
10589
10590 # Check to see that the pipe works correctly.
10591 pipe_works=no
10592
10593 rm -f conftest*
10594 cat > conftest.$ac_ext <<_LT_EOF
10595#ifdef __cplusplus
10596extern "C" {
10597#endif
10598char nm_test_var;
10599void nm_test_func(void);
10600void nm_test_func(void){}
10601#ifdef __cplusplus
10602}
10603#endif
10604int main(){nm_test_var='a';nm_test_func();return(0);}
10605_LT_EOF
10606
cristy8b350f62009-11-15 23:12:43 +000010607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010608 (eval $ac_compile) 2>&5
10609 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10611 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010612 # Now try to grab the symbols.
10613 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10615 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010616 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10618 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010619 # Try sorting and uniquifying the output.
10620 if sort "$nlist" | uniq > "$nlist"T; then
10621 mv -f "$nlist"T "$nlist"
10622 else
10623 rm -f "$nlist"T
10624 fi
10625
10626 # Make sure that we snagged all the symbols we need.
10627 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10628 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10629 cat <<_LT_EOF > conftest.$ac_ext
10630#ifdef __cplusplus
10631extern "C" {
10632#endif
10633
10634_LT_EOF
10635 # Now generate the symbol file.
10636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10637
10638 cat <<_LT_EOF >> conftest.$ac_ext
10639
10640/* The mapping between symbol names and symbols. */
10641const struct {
10642 const char *name;
10643 void *address;
10644}
10645lt__PROGRAM__LTX_preloaded_symbols[] =
10646{
10647 { "@PROGRAM@", (void *) 0 },
10648_LT_EOF
10649 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10650 cat <<\_LT_EOF >> conftest.$ac_ext
10651 {0, (void *) 0}
10652};
10653
10654/* This works around a problem in FreeBSD linker */
10655#ifdef FREEBSD_WORKAROUND
10656static const void *lt_preloaded_setup() {
10657 return lt__PROGRAM__LTX_preloaded_symbols;
10658}
10659#endif
10660
10661#ifdef __cplusplus
10662}
10663#endif
10664_LT_EOF
10665 # Now try linking the two files.
10666 mv conftest.$ac_objext conftstm.$ac_objext
10667 lt_save_LIBS="$LIBS"
10668 lt_save_CFLAGS="$CFLAGS"
10669 LIBS="conftstm.$ac_objext"
10670 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010672 (eval $ac_link) 2>&5
10673 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10675 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010676 pipe_works=yes
10677 fi
10678 LIBS="$lt_save_LIBS"
10679 CFLAGS="$lt_save_CFLAGS"
10680 else
10681 echo "cannot find nm_test_func in $nlist" >&5
10682 fi
10683 else
10684 echo "cannot find nm_test_var in $nlist" >&5
10685 fi
10686 else
10687 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10688 fi
10689 else
10690 echo "$progname: failed program was:" >&5
10691 cat conftest.$ac_ext >&5
10692 fi
10693 rm -rf conftest* conftst*
10694
10695 # Do not use the global_symbol_pipe unless it works.
10696 if test "$pipe_works" = yes; then
10697 break
10698 else
10699 lt_cv_sys_global_symbol_pipe=
10700 fi
10701done
10702
10703fi
10704
10705if test -z "$lt_cv_sys_global_symbol_pipe"; then
10706 lt_cv_sys_global_symbol_to_cdecl=
10707fi
10708if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010710$as_echo "failed" >&6; }
10711else
cristy8b350f62009-11-15 23:12:43 +000010712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010713$as_echo "ok" >&6; }
10714fi
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010738if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010739 enableval=$enable_libtool_lock;
10740fi
10741
10742test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10743
10744# Some flags need to be propagated to the compiler or linker for good
10745# libtool support.
10746case $host in
10747ia64-*-hpux*)
10748 # Find out which ABI we are using.
10749 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010751 (eval $ac_compile) 2>&5
10752 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10754 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010755 case `/usr/bin/file conftest.$ac_objext` in
10756 *ELF-32*)
10757 HPUX_IA64_MODE="32"
10758 ;;
10759 *ELF-64*)
10760 HPUX_IA64_MODE="64"
10761 ;;
10762 esac
10763 fi
10764 rm -rf conftest*
10765 ;;
10766*-*-irix6*)
10767 # Find out which ABI we are using.
cristy964cb7f2010-04-25 23:18:00 +000010768 echo '#line 10768 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010770 (eval $ac_compile) 2>&5
10771 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10773 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010774 if test "$lt_cv_prog_gnu_ld" = yes; then
10775 case `/usr/bin/file conftest.$ac_objext` in
10776 *32-bit*)
10777 LD="${LD-ld} -melf32bsmip"
10778 ;;
10779 *N32*)
10780 LD="${LD-ld} -melf32bmipn32"
10781 ;;
10782 *64-bit*)
10783 LD="${LD-ld} -melf64bmip"
10784 ;;
10785 esac
10786 else
10787 case `/usr/bin/file conftest.$ac_objext` in
10788 *32-bit*)
10789 LD="${LD-ld} -32"
10790 ;;
10791 *N32*)
10792 LD="${LD-ld} -n32"
10793 ;;
10794 *64-bit*)
10795 LD="${LD-ld} -64"
10796 ;;
10797 esac
10798 fi
10799 fi
10800 rm -rf conftest*
10801 ;;
10802
10803x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10804s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10805 # Find out which ABI we are using.
10806 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010808 (eval $ac_compile) 2>&5
10809 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10811 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010812 case `/usr/bin/file conftest.o` in
10813 *32-bit*)
10814 case $host in
10815 x86_64-*kfreebsd*-gnu)
10816 LD="${LD-ld} -m elf_i386_fbsd"
10817 ;;
10818 x86_64-*linux*)
10819 LD="${LD-ld} -m elf_i386"
10820 ;;
10821 ppc64-*linux*|powerpc64-*linux*)
10822 LD="${LD-ld} -m elf32ppclinux"
10823 ;;
10824 s390x-*linux*)
10825 LD="${LD-ld} -m elf_s390"
10826 ;;
10827 sparc64-*linux*)
10828 LD="${LD-ld} -m elf32_sparc"
10829 ;;
10830 esac
10831 ;;
10832 *64-bit*)
10833 case $host in
10834 x86_64-*kfreebsd*-gnu)
10835 LD="${LD-ld} -m elf_x86_64_fbsd"
10836 ;;
10837 x86_64-*linux*)
10838 LD="${LD-ld} -m elf_x86_64"
10839 ;;
10840 ppc*-*linux*|powerpc*-*linux*)
10841 LD="${LD-ld} -m elf64ppc"
10842 ;;
10843 s390*-*linux*|s390*-*tpf*)
10844 LD="${LD-ld} -m elf64_s390"
10845 ;;
10846 sparc*-*linux*)
10847 LD="${LD-ld} -m elf64_sparc"
10848 ;;
10849 esac
10850 ;;
10851 esac
10852 fi
10853 rm -rf conftest*
10854 ;;
10855
10856*-*-sco3.2v5*)
10857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10858 SAVE_CFLAGS="$CFLAGS"
10859 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010861$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010862if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010863 $as_echo_n "(cached) " >&6
10864else
10865 ac_ext=c
10866ac_cpp='$CPP $CPPFLAGS'
10867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10869ac_compiler_gnu=$ac_cv_c_compiler_gnu
10870
cristy8b350f62009-11-15 23:12:43 +000010871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010872/* end confdefs.h. */
10873
10874int
10875main ()
10876{
10877
10878 ;
10879 return 0;
10880}
10881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010882if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010883 lt_cv_cc_needs_belf=yes
10884else
cristy8b350f62009-11-15 23:12:43 +000010885 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010886fi
cristy8b350f62009-11-15 23:12:43 +000010887rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010889 ac_ext=c
10890ac_cpp='$CPP $CPPFLAGS'
10891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10893ac_compiler_gnu=$ac_cv_c_compiler_gnu
10894
10895fi
cristy8b350f62009-11-15 23:12:43 +000010896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010897$as_echo "$lt_cv_cc_needs_belf" >&6; }
10898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10900 CFLAGS="$SAVE_CFLAGS"
10901 fi
10902 ;;
10903sparc*-*solaris*)
10904 # Find out which ABI we are using.
10905 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010907 (eval $ac_compile) 2>&5
10908 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010911 case `/usr/bin/file conftest.o` in
10912 *64-bit*)
10913 case $lt_cv_prog_gnu_ld in
10914 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10915 *)
10916 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10917 LD="${LD-ld} -64"
10918 fi
10919 ;;
10920 esac
10921 ;;
10922 esac
10923 fi
10924 rm -rf conftest*
10925 ;;
10926esac
10927
10928need_locks="$enable_libtool_lock"
10929
10930
10931 case $host_os in
10932 rhapsody* | darwin*)
10933 if test -n "$ac_tool_prefix"; then
10934 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10935set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010937$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010938if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010939 $as_echo_n "(cached) " >&6
10940else
10941 if test -n "$DSYMUTIL"; then
10942 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10943else
10944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945for as_dir in $PATH
10946do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010953 break 2
10954 fi
10955done
cristy8b350f62009-11-15 23:12:43 +000010956 done
cristy3ed852e2009-09-05 21:47:34 +000010957IFS=$as_save_IFS
10958
10959fi
10960fi
10961DSYMUTIL=$ac_cv_prog_DSYMUTIL
10962if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010964$as_echo "$DSYMUTIL" >&6; }
10965else
cristy8b350f62009-11-15 23:12:43 +000010966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010967$as_echo "no" >&6; }
10968fi
10969
10970
10971fi
10972if test -z "$ac_cv_prog_DSYMUTIL"; then
10973 ac_ct_DSYMUTIL=$DSYMUTIL
10974 # Extract the first word of "dsymutil", so it can be a program name with args.
10975set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010977$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010978if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010979 $as_echo_n "(cached) " >&6
10980else
10981 if test -n "$ac_ct_DSYMUTIL"; then
10982 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10983else
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10991 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010993 break 2
10994 fi
10995done
cristy8b350f62009-11-15 23:12:43 +000010996 done
cristy3ed852e2009-09-05 21:47:34 +000010997IFS=$as_save_IFS
10998
10999fi
11000fi
11001ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11002if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011004$as_echo "$ac_ct_DSYMUTIL" >&6; }
11005else
cristy8b350f62009-11-15 23:12:43 +000011006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011007$as_echo "no" >&6; }
11008fi
11009
11010 if test "x$ac_ct_DSYMUTIL" = x; then
11011 DSYMUTIL=":"
11012 else
11013 case $cross_compiling:$ac_tool_warned in
11014yes:)
cristy8b350f62009-11-15 23:12:43 +000011015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11017ac_tool_warned=yes ;;
11018esac
11019 DSYMUTIL=$ac_ct_DSYMUTIL
11020 fi
11021else
11022 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11023fi
11024
11025 if test -n "$ac_tool_prefix"; then
11026 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11027set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011029$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011030if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011031 $as_echo_n "(cached) " >&6
11032else
11033 if test -n "$NMEDIT"; then
11034 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11035else
11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011045 break 2
11046 fi
11047done
cristy8b350f62009-11-15 23:12:43 +000011048 done
cristy3ed852e2009-09-05 21:47:34 +000011049IFS=$as_save_IFS
11050
11051fi
11052fi
11053NMEDIT=$ac_cv_prog_NMEDIT
11054if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011056$as_echo "$NMEDIT" >&6; }
11057else
cristy8b350f62009-11-15 23:12:43 +000011058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011059$as_echo "no" >&6; }
11060fi
11061
11062
11063fi
11064if test -z "$ac_cv_prog_NMEDIT"; then
11065 ac_ct_NMEDIT=$NMEDIT
11066 # Extract the first word of "nmedit", so it can be a program name with args.
11067set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011069$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011070if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011071 $as_echo_n "(cached) " >&6
11072else
11073 if test -n "$ac_ct_NMEDIT"; then
11074 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077for as_dir in $PATH
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011085 break 2
11086 fi
11087done
cristy8b350f62009-11-15 23:12:43 +000011088 done
cristy3ed852e2009-09-05 21:47:34 +000011089IFS=$as_save_IFS
11090
11091fi
11092fi
11093ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11094if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011096$as_echo "$ac_ct_NMEDIT" >&6; }
11097else
cristy8b350f62009-11-15 23:12:43 +000011098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011099$as_echo "no" >&6; }
11100fi
11101
11102 if test "x$ac_ct_NMEDIT" = x; then
11103 NMEDIT=":"
11104 else
11105 case $cross_compiling:$ac_tool_warned in
11106yes:)
cristy8b350f62009-11-15 23:12:43 +000011107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11109ac_tool_warned=yes ;;
11110esac
11111 NMEDIT=$ac_ct_NMEDIT
11112 fi
11113else
11114 NMEDIT="$ac_cv_prog_NMEDIT"
11115fi
11116
11117 if test -n "$ac_tool_prefix"; then
11118 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11119set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011121$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011122if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011123 $as_echo_n "(cached) " >&6
11124else
11125 if test -n "$LIPO"; then
11126 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11127else
11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11135 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011137 break 2
11138 fi
11139done
cristy8b350f62009-11-15 23:12:43 +000011140 done
cristy3ed852e2009-09-05 21:47:34 +000011141IFS=$as_save_IFS
11142
11143fi
11144fi
11145LIPO=$ac_cv_prog_LIPO
11146if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011148$as_echo "$LIPO" >&6; }
11149else
cristy8b350f62009-11-15 23:12:43 +000011150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011151$as_echo "no" >&6; }
11152fi
11153
11154
11155fi
11156if test -z "$ac_cv_prog_LIPO"; then
11157 ac_ct_LIPO=$LIPO
11158 # Extract the first word of "lipo", so it can be a program name with args.
11159set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011161$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011162if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011163 $as_echo_n "(cached) " >&6
11164else
11165 if test -n "$ac_ct_LIPO"; then
11166 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11167else
11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $PATH
11170do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011173 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011177 break 2
11178 fi
11179done
cristy8b350f62009-11-15 23:12:43 +000011180 done
cristy3ed852e2009-09-05 21:47:34 +000011181IFS=$as_save_IFS
11182
11183fi
11184fi
11185ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11186if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011188$as_echo "$ac_ct_LIPO" >&6; }
11189else
cristy8b350f62009-11-15 23:12:43 +000011190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011191$as_echo "no" >&6; }
11192fi
11193
11194 if test "x$ac_ct_LIPO" = x; then
11195 LIPO=":"
11196 else
11197 case $cross_compiling:$ac_tool_warned in
11198yes:)
cristy8b350f62009-11-15 23:12:43 +000011199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11201ac_tool_warned=yes ;;
11202esac
11203 LIPO=$ac_ct_LIPO
11204 fi
11205else
11206 LIPO="$ac_cv_prog_LIPO"
11207fi
11208
11209 if test -n "$ac_tool_prefix"; then
11210 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11211set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011213$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011214if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011215 $as_echo_n "(cached) " >&6
11216else
11217 if test -n "$OTOOL"; then
11218 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11227 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011229 break 2
11230 fi
11231done
cristy8b350f62009-11-15 23:12:43 +000011232 done
cristy3ed852e2009-09-05 21:47:34 +000011233IFS=$as_save_IFS
11234
11235fi
11236fi
11237OTOOL=$ac_cv_prog_OTOOL
11238if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011240$as_echo "$OTOOL" >&6; }
11241else
cristy8b350f62009-11-15 23:12:43 +000011242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011243$as_echo "no" >&6; }
11244fi
11245
11246
11247fi
11248if test -z "$ac_cv_prog_OTOOL"; then
11249 ac_ct_OTOOL=$OTOOL
11250 # Extract the first word of "otool", so it can be a program name with args.
11251set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011253$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011254if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011255 $as_echo_n "(cached) " >&6
11256else
11257 if test -n "$ac_ct_OTOOL"; then
11258 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11259else
11260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261for as_dir in $PATH
11262do
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11267 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011269 break 2
11270 fi
11271done
cristy8b350f62009-11-15 23:12:43 +000011272 done
cristy3ed852e2009-09-05 21:47:34 +000011273IFS=$as_save_IFS
11274
11275fi
11276fi
11277ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11278if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011280$as_echo "$ac_ct_OTOOL" >&6; }
11281else
cristy8b350f62009-11-15 23:12:43 +000011282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011283$as_echo "no" >&6; }
11284fi
11285
11286 if test "x$ac_ct_OTOOL" = x; then
11287 OTOOL=":"
11288 else
11289 case $cross_compiling:$ac_tool_warned in
11290yes:)
cristy8b350f62009-11-15 23:12:43 +000011291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11293ac_tool_warned=yes ;;
11294esac
11295 OTOOL=$ac_ct_OTOOL
11296 fi
11297else
11298 OTOOL="$ac_cv_prog_OTOOL"
11299fi
11300
11301 if test -n "$ac_tool_prefix"; then
11302 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11303set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011305$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011306if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011307 $as_echo_n "(cached) " >&6
11308else
11309 if test -n "$OTOOL64"; then
11310 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11311else
11312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011321 break 2
11322 fi
11323done
cristy8b350f62009-11-15 23:12:43 +000011324 done
cristy3ed852e2009-09-05 21:47:34 +000011325IFS=$as_save_IFS
11326
11327fi
11328fi
11329OTOOL64=$ac_cv_prog_OTOOL64
11330if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011332$as_echo "$OTOOL64" >&6; }
11333else
cristy8b350f62009-11-15 23:12:43 +000011334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011335$as_echo "no" >&6; }
11336fi
11337
11338
11339fi
11340if test -z "$ac_cv_prog_OTOOL64"; then
11341 ac_ct_OTOOL64=$OTOOL64
11342 # Extract the first word of "otool64", so it can be a program name with args.
11343set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011345$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011346if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011347 $as_echo_n "(cached) " >&6
11348else
11349 if test -n "$ac_ct_OTOOL64"; then
11350 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11351else
11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011361 break 2
11362 fi
11363done
cristy8b350f62009-11-15 23:12:43 +000011364 done
cristy3ed852e2009-09-05 21:47:34 +000011365IFS=$as_save_IFS
11366
11367fi
11368fi
11369ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11370if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011372$as_echo "$ac_ct_OTOOL64" >&6; }
11373else
cristy8b350f62009-11-15 23:12:43 +000011374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011375$as_echo "no" >&6; }
11376fi
11377
11378 if test "x$ac_ct_OTOOL64" = x; then
11379 OTOOL64=":"
11380 else
11381 case $cross_compiling:$ac_tool_warned in
11382yes:)
cristy8b350f62009-11-15 23:12:43 +000011383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11385ac_tool_warned=yes ;;
11386esac
11387 OTOOL64=$ac_ct_OTOOL64
11388 fi
11389else
11390 OTOOL64="$ac_cv_prog_OTOOL64"
11391fi
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
cristy8b350f62009-11-15 23:12:43 +000011419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011420$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011421if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011422 $as_echo_n "(cached) " >&6
11423else
11424 lt_cv_apple_cc_single_mod=no
11425 if test -z "${LT_MULTI_MODULE}"; then
11426 # By default we will add the -single_module flag. You can override
11427 # by either setting the environment variable LT_MULTI_MODULE
11428 # non-empty at configure time, or by adding -multi_module to the
11429 # link flags.
11430 rm -rf libconftest.dylib*
11431 echo "int foo(void){return 1;}" > conftest.c
11432 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11433-dynamiclib -Wl,-single_module conftest.c" >&5
11434 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11435 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11436 _lt_result=$?
11437 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11438 lt_cv_apple_cc_single_mod=yes
11439 else
11440 cat conftest.err >&5
11441 fi
11442 rm -rf libconftest.dylib*
11443 rm -f conftest.*
11444 fi
11445fi
cristy8b350f62009-11-15 23:12:43 +000011446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011447$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011449$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011450if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011451 $as_echo_n "(cached) " >&6
11452else
11453 lt_cv_ld_exported_symbols_list=no
11454 save_LDFLAGS=$LDFLAGS
11455 echo "_main" > conftest.sym
11456 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011458/* end confdefs.h. */
11459
11460int
11461main ()
11462{
11463
11464 ;
11465 return 0;
11466}
11467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011469 lt_cv_ld_exported_symbols_list=yes
11470else
cristy8b350f62009-11-15 23:12:43 +000011471 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011472fi
cristy8b350f62009-11-15 23:12:43 +000011473rm -f core conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011475 LDFLAGS="$save_LDFLAGS"
11476
11477fi
cristy8b350f62009-11-15 23:12:43 +000011478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011479$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11480 case $host_os in
11481 rhapsody* | darwin1.[012])
11482 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11483 darwin1.*)
11484 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11485 darwin*) # darwin 5.x on
11486 # if running on 10.5 or later, the deployment target defaults
11487 # to the OS version, if on x86, and 10.4, the deployment
11488 # target defaults to 10.4. Don't you love it?
11489 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11490 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11491 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11492 10.[012]*)
11493 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11494 10.*)
11495 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11496 esac
11497 ;;
11498 esac
11499 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11500 _lt_dar_single_mod='$single_module'
11501 fi
11502 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11503 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11504 else
11505 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11506 fi
cristy18304f92009-11-22 15:48:26 +000011507 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011508 _lt_dsymutil='~$DSYMUTIL $lib || :'
11509 else
11510 _lt_dsymutil=
11511 fi
11512 ;;
11513 esac
11514
cristy3ed852e2009-09-05 21:47:34 +000011515for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011516do :
11517 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11518"
11519if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011520 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011521#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011522_ACEOF
11523
11524fi
11525
11526done
11527
11528
11529
cristy18304f92009-11-22 15:48:26 +000011530ac_ext=cpp
11531ac_cpp='$CXXCPP $CPPFLAGS'
11532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11535if test -z "$CXX"; then
11536 if test -n "$CCC"; then
11537 CXX=$CCC
11538 else
11539 if test -n "$ac_tool_prefix"; then
11540 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11541 do
11542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11543set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545$as_echo_n "checking for $ac_word... " >&6; }
11546if test "${ac_cv_prog_CXX+set}" = set; then :
11547 $as_echo_n "(cached) " >&6
11548else
11549 if test -n "$CXX"; then
11550 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11551else
11552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553for as_dir in $PATH
11554do
11555 IFS=$as_save_IFS
11556 test -z "$as_dir" && as_dir=.
11557 for ac_exec_ext in '' $ac_executable_extensions; do
11558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11559 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11561 break 2
11562 fi
11563done
11564 done
11565IFS=$as_save_IFS
11566
11567fi
11568fi
11569CXX=$ac_cv_prog_CXX
11570if test -n "$CXX"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11572$as_echo "$CXX" >&6; }
11573else
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575$as_echo "no" >&6; }
11576fi
11577
11578
11579 test -n "$CXX" && break
11580 done
11581fi
11582if test -z "$CXX"; then
11583 ac_ct_CXX=$CXX
11584 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11585do
11586 # Extract the first word of "$ac_prog", so it can be a program name with args.
11587set dummy $ac_prog; ac_word=$2
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589$as_echo_n "checking for $ac_word... " >&6; }
11590if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11592else
11593 if test -n "$ac_ct_CXX"; then
11594 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11603 ac_cv_prog_ac_ct_CXX="$ac_prog"
11604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11606 fi
11607done
11608 done
11609IFS=$as_save_IFS
11610
11611fi
11612fi
11613ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11614if test -n "$ac_ct_CXX"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11616$as_echo "$ac_ct_CXX" >&6; }
11617else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619$as_echo "no" >&6; }
11620fi
11621
11622
11623 test -n "$ac_ct_CXX" && break
11624done
11625
11626 if test "x$ac_ct_CXX" = x; then
11627 CXX="g++"
11628 else
11629 case $cross_compiling:$ac_tool_warned in
11630yes:)
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11633ac_tool_warned=yes ;;
11634esac
11635 CXX=$ac_ct_CXX
11636 fi
11637fi
11638
11639 fi
11640fi
11641# Provide some information about the compiler.
11642$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11643set X $ac_compile
11644ac_compiler=$2
11645for ac_option in --version -v -V -qversion; do
11646 { { ac_try="$ac_compiler $ac_option >&5"
11647case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11652$as_echo "$ac_try_echo"; } >&5
11653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11654 ac_status=$?
11655 if test -s conftest.err; then
11656 sed '10a\
11657... rest of stderr output deleted ...
11658 10q' conftest.err >conftest.er1
11659 cat conftest.er1 >&5
11660 fi
11661 rm -f conftest.er1 conftest.err
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; }
11664done
11665
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11667$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11668if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11670else
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672/* end confdefs.h. */
11673
11674int
11675main ()
11676{
11677#ifndef __GNUC__
11678 choke me
11679#endif
11680
11681 ;
11682 return 0;
11683}
11684_ACEOF
11685if ac_fn_cxx_try_compile "$LINENO"; then :
11686 ac_compiler_gnu=yes
11687else
11688 ac_compiler_gnu=no
11689fi
11690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11692
11693fi
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11695$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11696if test $ac_compiler_gnu = yes; then
11697 GXX=yes
11698else
11699 GXX=
11700fi
11701ac_test_CXXFLAGS=${CXXFLAGS+set}
11702ac_save_CXXFLAGS=$CXXFLAGS
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11704$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11705if test "${ac_cv_prog_cxx_g+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11707else
11708 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11709 ac_cxx_werror_flag=yes
11710 ac_cv_prog_cxx_g=no
11711 CXXFLAGS="-g"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713/* end confdefs.h. */
11714
11715int
11716main ()
11717{
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723if ac_fn_cxx_try_compile "$LINENO"; then :
11724 ac_cv_prog_cxx_g=yes
11725else
11726 CXXFLAGS=""
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728/* end confdefs.h. */
11729
11730int
11731main ()
11732{
11733
11734 ;
11735 return 0;
11736}
11737_ACEOF
11738if ac_fn_cxx_try_compile "$LINENO"; then :
11739
11740else
11741 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11742 CXXFLAGS="-g"
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h. */
11745
11746int
11747main ()
11748{
11749
11750 ;
11751 return 0;
11752}
11753_ACEOF
11754if ac_fn_cxx_try_compile "$LINENO"; then :
11755 ac_cv_prog_cxx_g=yes
11756fi
11757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758fi
11759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760fi
11761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11763fi
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11765$as_echo "$ac_cv_prog_cxx_g" >&6; }
11766if test "$ac_test_CXXFLAGS" = set; then
11767 CXXFLAGS=$ac_save_CXXFLAGS
11768elif test $ac_cv_prog_cxx_g = yes; then
11769 if test "$GXX" = yes; then
11770 CXXFLAGS="-g -O2"
11771 else
11772 CXXFLAGS="-g"
11773 fi
11774else
11775 if test "$GXX" = yes; then
11776 CXXFLAGS="-O2"
11777 else
11778 CXXFLAGS=
11779 fi
11780fi
11781ac_ext=c
11782ac_cpp='$CPP $CPPFLAGS'
11783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11785ac_compiler_gnu=$ac_cv_c_compiler_gnu
11786
11787depcc="$CXX" am_compiler_list=
11788
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11790$as_echo_n "checking dependency style of $depcc... " >&6; }
11791if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
11793else
11794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11795 # We make a subdir and do the tests there. Otherwise we can end up
11796 # making bogus files that we don't know about and never remove. For
11797 # instance it was reported that on HP-UX the gcc test will end up
11798 # making a dummy file named `D' -- because `-MD' means `put the output
11799 # in D'.
11800 mkdir conftest.dir
11801 # Copy depcomp to subdir because otherwise we won't find it if we're
11802 # using a relative directory.
11803 cp "$am_depcomp" conftest.dir
11804 cd conftest.dir
11805 # We will build objects and dependencies in a subdirectory because
11806 # it helps to detect inapplicable dependency modes. For instance
11807 # both Tru64's cc and ICC support -MD to output dependencies as a
11808 # side effect of compilation, but ICC will put the dependencies in
11809 # the current directory while Tru64 will put them in the object
11810 # directory.
11811 mkdir sub
11812
11813 am_cv_CXX_dependencies_compiler_type=none
11814 if test "$am_compiler_list" = ""; then
11815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11816 fi
11817 am__universal=false
11818 case " $depcc " in #(
11819 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11820 esac
11821
11822 for depmode in $am_compiler_list; do
11823 # Setup a source with many dependencies, because some compilers
11824 # like to wrap large dependency lists on column 80 (with \), and
11825 # we should not choose a depcomp mode which is confused by this.
11826 #
11827 # We need to recreate these files for each test, as the compiler may
11828 # overwrite some of them when testing with obscure command lines.
11829 # This happens at least with the AIX C compiler.
11830 : > sub/conftest.c
11831 for i in 1 2 3 4 5 6; do
11832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11834 # Solaris 8's {/usr,}/bin/sh.
11835 touch sub/conftst$i.h
11836 done
11837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11838
11839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11840 # mode. It turns out that the SunPro C++ compiler does not properly
11841 # handle `-M -o', and we need to detect this. Also, some Intel
11842 # versions had trouble with output in subdirs
11843 am__obj=sub/conftest.${OBJEXT-o}
11844 am__minus_obj="-o $am__obj"
11845 case $depmode in
11846 gcc)
11847 # This depmode causes a compiler race in universal mode.
11848 test "$am__universal" = false || continue
11849 ;;
11850 nosideeffect)
11851 # after this tag, mechanisms are not by side-effect, so they'll
11852 # only be used when explicitly requested
11853 if test "x$enable_dependency_tracking" = xyes; then
11854 continue
11855 else
11856 break
11857 fi
11858 ;;
11859 msvisualcpp | msvcmsys)
11860 # This compiler won't grok `-c -o', but also, the minuso test has
11861 # not run yet. These depmodes are late enough in the game, and
11862 # so weak that their functioning should not be impacted.
11863 am__obj=conftest.${OBJEXT-o}
11864 am__minus_obj=
11865 ;;
11866 none) break ;;
11867 esac
11868 if depmode=$depmode \
11869 source=sub/conftest.c object=$am__obj \
11870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11871 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11872 >/dev/null 2>conftest.err &&
11873 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11874 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11875 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11876 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11877 # icc doesn't choke on unknown options, it will just issue warnings
11878 # or remarks (even with -Werror). So we grep stderr for any message
11879 # that says an option was ignored or not supported.
11880 # When given -MP, icc 7.0 and 7.1 complain thusly:
11881 # icc: Command line warning: ignoring option '-M'; no argument required
11882 # The diagnosis changed in icc 8.0:
11883 # icc: Command line remark: option '-MP' not supported
11884 if (grep 'ignoring option' conftest.err ||
11885 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11886 am_cv_CXX_dependencies_compiler_type=$depmode
11887 break
11888 fi
11889 fi
11890 done
11891
11892 cd ..
11893 rm -rf conftest.dir
11894else
11895 am_cv_CXX_dependencies_compiler_type=none
11896fi
11897
11898fi
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11900$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11901CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11902
11903 if
11904 test "x$enable_dependency_tracking" != xno \
11905 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11906 am__fastdepCXX_TRUE=
11907 am__fastdepCXX_FALSE='#'
11908else
11909 am__fastdepCXX_TRUE='#'
11910 am__fastdepCXX_FALSE=
11911fi
11912
11913
11914if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11915 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11916 (test "X$CXX" != "Xg++"))) ; then
11917 ac_ext=cpp
11918ac_cpp='$CXXCPP $CPPFLAGS'
11919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11923$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11924if test -z "$CXXCPP"; then
11925 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927else
11928 # Double quotes because CXXCPP needs to be expanded
11929 for CXXCPP in "$CXX -E" "/lib/cpp"
11930 do
11931 ac_preproc_ok=false
11932for ac_cxx_preproc_warn_flag in '' yes
11933do
11934 # Use a header file that comes with gcc, so configuring glibc
11935 # with a fresh cross-compiler works.
11936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937 # <limits.h> exists even on freestanding compilers.
11938 # On the NeXT, cc -E runs the code through the compiler's parser,
11939 # not just through cpp. "Syntax error" is here to catch this case.
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941/* end confdefs.h. */
11942#ifdef __STDC__
11943# include <limits.h>
11944#else
11945# include <assert.h>
11946#endif
11947 Syntax error
11948_ACEOF
11949if ac_fn_cxx_try_cpp "$LINENO"; then :
11950
11951else
11952 # Broken: fails on valid input.
11953continue
11954fi
11955rm -f conftest.err conftest.$ac_ext
11956
11957 # OK, works on sane cases. Now check whether nonexistent headers
11958 # can be detected and how.
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960/* end confdefs.h. */
11961#include <ac_nonexistent.h>
11962_ACEOF
11963if ac_fn_cxx_try_cpp "$LINENO"; then :
11964 # Broken: success on invalid input.
11965continue
11966else
11967 # Passes both tests.
11968ac_preproc_ok=:
11969break
11970fi
11971rm -f conftest.err conftest.$ac_ext
11972
11973done
11974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11975rm -f conftest.err conftest.$ac_ext
11976if $ac_preproc_ok; then :
11977 break
11978fi
11979
11980 done
11981 ac_cv_prog_CXXCPP=$CXXCPP
11982
11983fi
11984 CXXCPP=$ac_cv_prog_CXXCPP
11985else
11986 ac_cv_prog_CXXCPP=$CXXCPP
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11989$as_echo "$CXXCPP" >&6; }
11990ac_preproc_ok=false
11991for ac_cxx_preproc_warn_flag in '' yes
11992do
11993 # Use a header file that comes with gcc, so configuring glibc
11994 # with a fresh cross-compiler works.
11995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 # <limits.h> exists even on freestanding compilers.
11997 # On the NeXT, cc -E runs the code through the compiler's parser,
11998 # not just through cpp. "Syntax error" is here to catch this case.
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000/* end confdefs.h. */
12001#ifdef __STDC__
12002# include <limits.h>
12003#else
12004# include <assert.h>
12005#endif
12006 Syntax error
12007_ACEOF
12008if ac_fn_cxx_try_cpp "$LINENO"; then :
12009
12010else
12011 # Broken: fails on valid input.
12012continue
12013fi
12014rm -f conftest.err conftest.$ac_ext
12015
12016 # OK, works on sane cases. Now check whether nonexistent headers
12017 # can be detected and how.
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h. */
12020#include <ac_nonexistent.h>
12021_ACEOF
12022if ac_fn_cxx_try_cpp "$LINENO"; then :
12023 # Broken: success on invalid input.
12024continue
12025else
12026 # Passes both tests.
12027ac_preproc_ok=:
12028break
12029fi
12030rm -f conftest.err conftest.$ac_ext
12031
12032done
12033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12034rm -f conftest.err conftest.$ac_ext
12035if $ac_preproc_ok; then :
12036
12037else
12038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12040_lt_caught_CXX_error=yes; }
12041fi
12042
12043ac_ext=c
12044ac_cpp='$CPP $CPPFLAGS'
12045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047ac_compiler_gnu=$ac_cv_c_compiler_gnu
12048
12049else
12050 _lt_caught_CXX_error=yes
12051fi
12052
12053
cristy3ed852e2009-09-05 21:47:34 +000012054
12055
12056
12057# Set options
12058enable_win32_dll=yes
12059
12060case $host in
cristy18304f92009-11-22 15:48:26 +000012061*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012062 if test -n "$ac_tool_prefix"; then
12063 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12064set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012066$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012067if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012068 $as_echo_n "(cached) " >&6
12069else
12070 if test -n "$AS"; then
12071 ac_cv_prog_AS="$AS" # Let the user override the test.
12072else
12073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074for as_dir in $PATH
12075do
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12080 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012082 break 2
12083 fi
12084done
cristy8b350f62009-11-15 23:12:43 +000012085 done
cristy3ed852e2009-09-05 21:47:34 +000012086IFS=$as_save_IFS
12087
12088fi
12089fi
12090AS=$ac_cv_prog_AS
12091if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012093$as_echo "$AS" >&6; }
12094else
cristy8b350f62009-11-15 23:12:43 +000012095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012096$as_echo "no" >&6; }
12097fi
12098
12099
12100fi
12101if test -z "$ac_cv_prog_AS"; then
12102 ac_ct_AS=$AS
12103 # Extract the first word of "as", so it can be a program name with args.
12104set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012106$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012107if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012108 $as_echo_n "(cached) " >&6
12109else
12110 if test -n "$ac_ct_AS"; then
12111 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12112else
12113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114for as_dir in $PATH
12115do
12116 IFS=$as_save_IFS
12117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012122 break 2
12123 fi
12124done
cristy8b350f62009-11-15 23:12:43 +000012125 done
cristy3ed852e2009-09-05 21:47:34 +000012126IFS=$as_save_IFS
12127
12128fi
12129fi
12130ac_ct_AS=$ac_cv_prog_ac_ct_AS
12131if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012133$as_echo "$ac_ct_AS" >&6; }
12134else
cristy8b350f62009-11-15 23:12:43 +000012135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012136$as_echo "no" >&6; }
12137fi
12138
12139 if test "x$ac_ct_AS" = x; then
12140 AS="false"
12141 else
12142 case $cross_compiling:$ac_tool_warned in
12143yes:)
cristy8b350f62009-11-15 23:12:43 +000012144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12146ac_tool_warned=yes ;;
12147esac
12148 AS=$ac_ct_AS
12149 fi
12150else
12151 AS="$ac_cv_prog_AS"
12152fi
12153
12154 if test -n "$ac_tool_prefix"; then
12155 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12156set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012158$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012159if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012160 $as_echo_n "(cached) " >&6
12161else
12162 if test -n "$DLLTOOL"; then
12163 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12164else
12165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166for as_dir in $PATH
12167do
12168 IFS=$as_save_IFS
12169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12172 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012174 break 2
12175 fi
12176done
cristy8b350f62009-11-15 23:12:43 +000012177 done
cristy3ed852e2009-09-05 21:47:34 +000012178IFS=$as_save_IFS
12179
12180fi
12181fi
12182DLLTOOL=$ac_cv_prog_DLLTOOL
12183if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012185$as_echo "$DLLTOOL" >&6; }
12186else
cristy8b350f62009-11-15 23:12:43 +000012187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012188$as_echo "no" >&6; }
12189fi
12190
12191
12192fi
12193if test -z "$ac_cv_prog_DLLTOOL"; then
12194 ac_ct_DLLTOOL=$DLLTOOL
12195 # Extract the first word of "dlltool", so it can be a program name with args.
12196set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012198$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012199if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012200 $as_echo_n "(cached) " >&6
12201else
12202 if test -n "$ac_ct_DLLTOOL"; then
12203 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12204else
12205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12212 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012214 break 2
12215 fi
12216done
cristy8b350f62009-11-15 23:12:43 +000012217 done
cristy3ed852e2009-09-05 21:47:34 +000012218IFS=$as_save_IFS
12219
12220fi
12221fi
12222ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12223if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012225$as_echo "$ac_ct_DLLTOOL" >&6; }
12226else
cristy8b350f62009-11-15 23:12:43 +000012227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012228$as_echo "no" >&6; }
12229fi
12230
12231 if test "x$ac_ct_DLLTOOL" = x; then
12232 DLLTOOL="false"
12233 else
12234 case $cross_compiling:$ac_tool_warned in
12235yes:)
cristy8b350f62009-11-15 23:12:43 +000012236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12238ac_tool_warned=yes ;;
12239esac
12240 DLLTOOL=$ac_ct_DLLTOOL
12241 fi
12242else
12243 DLLTOOL="$ac_cv_prog_DLLTOOL"
12244fi
12245
12246 if test -n "$ac_tool_prefix"; then
12247 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12248set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012250$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012251if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012252 $as_echo_n "(cached) " >&6
12253else
12254 if test -n "$OBJDUMP"; then
12255 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12256else
12257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH
12259do
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012266 break 2
12267 fi
12268done
cristy8b350f62009-11-15 23:12:43 +000012269 done
cristy3ed852e2009-09-05 21:47:34 +000012270IFS=$as_save_IFS
12271
12272fi
12273fi
12274OBJDUMP=$ac_cv_prog_OBJDUMP
12275if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012277$as_echo "$OBJDUMP" >&6; }
12278else
cristy8b350f62009-11-15 23:12:43 +000012279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012280$as_echo "no" >&6; }
12281fi
12282
12283
12284fi
12285if test -z "$ac_cv_prog_OBJDUMP"; then
12286 ac_ct_OBJDUMP=$OBJDUMP
12287 # Extract the first word of "objdump", so it can be a program name with args.
12288set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012291if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012292 $as_echo_n "(cached) " >&6
12293else
12294 if test -n "$ac_ct_OBJDUMP"; then
12295 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12296else
12297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298for as_dir in $PATH
12299do
12300 IFS=$as_save_IFS
12301 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012302 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12304 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012306 break 2
12307 fi
12308done
cristy8b350f62009-11-15 23:12:43 +000012309 done
cristy3ed852e2009-09-05 21:47:34 +000012310IFS=$as_save_IFS
12311
12312fi
12313fi
12314ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12315if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012317$as_echo "$ac_ct_OBJDUMP" >&6; }
12318else
cristy8b350f62009-11-15 23:12:43 +000012319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012320$as_echo "no" >&6; }
12321fi
12322
12323 if test "x$ac_ct_OBJDUMP" = x; then
12324 OBJDUMP="false"
12325 else
12326 case $cross_compiling:$ac_tool_warned in
12327yes:)
cristy8b350f62009-11-15 23:12:43 +000012328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12330ac_tool_warned=yes ;;
12331esac
12332 OBJDUMP=$ac_ct_OBJDUMP
12333 fi
12334else
12335 OBJDUMP="$ac_cv_prog_OBJDUMP"
12336fi
12337
12338 ;;
12339esac
12340
12341test -z "$AS" && AS=as
12342
12343
12344
12345
12346
12347test -z "$DLLTOOL" && DLLTOOL=dlltool
12348
12349
12350
12351
12352
12353test -z "$OBJDUMP" && OBJDUMP=objdump
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012364if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012365 enableval=$enable_shared; p=${PACKAGE-default}
12366 case $enableval in
12367 yes) enable_shared=yes ;;
12368 no) enable_shared=no ;;
12369 *)
12370 enable_shared=no
12371 # Look at the argument we got. We use all the common list separators.
12372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12373 for pkg in $enableval; do
12374 IFS="$lt_save_ifs"
12375 if test "X$pkg" = "X$p"; then
12376 enable_shared=yes
12377 fi
12378 done
12379 IFS="$lt_save_ifs"
12380 ;;
12381 esac
12382else
12383 enable_shared=yes
12384fi
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012395if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012396 enableval=$enable_static; p=${PACKAGE-default}
12397 case $enableval in
12398 yes) enable_static=yes ;;
12399 no) enable_static=no ;;
12400 *)
12401 enable_static=no
12402 # Look at the argument we got. We use all the common list separators.
12403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12404 for pkg in $enableval; do
12405 IFS="$lt_save_ifs"
12406 if test "X$pkg" = "X$p"; then
12407 enable_static=yes
12408 fi
12409 done
12410 IFS="$lt_save_ifs"
12411 ;;
12412 esac
12413else
12414 enable_static=yes
12415fi
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012427if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012428 withval=$with_pic; pic_mode="$withval"
12429else
12430 pic_mode=default
12431fi
12432
12433
12434test -z "$pic_mode" && pic_mode=default
12435
12436
12437
12438
12439
12440
12441
12442 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012443if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012444 enableval=$enable_fast_install; p=${PACKAGE-default}
12445 case $enableval in
12446 yes) enable_fast_install=yes ;;
12447 no) enable_fast_install=no ;;
12448 *)
12449 enable_fast_install=no
12450 # Look at the argument we got. We use all the common list separators.
12451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12452 for pkg in $enableval; do
12453 IFS="$lt_save_ifs"
12454 if test "X$pkg" = "X$p"; then
12455 enable_fast_install=yes
12456 fi
12457 done
12458 IFS="$lt_save_ifs"
12459 ;;
12460 esac
12461else
12462 enable_fast_install=yes
12463fi
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475# This can be used to rebuild libtool when needed
12476LIBTOOL_DEPS="$ltmain"
12477
12478# Always use our own libtool.
12479LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505test -z "$LN_S" && LN_S="ln -s"
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520if test -n "${ZSH_VERSION+set}" ; then
12521 setopt NO_GLOB_SUBST
12522fi
12523
cristy8b350f62009-11-15 23:12:43 +000012524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012525$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012526if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012527 $as_echo_n "(cached) " >&6
12528else
12529 rm -f .libs 2>/dev/null
12530mkdir .libs 2>/dev/null
12531if test -d .libs; then
12532 lt_cv_objdir=.libs
12533else
12534 # MS-DOS does not allow filenames that begin with a dot.
12535 lt_cv_objdir=_libs
12536fi
12537rmdir .libs 2>/dev/null
12538fi
cristy8b350f62009-11-15 23:12:43 +000012539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012540$as_echo "$lt_cv_objdir" >&6; }
12541objdir=$lt_cv_objdir
12542
12543
12544
12545
12546
12547cat >>confdefs.h <<_ACEOF
12548#define LT_OBJDIR "$lt_cv_objdir/"
12549_ACEOF
12550
12551
12552
12553
cristy18304f92009-11-22 15:48:26 +000012554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
cristy3ed852e2009-09-05 21:47:34 +000012567case $host_os in
12568aix3*)
12569 # AIX sometimes has problems with the GCC collect2 program. For some
12570 # reason, if we set the COLLECT_NAMES environment variable, the problems
12571 # vanish in a puff of smoke.
12572 if test "X${COLLECT_NAMES+set}" != Xset; then
12573 COLLECT_NAMES=
12574 export COLLECT_NAMES
12575 fi
12576 ;;
12577esac
12578
cristy18304f92009-11-22 15:48:26 +000012579# Sed substitution that helps us do robust quoting. It backslashifies
12580# metacharacters that are still active within double-quoted strings.
12581sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12582
12583# Same as above, but do not quote variable references.
12584double_quote_subst='s/\(["`\\]\)/\\\1/g'
12585
12586# Sed substitution to delay expansion of an escaped shell variable in a
12587# double_quote_subst'ed string.
12588delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12589
12590# Sed substitution to delay expansion of an escaped single quote.
12591delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12592
12593# Sed substitution to avoid accidental globbing in evaled expressions
12594no_glob_subst='s/\*/\\\*/g'
12595
cristy3ed852e2009-09-05 21:47:34 +000012596# Global variables:
12597ofile=libtool
12598can_build_shared=yes
12599
12600# All known linkers require a `.a' archive for static linking (except MSVC,
12601# which needs '.lib').
12602libext=a
12603
12604with_gnu_ld="$lt_cv_prog_gnu_ld"
12605
12606old_CC="$CC"
12607old_CFLAGS="$CFLAGS"
12608
12609# Set sane defaults for various variables
12610test -z "$CC" && CC=cc
12611test -z "$LTCC" && LTCC=$CC
12612test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12613test -z "$LD" && LD=ld
12614test -z "$ac_objext" && ac_objext=o
12615
12616for cc_temp in $compiler""; do
12617 case $cc_temp in
12618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12620 \-*) ;;
12621 *) break;;
12622 esac
12623done
cristy18304f92009-11-22 15:48:26 +000012624cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012625
12626
12627# Only perform the check for file, if the check method requires it
12628test -z "$MAGIC_CMD" && MAGIC_CMD=file
12629case $deplibs_check_method in
12630file_magic*)
12631 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012633$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012634if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012635 $as_echo_n "(cached) " >&6
12636else
12637 case $MAGIC_CMD in
12638[\\/*] | ?:[\\/]*)
12639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12640 ;;
12641*)
12642 lt_save_MAGIC_CMD="$MAGIC_CMD"
12643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12645 for ac_dir in $ac_dummy; do
12646 IFS="$lt_save_ifs"
12647 test -z "$ac_dir" && ac_dir=.
12648 if test -f $ac_dir/${ac_tool_prefix}file; then
12649 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12650 if test -n "$file_magic_test_file"; then
12651 case $deplibs_check_method in
12652 "file_magic "*)
12653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12656 $EGREP "$file_magic_regex" > /dev/null; then
12657 :
12658 else
12659 cat <<_LT_EOF 1>&2
12660
12661*** Warning: the command libtool uses to detect shared libraries,
12662*** $file_magic_cmd, produces output that libtool cannot recognize.
12663*** The result is that libtool may fail to recognize shared libraries
12664*** as such. This will affect the creation of libtool libraries that
12665*** depend on shared libraries, but programs linked with such libtool
12666*** libraries will work regardless of this problem. Nevertheless, you
12667*** may want to report the problem to your system manager and/or to
12668*** bug-libtool@gnu.org
12669
12670_LT_EOF
12671 fi ;;
12672 esac
12673 fi
12674 break
12675 fi
12676 done
12677 IFS="$lt_save_ifs"
12678 MAGIC_CMD="$lt_save_MAGIC_CMD"
12679 ;;
12680esac
12681fi
12682
12683MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12684if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012686$as_echo "$MAGIC_CMD" >&6; }
12687else
cristy8b350f62009-11-15 23:12:43 +000012688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012689$as_echo "no" >&6; }
12690fi
12691
12692
12693
12694
12695
12696if test -z "$lt_cv_path_MAGIC_CMD"; then
12697 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012699$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012700if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012701 $as_echo_n "(cached) " >&6
12702else
12703 case $MAGIC_CMD in
12704[\\/*] | ?:[\\/]*)
12705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12706 ;;
12707*)
12708 lt_save_MAGIC_CMD="$MAGIC_CMD"
12709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12710 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12711 for ac_dir in $ac_dummy; do
12712 IFS="$lt_save_ifs"
12713 test -z "$ac_dir" && ac_dir=.
12714 if test -f $ac_dir/file; then
12715 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12716 if test -n "$file_magic_test_file"; then
12717 case $deplibs_check_method in
12718 "file_magic "*)
12719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12722 $EGREP "$file_magic_regex" > /dev/null; then
12723 :
12724 else
12725 cat <<_LT_EOF 1>&2
12726
12727*** Warning: the command libtool uses to detect shared libraries,
12728*** $file_magic_cmd, produces output that libtool cannot recognize.
12729*** The result is that libtool may fail to recognize shared libraries
12730*** as such. This will affect the creation of libtool libraries that
12731*** depend on shared libraries, but programs linked with such libtool
12732*** libraries will work regardless of this problem. Nevertheless, you
12733*** may want to report the problem to your system manager and/or to
12734*** bug-libtool@gnu.org
12735
12736_LT_EOF
12737 fi ;;
12738 esac
12739 fi
12740 break
12741 fi
12742 done
12743 IFS="$lt_save_ifs"
12744 MAGIC_CMD="$lt_save_MAGIC_CMD"
12745 ;;
12746esac
12747fi
12748
12749MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12750if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012752$as_echo "$MAGIC_CMD" >&6; }
12753else
cristy8b350f62009-11-15 23:12:43 +000012754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012755$as_echo "no" >&6; }
12756fi
12757
12758
12759 else
12760 MAGIC_CMD=:
12761 fi
12762fi
12763
12764 fi
12765 ;;
12766esac
12767
12768# Use C for the default configuration in the libtool script
12769
12770lt_save_CC="$CC"
12771ac_ext=c
12772ac_cpp='$CPP $CPPFLAGS'
12773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12775ac_compiler_gnu=$ac_cv_c_compiler_gnu
12776
12777
12778# Source file extension for C test sources.
12779ac_ext=c
12780
12781# Object file extension for compiled C test sources.
12782objext=o
12783objext=$objext
12784
12785# Code to be used in simple compile tests
12786lt_simple_compile_test_code="int some_variable = 0;"
12787
12788# Code to be used in simple link tests
12789lt_simple_link_test_code='int main(){return(0);}'
12790
12791
12792
12793
12794
12795
12796
12797# If no C compiler was specified, use CC.
12798LTCC=${LTCC-"$CC"}
12799
12800# If no C compiler flags were specified, use CFLAGS.
12801LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12802
12803# Allow CC to be a program name with arguments.
12804compiler=$CC
12805
12806# Save the default compiler, since it gets overwritten when the other
12807# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12808compiler_DEFAULT=$CC
12809
12810# save warnings/boilerplate of simple test code
12811ac_outfile=conftest.$ac_objext
12812echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12813eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12814_lt_compiler_boilerplate=`cat conftest.err`
12815$RM conftest*
12816
12817ac_outfile=conftest.$ac_objext
12818echo "$lt_simple_link_test_code" >conftest.$ac_ext
12819eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12820_lt_linker_boilerplate=`cat conftest.err`
12821$RM -r conftest*
12822
12823
12824## CAVEAT EMPTOR:
12825## There is no encapsulation within the following macros, do not change
12826## the running order or otherwise move them around unless you know exactly
12827## what you are doing...
12828if test -n "$compiler"; then
12829
12830lt_prog_compiler_no_builtin_flag=
12831
12832if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012833 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012834
cristy8b350f62009-11-15 23:12:43 +000012835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012836$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012837if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012838 $as_echo_n "(cached) " >&6
12839else
12840 lt_cv_prog_compiler_rtti_exceptions=no
12841 ac_outfile=conftest.$ac_objext
12842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12843 lt_compiler_flag="-fno-rtti -fno-exceptions"
12844 # Insert the option either (1) after the last *FLAGS variable, or
12845 # (2) before a word containing "conftest.", or (3) at the end.
12846 # Note that $ac_compile itself does not contain backslashes and begins
12847 # with a dollar sign (not a hyphen), so the echo should work correctly.
12848 # The option is referenced via a variable to avoid confusing sed.
12849 lt_compile=`echo "$ac_compile" | $SED \
12850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12852 -e 's:$: $lt_compiler_flag:'`
cristy964cb7f2010-04-25 23:18:00 +000012853 (eval echo "\"\$as_me:12853: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012854 (eval "$lt_compile" 2>conftest.err)
12855 ac_status=$?
12856 cat conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +000012857 echo "$as_me:12857: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012858 if (exit $ac_status) && test -s "$ac_outfile"; then
12859 # The compiler can only warn and ignore the option if not recognized
12860 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012861 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12864 lt_cv_prog_compiler_rtti_exceptions=yes
12865 fi
12866 fi
12867 $RM conftest*
12868
12869fi
cristy8b350f62009-11-15 23:12:43 +000012870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012871$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12872
12873if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12874 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12875else
12876 :
12877fi
12878
12879fi
12880
12881
12882
12883
12884
12885
12886 lt_prog_compiler_wl=
12887lt_prog_compiler_pic=
12888lt_prog_compiler_static=
12889
cristy8b350f62009-11-15 23:12:43 +000012890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012891$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12892
12893 if test "$GCC" = yes; then
12894 lt_prog_compiler_wl='-Wl,'
12895 lt_prog_compiler_static='-static'
12896
12897 case $host_os in
12898 aix*)
12899 # All AIX code is PIC.
12900 if test "$host_cpu" = ia64; then
12901 # AIX 5 now supports IA64 processor
12902 lt_prog_compiler_static='-Bstatic'
12903 fi
12904 ;;
12905
12906 amigaos*)
12907 case $host_cpu in
12908 powerpc)
12909 # see comment about AmigaOS4 .so support
12910 lt_prog_compiler_pic='-fPIC'
12911 ;;
12912 m68k)
12913 # FIXME: we need at least 68020 code to build shared libraries, but
12914 # adding the `-m68020' flag to GCC prevents building anything better,
12915 # like `-m68040'.
12916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12917 ;;
12918 esac
12919 ;;
12920
12921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12922 # PIC is the default for these OSes.
12923 ;;
12924
12925 mingw* | cygwin* | pw32* | os2* | cegcc*)
12926 # This hack is so that the source file can tell whether it is being
12927 # built for inclusion in a dll (and should export symbols for example).
12928 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12929 # (--disable-auto-import) libraries
12930 lt_prog_compiler_pic='-DDLL_EXPORT'
12931 ;;
12932
12933 darwin* | rhapsody*)
12934 # PIC is the default on this platform
12935 # Common symbols not allowed in MH_DYLIB files
12936 lt_prog_compiler_pic='-fno-common'
12937 ;;
12938
12939 hpux*)
12940 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12941 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12942 # sets the default TLS model and affects inlining.
12943 case $host_cpu in
12944 hppa*64*)
12945 # +Z the default
12946 ;;
12947 *)
12948 lt_prog_compiler_pic='-fPIC'
12949 ;;
12950 esac
12951 ;;
12952
12953 interix[3-9]*)
12954 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12955 # Instead, we relocate shared libraries at runtime.
12956 ;;
12957
12958 msdosdjgpp*)
12959 # Just because we use GCC doesn't mean we suddenly get shared libraries
12960 # on systems that don't support them.
12961 lt_prog_compiler_can_build_shared=no
12962 enable_shared=no
12963 ;;
12964
12965 *nto* | *qnx*)
12966 # QNX uses GNU C++, but need to define -shared option too, otherwise
12967 # it will coredump.
12968 lt_prog_compiler_pic='-fPIC -shared'
12969 ;;
12970
12971 sysv4*MP*)
12972 if test -d /usr/nec; then
12973 lt_prog_compiler_pic=-Kconform_pic
12974 fi
12975 ;;
12976
12977 *)
12978 lt_prog_compiler_pic='-fPIC'
12979 ;;
12980 esac
12981 else
12982 # PORTME Check for flag to pass linker flags through the system compiler.
12983 case $host_os in
12984 aix*)
12985 lt_prog_compiler_wl='-Wl,'
12986 if test "$host_cpu" = ia64; then
12987 # AIX 5 now supports IA64 processor
12988 lt_prog_compiler_static='-Bstatic'
12989 else
12990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12991 fi
12992 ;;
12993
12994 mingw* | cygwin* | pw32* | os2* | cegcc*)
12995 # This hack is so that the source file can tell whether it is being
12996 # built for inclusion in a dll (and should export symbols for example).
12997 lt_prog_compiler_pic='-DDLL_EXPORT'
12998 ;;
12999
13000 hpux9* | hpux10* | hpux11*)
13001 lt_prog_compiler_wl='-Wl,'
13002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13003 # not for PA HP-UX.
13004 case $host_cpu in
13005 hppa*64*|ia64*)
13006 # +Z the default
13007 ;;
13008 *)
13009 lt_prog_compiler_pic='+Z'
13010 ;;
13011 esac
13012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13013 lt_prog_compiler_static='${wl}-a ${wl}archive'
13014 ;;
13015
13016 irix5* | irix6* | nonstopux*)
13017 lt_prog_compiler_wl='-Wl,'
13018 # PIC (with -KPIC) is the default.
13019 lt_prog_compiler_static='-non_shared'
13020 ;;
13021
cristy18304f92009-11-22 15:48:26 +000013022 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013023 case $cc_basename in
13024 # old Intel for x86_64 which still supported -KPIC.
13025 ecc*)
13026 lt_prog_compiler_wl='-Wl,'
13027 lt_prog_compiler_pic='-KPIC'
13028 lt_prog_compiler_static='-static'
13029 ;;
13030 # icc used to be incompatible with GCC.
13031 # ICC 10 doesn't accept -KPIC any more.
13032 icc* | ifort*)
13033 lt_prog_compiler_wl='-Wl,'
13034 lt_prog_compiler_pic='-fPIC'
13035 lt_prog_compiler_static='-static'
13036 ;;
13037 # Lahey Fortran 8.1.
13038 lf95*)
13039 lt_prog_compiler_wl='-Wl,'
13040 lt_prog_compiler_pic='--shared'
13041 lt_prog_compiler_static='--static'
13042 ;;
cristy18304f92009-11-22 15:48:26 +000013043 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013044 # Portland Group compilers (*not* the Pentium gcc compiler,
13045 # which looks to be a dead project)
13046 lt_prog_compiler_wl='-Wl,'
13047 lt_prog_compiler_pic='-fpic'
13048 lt_prog_compiler_static='-Bstatic'
13049 ;;
13050 ccc*)
13051 lt_prog_compiler_wl='-Wl,'
13052 # All Alpha code is PIC.
13053 lt_prog_compiler_static='-non_shared'
13054 ;;
cristy18304f92009-11-22 15:48:26 +000013055 xl*)
13056 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013057 lt_prog_compiler_wl='-Wl,'
13058 lt_prog_compiler_pic='-qpic'
13059 lt_prog_compiler_static='-qstaticlink'
13060 ;;
13061 *)
13062 case `$CC -V 2>&1 | sed 5q` in
13063 *Sun\ C*)
13064 # Sun C 5.9
13065 lt_prog_compiler_pic='-KPIC'
13066 lt_prog_compiler_static='-Bstatic'
13067 lt_prog_compiler_wl='-Wl,'
13068 ;;
cristy18304f92009-11-22 15:48:26 +000013069 *Sun\ F*)
13070 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13071 lt_prog_compiler_pic='-KPIC'
13072 lt_prog_compiler_static='-Bstatic'
13073 lt_prog_compiler_wl=''
13074 ;;
cristy3ed852e2009-09-05 21:47:34 +000013075 esac
13076 ;;
13077 esac
13078 ;;
13079
13080 newsos6)
13081 lt_prog_compiler_pic='-KPIC'
13082 lt_prog_compiler_static='-Bstatic'
13083 ;;
13084
13085 *nto* | *qnx*)
13086 # QNX uses GNU C++, but need to define -shared option too, otherwise
13087 # it will coredump.
13088 lt_prog_compiler_pic='-fPIC -shared'
13089 ;;
13090
13091 osf3* | osf4* | osf5*)
13092 lt_prog_compiler_wl='-Wl,'
13093 # All OSF/1 code is PIC.
13094 lt_prog_compiler_static='-non_shared'
13095 ;;
13096
13097 rdos*)
13098 lt_prog_compiler_static='-non_shared'
13099 ;;
13100
13101 solaris*)
13102 lt_prog_compiler_pic='-KPIC'
13103 lt_prog_compiler_static='-Bstatic'
13104 case $cc_basename in
13105 f77* | f90* | f95*)
13106 lt_prog_compiler_wl='-Qoption ld ';;
13107 *)
13108 lt_prog_compiler_wl='-Wl,';;
13109 esac
13110 ;;
13111
13112 sunos4*)
13113 lt_prog_compiler_wl='-Qoption ld '
13114 lt_prog_compiler_pic='-PIC'
13115 lt_prog_compiler_static='-Bstatic'
13116 ;;
13117
13118 sysv4 | sysv4.2uw2* | sysv4.3*)
13119 lt_prog_compiler_wl='-Wl,'
13120 lt_prog_compiler_pic='-KPIC'
13121 lt_prog_compiler_static='-Bstatic'
13122 ;;
13123
13124 sysv4*MP*)
13125 if test -d /usr/nec ;then
13126 lt_prog_compiler_pic='-Kconform_pic'
13127 lt_prog_compiler_static='-Bstatic'
13128 fi
13129 ;;
13130
13131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13132 lt_prog_compiler_wl='-Wl,'
13133 lt_prog_compiler_pic='-KPIC'
13134 lt_prog_compiler_static='-Bstatic'
13135 ;;
13136
13137 unicos*)
13138 lt_prog_compiler_wl='-Wl,'
13139 lt_prog_compiler_can_build_shared=no
13140 ;;
13141
13142 uts4*)
13143 lt_prog_compiler_pic='-pic'
13144 lt_prog_compiler_static='-Bstatic'
13145 ;;
13146
13147 *)
13148 lt_prog_compiler_can_build_shared=no
13149 ;;
13150 esac
13151 fi
13152
13153case $host_os in
13154 # For platforms which do not support PIC, -DPIC is meaningless:
13155 *djgpp*)
13156 lt_prog_compiler_pic=
13157 ;;
13158 *)
13159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13160 ;;
13161esac
cristy8b350f62009-11-15 23:12:43 +000013162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013163$as_echo "$lt_prog_compiler_pic" >&6; }
13164
13165
13166
13167
13168
13169
13170#
13171# Check to make sure the PIC flag actually works.
13172#
13173if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013175$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013176if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013177 $as_echo_n "(cached) " >&6
13178else
13179 lt_cv_prog_compiler_pic_works=no
13180 ac_outfile=conftest.$ac_objext
13181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13183 # Insert the option either (1) after the last *FLAGS variable, or
13184 # (2) before a word containing "conftest.", or (3) at the end.
13185 # Note that $ac_compile itself does not contain backslashes and begins
13186 # with a dollar sign (not a hyphen), so the echo should work correctly.
13187 # The option is referenced via a variable to avoid confusing sed.
13188 lt_compile=`echo "$ac_compile" | $SED \
13189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13191 -e 's:$: $lt_compiler_flag:'`
cristy964cb7f2010-04-25 23:18:00 +000013192 (eval echo "\"\$as_me:13192: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013193 (eval "$lt_compile" 2>conftest.err)
13194 ac_status=$?
13195 cat conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +000013196 echo "$as_me:13196: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013197 if (exit $ac_status) && test -s "$ac_outfile"; then
13198 # The compiler can only warn and ignore the option if not recognized
13199 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013200 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13203 lt_cv_prog_compiler_pic_works=yes
13204 fi
13205 fi
13206 $RM conftest*
13207
13208fi
cristy8b350f62009-11-15 23:12:43 +000013209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013210$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13211
13212if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13213 case $lt_prog_compiler_pic in
13214 "" | " "*) ;;
13215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13216 esac
13217else
13218 lt_prog_compiler_pic=
13219 lt_prog_compiler_can_build_shared=no
13220fi
13221
13222fi
13223
13224
13225
13226
13227
13228
13229#
13230# Check to make sure the static flag actually works.
13231#
13232wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013234$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013235if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013236 $as_echo_n "(cached) " >&6
13237else
13238 lt_cv_prog_compiler_static_works=no
13239 save_LDFLAGS="$LDFLAGS"
13240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13241 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13243 # The linker can only warn and ignore the option if not recognized
13244 # So say no if there are warnings
13245 if test -s conftest.err; then
13246 # Append any errors to the config.log.
13247 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000013248 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13250 if diff conftest.exp conftest.er2 >/dev/null; then
13251 lt_cv_prog_compiler_static_works=yes
13252 fi
13253 else
13254 lt_cv_prog_compiler_static_works=yes
13255 fi
13256 fi
13257 $RM -r conftest*
13258 LDFLAGS="$save_LDFLAGS"
13259
13260fi
cristy8b350f62009-11-15 23:12:43 +000013261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013262$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13263
13264if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13265 :
13266else
13267 lt_prog_compiler_static=
13268fi
13269
13270
13271
13272
13273
13274
13275
cristy8b350f62009-11-15 23:12:43 +000013276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013278if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013279 $as_echo_n "(cached) " >&6
13280else
13281 lt_cv_prog_compiler_c_o=no
13282 $RM -r conftest 2>/dev/null
13283 mkdir conftest
13284 cd conftest
13285 mkdir out
13286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13287
13288 lt_compiler_flag="-o out/conftest2.$ac_objext"
13289 # Insert the option either (1) after the last *FLAGS variable, or
13290 # (2) before a word containing "conftest.", or (3) at the end.
13291 # Note that $ac_compile itself does not contain backslashes and begins
13292 # with a dollar sign (not a hyphen), so the echo should work correctly.
13293 lt_compile=`echo "$ac_compile" | $SED \
13294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13296 -e 's:$: $lt_compiler_flag:'`
cristy964cb7f2010-04-25 23:18:00 +000013297 (eval echo "\"\$as_me:13297: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013298 (eval "$lt_compile" 2>out/conftest.err)
13299 ac_status=$?
13300 cat out/conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +000013301 echo "$as_me:13301: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13303 then
13304 # The compiler can only warn and ignore the option if not recognized
13305 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013306 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13309 lt_cv_prog_compiler_c_o=yes
13310 fi
13311 fi
13312 chmod u+w . 2>&5
13313 $RM conftest*
13314 # SGI C++ compiler will create directory out/ii_files/ for
13315 # template instantiation
13316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13317 $RM out/* && rmdir out
13318 cd ..
13319 $RM -r conftest
13320 $RM conftest*
13321
13322fi
cristy8b350f62009-11-15 23:12:43 +000013323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013324$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13325
13326
13327
13328
13329
13330
cristy8b350f62009-11-15 23:12:43 +000013331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013332$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013333if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013334 $as_echo_n "(cached) " >&6
13335else
13336 lt_cv_prog_compiler_c_o=no
13337 $RM -r conftest 2>/dev/null
13338 mkdir conftest
13339 cd conftest
13340 mkdir out
13341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13342
13343 lt_compiler_flag="-o out/conftest2.$ac_objext"
13344 # Insert the option either (1) after the last *FLAGS variable, or
13345 # (2) before a word containing "conftest.", or (3) at the end.
13346 # Note that $ac_compile itself does not contain backslashes and begins
13347 # with a dollar sign (not a hyphen), so the echo should work correctly.
13348 lt_compile=`echo "$ac_compile" | $SED \
13349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13351 -e 's:$: $lt_compiler_flag:'`
cristy964cb7f2010-04-25 23:18:00 +000013352 (eval echo "\"\$as_me:13352: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013353 (eval "$lt_compile" 2>out/conftest.err)
13354 ac_status=$?
13355 cat out/conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +000013356 echo "$as_me:13356: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13358 then
13359 # The compiler can only warn and ignore the option if not recognized
13360 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13364 lt_cv_prog_compiler_c_o=yes
13365 fi
13366 fi
13367 chmod u+w . 2>&5
13368 $RM conftest*
13369 # SGI C++ compiler will create directory out/ii_files/ for
13370 # template instantiation
13371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13372 $RM out/* && rmdir out
13373 cd ..
13374 $RM -r conftest
13375 $RM conftest*
13376
13377fi
cristy8b350f62009-11-15 23:12:43 +000013378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013379$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13380
13381
13382
13383
13384hard_links="nottested"
13385if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13386 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013388$as_echo_n "checking if we can lock with hard links... " >&6; }
13389 hard_links=yes
13390 $RM conftest*
13391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13392 touch conftest.a
13393 ln conftest.a conftest.b 2>&5 || hard_links=no
13394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013396$as_echo "$hard_links" >&6; }
13397 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013398 { $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 +000013399$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13400 need_locks=warn
13401 fi
13402else
13403 need_locks=no
13404fi
13405
13406
13407
13408
13409
13410
cristy8b350f62009-11-15 23:12:43 +000013411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013412$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13413
13414 runpath_var=
13415 allow_undefined_flag=
13416 always_export_symbols=no
13417 archive_cmds=
13418 archive_expsym_cmds=
13419 compiler_needs_object=no
13420 enable_shared_with_static_runtimes=no
13421 export_dynamic_flag_spec=
13422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13423 hardcode_automatic=no
13424 hardcode_direct=no
13425 hardcode_direct_absolute=no
13426 hardcode_libdir_flag_spec=
13427 hardcode_libdir_flag_spec_ld=
13428 hardcode_libdir_separator=
13429 hardcode_minus_L=no
13430 hardcode_shlibpath_var=unsupported
13431 inherit_rpath=no
13432 link_all_deplibs=unknown
13433 module_cmds=
13434 module_expsym_cmds=
13435 old_archive_from_new_cmds=
13436 old_archive_from_expsyms_cmds=
13437 thread_safe_flag_spec=
13438 whole_archive_flag_spec=
13439 # include_expsyms should be a list of space-separated symbols to be *always*
13440 # included in the symbol list
13441 include_expsyms=
13442 # exclude_expsyms can be an extended regexp of symbols to exclude
13443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13445 # as well as any symbol that contains `d'.
13446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13448 # platforms (ab)use it in PIC code, but their linkers get confused if
13449 # the symbol is explicitly referenced. Since portable code cannot
13450 # rely on this symbol name, it's probably fine to never include it in
13451 # preloaded symbol tables.
13452 # Exclude shared library initialization/finalization symbols.
13453 extract_expsyms_cmds=
13454
13455 case $host_os in
13456 cygwin* | mingw* | pw32* | cegcc*)
13457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13458 # When not using gcc, we currently assume that we are using
13459 # Microsoft Visual C++.
13460 if test "$GCC" != yes; then
13461 with_gnu_ld=no
13462 fi
13463 ;;
13464 interix*)
13465 # we just hope/assume this is gcc and not c89 (= MSVC++)
13466 with_gnu_ld=yes
13467 ;;
13468 openbsd*)
13469 with_gnu_ld=no
13470 ;;
13471 esac
13472
13473 ld_shlibs=yes
13474 if test "$with_gnu_ld" = yes; then
13475 # If archive_cmds runs LD, not CC, wlarc should be empty
13476 wlarc='${wl}'
13477
13478 # Set some defaults for GNU ld with shared library support. These
13479 # are reset later if shared libraries are not supported. Putting them
13480 # here allows them to be overridden if necessary.
13481 runpath_var=LD_RUN_PATH
13482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13483 export_dynamic_flag_spec='${wl}--export-dynamic'
13484 # ancient GNU ld didn't support --whole-archive et. al.
13485 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13486 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13487 else
13488 whole_archive_flag_spec=
13489 fi
13490 supports_anon_versioning=no
13491 case `$LD -v 2>&1` in
13492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13495 *\ 2.11.*) ;; # other 2.11 versions
13496 *) supports_anon_versioning=yes ;;
13497 esac
13498
13499 # See if GNU ld supports shared libraries.
13500 case $host_os in
13501 aix[3-9]*)
13502 # On AIX/PPC, the GNU linker is very broken
13503 if test "$host_cpu" != ia64; then
13504 ld_shlibs=no
13505 cat <<_LT_EOF 1>&2
13506
cristy18304f92009-11-22 15:48:26 +000013507*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013508*** to be unable to reliably create shared libraries on AIX.
13509*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013510*** really care for shared libraries, you may want to modify your PATH
13511*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013512
13513_LT_EOF
13514 fi
13515 ;;
13516
13517 amigaos*)
13518 case $host_cpu in
13519 powerpc)
13520 # see comment about AmigaOS4 .so support
13521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522 archive_expsym_cmds=''
13523 ;;
13524 m68k)
13525 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)'
13526 hardcode_libdir_flag_spec='-L$libdir'
13527 hardcode_minus_L=yes
13528 ;;
13529 esac
13530 ;;
13531
13532 beos*)
13533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13534 allow_undefined_flag=unsupported
13535 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13536 # support --undefined. This deserves some investigation. FIXME
13537 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13538 else
13539 ld_shlibs=no
13540 fi
13541 ;;
13542
13543 cygwin* | mingw* | pw32* | cegcc*)
13544 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13545 # as there is no search path for DLLs.
13546 hardcode_libdir_flag_spec='-L$libdir'
13547 allow_undefined_flag=unsupported
13548 always_export_symbols=no
13549 enable_shared_with_static_runtimes=yes
13550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13551
13552 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13554 # If the export-symbols file already is a .def file (1st line
13555 # is EXPORTS), use it as is; otherwise, prepend...
13556 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13557 cp $export_symbols $output_objdir/$soname.def;
13558 else
13559 echo EXPORTS > $output_objdir/$soname.def;
13560 cat $export_symbols >> $output_objdir/$soname.def;
13561 fi~
13562 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13563 else
13564 ld_shlibs=no
13565 fi
13566 ;;
13567
13568 interix[3-9]*)
13569 hardcode_direct=no
13570 hardcode_shlibpath_var=no
13571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13572 export_dynamic_flag_spec='${wl}-E'
13573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13574 # Instead, shared libraries are loaded at an image base (0x10000000 by
13575 # default) and relocated if they conflict, which is a slow very memory
13576 # consuming and fragmenting process. To avoid this, we pick a random,
13577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13580 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'
13581 ;;
13582
cristy18304f92009-11-22 15:48:26 +000013583 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013584 tmp_diet=no
13585 if test "$host_os" = linux-dietlibc; then
13586 case $cc_basename in
13587 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13588 esac
13589 fi
13590 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13591 && test "$tmp_diet" = no
13592 then
13593 tmp_addflag=
13594 tmp_sharedflag='-shared'
13595 case $cc_basename,$host_cpu in
13596 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013597 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 +000013598 tmp_addflag=' $pic_flag'
13599 ;;
cristy18304f92009-11-22 15:48:26 +000013600 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13601 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 +000013602 tmp_addflag=' $pic_flag -Mnomain' ;;
13603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13604 tmp_addflag=' -i_dynamic' ;;
13605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13606 tmp_addflag=' -i_dynamic -nofor_main' ;;
13607 ifc* | ifort*) # Intel Fortran compiler
13608 tmp_addflag=' -nofor_main' ;;
13609 lf95*) # Lahey Fortran 8.1
13610 whole_archive_flag_spec=
13611 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013612 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013613 tmp_sharedflag='-qmkshrobj'
13614 tmp_addflag= ;;
13615 esac
13616 case `$CC -V 2>&1 | sed 5q` in
13617 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013618 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 +000013619 compiler_needs_object=yes
13620 tmp_sharedflag='-G' ;;
13621 *Sun\ F*) # Sun Fortran 8.3
13622 tmp_sharedflag='-G' ;;
13623 esac
13624 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13625
13626 if test "x$supports_anon_versioning" = xyes; then
13627 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13629 echo "local: *; };" >> $output_objdir/$libname.ver~
13630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13631 fi
13632
13633 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013634 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13637 hardcode_libdir_flag_spec=
13638 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13639 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13640 if test "x$supports_anon_versioning" = xyes; then
13641 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13643 echo "local: *; };" >> $output_objdir/$libname.ver~
13644 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13645 fi
13646 ;;
13647 esac
13648 else
13649 ld_shlibs=no
13650 fi
13651 ;;
13652
13653 netbsd*)
13654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13656 wlarc=
13657 else
13658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13660 fi
13661 ;;
13662
13663 solaris*)
13664 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13665 ld_shlibs=no
13666 cat <<_LT_EOF 1>&2
13667
13668*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13669*** create shared libraries on Solaris systems. Therefore, libtool
13670*** is disabling shared libraries support. We urge you to upgrade GNU
13671*** binutils to release 2.9.1 or newer. Another option is to modify
13672*** your PATH or compiler configuration so that the native linker is
13673*** used, and then restart.
13674
13675_LT_EOF
13676 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13679 else
13680 ld_shlibs=no
13681 fi
13682 ;;
13683
13684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13685 case `$LD -v 2>&1` in
13686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13687 ld_shlibs=no
13688 cat <<_LT_EOF 1>&2
13689
13690*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13691*** reliably create shared libraries on SCO systems. Therefore, libtool
13692*** is disabling shared libraries support. We urge you to upgrade GNU
13693*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13694*** your PATH or compiler configuration so that the native linker is
13695*** used, and then restart.
13696
13697_LT_EOF
13698 ;;
13699 *)
13700 # For security reasons, it is highly recommended that you always
13701 # use absolute paths for naming shared libraries, and exclude the
13702 # DT_RUNPATH tag from executables and libraries. But doing so
13703 # requires that you compile everything twice, which is a pain.
13704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13708 else
13709 ld_shlibs=no
13710 fi
13711 ;;
13712 esac
13713 ;;
13714
13715 sunos4*)
13716 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13717 wlarc=
13718 hardcode_direct=yes
13719 hardcode_shlibpath_var=no
13720 ;;
13721
13722 *)
13723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13726 else
13727 ld_shlibs=no
13728 fi
13729 ;;
13730 esac
13731
13732 if test "$ld_shlibs" = no; then
13733 runpath_var=
13734 hardcode_libdir_flag_spec=
13735 export_dynamic_flag_spec=
13736 whole_archive_flag_spec=
13737 fi
13738 else
13739 # PORTME fill in a description of your system's linker (not GNU ld)
13740 case $host_os in
13741 aix3*)
13742 allow_undefined_flag=unsupported
13743 always_export_symbols=yes
13744 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'
13745 # Note: this linker hardcodes the directories in LIBPATH if there
13746 # are no directories specified by -L.
13747 hardcode_minus_L=yes
13748 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13749 # Neither direct hardcoding nor static linking is supported with a
13750 # broken collect2.
13751 hardcode_direct=unsupported
13752 fi
13753 ;;
13754
13755 aix[4-9]*)
13756 if test "$host_cpu" = ia64; then
13757 # On IA64, the linker does run time linking by default, so we don't
13758 # have to do anything special.
13759 aix_use_runtimelinking=no
13760 exp_sym_flag='-Bexport'
13761 no_entry_flag=""
13762 else
13763 # If we're using GNU nm, then we don't want the "-C" option.
13764 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13765 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013766 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 +000013767 else
13768 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'
13769 fi
13770 aix_use_runtimelinking=no
13771
13772 # Test if we are trying to use run time linking or normal
13773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13774 # need to do runtime linking.
13775 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13776 for ld_flag in $LDFLAGS; do
13777 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13778 aix_use_runtimelinking=yes
13779 break
13780 fi
13781 done
13782 ;;
13783 esac
13784
13785 exp_sym_flag='-bexport'
13786 no_entry_flag='-bnoentry'
13787 fi
13788
13789 # When large executables or shared objects are built, AIX ld can
13790 # have problems creating the table of contents. If linking a library
13791 # or program results in "error TOC overflow" add -mminimal-toc to
13792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13794
13795 archive_cmds=''
13796 hardcode_direct=yes
13797 hardcode_direct_absolute=yes
13798 hardcode_libdir_separator=':'
13799 link_all_deplibs=yes
13800 file_list_spec='${wl}-f,'
13801
13802 if test "$GCC" = yes; then
13803 case $host_os in aix4.[012]|aix4.[012].*)
13804 # We only want to do this on AIX 4.2 and lower, the check
13805 # below for broken collect2 doesn't work under 4.3+
13806 collect2name=`${CC} -print-prog-name=collect2`
13807 if test -f "$collect2name" &&
13808 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13809 then
13810 # We have reworked collect2
13811 :
13812 else
13813 # We have old collect2
13814 hardcode_direct=unsupported
13815 # It fails to find uninstalled libraries when the uninstalled
13816 # path is not listed in the libpath. Setting hardcode_minus_L
13817 # to unsupported forces relinking
13818 hardcode_minus_L=yes
13819 hardcode_libdir_flag_spec='-L$libdir'
13820 hardcode_libdir_separator=
13821 fi
13822 ;;
13823 esac
13824 shared_flag='-shared'
13825 if test "$aix_use_runtimelinking" = yes; then
13826 shared_flag="$shared_flag "'${wl}-G'
13827 fi
13828 else
13829 # not using gcc
13830 if test "$host_cpu" = ia64; then
13831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13832 # chokes on -Wl,-G. The following line is correct:
13833 shared_flag='-G'
13834 else
13835 if test "$aix_use_runtimelinking" = yes; then
13836 shared_flag='${wl}-G'
13837 else
13838 shared_flag='${wl}-bM:SRE'
13839 fi
13840 fi
13841 fi
13842
13843 export_dynamic_flag_spec='${wl}-bexpall'
13844 # It seems that -bexpall does not export symbols beginning with
13845 # underscore (_), so it is better to generate a list of symbols to export.
13846 always_export_symbols=yes
13847 if test "$aix_use_runtimelinking" = yes; then
13848 # Warning - without using the other runtime loading flags (-brtl),
13849 # -berok will link without error, but may produce a broken library.
13850 allow_undefined_flag='-berok'
13851 # Determine the default libpath from the value encoded in an
13852 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013854/* end confdefs.h. */
13855
13856int
13857main ()
13858{
13859
13860 ;
13861 return 0;
13862}
13863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013865
13866lt_aix_libpath_sed='
13867 /Import File Strings/,/^$/ {
13868 /^0/ {
13869 s/^0 *\(.*\)$/\1/
13870 p
13871 }
13872 }'
13873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13874# Check for a 64-bit object if we didn't find anything.
13875if test -z "$aix_libpath"; then
13876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13877fi
cristy3ed852e2009-09-05 21:47:34 +000013878fi
cristy8b350f62009-11-15 23:12:43 +000013879rm -f core conftest.err conftest.$ac_objext \
13880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013881if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13882
13883 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000013884 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 +000013885 else
13886 if test "$host_cpu" = ia64; then
13887 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13888 allow_undefined_flag="-z nodefs"
13889 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"
13890 else
13891 # Determine the default libpath from the value encoded in an
13892 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013894/* end confdefs.h. */
13895
13896int
13897main ()
13898{
13899
13900 ;
13901 return 0;
13902}
13903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013905
13906lt_aix_libpath_sed='
13907 /Import File Strings/,/^$/ {
13908 /^0/ {
13909 s/^0 *\(.*\)$/\1/
13910 p
13911 }
13912 }'
13913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13914# Check for a 64-bit object if we didn't find anything.
13915if test -z "$aix_libpath"; then
13916 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13917fi
cristy3ed852e2009-09-05 21:47:34 +000013918fi
cristy8b350f62009-11-15 23:12:43 +000013919rm -f core conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013921if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13922
13923 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13924 # Warning - without using the other run time loading flags,
13925 # -berok will link without error, but may produce a broken library.
13926 no_undefined_flag=' ${wl}-bernotok'
13927 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000013928 # Exported symbols can be pulled into shared objects from archives
13929 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000013930 archive_cmds_need_lc=yes
13931 # This is similar to how AIX traditionally builds its shared libraries.
13932 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'
13933 fi
13934 fi
13935 ;;
13936
13937 amigaos*)
13938 case $host_cpu in
13939 powerpc)
13940 # see comment about AmigaOS4 .so support
13941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13942 archive_expsym_cmds=''
13943 ;;
13944 m68k)
13945 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)'
13946 hardcode_libdir_flag_spec='-L$libdir'
13947 hardcode_minus_L=yes
13948 ;;
13949 esac
13950 ;;
13951
13952 bsdi[45]*)
13953 export_dynamic_flag_spec=-rdynamic
13954 ;;
13955
13956 cygwin* | mingw* | pw32* | cegcc*)
13957 # When not using gcc, we currently assume that we are using
13958 # Microsoft Visual C++.
13959 # hardcode_libdir_flag_spec is actually meaningless, as there is
13960 # no search path for DLLs.
13961 hardcode_libdir_flag_spec=' '
13962 allow_undefined_flag=unsupported
13963 # Tell ltmain to make .lib files, not .a files.
13964 libext=lib
13965 # Tell ltmain to make .dll files, not .so files.
13966 shrext_cmds=".dll"
13967 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000013968 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013969 # The linker will automatically build a .lib file if we build a DLL.
13970 old_archive_from_new_cmds='true'
13971 # FIXME: Should let the user specify the lib program.
13972 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13973 fix_srcfile_path='`cygpath -w "$srcfile"`'
13974 enable_shared_with_static_runtimes=yes
13975 ;;
13976
13977 darwin* | rhapsody*)
13978
13979
13980 archive_cmds_need_lc=no
13981 hardcode_direct=no
13982 hardcode_automatic=yes
13983 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000013984 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000013985 link_all_deplibs=yes
13986 allow_undefined_flag="$_lt_dar_allow_undefined"
13987 case $cc_basename in
13988 ifort*) _lt_dar_can_shared=yes ;;
13989 *) _lt_dar_can_shared=$GCC ;;
13990 esac
13991 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000013992 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000013993 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13994 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13995 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}"
13996 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}"
13997
13998 else
13999 ld_shlibs=no
14000 fi
14001
14002 ;;
14003
14004 dgux*)
14005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14006 hardcode_libdir_flag_spec='-L$libdir'
14007 hardcode_shlibpath_var=no
14008 ;;
14009
14010 freebsd1*)
14011 ld_shlibs=no
14012 ;;
14013
14014 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14015 # support. Future versions do this automatically, but an explicit c++rt0.o
14016 # does not break anything, and helps significantly (at the cost of a little
14017 # extra space).
14018 freebsd2.2*)
14019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14020 hardcode_libdir_flag_spec='-R$libdir'
14021 hardcode_direct=yes
14022 hardcode_shlibpath_var=no
14023 ;;
14024
14025 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14026 freebsd2*)
14027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14028 hardcode_direct=yes
14029 hardcode_minus_L=yes
14030 hardcode_shlibpath_var=no
14031 ;;
14032
14033 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14034 freebsd* | dragonfly*)
14035 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14036 hardcode_libdir_flag_spec='-R$libdir'
14037 hardcode_direct=yes
14038 hardcode_shlibpath_var=no
14039 ;;
14040
14041 hpux9*)
14042 if test "$GCC" = yes; then
14043 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'
14044 else
14045 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'
14046 fi
14047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14048 hardcode_libdir_separator=:
14049 hardcode_direct=yes
14050
14051 # hardcode_minus_L: Not really in the search PATH,
14052 # but as the default location of the library.
14053 hardcode_minus_L=yes
14054 export_dynamic_flag_spec='${wl}-E'
14055 ;;
14056
14057 hpux10*)
cristy18304f92009-11-22 15:48:26 +000014058 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014059 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14060 else
14061 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14062 fi
14063 if test "$with_gnu_ld" = no; then
14064 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14065 hardcode_libdir_flag_spec_ld='+b $libdir'
14066 hardcode_libdir_separator=:
14067 hardcode_direct=yes
14068 hardcode_direct_absolute=yes
14069 export_dynamic_flag_spec='${wl}-E'
14070 # hardcode_minus_L: Not really in the search PATH,
14071 # but as the default location of the library.
14072 hardcode_minus_L=yes
14073 fi
14074 ;;
14075
14076 hpux11*)
cristy18304f92009-11-22 15:48:26 +000014077 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014078 case $host_cpu in
14079 hppa*64*)
14080 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14081 ;;
14082 ia64*)
14083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14084 ;;
14085 *)
14086 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14087 ;;
14088 esac
14089 else
14090 case $host_cpu in
14091 hppa*64*)
14092 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14093 ;;
14094 ia64*)
14095 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14096 ;;
14097 *)
cristy18304f92009-11-22 15:48:26 +000014098 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 +000014099 ;;
14100 esac
14101 fi
14102 if test "$with_gnu_ld" = no; then
14103 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14104 hardcode_libdir_separator=:
14105
14106 case $host_cpu in
14107 hppa*64*|ia64*)
14108 hardcode_direct=no
14109 hardcode_shlibpath_var=no
14110 ;;
14111 *)
14112 hardcode_direct=yes
14113 hardcode_direct_absolute=yes
14114 export_dynamic_flag_spec='${wl}-E'
14115
14116 # hardcode_minus_L: Not really in the search PATH,
14117 # but as the default location of the library.
14118 hardcode_minus_L=yes
14119 ;;
14120 esac
14121 fi
14122 ;;
14123
14124 irix5* | irix6* | nonstopux*)
14125 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000014126 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 +000014127 # Try to use the -exported_symbol ld option, if it does not
14128 # work, assume that -exports_file does not work either and
14129 # implicitly export all symbols.
14130 save_LDFLAGS="$LDFLAGS"
14131 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014134int foo(void) {}
14135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014136if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000014137 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 +000014138
cristy3ed852e2009-09-05 21:47:34 +000014139fi
cristy8b350f62009-11-15 23:12:43 +000014140rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014142 LDFLAGS="$save_LDFLAGS"
14143 else
cristy18304f92009-11-22 15:48:26 +000014144 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'
14145 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 +000014146 fi
14147 archive_cmds_need_lc='no'
14148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14149 hardcode_libdir_separator=:
14150 inherit_rpath=yes
14151 link_all_deplibs=yes
14152 ;;
14153
14154 netbsd*)
14155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14157 else
14158 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14159 fi
14160 hardcode_libdir_flag_spec='-R$libdir'
14161 hardcode_direct=yes
14162 hardcode_shlibpath_var=no
14163 ;;
14164
14165 newsos6)
14166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14167 hardcode_direct=yes
14168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14169 hardcode_libdir_separator=:
14170 hardcode_shlibpath_var=no
14171 ;;
14172
14173 *nto* | *qnx*)
14174 ;;
14175
14176 openbsd*)
14177 if test -f /usr/libexec/ld.so; then
14178 hardcode_direct=yes
14179 hardcode_shlibpath_var=no
14180 hardcode_direct_absolute=yes
14181 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14185 export_dynamic_flag_spec='${wl}-E'
14186 else
14187 case $host_os in
14188 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14190 hardcode_libdir_flag_spec='-R$libdir'
14191 ;;
14192 *)
14193 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14194 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14195 ;;
14196 esac
14197 fi
14198 else
14199 ld_shlibs=no
14200 fi
14201 ;;
14202
14203 os2*)
14204 hardcode_libdir_flag_spec='-L$libdir'
14205 hardcode_minus_L=yes
14206 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000014207 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 +000014208 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14209 ;;
14210
14211 osf3*)
14212 if test "$GCC" = yes; then
14213 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014214 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 +000014215 else
14216 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014217 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 +000014218 fi
14219 archive_cmds_need_lc='no'
14220 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14221 hardcode_libdir_separator=:
14222 ;;
14223
14224 osf4* | osf5*) # as osf3* with the addition of -msym flag
14225 if test "$GCC" = yes; then
14226 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014227 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 +000014228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14229 else
14230 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014231 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 +000014232 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 +000014233 $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 +000014234
14235 # Both c and cxx compiler support -rpath directly
14236 hardcode_libdir_flag_spec='-rpath $libdir'
14237 fi
14238 archive_cmds_need_lc='no'
14239 hardcode_libdir_separator=:
14240 ;;
14241
14242 solaris*)
14243 no_undefined_flag=' -z defs'
14244 if test "$GCC" = yes; then
14245 wlarc='${wl}'
14246 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14247 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14248 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14249 else
14250 case `$CC -V 2>&1` in
14251 *"Compilers 5.0"*)
14252 wlarc=''
14253 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14254 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14255 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14256 ;;
14257 *)
14258 wlarc='${wl}'
14259 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14261 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14262 ;;
14263 esac
14264 fi
14265 hardcode_libdir_flag_spec='-R$libdir'
14266 hardcode_shlibpath_var=no
14267 case $host_os in
14268 solaris2.[0-5] | solaris2.[0-5].*) ;;
14269 *)
14270 # The compiler driver will combine and reorder linker options,
14271 # but understands `-z linker_flag'. GCC discards it without `$wl',
14272 # but is careful enough not to reorder.
14273 # Supported since Solaris 2.6 (maybe 2.5.1?)
14274 if test "$GCC" = yes; then
14275 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14276 else
14277 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14278 fi
14279 ;;
14280 esac
14281 link_all_deplibs=yes
14282 ;;
14283
14284 sunos4*)
14285 if test "x$host_vendor" = xsequent; then
14286 # Use $CC to link under sequent, because it throws in some extra .o
14287 # files that make .init and .fini sections work.
14288 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14289 else
14290 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14291 fi
14292 hardcode_libdir_flag_spec='-L$libdir'
14293 hardcode_direct=yes
14294 hardcode_minus_L=yes
14295 hardcode_shlibpath_var=no
14296 ;;
14297
14298 sysv4)
14299 case $host_vendor in
14300 sni)
14301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14302 hardcode_direct=yes # is this really true???
14303 ;;
14304 siemens)
14305 ## LD is ld it makes a PLAMLIB
14306 ## CC just makes a GrossModule.
14307 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14308 reload_cmds='$CC -r -o $output$reload_objs'
14309 hardcode_direct=no
14310 ;;
14311 motorola)
14312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14314 ;;
14315 esac
14316 runpath_var='LD_RUN_PATH'
14317 hardcode_shlibpath_var=no
14318 ;;
14319
14320 sysv4.3*)
14321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14322 hardcode_shlibpath_var=no
14323 export_dynamic_flag_spec='-Bexport'
14324 ;;
14325
14326 sysv4*MP*)
14327 if test -d /usr/nec; then
14328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14329 hardcode_shlibpath_var=no
14330 runpath_var=LD_RUN_PATH
14331 hardcode_runpath_var=yes
14332 ld_shlibs=yes
14333 fi
14334 ;;
14335
14336 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14337 no_undefined_flag='${wl}-z,text'
14338 archive_cmds_need_lc=no
14339 hardcode_shlibpath_var=no
14340 runpath_var='LD_RUN_PATH'
14341
14342 if test "$GCC" = yes; then
14343 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14344 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14345 else
14346 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14347 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14348 fi
14349 ;;
14350
14351 sysv5* | sco3.2v5* | sco5v6*)
14352 # Note: We can NOT use -z defs as we might desire, because we do not
14353 # link with -lc, and that would cause any symbols used from libc to
14354 # always be unresolved, which means just about no library would
14355 # ever link correctly. If we're not using GNU ld we use -z text
14356 # though, which does catch some bad symbols but isn't as heavy-handed
14357 # as -z defs.
14358 no_undefined_flag='${wl}-z,text'
14359 allow_undefined_flag='${wl}-z,nodefs'
14360 archive_cmds_need_lc=no
14361 hardcode_shlibpath_var=no
14362 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14363 hardcode_libdir_separator=':'
14364 link_all_deplibs=yes
14365 export_dynamic_flag_spec='${wl}-Bexport'
14366 runpath_var='LD_RUN_PATH'
14367
14368 if test "$GCC" = yes; then
14369 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14370 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14371 else
14372 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14373 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14374 fi
14375 ;;
14376
14377 uts4*)
14378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14379 hardcode_libdir_flag_spec='-L$libdir'
14380 hardcode_shlibpath_var=no
14381 ;;
14382
14383 *)
14384 ld_shlibs=no
14385 ;;
14386 esac
14387
14388 if test x$host_vendor = xsni; then
14389 case $host in
14390 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14391 export_dynamic_flag_spec='${wl}-Blargedynsym'
14392 ;;
14393 esac
14394 fi
14395 fi
14396
cristy8b350f62009-11-15 23:12:43 +000014397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014398$as_echo "$ld_shlibs" >&6; }
14399test "$ld_shlibs" = no && can_build_shared=no
14400
14401with_gnu_ld=$with_gnu_ld
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417#
14418# Do we need to explicitly link libc?
14419#
14420case "x$archive_cmds_need_lc" in
14421x|xyes)
14422 # Assume -lc should be added
14423 archive_cmds_need_lc=yes
14424
14425 if test "$enable_shared" = yes && test "$GCC" = yes; then
14426 case $archive_cmds in
14427 *'~'*)
14428 # FIXME: we may have to deal with multi-command sequences.
14429 ;;
14430 '$CC '*)
14431 # Test whether the compiler implicitly links with -lc since on some
14432 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14433 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014435$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014436 $RM conftest*
14437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014438
cristy18304f92009-11-22 15:48:26 +000014439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014440 (eval $ac_compile) 2>&5
14441 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14443 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014444 soname=conftest
14445 lib=conftest
14446 libobjs=conftest.$ac_objext
14447 deplibs=
14448 wl=$lt_prog_compiler_wl
14449 pic_flag=$lt_prog_compiler_pic
14450 compiler_flags=-v
14451 linker_flags=-v
14452 verstring=
14453 output_objdir=.
14454 libname=conftest
14455 lt_save_allow_undefined_flag=$allow_undefined_flag
14456 allow_undefined_flag=
14457 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 +000014458 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14459 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14461 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014462 then
14463 archive_cmds_need_lc=no
14464 else
14465 archive_cmds_need_lc=yes
14466 fi
14467 allow_undefined_flag=$lt_save_allow_undefined_flag
14468 else
14469 cat conftest.err 1>&5
14470 fi
14471 $RM conftest*
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14473$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014474 ;;
14475 esac
14476 fi
14477 ;;
14478esac
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
cristy8b350f62009-11-15 23:12:43 +000014636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014637$as_echo_n "checking dynamic linker characteristics... " >&6; }
14638
14639if test "$GCC" = yes; then
14640 case $host_os in
14641 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14642 *) lt_awk_arg="/^libraries:/" ;;
14643 esac
cristy18304f92009-11-22 15:48:26 +000014644 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14645 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014646 # if the path contains ";" then we assume it to be the separator
14647 # otherwise default to the standard path separator (i.e. ":") - it is
14648 # assumed that no part of a normal pathname contains ";" but that should
14649 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014650 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14651 else
14652 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14653 fi
cristy3ed852e2009-09-05 21:47:34 +000014654 # Ok, now we have the path, separated by spaces, we can step through it
14655 # and add multilib dir if necessary.
14656 lt_tmp_lt_search_path_spec=
14657 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14658 for lt_sys_path in $lt_search_path_spec; do
14659 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14660 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14661 else
14662 test -d "$lt_sys_path" && \
14663 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14664 fi
14665 done
cristy18304f92009-11-22 15:48:26 +000014666 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014667BEGIN {RS=" "; FS="/|\n";} {
14668 lt_foo="";
14669 lt_count=0;
14670 for (lt_i = NF; lt_i > 0; lt_i--) {
14671 if ($lt_i != "" && $lt_i != ".") {
14672 if ($lt_i == "..") {
14673 lt_count++;
14674 } else {
14675 if (lt_count == 0) {
14676 lt_foo="/" $lt_i lt_foo;
14677 } else {
14678 lt_count--;
14679 }
14680 }
14681 }
14682 }
14683 if (lt_foo != "") { lt_freq[lt_foo]++; }
14684 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14685}'`
cristy18304f92009-11-22 15:48:26 +000014686 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014687else
14688 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14689fi
14690library_names_spec=
14691libname_spec='lib$name'
14692soname_spec=
14693shrext_cmds=".so"
14694postinstall_cmds=
14695postuninstall_cmds=
14696finish_cmds=
14697finish_eval=
14698shlibpath_var=
14699shlibpath_overrides_runpath=unknown
14700version_type=none
14701dynamic_linker="$host_os ld.so"
14702sys_lib_dlsearch_path_spec="/lib /usr/lib"
14703need_lib_prefix=unknown
14704hardcode_into_libs=no
14705
14706# when you set need_version to no, make sure it does not cause -set_version
14707# flags to be left without arguments
14708need_version=unknown
14709
14710case $host_os in
14711aix3*)
14712 version_type=linux
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14714 shlibpath_var=LIBPATH
14715
14716 # AIX 3 has no versioning support, so we append a major version to the name.
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 ;;
14719
14720aix[4-9]*)
14721 version_type=linux
14722 need_lib_prefix=no
14723 need_version=no
14724 hardcode_into_libs=yes
14725 if test "$host_cpu" = ia64; then
14726 # AIX 5 supports IA64
14727 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 else
14730 # With GCC up to 2.95.x, collect2 would create an import file
14731 # for dependence libraries. The import file would start with
14732 # the line `#! .'. This would cause the generated library to
14733 # depend on `.', always an invalid library. This was fixed in
14734 # development snapshots of GCC prior to 3.0.
14735 case $host_os in
14736 aix4 | aix4.[01] | aix4.[01].*)
14737 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14738 echo ' yes '
14739 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14740 :
14741 else
14742 can_build_shared=no
14743 fi
14744 ;;
14745 esac
14746 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14747 # soname into executable. Probably we can add versioning support to
14748 # collect2, so additional links can be useful in future.
14749 if test "$aix_use_runtimelinking" = yes; then
14750 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14751 # instead of lib<name>.a to let people know that these are not
14752 # typical AIX shared libraries.
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754 else
14755 # We preserve .a as extension for shared libraries through AIX4.2
14756 # and later when we are not doing run time linking.
14757 library_names_spec='${libname}${release}.a $libname.a'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 fi
14760 shlibpath_var=LIBPATH
14761 fi
14762 ;;
14763
14764amigaos*)
14765 case $host_cpu in
14766 powerpc)
14767 # Since July 2007 AmigaOS4 officially supports .so libraries.
14768 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770 ;;
14771 m68k)
14772 library_names_spec='$libname.ixlibrary $libname.a'
14773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014774 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 +000014775 ;;
14776 esac
14777 ;;
14778
14779beos*)
14780 library_names_spec='${libname}${shared_ext}'
14781 dynamic_linker="$host_os ld.so"
14782 shlibpath_var=LIBRARY_PATH
14783 ;;
14784
14785bsdi[45]*)
14786 version_type=linux
14787 need_version=no
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14794 # the default ld.so.conf also contains /usr/contrib/lib and
14795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14796 # libtool to hard-code these into programs
14797 ;;
14798
14799cygwin* | mingw* | pw32* | cegcc*)
14800 version_type=windows
14801 shrext_cmds=".dll"
14802 need_version=no
14803 need_lib_prefix=no
14804
14805 case $GCC,$host_os in
14806 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14807 library_names_spec='$libname.dll.a'
14808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14809 postinstall_cmds='base_file=`basename \${file}`~
14810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14811 dldir=$destdir/`dirname \$dlpath`~
14812 test -d \$dldir || mkdir -p \$dldir~
14813 $install_prog $dir/$dlname \$dldir/$dlname~
14814 chmod a+x \$dldir/$dlname~
14815 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14816 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14817 fi'
14818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14819 dlpath=$dir/\$dldll~
14820 $RM \$dlpath'
14821 shlibpath_overrides_runpath=yes
14822
14823 case $host_os in
14824 cygwin*)
14825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014828 ;;
14829 mingw* | cegcc*)
14830 # MinGW DLLs use traditional 'lib' prefix
14831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014832 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14833 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14834 # It is most probably a Windows format PATH printed by
14835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14836 # path with ; separators, and with drive letters. We can handle the
14837 # drive letters (cygwin fileutils understands them), so leave them,
14838 # especially as we might pass files found there to a mingw objdump,
14839 # which wouldn't understand a cygwinified path. Ahh.
14840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14841 else
14842 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14843 fi
cristy3ed852e2009-09-05 21:47:34 +000014844 ;;
14845 pw32*)
14846 # pw32 DLLs use 'pw' prefix rather than 'lib'
14847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14848 ;;
14849 esac
14850 ;;
14851
14852 *)
14853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14854 ;;
14855 esac
14856 dynamic_linker='Win32 ld.exe'
14857 # FIXME: first we should search . and the directory the executable is in
14858 shlibpath_var=PATH
14859 ;;
14860
14861darwin* | rhapsody*)
14862 dynamic_linker="$host_os dyld"
14863 version_type=darwin
14864 need_lib_prefix=no
14865 need_version=no
14866 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14867 soname_spec='${libname}${release}${major}$shared_ext'
14868 shlibpath_overrides_runpath=yes
14869 shlibpath_var=DYLD_LIBRARY_PATH
14870 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14871
14872 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14873 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14874 ;;
14875
14876dgux*)
14877 version_type=linux
14878 need_lib_prefix=no
14879 need_version=no
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 ;;
14884
14885freebsd1*)
14886 dynamic_linker=no
14887 ;;
14888
14889freebsd* | dragonfly*)
14890 # DragonFly does not have aout. When/if they implement a new
14891 # versioning mechanism, adjust this.
14892 if test -x /usr/bin/objformat; then
14893 objformat=`/usr/bin/objformat`
14894 else
14895 case $host_os in
14896 freebsd[123]*) objformat=aout ;;
14897 *) objformat=elf ;;
14898 esac
14899 fi
14900 version_type=freebsd-$objformat
14901 case $version_type in
14902 freebsd-elf*)
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14904 need_version=no
14905 need_lib_prefix=no
14906 ;;
14907 freebsd-*)
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14909 need_version=yes
14910 ;;
14911 esac
14912 shlibpath_var=LD_LIBRARY_PATH
14913 case $host_os in
14914 freebsd2*)
14915 shlibpath_overrides_runpath=yes
14916 ;;
14917 freebsd3.[01]* | freebsdelf3.[01]*)
14918 shlibpath_overrides_runpath=yes
14919 hardcode_into_libs=yes
14920 ;;
14921 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14922 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14923 shlibpath_overrides_runpath=no
14924 hardcode_into_libs=yes
14925 ;;
14926 *) # from 4.6 on, and DragonFly
14927 shlibpath_overrides_runpath=yes
14928 hardcode_into_libs=yes
14929 ;;
14930 esac
14931 ;;
14932
14933gnu*)
14934 version_type=linux
14935 need_lib_prefix=no
14936 need_version=no
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 hardcode_into_libs=yes
14941 ;;
14942
14943hpux9* | hpux10* | hpux11*)
14944 # Give a soname corresponding to the major version so that dld.sl refuses to
14945 # link against other versions.
14946 version_type=sunos
14947 need_lib_prefix=no
14948 need_version=no
14949 case $host_cpu in
14950 ia64*)
14951 shrext_cmds='.so'
14952 hardcode_into_libs=yes
14953 dynamic_linker="$host_os dld.so"
14954 shlibpath_var=LD_LIBRARY_PATH
14955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14957 soname_spec='${libname}${release}${shared_ext}$major'
14958 if test "X$HPUX_IA64_MODE" = X32; then
14959 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14960 else
14961 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14962 fi
14963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14964 ;;
14965 hppa*64*)
14966 shrext_cmds='.sl'
14967 hardcode_into_libs=yes
14968 dynamic_linker="$host_os dld.sl"
14969 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972 soname_spec='${libname}${release}${shared_ext}$major'
14973 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14975 ;;
14976 *)
14977 shrext_cmds='.sl'
14978 dynamic_linker="$host_os dld.sl"
14979 shlibpath_var=SHLIB_PATH
14980 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 ;;
14984 esac
cristy18304f92009-11-22 15:48:26 +000014985 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000014986 postinstall_cmds='chmod 555 $lib'
14987 ;;
14988
14989interix[3-9]*)
14990 version_type=linux
14991 need_lib_prefix=no
14992 need_version=no
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 shlibpath_overrides_runpath=no
14998 hardcode_into_libs=yes
14999 ;;
15000
15001irix5* | irix6* | nonstopux*)
15002 case $host_os in
15003 nonstopux*) version_type=nonstopux ;;
15004 *)
15005 if test "$lt_cv_prog_gnu_ld" = yes; then
15006 version_type=linux
15007 else
15008 version_type=irix
15009 fi ;;
15010 esac
15011 need_lib_prefix=no
15012 need_version=no
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15015 case $host_os in
15016 irix5* | nonstopux*)
15017 libsuff= shlibsuff=
15018 ;;
15019 *)
15020 case $LD in # libtool.m4 will add one of these switches to LD
15021 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15022 libsuff= shlibsuff= libmagic=32-bit;;
15023 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15024 libsuff=32 shlibsuff=N32 libmagic=N32;;
15025 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15026 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15027 *) libsuff= shlibsuff= libmagic=never-match;;
15028 esac
15029 ;;
15030 esac
15031 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15032 shlibpath_overrides_runpath=no
15033 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15034 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15035 hardcode_into_libs=yes
15036 ;;
15037
15038# No shared lib support for Linux oldld, aout, or coff.
15039linux*oldld* | linux*aout* | linux*coff*)
15040 dynamic_linker=no
15041 ;;
15042
15043# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000015044linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015045 version_type=linux
15046 need_lib_prefix=no
15047 need_version=no
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15051 shlibpath_var=LD_LIBRARY_PATH
15052 shlibpath_overrides_runpath=no
15053 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000015054 save_LDFLAGS=$LDFLAGS
15055 save_libdir=$libdir
15056 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15057 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015059/* end confdefs.h. */
15060
15061int
15062main ()
15063{
15064
15065 ;
15066 return 0;
15067}
15068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015069if ac_fn_c_try_link "$LINENO"; then :
15070 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000015071 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015072fi
cristy3ed852e2009-09-05 21:47:34 +000015073fi
cristy8b350f62009-11-15 23:12:43 +000015074rm -f core conftest.err conftest.$ac_objext \
15075 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000015076 LDFLAGS=$save_LDFLAGS
15077 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015078
15079 # This implies no fast_install, which is unacceptable.
15080 # Some rework will be needed to allow for fast_install
15081 # before this can be enabled.
15082 hardcode_into_libs=yes
15083
cristy679ed8e2009-12-05 02:37:41 +000015084 # Add ABI-specific directories to the system library path.
15085 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15086
cristy3ed852e2009-09-05 21:47:34 +000015087 # Append ld.so.conf contents to the search path
15088 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000015089 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
cristy679ed8e2009-12-05 02:37:41 +000015090 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015091 fi
15092
15093 # We used to test for /lib/ld.so.1 and disable shared libraries on
15094 # powerpc, because MkLinux only supported shared libraries with the
15095 # GNU dynamic linker. Since this was broken with cross compilers,
15096 # most powerpc-linux boxes support dynamic linking these days and
15097 # people can always --disable-shared, the test was removed, and we
15098 # assume the GNU/Linux dynamic linker is in use.
15099 dynamic_linker='GNU/Linux ld.so'
15100 ;;
15101
15102netbsd*)
15103 version_type=sunos
15104 need_lib_prefix=no
15105 need_version=no
15106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15109 dynamic_linker='NetBSD (a.out) ld.so'
15110 else
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 dynamic_linker='NetBSD ld.elf_so'
15114 fi
15115 shlibpath_var=LD_LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes
15117 hardcode_into_libs=yes
15118 ;;
15119
15120newsos6)
15121 version_type=linux
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=yes
15125 ;;
15126
15127*nto* | *qnx*)
15128 version_type=qnx
15129 need_lib_prefix=no
15130 need_version=no
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=no
15135 hardcode_into_libs=yes
15136 dynamic_linker='ldqnx.so'
15137 ;;
15138
15139openbsd*)
15140 version_type=sunos
15141 sys_lib_dlsearch_path_spec="/usr/lib"
15142 need_lib_prefix=no
15143 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15144 case $host_os in
15145 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15146 *) need_version=no ;;
15147 esac
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15152 case $host_os in
15153 openbsd2.[89] | openbsd2.[89].*)
15154 shlibpath_overrides_runpath=no
15155 ;;
15156 *)
15157 shlibpath_overrides_runpath=yes
15158 ;;
15159 esac
15160 else
15161 shlibpath_overrides_runpath=yes
15162 fi
15163 ;;
15164
15165os2*)
15166 libname_spec='$name'
15167 shrext_cmds=".dll"
15168 need_lib_prefix=no
15169 library_names_spec='$libname${shared_ext} $libname.a'
15170 dynamic_linker='OS/2 ld.exe'
15171 shlibpath_var=LIBPATH
15172 ;;
15173
15174osf3* | osf4* | osf5*)
15175 version_type=osf
15176 need_lib_prefix=no
15177 need_version=no
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 shlibpath_var=LD_LIBRARY_PATH
15181 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15182 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15183 ;;
15184
15185rdos*)
15186 dynamic_linker=no
15187 ;;
15188
15189solaris*)
15190 version_type=linux
15191 need_lib_prefix=no
15192 need_version=no
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=yes
15197 hardcode_into_libs=yes
15198 # ldd complains unless libraries are executable
15199 postinstall_cmds='chmod +x $lib'
15200 ;;
15201
15202sunos4*)
15203 version_type=sunos
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15205 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath=yes
15208 if test "$with_gnu_ld" = yes; then
15209 need_lib_prefix=no
15210 fi
15211 need_version=yes
15212 ;;
15213
15214sysv4 | sysv4.3*)
15215 version_type=linux
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 case $host_vendor in
15220 sni)
15221 shlibpath_overrides_runpath=no
15222 need_lib_prefix=no
15223 runpath_var=LD_RUN_PATH
15224 ;;
15225 siemens)
15226 need_lib_prefix=no
15227 ;;
15228 motorola)
15229 need_lib_prefix=no
15230 need_version=no
15231 shlibpath_overrides_runpath=no
15232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15233 ;;
15234 esac
15235 ;;
15236
15237sysv4*MP*)
15238 if test -d /usr/nec ;then
15239 version_type=linux
15240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15241 soname_spec='$libname${shared_ext}.$major'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 fi
15244 ;;
15245
15246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15247 version_type=freebsd-elf
15248 need_lib_prefix=no
15249 need_version=no
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=yes
15254 hardcode_into_libs=yes
15255 if test "$with_gnu_ld" = yes; then
15256 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15257 else
15258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15259 case $host_os in
15260 sco3.2v5*)
15261 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15262 ;;
15263 esac
15264 fi
15265 sys_lib_dlsearch_path_spec='/usr/lib'
15266 ;;
15267
15268tpf*)
15269 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15270 version_type=linux
15271 need_lib_prefix=no
15272 need_version=no
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 shlibpath_overrides_runpath=no
15276 hardcode_into_libs=yes
15277 ;;
15278
15279uts4*)
15280 version_type=linux
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 ;;
15285
15286*)
15287 dynamic_linker=no
15288 ;;
15289esac
cristy8b350f62009-11-15 23:12:43 +000015290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015291$as_echo "$dynamic_linker" >&6; }
15292test "$dynamic_linker" = no && can_build_shared=no
15293
15294variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15295if test "$GCC" = yes; then
15296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15297fi
15298
15299if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15300 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15301fi
15302if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15303 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15304fi
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
cristy8b350f62009-11-15 23:12:43 +000015392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015393$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15394hardcode_action=
15395if test -n "$hardcode_libdir_flag_spec" ||
15396 test -n "$runpath_var" ||
15397 test "X$hardcode_automatic" = "Xyes" ; then
15398
15399 # We can hardcode non-existent directories.
15400 if test "$hardcode_direct" != no &&
15401 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15402 # have to relink, otherwise we might link with an installed library
15403 # when we should be linking with a yet-to-be-installed one
15404 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15405 test "$hardcode_minus_L" != no; then
15406 # Linking always hardcodes the temporary library directory.
15407 hardcode_action=relink
15408 else
15409 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15410 hardcode_action=immediate
15411 fi
15412else
15413 # We cannot hardcode anything, or else we can only hardcode existing
15414 # directories.
15415 hardcode_action=unsupported
15416fi
cristy8b350f62009-11-15 23:12:43 +000015417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015418$as_echo "$hardcode_action" >&6; }
15419
15420if test "$hardcode_action" = relink ||
15421 test "$inherit_rpath" = yes; then
15422 # Fast installation is not supported
15423 enable_fast_install=no
15424elif test "$shlibpath_overrides_runpath" = yes ||
15425 test "$enable_shared" = no; then
15426 # Fast installation is not necessary
15427 enable_fast_install=needless
15428fi
15429
15430
15431
15432
15433
15434
15435 if test "x$enable_dlopen" != xyes; then
15436 enable_dlopen=unknown
15437 enable_dlopen_self=unknown
15438 enable_dlopen_self_static=unknown
15439else
15440 lt_cv_dlopen=no
15441 lt_cv_dlopen_libs=
15442
15443 case $host_os in
15444 beos*)
15445 lt_cv_dlopen="load_add_on"
15446 lt_cv_dlopen_libs=
15447 lt_cv_dlopen_self=yes
15448 ;;
15449
15450 mingw* | pw32* | cegcc*)
15451 lt_cv_dlopen="LoadLibrary"
15452 lt_cv_dlopen_libs=
15453 ;;
15454
15455 cygwin*)
15456 lt_cv_dlopen="dlopen"
15457 lt_cv_dlopen_libs=
15458 ;;
15459
15460 darwin*)
15461 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015463$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015464if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015465 $as_echo_n "(cached) " >&6
15466else
15467 ac_check_lib_save_LIBS=$LIBS
15468LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015470/* end confdefs.h. */
15471
15472/* Override any GCC internal prototype to avoid an error.
15473 Use char because int might match the return type of a GCC
15474 builtin and then its argument prototype would still apply. */
15475#ifdef __cplusplus
15476extern "C"
15477#endif
15478char dlopen ();
15479int
15480main ()
15481{
15482return dlopen ();
15483 ;
15484 return 0;
15485}
15486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015487if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015488 ac_cv_lib_dl_dlopen=yes
15489else
cristy8b350f62009-11-15 23:12:43 +000015490 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015491fi
cristy8b350f62009-11-15 23:12:43 +000015492rm -f core conftest.err conftest.$ac_objext \
15493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015494LIBS=$ac_check_lib_save_LIBS
15495fi
cristy8b350f62009-11-15 23:12:43 +000015496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015497$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015498if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15500else
15501
15502 lt_cv_dlopen="dyld"
15503 lt_cv_dlopen_libs=
15504 lt_cv_dlopen_self=yes
15505
15506fi
15507
15508 ;;
15509
15510 *)
cristy8b350f62009-11-15 23:12:43 +000015511 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15512if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015513 lt_cv_dlopen="shl_load"
15514else
cristy8b350f62009-11-15 23:12:43 +000015515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015516$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015517if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015518 $as_echo_n "(cached) " >&6
15519else
15520 ac_check_lib_save_LIBS=$LIBS
15521LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015523/* end confdefs.h. */
15524
15525/* Override any GCC internal prototype to avoid an error.
15526 Use char because int might match the return type of a GCC
15527 builtin and then its argument prototype would still apply. */
15528#ifdef __cplusplus
15529extern "C"
15530#endif
15531char shl_load ();
15532int
15533main ()
15534{
15535return shl_load ();
15536 ;
15537 return 0;
15538}
15539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015541 ac_cv_lib_dld_shl_load=yes
15542else
cristy8b350f62009-11-15 23:12:43 +000015543 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015544fi
cristy8b350f62009-11-15 23:12:43 +000015545rm -f core conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015547LIBS=$ac_check_lib_save_LIBS
15548fi
cristy8b350f62009-11-15 23:12:43 +000015549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015550$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015551if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015552 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15553else
cristy8b350f62009-11-15 23:12:43 +000015554 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15555if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015556 lt_cv_dlopen="dlopen"
15557else
cristy8b350f62009-11-15 23:12:43 +000015558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015559$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015560if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015561 $as_echo_n "(cached) " >&6
15562else
15563 ac_check_lib_save_LIBS=$LIBS
15564LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015566/* end confdefs.h. */
15567
15568/* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15571#ifdef __cplusplus
15572extern "C"
15573#endif
15574char dlopen ();
15575int
15576main ()
15577{
15578return dlopen ();
15579 ;
15580 return 0;
15581}
15582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015583if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015584 ac_cv_lib_dl_dlopen=yes
15585else
cristy8b350f62009-11-15 23:12:43 +000015586 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015587fi
cristy8b350f62009-11-15 23:12:43 +000015588rm -f core conftest.err conftest.$ac_objext \
15589 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015590LIBS=$ac_check_lib_save_LIBS
15591fi
cristy8b350f62009-11-15 23:12:43 +000015592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015593$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015594if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015595 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15596else
cristy8b350f62009-11-15 23:12:43 +000015597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015598$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015599if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015600 $as_echo_n "(cached) " >&6
15601else
15602 ac_check_lib_save_LIBS=$LIBS
15603LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015605/* end confdefs.h. */
15606
15607/* Override any GCC internal prototype to avoid an error.
15608 Use char because int might match the return type of a GCC
15609 builtin and then its argument prototype would still apply. */
15610#ifdef __cplusplus
15611extern "C"
15612#endif
15613char dlopen ();
15614int
15615main ()
15616{
15617return dlopen ();
15618 ;
15619 return 0;
15620}
15621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015623 ac_cv_lib_svld_dlopen=yes
15624else
cristy8b350f62009-11-15 23:12:43 +000015625 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015626fi
cristy8b350f62009-11-15 23:12:43 +000015627rm -f core conftest.err conftest.$ac_objext \
15628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015629LIBS=$ac_check_lib_save_LIBS
15630fi
cristy8b350f62009-11-15 23:12:43 +000015631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015632$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015633if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15635else
cristy8b350f62009-11-15 23:12:43 +000015636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015637$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015638if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015639 $as_echo_n "(cached) " >&6
15640else
15641 ac_check_lib_save_LIBS=$LIBS
15642LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015644/* end confdefs.h. */
15645
15646/* Override any GCC internal prototype to avoid an error.
15647 Use char because int might match the return type of a GCC
15648 builtin and then its argument prototype would still apply. */
15649#ifdef __cplusplus
15650extern "C"
15651#endif
15652char dld_link ();
15653int
15654main ()
15655{
15656return dld_link ();
15657 ;
15658 return 0;
15659}
15660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015662 ac_cv_lib_dld_dld_link=yes
15663else
cristy8b350f62009-11-15 23:12:43 +000015664 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015665fi
cristy8b350f62009-11-15 23:12:43 +000015666rm -f core conftest.err conftest.$ac_objext \
15667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015668LIBS=$ac_check_lib_save_LIBS
15669fi
cristy8b350f62009-11-15 23:12:43 +000015670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015671$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015672if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015673 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15674fi
15675
15676
15677fi
15678
15679
15680fi
15681
15682
15683fi
15684
15685
15686fi
15687
15688
15689fi
15690
15691 ;;
15692 esac
15693
15694 if test "x$lt_cv_dlopen" != xno; then
15695 enable_dlopen=yes
15696 else
15697 enable_dlopen=no
15698 fi
15699
15700 case $lt_cv_dlopen in
15701 dlopen)
15702 save_CPPFLAGS="$CPPFLAGS"
15703 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15704
15705 save_LDFLAGS="$LDFLAGS"
15706 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15707
15708 save_LIBS="$LIBS"
15709 LIBS="$lt_cv_dlopen_libs $LIBS"
15710
cristy8b350f62009-11-15 23:12:43 +000015711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015712$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015713if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015714 $as_echo_n "(cached) " >&6
15715else
15716 if test "$cross_compiling" = yes; then :
15717 lt_cv_dlopen_self=cross
15718else
15719 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15720 lt_status=$lt_dlunknown
15721 cat > conftest.$ac_ext <<_LT_EOF
cristy964cb7f2010-04-25 23:18:00 +000015722#line 15722 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015723#include "confdefs.h"
15724
15725#if HAVE_DLFCN_H
15726#include <dlfcn.h>
15727#endif
15728
15729#include <stdio.h>
15730
15731#ifdef RTLD_GLOBAL
15732# define LT_DLGLOBAL RTLD_GLOBAL
15733#else
15734# ifdef DL_GLOBAL
15735# define LT_DLGLOBAL DL_GLOBAL
15736# else
15737# define LT_DLGLOBAL 0
15738# endif
15739#endif
15740
15741/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15742 find out it does not work in some platform. */
15743#ifndef LT_DLLAZY_OR_NOW
15744# ifdef RTLD_LAZY
15745# define LT_DLLAZY_OR_NOW RTLD_LAZY
15746# else
15747# ifdef DL_LAZY
15748# define LT_DLLAZY_OR_NOW DL_LAZY
15749# else
15750# ifdef RTLD_NOW
15751# define LT_DLLAZY_OR_NOW RTLD_NOW
15752# else
15753# ifdef DL_NOW
15754# define LT_DLLAZY_OR_NOW DL_NOW
15755# else
15756# define LT_DLLAZY_OR_NOW 0
15757# endif
15758# endif
15759# endif
15760# endif
15761#endif
15762
cristy18304f92009-11-22 15:48:26 +000015763void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015764int main ()
15765{
15766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15767 int status = $lt_dlunknown;
15768
15769 if (self)
15770 {
15771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015773 /* dlclose (self); */
15774 }
15775 else
15776 puts (dlerror ());
15777
15778 return status;
15779}
15780_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015782 (eval $ac_link) 2>&5
15783 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15785 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015786 (./conftest; exit; ) >&5 2>/dev/null
15787 lt_status=$?
15788 case x$lt_status in
15789 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15790 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15791 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15792 esac
15793 else :
15794 # compilation failed
15795 lt_cv_dlopen_self=no
15796 fi
15797fi
15798rm -fr conftest*
15799
15800
15801fi
cristy8b350f62009-11-15 23:12:43 +000015802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015803$as_echo "$lt_cv_dlopen_self" >&6; }
15804
15805 if test "x$lt_cv_dlopen_self" = xyes; then
15806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015808$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015809if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015810 $as_echo_n "(cached) " >&6
15811else
15812 if test "$cross_compiling" = yes; then :
15813 lt_cv_dlopen_self_static=cross
15814else
15815 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15816 lt_status=$lt_dlunknown
15817 cat > conftest.$ac_ext <<_LT_EOF
cristy964cb7f2010-04-25 23:18:00 +000015818#line 15818 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015819#include "confdefs.h"
15820
15821#if HAVE_DLFCN_H
15822#include <dlfcn.h>
15823#endif
15824
15825#include <stdio.h>
15826
15827#ifdef RTLD_GLOBAL
15828# define LT_DLGLOBAL RTLD_GLOBAL
15829#else
15830# ifdef DL_GLOBAL
15831# define LT_DLGLOBAL DL_GLOBAL
15832# else
15833# define LT_DLGLOBAL 0
15834# endif
15835#endif
15836
15837/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15838 find out it does not work in some platform. */
15839#ifndef LT_DLLAZY_OR_NOW
15840# ifdef RTLD_LAZY
15841# define LT_DLLAZY_OR_NOW RTLD_LAZY
15842# else
15843# ifdef DL_LAZY
15844# define LT_DLLAZY_OR_NOW DL_LAZY
15845# else
15846# ifdef RTLD_NOW
15847# define LT_DLLAZY_OR_NOW RTLD_NOW
15848# else
15849# ifdef DL_NOW
15850# define LT_DLLAZY_OR_NOW DL_NOW
15851# else
15852# define LT_DLLAZY_OR_NOW 0
15853# endif
15854# endif
15855# endif
15856# endif
15857#endif
15858
cristy18304f92009-11-22 15:48:26 +000015859void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015860int main ()
15861{
15862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15863 int status = $lt_dlunknown;
15864
15865 if (self)
15866 {
15867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015869 /* dlclose (self); */
15870 }
15871 else
15872 puts (dlerror ());
15873
15874 return status;
15875}
15876_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015878 (eval $ac_link) 2>&5
15879 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15881 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015882 (./conftest; exit; ) >&5 2>/dev/null
15883 lt_status=$?
15884 case x$lt_status in
15885 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15886 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15887 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15888 esac
15889 else :
15890 # compilation failed
15891 lt_cv_dlopen_self_static=no
15892 fi
15893fi
15894rm -fr conftest*
15895
15896
15897fi
cristy8b350f62009-11-15 23:12:43 +000015898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015899$as_echo "$lt_cv_dlopen_self_static" >&6; }
15900 fi
15901
15902 CPPFLAGS="$save_CPPFLAGS"
15903 LDFLAGS="$save_LDFLAGS"
15904 LIBS="$save_LIBS"
15905 ;;
15906 esac
15907
15908 case $lt_cv_dlopen_self in
15909 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15910 *) enable_dlopen_self=unknown ;;
15911 esac
15912
15913 case $lt_cv_dlopen_self_static in
15914 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15915 *) enable_dlopen_self_static=unknown ;;
15916 esac
15917fi
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935striplib=
15936old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015938$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15939if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15940 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15941 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015943$as_echo "yes" >&6; }
15944else
15945# FIXME - insert some real tests, host_os isn't really good enough
15946 case $host_os in
15947 darwin*)
15948 if test -n "$STRIP" ; then
15949 striplib="$STRIP -x"
15950 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015952$as_echo "yes" >&6; }
15953 else
cristy8b350f62009-11-15 23:12:43 +000015954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015955$as_echo "no" >&6; }
15956 fi
15957 ;;
15958 *)
cristy8b350f62009-11-15 23:12:43 +000015959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015960$as_echo "no" >&6; }
15961 ;;
15962 esac
15963fi
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015978$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015980$as_echo "$can_build_shared" >&6; }
15981
cristy8b350f62009-11-15 23:12:43 +000015982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015983$as_echo_n "checking whether to build shared libraries... " >&6; }
15984 test "$can_build_shared" = "no" && enable_shared=no
15985
15986 # On AIX, shared libraries and static libraries use the same namespace, and
15987 # are all built from PIC.
15988 case $host_os in
15989 aix3*)
15990 test "$enable_shared" = yes && enable_static=no
15991 if test -n "$RANLIB"; then
15992 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15993 postinstall_cmds='$RANLIB $lib'
15994 fi
15995 ;;
15996
15997 aix[4-9]*)
15998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15999 test "$enable_shared" = yes && enable_static=no
16000 fi
16001 ;;
16002 esac
cristy8b350f62009-11-15 23:12:43 +000016003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016004$as_echo "$enable_shared" >&6; }
16005
cristy8b350f62009-11-15 23:12:43 +000016006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016007$as_echo_n "checking whether to build static libraries... " >&6; }
16008 # Make sure either enable_shared or enable_static is yes.
16009 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016011$as_echo "$enable_static" >&6; }
16012
16013
16014
16015
16016fi
16017ac_ext=c
16018ac_cpp='$CPP $CPPFLAGS'
16019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16021ac_compiler_gnu=$ac_cv_c_compiler_gnu
16022
16023CC="$lt_save_CC"
16024
16025
16026ac_ext=cpp
16027ac_cpp='$CXXCPP $CPPFLAGS'
16028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16031
16032archive_cmds_need_lc_CXX=no
16033allow_undefined_flag_CXX=
16034always_export_symbols_CXX=no
16035archive_expsym_cmds_CXX=
16036compiler_needs_object_CXX=no
16037export_dynamic_flag_spec_CXX=
16038hardcode_direct_CXX=no
16039hardcode_direct_absolute_CXX=no
16040hardcode_libdir_flag_spec_CXX=
16041hardcode_libdir_flag_spec_ld_CXX=
16042hardcode_libdir_separator_CXX=
16043hardcode_minus_L_CXX=no
16044hardcode_shlibpath_var_CXX=unsupported
16045hardcode_automatic_CXX=no
16046inherit_rpath_CXX=no
16047module_cmds_CXX=
16048module_expsym_cmds_CXX=
16049link_all_deplibs_CXX=unknown
16050old_archive_cmds_CXX=$old_archive_cmds
16051no_undefined_flag_CXX=
16052whole_archive_flag_spec_CXX=
16053enable_shared_with_static_runtimes_CXX=no
16054
16055# Source file extension for C++ test sources.
16056ac_ext=cpp
16057
16058# Object file extension for compiled C++ test sources.
16059objext=o
16060objext_CXX=$objext
16061
16062# No sense in running all these tests if we already determined that
16063# the CXX compiler isn't working. Some variables (like enable_shared)
16064# are currently assumed to apply to all compilers on this platform,
16065# and will be corrupted by setting them based on a non-working compiler.
16066if test "$_lt_caught_CXX_error" != yes; then
16067 # Code to be used in simple compile tests
16068 lt_simple_compile_test_code="int some_variable = 0;"
16069
16070 # Code to be used in simple link tests
16071 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16072
16073 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16074
16075
16076
16077
16078
16079
16080# If no C compiler was specified, use CC.
16081LTCC=${LTCC-"$CC"}
16082
16083# If no C compiler flags were specified, use CFLAGS.
16084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16085
16086# Allow CC to be a program name with arguments.
16087compiler=$CC
16088
16089
16090 # save warnings/boilerplate of simple test code
16091 ac_outfile=conftest.$ac_objext
16092echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16093eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16094_lt_compiler_boilerplate=`cat conftest.err`
16095$RM conftest*
16096
16097 ac_outfile=conftest.$ac_objext
16098echo "$lt_simple_link_test_code" >conftest.$ac_ext
16099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16100_lt_linker_boilerplate=`cat conftest.err`
16101$RM -r conftest*
16102
16103
16104 # Allow CC to be a program name with arguments.
16105 lt_save_CC=$CC
16106 lt_save_LD=$LD
16107 lt_save_GCC=$GCC
16108 GCC=$GXX
16109 lt_save_with_gnu_ld=$with_gnu_ld
16110 lt_save_path_LD=$lt_cv_path_LD
16111 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16112 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16113 else
16114 $as_unset lt_cv_prog_gnu_ld
16115 fi
16116 if test -n "${lt_cv_path_LDCXX+set}"; then
16117 lt_cv_path_LD=$lt_cv_path_LDCXX
16118 else
16119 $as_unset lt_cv_path_LD
16120 fi
16121 test -z "${LDCXX+set}" || LD=$LDCXX
16122 CC=${CXX-"c++"}
16123 compiler=$CC
16124 compiler_CXX=$CC
16125 for cc_temp in $compiler""; do
16126 case $cc_temp in
16127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16129 \-*) ;;
16130 *) break;;
16131 esac
16132done
cristy18304f92009-11-22 15:48:26 +000016133cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016134
16135
16136 if test -n "$compiler"; then
16137 # We don't want -fno-exception when compiling C++ code, so set the
16138 # no_builtin_flag separately
16139 if test "$GXX" = yes; then
16140 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16141 else
16142 lt_prog_compiler_no_builtin_flag_CXX=
16143 fi
16144
16145 if test "$GXX" = yes; then
16146 # Set up default GNU C++ configuration
16147
16148
16149
16150# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016151if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016152 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16153else
16154 with_gnu_ld=no
16155fi
16156
16157ac_prog=ld
16158if test "$GCC" = yes; then
16159 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016161$as_echo_n "checking for ld used by $CC... " >&6; }
16162 case $host in
16163 *-*-mingw*)
16164 # gcc leaves a trailing carriage return which upsets mingw
16165 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16166 *)
16167 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16168 esac
16169 case $ac_prog in
16170 # Accept absolute paths.
16171 [\\/]* | ?:[\\/]*)
16172 re_direlt='/[^/][^/]*/\.\./'
16173 # Canonicalize the pathname of ld
16174 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16175 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16176 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16177 done
16178 test -z "$LD" && LD="$ac_prog"
16179 ;;
16180 "")
16181 # If it fails, then pretend we aren't using GCC.
16182 ac_prog=ld
16183 ;;
16184 *)
16185 # If it is relative, then search for the first ld in PATH.
16186 with_gnu_ld=unknown
16187 ;;
16188 esac
16189elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016191$as_echo_n "checking for GNU ld... " >&6; }
16192else
cristy8b350f62009-11-15 23:12:43 +000016193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016194$as_echo_n "checking for non-GNU ld... " >&6; }
16195fi
cristy8b350f62009-11-15 23:12:43 +000016196if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016197 $as_echo_n "(cached) " >&6
16198else
16199 if test -z "$LD"; then
16200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16201 for ac_dir in $PATH; do
16202 IFS="$lt_save_ifs"
16203 test -z "$ac_dir" && ac_dir=.
16204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16205 lt_cv_path_LD="$ac_dir/$ac_prog"
16206 # Check to see if the program is GNU ld. I'd rather use --version,
16207 # but apparently some variants of GNU ld only accept -v.
16208 # Break only if it was the GNU/non-GNU ld that we prefer.
16209 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16210 *GNU* | *'with BFD'*)
16211 test "$with_gnu_ld" != no && break
16212 ;;
16213 *)
16214 test "$with_gnu_ld" != yes && break
16215 ;;
16216 esac
16217 fi
16218 done
16219 IFS="$lt_save_ifs"
16220else
16221 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16222fi
16223fi
16224
16225LD="$lt_cv_path_LD"
16226if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016228$as_echo "$LD" >&6; }
16229else
cristy8b350f62009-11-15 23:12:43 +000016230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016231$as_echo "no" >&6; }
16232fi
cristy8b350f62009-11-15 23:12:43 +000016233test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016235$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016236if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016237 $as_echo_n "(cached) " >&6
16238else
16239 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16240case `$LD -v 2>&1 </dev/null` in
16241*GNU* | *'with BFD'*)
16242 lt_cv_prog_gnu_ld=yes
16243 ;;
16244*)
16245 lt_cv_prog_gnu_ld=no
16246 ;;
16247esac
16248fi
cristy8b350f62009-11-15 23:12:43 +000016249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016250$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16251with_gnu_ld=$lt_cv_prog_gnu_ld
16252
16253
16254
16255
16256
16257
16258
16259 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16260 # archiving commands below assume that GNU ld is being used.
16261 if test "$with_gnu_ld" = yes; then
16262 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16263 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'
16264
16265 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16267
16268 # If archive_cmds runs LD, not CC, wlarc should be empty
16269 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16270 # investigate it a little bit more. (MM)
16271 wlarc='${wl}'
16272
16273 # ancient GNU ld didn't support --whole-archive et. al.
16274 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16275 $GREP 'no-whole-archive' > /dev/null; then
16276 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16277 else
16278 whole_archive_flag_spec_CXX=
16279 fi
16280 else
16281 with_gnu_ld=no
16282 wlarc=
16283
16284 # A generic and very simple default shared library creation
16285 # command for GNU C++ for the case where it uses the native
16286 # linker, instead of GNU ld. If possible, this setting should
16287 # overridden to take advantage of the native linker features on
16288 # the platform it is being used on.
16289 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16290 fi
16291
16292 # Commands to make compiler produce verbose output that lists
16293 # what "hidden" libraries, object files and flags are used when
16294 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016295 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016296
16297 else
16298 GXX=no
16299 with_gnu_ld=no
16300 wlarc=
16301 fi
16302
16303 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016305$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16306 ld_shlibs_CXX=yes
16307 case $host_os in
16308 aix3*)
16309 # FIXME: insert proper C++ library support
16310 ld_shlibs_CXX=no
16311 ;;
16312 aix[4-9]*)
16313 if test "$host_cpu" = ia64; then
16314 # On IA64, the linker does run time linking by default, so we don't
16315 # have to do anything special.
16316 aix_use_runtimelinking=no
16317 exp_sym_flag='-Bexport'
16318 no_entry_flag=""
16319 else
16320 aix_use_runtimelinking=no
16321
16322 # Test if we are trying to use run time linking or normal
16323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16324 # need to do runtime linking.
16325 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16326 for ld_flag in $LDFLAGS; do
16327 case $ld_flag in
16328 *-brtl*)
16329 aix_use_runtimelinking=yes
16330 break
16331 ;;
16332 esac
16333 done
16334 ;;
16335 esac
16336
16337 exp_sym_flag='-bexport'
16338 no_entry_flag='-bnoentry'
16339 fi
16340
16341 # When large executables or shared objects are built, AIX ld can
16342 # have problems creating the table of contents. If linking a library
16343 # or program results in "error TOC overflow" add -mminimal-toc to
16344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16346
16347 archive_cmds_CXX=''
16348 hardcode_direct_CXX=yes
16349 hardcode_direct_absolute_CXX=yes
16350 hardcode_libdir_separator_CXX=':'
16351 link_all_deplibs_CXX=yes
16352 file_list_spec_CXX='${wl}-f,'
16353
16354 if test "$GXX" = yes; then
16355 case $host_os in aix4.[012]|aix4.[012].*)
16356 # We only want to do this on AIX 4.2 and lower, the check
16357 # below for broken collect2 doesn't work under 4.3+
16358 collect2name=`${CC} -print-prog-name=collect2`
16359 if test -f "$collect2name" &&
16360 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16361 then
16362 # We have reworked collect2
16363 :
16364 else
16365 # We have old collect2
16366 hardcode_direct_CXX=unsupported
16367 # It fails to find uninstalled libraries when the uninstalled
16368 # path is not listed in the libpath. Setting hardcode_minus_L
16369 # to unsupported forces relinking
16370 hardcode_minus_L_CXX=yes
16371 hardcode_libdir_flag_spec_CXX='-L$libdir'
16372 hardcode_libdir_separator_CXX=
16373 fi
16374 esac
16375 shared_flag='-shared'
16376 if test "$aix_use_runtimelinking" = yes; then
16377 shared_flag="$shared_flag "'${wl}-G'
16378 fi
16379 else
16380 # not using gcc
16381 if test "$host_cpu" = ia64; then
16382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16383 # chokes on -Wl,-G. The following line is correct:
16384 shared_flag='-G'
16385 else
16386 if test "$aix_use_runtimelinking" = yes; then
16387 shared_flag='${wl}-G'
16388 else
16389 shared_flag='${wl}-bM:SRE'
16390 fi
16391 fi
16392 fi
16393
16394 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16395 # It seems that -bexpall does not export symbols beginning with
16396 # underscore (_), so it is better to generate a list of symbols to
16397 # export.
16398 always_export_symbols_CXX=yes
16399 if test "$aix_use_runtimelinking" = yes; then
16400 # Warning - without using the other runtime loading flags (-brtl),
16401 # -berok will link without error, but may produce a broken library.
16402 allow_undefined_flag_CXX='-berok'
16403 # Determine the default libpath from the value encoded in an empty
16404 # executable.
cristy8b350f62009-11-15 23:12:43 +000016405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016406/* end confdefs.h. */
16407
16408int
16409main ()
16410{
16411
16412 ;
16413 return 0;
16414}
16415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016416if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016417
16418lt_aix_libpath_sed='
16419 /Import File Strings/,/^$/ {
16420 /^0/ {
16421 s/^0 *\(.*\)$/\1/
16422 p
16423 }
16424 }'
16425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16426# Check for a 64-bit object if we didn't find anything.
16427if test -z "$aix_libpath"; then
16428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16429fi
cristy3ed852e2009-09-05 21:47:34 +000016430fi
cristy8b350f62009-11-15 23:12:43 +000016431rm -f core conftest.err conftest.$ac_objext \
16432 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16434
16435 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16436
cristy18304f92009-11-22 15:48:26 +000016437 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 +000016438 else
16439 if test "$host_cpu" = ia64; then
16440 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16441 allow_undefined_flag_CXX="-z nodefs"
16442 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"
16443 else
16444 # Determine the default libpath from the value encoded in an
16445 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016447/* end confdefs.h. */
16448
16449int
16450main ()
16451{
16452
16453 ;
16454 return 0;
16455}
16456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016457if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016458
16459lt_aix_libpath_sed='
16460 /Import File Strings/,/^$/ {
16461 /^0/ {
16462 s/^0 *\(.*\)$/\1/
16463 p
16464 }
16465 }'
16466aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16467# Check for a 64-bit object if we didn't find anything.
16468if test -z "$aix_libpath"; then
16469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16470fi
cristy3ed852e2009-09-05 21:47:34 +000016471fi
cristy8b350f62009-11-15 23:12:43 +000016472rm -f core conftest.err conftest.$ac_objext \
16473 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16475
16476 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16477 # Warning - without using the other run time loading flags,
16478 # -berok will link without error, but may produce a broken library.
16479 no_undefined_flag_CXX=' ${wl}-bernotok'
16480 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016481 # Exported symbols can be pulled into shared objects from archives
16482 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016483 archive_cmds_need_lc_CXX=yes
16484 # This is similar to how AIX traditionally builds its shared
16485 # libraries.
16486 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'
16487 fi
16488 fi
16489 ;;
16490
16491 beos*)
16492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16493 allow_undefined_flag_CXX=unsupported
16494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16495 # support --undefined. This deserves some investigation. FIXME
16496 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16497 else
16498 ld_shlibs_CXX=no
16499 fi
16500 ;;
16501
16502 chorus*)
16503 case $cc_basename in
16504 *)
16505 # FIXME: insert proper C++ library support
16506 ld_shlibs_CXX=no
16507 ;;
16508 esac
16509 ;;
16510
16511 cygwin* | mingw* | pw32* | cegcc*)
16512 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16513 # as there is no search path for DLLs.
16514 hardcode_libdir_flag_spec_CXX='-L$libdir'
16515 allow_undefined_flag_CXX=unsupported
16516 always_export_symbols_CXX=no
16517 enable_shared_with_static_runtimes_CXX=yes
16518
16519 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16520 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'
16521 # If the export-symbols file already is a .def file (1st line
16522 # is EXPORTS), use it as is; otherwise, prepend...
16523 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16524 cp $export_symbols $output_objdir/$soname.def;
16525 else
16526 echo EXPORTS > $output_objdir/$soname.def;
16527 cat $export_symbols >> $output_objdir/$soname.def;
16528 fi~
16529 $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'
16530 else
16531 ld_shlibs_CXX=no
16532 fi
16533 ;;
16534 darwin* | rhapsody*)
16535
16536
16537 archive_cmds_need_lc_CXX=no
16538 hardcode_direct_CXX=no
16539 hardcode_automatic_CXX=yes
16540 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016541 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016542 link_all_deplibs_CXX=yes
16543 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16544 case $cc_basename in
16545 ifort*) _lt_dar_can_shared=yes ;;
16546 *) _lt_dar_can_shared=$GCC ;;
16547 esac
16548 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016549 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016550 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}"
16551 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16552 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}"
16553 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}"
16554 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16555 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}"
16556 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}"
16557 fi
16558
16559 else
16560 ld_shlibs_CXX=no
16561 fi
16562
16563 ;;
16564
16565 dgux*)
16566 case $cc_basename in
16567 ec++*)
16568 # FIXME: insert proper C++ library support
16569 ld_shlibs_CXX=no
16570 ;;
16571 ghcx*)
16572 # Green Hills C++ Compiler
16573 # FIXME: insert proper C++ library support
16574 ld_shlibs_CXX=no
16575 ;;
16576 *)
16577 # FIXME: insert proper C++ library support
16578 ld_shlibs_CXX=no
16579 ;;
16580 esac
16581 ;;
16582
16583 freebsd[12]*)
16584 # C++ shared libraries reported to be fairly broken before
16585 # switch to ELF
16586 ld_shlibs_CXX=no
16587 ;;
16588
16589 freebsd-elf*)
16590 archive_cmds_need_lc_CXX=no
16591 ;;
16592
16593 freebsd* | dragonfly*)
16594 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16595 # conventions
16596 ld_shlibs_CXX=yes
16597 ;;
16598
16599 gnu*)
16600 ;;
16601
16602 hpux9*)
16603 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16604 hardcode_libdir_separator_CXX=:
16605 export_dynamic_flag_spec_CXX='${wl}-E'
16606 hardcode_direct_CXX=yes
16607 hardcode_minus_L_CXX=yes # Not in the search PATH,
16608 # but as the default
16609 # location of the library.
16610
16611 case $cc_basename in
16612 CC*)
16613 # FIXME: insert proper C++ library support
16614 ld_shlibs_CXX=no
16615 ;;
16616 aCC*)
16617 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'
16618 # Commands to make compiler produce verbose output that lists
16619 # what "hidden" libraries, object files and flags are used when
16620 # linking a shared library.
16621 #
16622 # There doesn't appear to be a way to prevent this compiler from
16623 # explicitly linking system object files so we need to strip them
16624 # from the output so that they don't get included in the library
16625 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016626 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 +000016627 ;;
16628 *)
16629 if test "$GXX" = yes; then
16630 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'
16631 else
16632 # FIXME: insert proper C++ library support
16633 ld_shlibs_CXX=no
16634 fi
16635 ;;
16636 esac
16637 ;;
16638
16639 hpux10*|hpux11*)
16640 if test $with_gnu_ld = no; then
16641 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16642 hardcode_libdir_separator_CXX=:
16643
16644 case $host_cpu in
16645 hppa*64*|ia64*)
16646 ;;
16647 *)
16648 export_dynamic_flag_spec_CXX='${wl}-E'
16649 ;;
16650 esac
16651 fi
16652 case $host_cpu in
16653 hppa*64*|ia64*)
16654 hardcode_direct_CXX=no
16655 hardcode_shlibpath_var_CXX=no
16656 ;;
16657 *)
16658 hardcode_direct_CXX=yes
16659 hardcode_direct_absolute_CXX=yes
16660 hardcode_minus_L_CXX=yes # Not in the search PATH,
16661 # but as the default
16662 # location of the library.
16663 ;;
16664 esac
16665
16666 case $cc_basename in
16667 CC*)
16668 # FIXME: insert proper C++ library support
16669 ld_shlibs_CXX=no
16670 ;;
16671 aCC*)
16672 case $host_cpu in
16673 hppa*64*)
16674 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16675 ;;
16676 ia64*)
16677 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16678 ;;
16679 *)
16680 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16681 ;;
16682 esac
16683 # Commands to make compiler produce verbose output that lists
16684 # what "hidden" libraries, object files and flags are used when
16685 # linking a shared library.
16686 #
16687 # There doesn't appear to be a way to prevent this compiler from
16688 # explicitly linking system object files so we need to strip them
16689 # from the output so that they don't get included in the library
16690 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016691 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 +000016692 ;;
16693 *)
16694 if test "$GXX" = yes; then
16695 if test $with_gnu_ld = no; then
16696 case $host_cpu in
16697 hppa*64*)
16698 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16699 ;;
16700 ia64*)
16701 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16702 ;;
16703 *)
16704 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'
16705 ;;
16706 esac
16707 fi
16708 else
16709 # FIXME: insert proper C++ library support
16710 ld_shlibs_CXX=no
16711 fi
16712 ;;
16713 esac
16714 ;;
16715
16716 interix[3-9]*)
16717 hardcode_direct_CXX=no
16718 hardcode_shlibpath_var_CXX=no
16719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16720 export_dynamic_flag_spec_CXX='${wl}-E'
16721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16722 # Instead, shared libraries are loaded at an image base (0x10000000 by
16723 # default) and relocated if they conflict, which is a slow very memory
16724 # consuming and fragmenting process. To avoid this, we pick a random,
16725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16727 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'
16728 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'
16729 ;;
16730 irix5* | irix6*)
16731 case $cc_basename in
16732 CC*)
16733 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016734 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 +000016735
16736 # Archives containing C++ object files must be created using
16737 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16738 # necessary to make sure instantiated templates are included
16739 # in the archive.
16740 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16741 ;;
16742 *)
16743 if test "$GXX" = yes; then
16744 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016745 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 +000016746 else
cristy18304f92009-11-22 15:48:26 +000016747 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 +000016748 fi
16749 fi
16750 link_all_deplibs_CXX=yes
16751 ;;
16752 esac
16753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16754 hardcode_libdir_separator_CXX=:
16755 inherit_rpath_CXX=yes
16756 ;;
16757
cristy18304f92009-11-22 15:48:26 +000016758 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016759 case $cc_basename in
16760 KCC*)
16761 # Kuck and Associates, Inc. (KAI) C++ Compiler
16762
16763 # KCC will only create a shared library if the output file
16764 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16765 # to its proper name (with version) after linking.
16766 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'
16767 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'
16768 # Commands to make compiler produce verbose output that lists
16769 # what "hidden" libraries, object files and flags are used when
16770 # linking a shared library.
16771 #
16772 # There doesn't appear to be a way to prevent this compiler from
16773 # explicitly linking system object files so we need to strip them
16774 # from the output so that they don't get included in the library
16775 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016776 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 +000016777
16778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16780
16781 # Archives containing C++ object files must be created using
16782 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16783 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16784 ;;
16785 icpc* | ecpc* )
16786 # Intel C++
16787 with_gnu_ld=yes
16788 # version 8.0 and above of icpc choke on multiply defined symbols
16789 # if we add $predep_objects and $postdep_objects, however 7.1 and
16790 # earlier do not add the objects themselves.
16791 case `$CC -V 2>&1` in
16792 *"Version 7."*)
16793 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16794 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'
16795 ;;
16796 *) # Version 8.0 or newer
16797 tmp_idyn=
16798 case $host_cpu in
16799 ia64*) tmp_idyn=' -i_dynamic';;
16800 esac
16801 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16802 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'
16803 ;;
16804 esac
16805 archive_cmds_need_lc_CXX=no
16806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16808 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16809 ;;
16810 pgCC* | pgcpp*)
16811 # Portland Group C++ compiler
16812 case `$CC -V` in
16813 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16814 prelink_cmds_CXX='tpldir=Template.dir~
16815 rm -rf $tpldir~
16816 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16817 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16818 old_archive_cmds_CXX='tpldir=Template.dir~
16819 rm -rf $tpldir~
16820 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16821 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16822 $RANLIB $oldlib'
16823 archive_cmds_CXX='tpldir=Template.dir~
16824 rm -rf $tpldir~
16825 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16826 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16827 archive_expsym_cmds_CXX='tpldir=Template.dir~
16828 rm -rf $tpldir~
16829 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16830 $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'
16831 ;;
16832 *) # Version 6 will use weak symbols
16833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16834 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'
16835 ;;
16836 esac
16837
16838 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016840 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 +000016841 ;;
16842 cxx*)
16843 # Compaq C++
16844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16845 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'
16846
16847 runpath_var=LD_RUN_PATH
16848 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16849 hardcode_libdir_separator_CXX=:
16850
16851 # Commands to make compiler produce verbose output that lists
16852 # what "hidden" libraries, object files and flags are used when
16853 # linking a shared library.
16854 #
16855 # There doesn't appear to be a way to prevent this compiler from
16856 # explicitly linking system object files so we need to strip them
16857 # from the output so that they don't get included in the library
16858 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016859 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 +000016860 ;;
cristy18304f92009-11-22 15:48:26 +000016861 xl*)
cristy3ed852e2009-09-05 21:47:34 +000016862 # IBM XL 8.0 on PPC, with GNU ld
16863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16865 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16866 if test "x$supports_anon_versioning" = xyes; then
16867 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16869 echo "local: *; };" >> $output_objdir/$libname.ver~
16870 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16871 fi
16872 ;;
16873 *)
16874 case `$CC -V 2>&1 | sed 5q` in
16875 *Sun\ C*)
16876 # Sun C++ 5.9
16877 no_undefined_flag_CXX=' -zdefs'
16878 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16879 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'
16880 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000016881 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 +000016882 compiler_needs_object_CXX=yes
16883
16884 # Not sure whether something based on
16885 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16886 # would be better.
cristy18304f92009-11-22 15:48:26 +000016887 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016888
16889 # Archives containing C++ object files must be created using
16890 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16891 # necessary to make sure instantiated templates are included
16892 # in the archive.
16893 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16894 ;;
16895 esac
16896 ;;
16897 esac
16898 ;;
16899
16900 lynxos*)
16901 # FIXME: insert proper C++ library support
16902 ld_shlibs_CXX=no
16903 ;;
16904
16905 m88k*)
16906 # FIXME: insert proper C++ library support
16907 ld_shlibs_CXX=no
16908 ;;
16909
16910 mvs*)
16911 case $cc_basename in
16912 cxx*)
16913 # FIXME: insert proper C++ library support
16914 ld_shlibs_CXX=no
16915 ;;
16916 *)
16917 # FIXME: insert proper C++ library support
16918 ld_shlibs_CXX=no
16919 ;;
16920 esac
16921 ;;
16922
16923 netbsd*)
16924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16925 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16926 wlarc=
16927 hardcode_libdir_flag_spec_CXX='-R$libdir'
16928 hardcode_direct_CXX=yes
16929 hardcode_shlibpath_var_CXX=no
16930 fi
16931 # Workaround some broken pre-1.5 toolchains
16932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16933 ;;
16934
16935 *nto* | *qnx*)
16936 ld_shlibs_CXX=yes
16937 ;;
16938
16939 openbsd2*)
16940 # C++ shared libraries are fairly broken
16941 ld_shlibs_CXX=no
16942 ;;
16943
16944 openbsd*)
16945 if test -f /usr/libexec/ld.so; then
16946 hardcode_direct_CXX=yes
16947 hardcode_shlibpath_var_CXX=no
16948 hardcode_direct_absolute_CXX=yes
16949 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16952 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16953 export_dynamic_flag_spec_CXX='${wl}-E'
16954 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16955 fi
cristy18304f92009-11-22 15:48:26 +000016956 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016957 else
16958 ld_shlibs_CXX=no
16959 fi
16960 ;;
16961
16962 osf3* | osf4* | osf5*)
16963 case $cc_basename in
16964 KCC*)
16965 # Kuck and Associates, Inc. (KAI) C++ Compiler
16966
16967 # KCC will only create a shared library if the output file
16968 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16969 # to its proper name (with version) after linking.
16970 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'
16971
16972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16973 hardcode_libdir_separator_CXX=:
16974
16975 # Archives containing C++ object files must be created using
16976 # the KAI C++ compiler.
16977 case $host in
16978 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16979 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16980 esac
16981 ;;
16982 RCC*)
16983 # Rational C++ 2.4.1
16984 # FIXME: insert proper C++ library support
16985 ld_shlibs_CXX=no
16986 ;;
16987 cxx*)
16988 case $host in
16989 osf3*)
16990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000016991 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 +000016992 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16993 ;;
16994 *)
16995 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000016996 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 +000016997 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16998 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000016999 $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 +000017000 $RM $lib.exp'
17001 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17002 ;;
17003 esac
17004
17005 hardcode_libdir_separator_CXX=:
17006
17007 # Commands to make compiler produce verbose output that lists
17008 # what "hidden" libraries, object files and flags are used when
17009 # linking a shared library.
17010 #
17011 # There doesn't appear to be a way to prevent this compiler from
17012 # explicitly linking system object files so we need to strip them
17013 # from the output so that they don't get included in the library
17014 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017015 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 +000017016 ;;
17017 *)
17018 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17020 case $host in
17021 osf3*)
cristy18304f92009-11-22 15:48:26 +000017022 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 +000017023 ;;
17024 *)
cristy18304f92009-11-22 15:48:26 +000017025 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 +000017026 ;;
17027 esac
17028
17029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17030 hardcode_libdir_separator_CXX=:
17031
17032 # Commands to make compiler produce verbose output that lists
17033 # what "hidden" libraries, object files and flags are used when
17034 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017036
17037 else
17038 # FIXME: insert proper C++ library support
17039 ld_shlibs_CXX=no
17040 fi
17041 ;;
17042 esac
17043 ;;
17044
17045 psos*)
17046 # FIXME: insert proper C++ library support
17047 ld_shlibs_CXX=no
17048 ;;
17049
17050 sunos4*)
17051 case $cc_basename in
17052 CC*)
17053 # Sun C++ 4.x
17054 # FIXME: insert proper C++ library support
17055 ld_shlibs_CXX=no
17056 ;;
17057 lcc*)
17058 # Lucid
17059 # FIXME: insert proper C++ library support
17060 ld_shlibs_CXX=no
17061 ;;
17062 *)
17063 # FIXME: insert proper C++ library support
17064 ld_shlibs_CXX=no
17065 ;;
17066 esac
17067 ;;
17068
17069 solaris*)
17070 case $cc_basename in
17071 CC*)
17072 # Sun C++ 4.2, 5.x and Centerline C++
17073 archive_cmds_need_lc_CXX=yes
17074 no_undefined_flag_CXX=' -zdefs'
17075 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17076 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17077 $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'
17078
17079 hardcode_libdir_flag_spec_CXX='-R$libdir'
17080 hardcode_shlibpath_var_CXX=no
17081 case $host_os in
17082 solaris2.[0-5] | solaris2.[0-5].*) ;;
17083 *)
17084 # The compiler driver will combine and reorder linker options,
17085 # but understands `-z linker_flag'.
17086 # Supported since Solaris 2.6 (maybe 2.5.1?)
17087 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17088 ;;
17089 esac
17090 link_all_deplibs_CXX=yes
17091
cristy18304f92009-11-22 15:48:26 +000017092 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017093
17094 # Archives containing C++ object files must be created using
17095 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17096 # necessary to make sure instantiated templates are included
17097 # in the archive.
17098 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17099 ;;
17100 gcx*)
17101 # Green Hills C++ Compiler
17102 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17103
17104 # The C++ compiler must be used to create the archive.
17105 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17106 ;;
17107 *)
17108 # GNU C++ compiler with Solaris linker
17109 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17110 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17111 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17112 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17113 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17114 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17115
17116 # Commands to make compiler produce verbose output that lists
17117 # what "hidden" libraries, object files and flags are used when
17118 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017120 else
17121 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17122 # platform.
17123 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17124 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17125 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17126
17127 # Commands to make compiler produce verbose output that lists
17128 # what "hidden" libraries, object files and flags are used when
17129 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017130 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017131 fi
17132
17133 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17134 case $host_os in
17135 solaris2.[0-5] | solaris2.[0-5].*) ;;
17136 *)
17137 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17138 ;;
17139 esac
17140 fi
17141 ;;
17142 esac
17143 ;;
17144
17145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17146 no_undefined_flag_CXX='${wl}-z,text'
17147 archive_cmds_need_lc_CXX=no
17148 hardcode_shlibpath_var_CXX=no
17149 runpath_var='LD_RUN_PATH'
17150
17151 case $cc_basename in
17152 CC*)
17153 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17154 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17155 ;;
17156 *)
17157 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17158 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17159 ;;
17160 esac
17161 ;;
17162
17163 sysv5* | sco3.2v5* | sco5v6*)
17164 # Note: We can NOT use -z defs as we might desire, because we do not
17165 # link with -lc, and that would cause any symbols used from libc to
17166 # always be unresolved, which means just about no library would
17167 # ever link correctly. If we're not using GNU ld we use -z text
17168 # though, which does catch some bad symbols but isn't as heavy-handed
17169 # as -z defs.
17170 no_undefined_flag_CXX='${wl}-z,text'
17171 allow_undefined_flag_CXX='${wl}-z,nodefs'
17172 archive_cmds_need_lc_CXX=no
17173 hardcode_shlibpath_var_CXX=no
17174 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17175 hardcode_libdir_separator_CXX=':'
17176 link_all_deplibs_CXX=yes
17177 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17178 runpath_var='LD_RUN_PATH'
17179
17180 case $cc_basename in
17181 CC*)
17182 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17183 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17184 ;;
17185 *)
17186 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17187 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17188 ;;
17189 esac
17190 ;;
17191
17192 tandem*)
17193 case $cc_basename in
17194 NCC*)
17195 # NonStop-UX NCC 3.20
17196 # FIXME: insert proper C++ library support
17197 ld_shlibs_CXX=no
17198 ;;
17199 *)
17200 # FIXME: insert proper C++ library support
17201 ld_shlibs_CXX=no
17202 ;;
17203 esac
17204 ;;
17205
17206 vxworks*)
17207 # FIXME: insert proper C++ library support
17208 ld_shlibs_CXX=no
17209 ;;
17210
17211 *)
17212 # FIXME: insert proper C++ library support
17213 ld_shlibs_CXX=no
17214 ;;
17215 esac
17216
cristy8b350f62009-11-15 23:12:43 +000017217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017218$as_echo "$ld_shlibs_CXX" >&6; }
17219 test "$ld_shlibs_CXX" = no && can_build_shared=no
17220
17221 GCC_CXX="$GXX"
17222 LD_CXX="$LD"
17223
17224 ## CAVEAT EMPTOR:
17225 ## There is no encapsulation within the following macros, do not change
17226 ## the running order or otherwise move them around unless you know exactly
17227 ## what you are doing...
17228 # Dependencies to place before and after the object being linked:
17229predep_objects_CXX=
17230postdep_objects_CXX=
17231predeps_CXX=
17232postdeps_CXX=
17233compiler_lib_search_path_CXX=
17234
17235cat > conftest.$ac_ext <<_LT_EOF
17236class Foo
17237{
17238public:
17239 Foo (void) { a = 0; }
17240private:
17241 int a;
17242};
17243_LT_EOF
17244
cristy8b350f62009-11-15 23:12:43 +000017245if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017246 (eval $ac_compile) 2>&5
17247 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17249 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017250 # Parse the compiler output and extract the necessary
17251 # objects, libraries and library flags.
17252
17253 # Sentinel used to keep track of whether or not we are before
17254 # the conftest object file.
17255 pre_test_object_deps_done=no
17256
17257 for p in `eval "$output_verbose_link_cmd"`; do
17258 case $p in
17259
17260 -L* | -R* | -l*)
17261 # Some compilers place space between "-{L,R}" and the path.
17262 # Remove the space.
17263 if test $p = "-L" ||
17264 test $p = "-R"; then
17265 prev=$p
17266 continue
17267 else
17268 prev=
17269 fi
17270
17271 if test "$pre_test_object_deps_done" = no; then
17272 case $p in
17273 -L* | -R*)
17274 # Internal compiler library paths should come after those
17275 # provided the user. The postdeps already come after the
17276 # user supplied libs so there is no need to process them.
17277 if test -z "$compiler_lib_search_path_CXX"; then
17278 compiler_lib_search_path_CXX="${prev}${p}"
17279 else
17280 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17281 fi
17282 ;;
17283 # The "-l" case would never come before the object being
17284 # linked, so don't bother handling this case.
17285 esac
17286 else
17287 if test -z "$postdeps_CXX"; then
17288 postdeps_CXX="${prev}${p}"
17289 else
17290 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17291 fi
17292 fi
17293 ;;
17294
17295 *.$objext)
17296 # This assumes that the test object file only shows up
17297 # once in the compiler output.
17298 if test "$p" = "conftest.$objext"; then
17299 pre_test_object_deps_done=yes
17300 continue
17301 fi
17302
17303 if test "$pre_test_object_deps_done" = no; then
17304 if test -z "$predep_objects_CXX"; then
17305 predep_objects_CXX="$p"
17306 else
17307 predep_objects_CXX="$predep_objects_CXX $p"
17308 fi
17309 else
17310 if test -z "$postdep_objects_CXX"; then
17311 postdep_objects_CXX="$p"
17312 else
17313 postdep_objects_CXX="$postdep_objects_CXX $p"
17314 fi
17315 fi
17316 ;;
17317
17318 *) ;; # Ignore the rest.
17319
17320 esac
17321 done
17322
17323 # Clean up.
17324 rm -f a.out a.exe
17325else
17326 echo "libtool.m4: error: problem compiling CXX test program"
17327fi
17328
17329$RM -f confest.$objext
17330
17331# PORTME: override above test on systems where it is broken
17332case $host_os in
17333interix[3-9]*)
17334 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17335 # hack all around it, let's just trust "g++" to DTRT.
17336 predep_objects_CXX=
17337 postdep_objects_CXX=
17338 postdeps_CXX=
17339 ;;
17340
17341linux*)
17342 case `$CC -V 2>&1 | sed 5q` in
17343 *Sun\ C*)
17344 # Sun C++ 5.9
17345
17346 # The more standards-conforming stlport4 library is
17347 # incompatible with the Cstd library. Avoid specifying
17348 # it if it's in CXXFLAGS. Ignore libCrun as
17349 # -library=stlport4 depends on it.
17350 case " $CXX $CXXFLAGS " in
17351 *" -library=stlport4 "*)
17352 solaris_use_stlport4=yes
17353 ;;
17354 esac
17355
17356 if test "$solaris_use_stlport4" != yes; then
17357 postdeps_CXX='-library=Cstd -library=Crun'
17358 fi
17359 ;;
17360 esac
17361 ;;
17362
17363solaris*)
17364 case $cc_basename in
17365 CC*)
17366 # The more standards-conforming stlport4 library is
17367 # incompatible with the Cstd library. Avoid specifying
17368 # it if it's in CXXFLAGS. Ignore libCrun as
17369 # -library=stlport4 depends on it.
17370 case " $CXX $CXXFLAGS " in
17371 *" -library=stlport4 "*)
17372 solaris_use_stlport4=yes
17373 ;;
17374 esac
17375
17376 # Adding this requires a known-good setup of shared libraries for
17377 # Sun compiler versions before 5.6, else PIC objects from an old
17378 # archive will be linked into the output, leading to subtle bugs.
17379 if test "$solaris_use_stlport4" != yes; then
17380 postdeps_CXX='-library=Cstd -library=Crun'
17381 fi
17382 ;;
17383 esac
17384 ;;
17385esac
17386
17387
17388case " $postdeps_CXX " in
17389*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17390esac
17391 compiler_lib_search_dirs_CXX=
17392if test -n "${compiler_lib_search_path_CXX}"; then
17393 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17394fi
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426 lt_prog_compiler_wl_CXX=
17427lt_prog_compiler_pic_CXX=
17428lt_prog_compiler_static_CXX=
17429
cristy8b350f62009-11-15 23:12:43 +000017430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017431$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17432
17433 # C++ specific cases for pic, static, wl, etc.
17434 if test "$GXX" = yes; then
17435 lt_prog_compiler_wl_CXX='-Wl,'
17436 lt_prog_compiler_static_CXX='-static'
17437
17438 case $host_os in
17439 aix*)
17440 # All AIX code is PIC.
17441 if test "$host_cpu" = ia64; then
17442 # AIX 5 now supports IA64 processor
17443 lt_prog_compiler_static_CXX='-Bstatic'
17444 fi
17445 ;;
17446
17447 amigaos*)
17448 case $host_cpu in
17449 powerpc)
17450 # see comment about AmigaOS4 .so support
17451 lt_prog_compiler_pic_CXX='-fPIC'
17452 ;;
17453 m68k)
17454 # FIXME: we need at least 68020 code to build shared libraries, but
17455 # adding the `-m68020' flag to GCC prevents building anything better,
17456 # like `-m68040'.
17457 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17458 ;;
17459 esac
17460 ;;
17461
17462 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17463 # PIC is the default for these OSes.
17464 ;;
17465 mingw* | cygwin* | os2* | pw32* | cegcc*)
17466 # This hack is so that the source file can tell whether it is being
17467 # built for inclusion in a dll (and should export symbols for example).
17468 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17469 # (--disable-auto-import) libraries
17470 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17471 ;;
17472 darwin* | rhapsody*)
17473 # PIC is the default on this platform
17474 # Common symbols not allowed in MH_DYLIB files
17475 lt_prog_compiler_pic_CXX='-fno-common'
17476 ;;
17477 *djgpp*)
17478 # DJGPP does not support shared libraries at all
17479 lt_prog_compiler_pic_CXX=
17480 ;;
17481 interix[3-9]*)
17482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17483 # Instead, we relocate shared libraries at runtime.
17484 ;;
17485 sysv4*MP*)
17486 if test -d /usr/nec; then
17487 lt_prog_compiler_pic_CXX=-Kconform_pic
17488 fi
17489 ;;
17490 hpux*)
17491 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17492 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17493 # sets the default TLS model and affects inlining.
17494 case $host_cpu in
17495 hppa*64*)
17496 ;;
17497 *)
17498 lt_prog_compiler_pic_CXX='-fPIC'
17499 ;;
17500 esac
17501 ;;
17502 *qnx* | *nto*)
17503 # QNX uses GNU C++, but need to define -shared option too, otherwise
17504 # it will coredump.
17505 lt_prog_compiler_pic_CXX='-fPIC -shared'
17506 ;;
17507 *)
17508 lt_prog_compiler_pic_CXX='-fPIC'
17509 ;;
17510 esac
17511 else
17512 case $host_os in
17513 aix[4-9]*)
17514 # All AIX code is PIC.
17515 if test "$host_cpu" = ia64; then
17516 # AIX 5 now supports IA64 processor
17517 lt_prog_compiler_static_CXX='-Bstatic'
17518 else
17519 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17520 fi
17521 ;;
17522 chorus*)
17523 case $cc_basename in
17524 cxch68*)
17525 # Green Hills C++ Compiler
17526 # _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"
17527 ;;
17528 esac
17529 ;;
17530 dgux*)
17531 case $cc_basename in
17532 ec++*)
17533 lt_prog_compiler_pic_CXX='-KPIC'
17534 ;;
17535 ghcx*)
17536 # Green Hills C++ Compiler
17537 lt_prog_compiler_pic_CXX='-pic'
17538 ;;
17539 *)
17540 ;;
17541 esac
17542 ;;
17543 freebsd* | dragonfly*)
17544 # FreeBSD uses GNU C++
17545 ;;
17546 hpux9* | hpux10* | hpux11*)
17547 case $cc_basename in
17548 CC*)
17549 lt_prog_compiler_wl_CXX='-Wl,'
17550 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17551 if test "$host_cpu" != ia64; then
17552 lt_prog_compiler_pic_CXX='+Z'
17553 fi
17554 ;;
17555 aCC*)
17556 lt_prog_compiler_wl_CXX='-Wl,'
17557 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17558 case $host_cpu in
17559 hppa*64*|ia64*)
17560 # +Z the default
17561 ;;
17562 *)
17563 lt_prog_compiler_pic_CXX='+Z'
17564 ;;
17565 esac
17566 ;;
17567 *)
17568 ;;
17569 esac
17570 ;;
17571 interix*)
17572 # This is c89, which is MS Visual C++ (no shared libs)
17573 # Anyone wants to do a port?
17574 ;;
17575 irix5* | irix6* | nonstopux*)
17576 case $cc_basename in
17577 CC*)
17578 lt_prog_compiler_wl_CXX='-Wl,'
17579 lt_prog_compiler_static_CXX='-non_shared'
17580 # CC pic flag -KPIC is the default.
17581 ;;
17582 *)
17583 ;;
17584 esac
17585 ;;
cristy18304f92009-11-22 15:48:26 +000017586 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017587 case $cc_basename in
17588 KCC*)
17589 # KAI C++ Compiler
17590 lt_prog_compiler_wl_CXX='--backend -Wl,'
17591 lt_prog_compiler_pic_CXX='-fPIC'
17592 ;;
17593 ecpc* )
17594 # old Intel C++ for x86_64 which still supported -KPIC.
17595 lt_prog_compiler_wl_CXX='-Wl,'
17596 lt_prog_compiler_pic_CXX='-KPIC'
17597 lt_prog_compiler_static_CXX='-static'
17598 ;;
17599 icpc* )
17600 # Intel C++, used to be incompatible with GCC.
17601 # ICC 10 doesn't accept -KPIC any more.
17602 lt_prog_compiler_wl_CXX='-Wl,'
17603 lt_prog_compiler_pic_CXX='-fPIC'
17604 lt_prog_compiler_static_CXX='-static'
17605 ;;
17606 pgCC* | pgcpp*)
17607 # Portland Group C++ compiler
17608 lt_prog_compiler_wl_CXX='-Wl,'
17609 lt_prog_compiler_pic_CXX='-fpic'
17610 lt_prog_compiler_static_CXX='-Bstatic'
17611 ;;
17612 cxx*)
17613 # Compaq C++
17614 # Make sure the PIC flag is empty. It appears that all Alpha
17615 # Linux and Compaq Tru64 Unix objects are PIC.
17616 lt_prog_compiler_pic_CXX=
17617 lt_prog_compiler_static_CXX='-non_shared'
17618 ;;
cristy18304f92009-11-22 15:48:26 +000017619 xlc* | xlC*)
17620 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017621 lt_prog_compiler_wl_CXX='-Wl,'
17622 lt_prog_compiler_pic_CXX='-qpic'
17623 lt_prog_compiler_static_CXX='-qstaticlink'
17624 ;;
17625 *)
17626 case `$CC -V 2>&1 | sed 5q` in
17627 *Sun\ C*)
17628 # Sun C++ 5.9
17629 lt_prog_compiler_pic_CXX='-KPIC'
17630 lt_prog_compiler_static_CXX='-Bstatic'
17631 lt_prog_compiler_wl_CXX='-Qoption ld '
17632 ;;
17633 esac
17634 ;;
17635 esac
17636 ;;
17637 lynxos*)
17638 ;;
17639 m88k*)
17640 ;;
17641 mvs*)
17642 case $cc_basename in
17643 cxx*)
17644 lt_prog_compiler_pic_CXX='-W c,exportall'
17645 ;;
17646 *)
17647 ;;
17648 esac
17649 ;;
17650 netbsd*)
17651 ;;
17652 *qnx* | *nto*)
17653 # QNX uses GNU C++, but need to define -shared option too, otherwise
17654 # it will coredump.
17655 lt_prog_compiler_pic_CXX='-fPIC -shared'
17656 ;;
17657 osf3* | osf4* | osf5*)
17658 case $cc_basename in
17659 KCC*)
17660 lt_prog_compiler_wl_CXX='--backend -Wl,'
17661 ;;
17662 RCC*)
17663 # Rational C++ 2.4.1
17664 lt_prog_compiler_pic_CXX='-pic'
17665 ;;
17666 cxx*)
17667 # Digital/Compaq C++
17668 lt_prog_compiler_wl_CXX='-Wl,'
17669 # Make sure the PIC flag is empty. It appears that all Alpha
17670 # Linux and Compaq Tru64 Unix objects are PIC.
17671 lt_prog_compiler_pic_CXX=
17672 lt_prog_compiler_static_CXX='-non_shared'
17673 ;;
17674 *)
17675 ;;
17676 esac
17677 ;;
17678 psos*)
17679 ;;
17680 solaris*)
17681 case $cc_basename in
17682 CC*)
17683 # Sun C++ 4.2, 5.x and Centerline C++
17684 lt_prog_compiler_pic_CXX='-KPIC'
17685 lt_prog_compiler_static_CXX='-Bstatic'
17686 lt_prog_compiler_wl_CXX='-Qoption ld '
17687 ;;
17688 gcx*)
17689 # Green Hills C++ Compiler
17690 lt_prog_compiler_pic_CXX='-PIC'
17691 ;;
17692 *)
17693 ;;
17694 esac
17695 ;;
17696 sunos4*)
17697 case $cc_basename in
17698 CC*)
17699 # Sun C++ 4.x
17700 lt_prog_compiler_pic_CXX='-pic'
17701 lt_prog_compiler_static_CXX='-Bstatic'
17702 ;;
17703 lcc*)
17704 # Lucid
17705 lt_prog_compiler_pic_CXX='-pic'
17706 ;;
17707 *)
17708 ;;
17709 esac
17710 ;;
17711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17712 case $cc_basename in
17713 CC*)
17714 lt_prog_compiler_wl_CXX='-Wl,'
17715 lt_prog_compiler_pic_CXX='-KPIC'
17716 lt_prog_compiler_static_CXX='-Bstatic'
17717 ;;
17718 esac
17719 ;;
17720 tandem*)
17721 case $cc_basename in
17722 NCC*)
17723 # NonStop-UX NCC 3.20
17724 lt_prog_compiler_pic_CXX='-KPIC'
17725 ;;
17726 *)
17727 ;;
17728 esac
17729 ;;
17730 vxworks*)
17731 ;;
17732 *)
17733 lt_prog_compiler_can_build_shared_CXX=no
17734 ;;
17735 esac
17736 fi
17737
17738case $host_os in
17739 # For platforms which do not support PIC, -DPIC is meaningless:
17740 *djgpp*)
17741 lt_prog_compiler_pic_CXX=
17742 ;;
17743 *)
17744 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17745 ;;
17746esac
cristy8b350f62009-11-15 23:12:43 +000017747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017748$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17749
17750
17751
17752#
17753# Check to make sure the PIC flag actually works.
17754#
17755if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017756 { $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 +000017757$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017758if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017759 $as_echo_n "(cached) " >&6
17760else
17761 lt_cv_prog_compiler_pic_works_CXX=no
17762 ac_outfile=conftest.$ac_objext
17763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17764 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17765 # Insert the option either (1) after the last *FLAGS variable, or
17766 # (2) before a word containing "conftest.", or (3) at the end.
17767 # Note that $ac_compile itself does not contain backslashes and begins
17768 # with a dollar sign (not a hyphen), so the echo should work correctly.
17769 # The option is referenced via a variable to avoid confusing sed.
17770 lt_compile=`echo "$ac_compile" | $SED \
17771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17773 -e 's:$: $lt_compiler_flag:'`
cristy964cb7f2010-04-25 23:18:00 +000017774 (eval echo "\"\$as_me:17774: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017775 (eval "$lt_compile" 2>conftest.err)
17776 ac_status=$?
17777 cat conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +000017778 echo "$as_me:17778: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017779 if (exit $ac_status) && test -s "$ac_outfile"; then
17780 # The compiler can only warn and ignore the option if not recognized
17781 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017782 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17785 lt_cv_prog_compiler_pic_works_CXX=yes
17786 fi
17787 fi
17788 $RM conftest*
17789
17790fi
cristy8b350f62009-11-15 23:12:43 +000017791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017792$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17793
17794if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17795 case $lt_prog_compiler_pic_CXX in
17796 "" | " "*) ;;
17797 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17798 esac
17799else
17800 lt_prog_compiler_pic_CXX=
17801 lt_prog_compiler_can_build_shared_CXX=no
17802fi
17803
17804fi
17805
17806
17807
17808#
17809# Check to make sure the static flag actually works.
17810#
17811wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017813$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017814if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017815 $as_echo_n "(cached) " >&6
17816else
17817 lt_cv_prog_compiler_static_works_CXX=no
17818 save_LDFLAGS="$LDFLAGS"
17819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17820 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17822 # The linker can only warn and ignore the option if not recognized
17823 # So say no if there are warnings
17824 if test -s conftest.err; then
17825 # Append any errors to the config.log.
17826 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017827 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17829 if diff conftest.exp conftest.er2 >/dev/null; then
17830 lt_cv_prog_compiler_static_works_CXX=yes
17831 fi
17832 else
17833 lt_cv_prog_compiler_static_works_CXX=yes
17834 fi
17835 fi
17836 $RM -r conftest*
17837 LDFLAGS="$save_LDFLAGS"
17838
17839fi
cristy8b350f62009-11-15 23:12:43 +000017840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017841$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17842
17843if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17844 :
17845else
17846 lt_prog_compiler_static_CXX=
17847fi
17848
17849
17850
17851
cristy8b350f62009-11-15 23:12:43 +000017852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017854if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017855 $as_echo_n "(cached) " >&6
17856else
17857 lt_cv_prog_compiler_c_o_CXX=no
17858 $RM -r conftest 2>/dev/null
17859 mkdir conftest
17860 cd conftest
17861 mkdir out
17862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17863
17864 lt_compiler_flag="-o out/conftest2.$ac_objext"
17865 # Insert the option either (1) after the last *FLAGS variable, or
17866 # (2) before a word containing "conftest.", or (3) at the end.
17867 # Note that $ac_compile itself does not contain backslashes and begins
17868 # with a dollar sign (not a hyphen), so the echo should work correctly.
17869 lt_compile=`echo "$ac_compile" | $SED \
17870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17872 -e 's:$: $lt_compiler_flag:'`
cristy964cb7f2010-04-25 23:18:00 +000017873 (eval echo "\"\$as_me:17873: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017874 (eval "$lt_compile" 2>out/conftest.err)
17875 ac_status=$?
17876 cat out/conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +000017877 echo "$as_me:17877: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17879 then
17880 # The compiler can only warn and ignore the option if not recognized
17881 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017882 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17885 lt_cv_prog_compiler_c_o_CXX=yes
17886 fi
17887 fi
17888 chmod u+w . 2>&5
17889 $RM conftest*
17890 # SGI C++ compiler will create directory out/ii_files/ for
17891 # template instantiation
17892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17893 $RM out/* && rmdir out
17894 cd ..
17895 $RM -r conftest
17896 $RM conftest*
17897
17898fi
cristy8b350f62009-11-15 23:12:43 +000017899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017900$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17901
17902
17903
cristy8b350f62009-11-15 23:12:43 +000017904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017906if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017907 $as_echo_n "(cached) " >&6
17908else
17909 lt_cv_prog_compiler_c_o_CXX=no
17910 $RM -r conftest 2>/dev/null
17911 mkdir conftest
17912 cd conftest
17913 mkdir out
17914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17915
17916 lt_compiler_flag="-o out/conftest2.$ac_objext"
17917 # Insert the option either (1) after the last *FLAGS variable, or
17918 # (2) before a word containing "conftest.", or (3) at the end.
17919 # Note that $ac_compile itself does not contain backslashes and begins
17920 # with a dollar sign (not a hyphen), so the echo should work correctly.
17921 lt_compile=`echo "$ac_compile" | $SED \
17922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17924 -e 's:$: $lt_compiler_flag:'`
cristy964cb7f2010-04-25 23:18:00 +000017925 (eval echo "\"\$as_me:17925: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017926 (eval "$lt_compile" 2>out/conftest.err)
17927 ac_status=$?
17928 cat out/conftest.err >&5
cristy964cb7f2010-04-25 23:18:00 +000017929 echo "$as_me:17929: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17931 then
17932 # The compiler can only warn and ignore the option if not recognized
17933 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017934 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17937 lt_cv_prog_compiler_c_o_CXX=yes
17938 fi
17939 fi
17940 chmod u+w . 2>&5
17941 $RM conftest*
17942 # SGI C++ compiler will create directory out/ii_files/ for
17943 # template instantiation
17944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17945 $RM out/* && rmdir out
17946 cd ..
17947 $RM -r conftest
17948 $RM conftest*
17949
17950fi
cristy8b350f62009-11-15 23:12:43 +000017951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017952$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17953
17954
17955
17956
17957hard_links="nottested"
17958if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17959 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017961$as_echo_n "checking if we can lock with hard links... " >&6; }
17962 hard_links=yes
17963 $RM conftest*
17964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17965 touch conftest.a
17966 ln conftest.a conftest.b 2>&5 || hard_links=no
17967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017969$as_echo "$hard_links" >&6; }
17970 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017971 { $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 +000017972$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17973 need_locks=warn
17974 fi
17975else
17976 need_locks=no
17977fi
17978
17979
17980
cristy8b350f62009-11-15 23:12:43 +000017981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017982$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17983
17984 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17985 case $host_os in
17986 aix[4-9]*)
17987 # If we're using GNU nm, then we don't want the "-C" option.
17988 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000017990 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 +000017991 else
17992 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'
17993 fi
17994 ;;
17995 pw32*)
17996 export_symbols_cmds_CXX="$ltdll_cmds"
17997 ;;
17998 cygwin* | mingw* | cegcc*)
17999 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'
18000 ;;
18001 *)
18002 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18003 ;;
18004 esac
18005 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18006
cristy8b350f62009-11-15 23:12:43 +000018007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018008$as_echo "$ld_shlibs_CXX" >&6; }
18009test "$ld_shlibs_CXX" = no && can_build_shared=no
18010
18011with_gnu_ld_CXX=$with_gnu_ld
18012
18013
18014
18015
18016
18017
18018#
18019# Do we need to explicitly link libc?
18020#
18021case "x$archive_cmds_need_lc_CXX" in
18022x|xyes)
18023 # Assume -lc should be added
18024 archive_cmds_need_lc_CXX=yes
18025
18026 if test "$enable_shared" = yes && test "$GCC" = yes; then
18027 case $archive_cmds_CXX in
18028 *'~'*)
18029 # FIXME: we may have to deal with multi-command sequences.
18030 ;;
18031 '$CC '*)
18032 # Test whether the compiler implicitly links with -lc since on some
18033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18034 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018036$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000018037 $RM conftest*
18038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018039
cristy18304f92009-11-22 15:48:26 +000018040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018041 (eval $ac_compile) 2>&5
18042 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18044 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000018045 soname=conftest
18046 lib=conftest
18047 libobjs=conftest.$ac_objext
18048 deplibs=
18049 wl=$lt_prog_compiler_wl_CXX
18050 pic_flag=$lt_prog_compiler_pic_CXX
18051 compiler_flags=-v
18052 linker_flags=-v
18053 verstring=
18054 output_objdir=.
18055 libname=conftest
18056 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18057 allow_undefined_flag_CXX=
18058 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 +000018059 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18060 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18062 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000018063 then
18064 archive_cmds_need_lc_CXX=no
18065 else
18066 archive_cmds_need_lc_CXX=yes
18067 fi
18068 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18069 else
18070 cat conftest.err 1>&5
18071 fi
18072 $RM conftest*
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18074$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018075 ;;
18076 esac
18077 fi
18078 ;;
18079esac
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
cristy8b350f62009-11-15 23:12:43 +000018144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018145$as_echo_n "checking dynamic linker characteristics... " >&6; }
18146
18147library_names_spec=
18148libname_spec='lib$name'
18149soname_spec=
18150shrext_cmds=".so"
18151postinstall_cmds=
18152postuninstall_cmds=
18153finish_cmds=
18154finish_eval=
18155shlibpath_var=
18156shlibpath_overrides_runpath=unknown
18157version_type=none
18158dynamic_linker="$host_os ld.so"
18159sys_lib_dlsearch_path_spec="/lib /usr/lib"
18160need_lib_prefix=unknown
18161hardcode_into_libs=no
18162
18163# when you set need_version to no, make sure it does not cause -set_version
18164# flags to be left without arguments
18165need_version=unknown
18166
18167case $host_os in
18168aix3*)
18169 version_type=linux
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18171 shlibpath_var=LIBPATH
18172
18173 # AIX 3 has no versioning support, so we append a major version to the name.
18174 soname_spec='${libname}${release}${shared_ext}$major'
18175 ;;
18176
18177aix[4-9]*)
18178 version_type=linux
18179 need_lib_prefix=no
18180 need_version=no
18181 hardcode_into_libs=yes
18182 if test "$host_cpu" = ia64; then
18183 # AIX 5 supports IA64
18184 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18185 shlibpath_var=LD_LIBRARY_PATH
18186 else
18187 # With GCC up to 2.95.x, collect2 would create an import file
18188 # for dependence libraries. The import file would start with
18189 # the line `#! .'. This would cause the generated library to
18190 # depend on `.', always an invalid library. This was fixed in
18191 # development snapshots of GCC prior to 3.0.
18192 case $host_os in
18193 aix4 | aix4.[01] | aix4.[01].*)
18194 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18195 echo ' yes '
18196 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18197 :
18198 else
18199 can_build_shared=no
18200 fi
18201 ;;
18202 esac
18203 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18204 # soname into executable. Probably we can add versioning support to
18205 # collect2, so additional links can be useful in future.
18206 if test "$aix_use_runtimelinking" = yes; then
18207 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18208 # instead of lib<name>.a to let people know that these are not
18209 # typical AIX shared libraries.
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18211 else
18212 # We preserve .a as extension for shared libraries through AIX4.2
18213 # and later when we are not doing run time linking.
18214 library_names_spec='${libname}${release}.a $libname.a'
18215 soname_spec='${libname}${release}${shared_ext}$major'
18216 fi
18217 shlibpath_var=LIBPATH
18218 fi
18219 ;;
18220
18221amigaos*)
18222 case $host_cpu in
18223 powerpc)
18224 # Since July 2007 AmigaOS4 officially supports .so libraries.
18225 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 ;;
18228 m68k)
18229 library_names_spec='$libname.ixlibrary $libname.a'
18230 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000018231 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 +000018232 ;;
18233 esac
18234 ;;
18235
18236beos*)
18237 library_names_spec='${libname}${shared_ext}'
18238 dynamic_linker="$host_os ld.so"
18239 shlibpath_var=LIBRARY_PATH
18240 ;;
18241
18242bsdi[45]*)
18243 version_type=linux
18244 need_version=no
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18246 soname_spec='${libname}${release}${shared_ext}$major'
18247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18248 shlibpath_var=LD_LIBRARY_PATH
18249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18251 # the default ld.so.conf also contains /usr/contrib/lib and
18252 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18253 # libtool to hard-code these into programs
18254 ;;
18255
18256cygwin* | mingw* | pw32* | cegcc*)
18257 version_type=windows
18258 shrext_cmds=".dll"
18259 need_version=no
18260 need_lib_prefix=no
18261
18262 case $GCC,$host_os in
18263 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18264 library_names_spec='$libname.dll.a'
18265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18266 postinstall_cmds='base_file=`basename \${file}`~
18267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18268 dldir=$destdir/`dirname \$dlpath`~
18269 test -d \$dldir || mkdir -p \$dldir~
18270 $install_prog $dir/$dlname \$dldir/$dlname~
18271 chmod a+x \$dldir/$dlname~
18272 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18273 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18274 fi'
18275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18276 dlpath=$dir/\$dldll~
18277 $RM \$dlpath'
18278 shlibpath_overrides_runpath=yes
18279
18280 case $host_os in
18281 cygwin*)
18282 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18283 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018284 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018285 ;;
18286 mingw* | cegcc*)
18287 # MinGW DLLs use traditional 'lib' prefix
18288 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018289 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18290 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18291 # It is most probably a Windows format PATH printed by
18292 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18293 # path with ; separators, and with drive letters. We can handle the
18294 # drive letters (cygwin fileutils understands them), so leave them,
18295 # especially as we might pass files found there to a mingw objdump,
18296 # which wouldn't understand a cygwinified path. Ahh.
18297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18298 else
18299 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18300 fi
cristy3ed852e2009-09-05 21:47:34 +000018301 ;;
18302 pw32*)
18303 # pw32 DLLs use 'pw' prefix rather than 'lib'
18304 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18305 ;;
18306 esac
18307 ;;
18308
18309 *)
18310 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18311 ;;
18312 esac
18313 dynamic_linker='Win32 ld.exe'
18314 # FIXME: first we should search . and the directory the executable is in
18315 shlibpath_var=PATH
18316 ;;
18317
18318darwin* | rhapsody*)
18319 dynamic_linker="$host_os dyld"
18320 version_type=darwin
18321 need_lib_prefix=no
18322 need_version=no
18323 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18324 soname_spec='${libname}${release}${major}$shared_ext'
18325 shlibpath_overrides_runpath=yes
18326 shlibpath_var=DYLD_LIBRARY_PATH
18327 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18328
18329 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18330 ;;
18331
18332dgux*)
18333 version_type=linux
18334 need_lib_prefix=no
18335 need_version=no
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 shlibpath_var=LD_LIBRARY_PATH
18339 ;;
18340
18341freebsd1*)
18342 dynamic_linker=no
18343 ;;
18344
18345freebsd* | dragonfly*)
18346 # DragonFly does not have aout. When/if they implement a new
18347 # versioning mechanism, adjust this.
18348 if test -x /usr/bin/objformat; then
18349 objformat=`/usr/bin/objformat`
18350 else
18351 case $host_os in
18352 freebsd[123]*) objformat=aout ;;
18353 *) objformat=elf ;;
18354 esac
18355 fi
18356 version_type=freebsd-$objformat
18357 case $version_type in
18358 freebsd-elf*)
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18360 need_version=no
18361 need_lib_prefix=no
18362 ;;
18363 freebsd-*)
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18365 need_version=yes
18366 ;;
18367 esac
18368 shlibpath_var=LD_LIBRARY_PATH
18369 case $host_os in
18370 freebsd2*)
18371 shlibpath_overrides_runpath=yes
18372 ;;
18373 freebsd3.[01]* | freebsdelf3.[01]*)
18374 shlibpath_overrides_runpath=yes
18375 hardcode_into_libs=yes
18376 ;;
18377 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18378 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18379 shlibpath_overrides_runpath=no
18380 hardcode_into_libs=yes
18381 ;;
18382 *) # from 4.6 on, and DragonFly
18383 shlibpath_overrides_runpath=yes
18384 hardcode_into_libs=yes
18385 ;;
18386 esac
18387 ;;
18388
18389gnu*)
18390 version_type=linux
18391 need_lib_prefix=no
18392 need_version=no
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 shlibpath_var=LD_LIBRARY_PATH
18396 hardcode_into_libs=yes
18397 ;;
18398
18399hpux9* | hpux10* | hpux11*)
18400 # Give a soname corresponding to the major version so that dld.sl refuses to
18401 # link against other versions.
18402 version_type=sunos
18403 need_lib_prefix=no
18404 need_version=no
18405 case $host_cpu in
18406 ia64*)
18407 shrext_cmds='.so'
18408 hardcode_into_libs=yes
18409 dynamic_linker="$host_os dld.so"
18410 shlibpath_var=LD_LIBRARY_PATH
18411 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413 soname_spec='${libname}${release}${shared_ext}$major'
18414 if test "X$HPUX_IA64_MODE" = X32; then
18415 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18416 else
18417 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18418 fi
18419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18420 ;;
18421 hppa*64*)
18422 shrext_cmds='.sl'
18423 hardcode_into_libs=yes
18424 dynamic_linker="$host_os dld.sl"
18425 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18431 ;;
18432 *)
18433 shrext_cmds='.sl'
18434 dynamic_linker="$host_os dld.sl"
18435 shlibpath_var=SHLIB_PATH
18436 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 ;;
18440 esac
cristy18304f92009-11-22 15:48:26 +000018441 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018442 postinstall_cmds='chmod 555 $lib'
18443 ;;
18444
18445interix[3-9]*)
18446 version_type=linux
18447 need_lib_prefix=no
18448 need_version=no
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18452 shlibpath_var=LD_LIBRARY_PATH
18453 shlibpath_overrides_runpath=no
18454 hardcode_into_libs=yes
18455 ;;
18456
18457irix5* | irix6* | nonstopux*)
18458 case $host_os in
18459 nonstopux*) version_type=nonstopux ;;
18460 *)
18461 if test "$lt_cv_prog_gnu_ld" = yes; then
18462 version_type=linux
18463 else
18464 version_type=irix
18465 fi ;;
18466 esac
18467 need_lib_prefix=no
18468 need_version=no
18469 soname_spec='${libname}${release}${shared_ext}$major'
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18471 case $host_os in
18472 irix5* | nonstopux*)
18473 libsuff= shlibsuff=
18474 ;;
18475 *)
18476 case $LD in # libtool.m4 will add one of these switches to LD
18477 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18478 libsuff= shlibsuff= libmagic=32-bit;;
18479 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18480 libsuff=32 shlibsuff=N32 libmagic=N32;;
18481 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18482 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18483 *) libsuff= shlibsuff= libmagic=never-match;;
18484 esac
18485 ;;
18486 esac
18487 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18488 shlibpath_overrides_runpath=no
18489 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18490 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18491 hardcode_into_libs=yes
18492 ;;
18493
18494# No shared lib support for Linux oldld, aout, or coff.
18495linux*oldld* | linux*aout* | linux*coff*)
18496 dynamic_linker=no
18497 ;;
18498
18499# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018500linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018501 version_type=linux
18502 need_lib_prefix=no
18503 need_version=no
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18505 soname_spec='${libname}${release}${shared_ext}$major'
18506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18507 shlibpath_var=LD_LIBRARY_PATH
18508 shlibpath_overrides_runpath=no
18509 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018510 save_LDFLAGS=$LDFLAGS
18511 save_libdir=$libdir
18512 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18513 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018515/* end confdefs.h. */
18516
18517int
18518main ()
18519{
18520
18521 ;
18522 return 0;
18523}
18524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018525if ac_fn_cxx_try_link "$LINENO"; then :
18526 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018527 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018528fi
cristy3ed852e2009-09-05 21:47:34 +000018529fi
cristy8b350f62009-11-15 23:12:43 +000018530rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018532 LDFLAGS=$save_LDFLAGS
18533 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018534
18535 # This implies no fast_install, which is unacceptable.
18536 # Some rework will be needed to allow for fast_install
18537 # before this can be enabled.
18538 hardcode_into_libs=yes
18539
cristy679ed8e2009-12-05 02:37:41 +000018540 # Add ABI-specific directories to the system library path.
18541 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18542
cristy3ed852e2009-09-05 21:47:34 +000018543 # Append ld.so.conf contents to the search path
18544 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018545 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
cristy679ed8e2009-12-05 02:37:41 +000018546 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018547 fi
18548
18549 # We used to test for /lib/ld.so.1 and disable shared libraries on
18550 # powerpc, because MkLinux only supported shared libraries with the
18551 # GNU dynamic linker. Since this was broken with cross compilers,
18552 # most powerpc-linux boxes support dynamic linking these days and
18553 # people can always --disable-shared, the test was removed, and we
18554 # assume the GNU/Linux dynamic linker is in use.
18555 dynamic_linker='GNU/Linux ld.so'
18556 ;;
18557
18558netbsd*)
18559 version_type=sunos
18560 need_lib_prefix=no
18561 need_version=no
18562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18565 dynamic_linker='NetBSD (a.out) ld.so'
18566 else
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 dynamic_linker='NetBSD ld.elf_so'
18570 fi
18571 shlibpath_var=LD_LIBRARY_PATH
18572 shlibpath_overrides_runpath=yes
18573 hardcode_into_libs=yes
18574 ;;
18575
18576newsos6)
18577 version_type=linux
18578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18579 shlibpath_var=LD_LIBRARY_PATH
18580 shlibpath_overrides_runpath=yes
18581 ;;
18582
18583*nto* | *qnx*)
18584 version_type=qnx
18585 need_lib_prefix=no
18586 need_version=no
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 shlibpath_overrides_runpath=no
18591 hardcode_into_libs=yes
18592 dynamic_linker='ldqnx.so'
18593 ;;
18594
18595openbsd*)
18596 version_type=sunos
18597 sys_lib_dlsearch_path_spec="/usr/lib"
18598 need_lib_prefix=no
18599 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18600 case $host_os in
18601 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18602 *) need_version=no ;;
18603 esac
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18606 shlibpath_var=LD_LIBRARY_PATH
18607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18608 case $host_os in
18609 openbsd2.[89] | openbsd2.[89].*)
18610 shlibpath_overrides_runpath=no
18611 ;;
18612 *)
18613 shlibpath_overrides_runpath=yes
18614 ;;
18615 esac
18616 else
18617 shlibpath_overrides_runpath=yes
18618 fi
18619 ;;
18620
18621os2*)
18622 libname_spec='$name'
18623 shrext_cmds=".dll"
18624 need_lib_prefix=no
18625 library_names_spec='$libname${shared_ext} $libname.a'
18626 dynamic_linker='OS/2 ld.exe'
18627 shlibpath_var=LIBPATH
18628 ;;
18629
18630osf3* | osf4* | osf5*)
18631 version_type=osf
18632 need_lib_prefix=no
18633 need_version=no
18634 soname_spec='${libname}${release}${shared_ext}$major'
18635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636 shlibpath_var=LD_LIBRARY_PATH
18637 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18638 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18639 ;;
18640
18641rdos*)
18642 dynamic_linker=no
18643 ;;
18644
18645solaris*)
18646 version_type=linux
18647 need_lib_prefix=no
18648 need_version=no
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18650 soname_spec='${libname}${release}${shared_ext}$major'
18651 shlibpath_var=LD_LIBRARY_PATH
18652 shlibpath_overrides_runpath=yes
18653 hardcode_into_libs=yes
18654 # ldd complains unless libraries are executable
18655 postinstall_cmds='chmod +x $lib'
18656 ;;
18657
18658sunos4*)
18659 version_type=sunos
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18662 shlibpath_var=LD_LIBRARY_PATH
18663 shlibpath_overrides_runpath=yes
18664 if test "$with_gnu_ld" = yes; then
18665 need_lib_prefix=no
18666 fi
18667 need_version=yes
18668 ;;
18669
18670sysv4 | sysv4.3*)
18671 version_type=linux
18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673 soname_spec='${libname}${release}${shared_ext}$major'
18674 shlibpath_var=LD_LIBRARY_PATH
18675 case $host_vendor in
18676 sni)
18677 shlibpath_overrides_runpath=no
18678 need_lib_prefix=no
18679 runpath_var=LD_RUN_PATH
18680 ;;
18681 siemens)
18682 need_lib_prefix=no
18683 ;;
18684 motorola)
18685 need_lib_prefix=no
18686 need_version=no
18687 shlibpath_overrides_runpath=no
18688 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18689 ;;
18690 esac
18691 ;;
18692
18693sysv4*MP*)
18694 if test -d /usr/nec ;then
18695 version_type=linux
18696 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18697 soname_spec='$libname${shared_ext}.$major'
18698 shlibpath_var=LD_LIBRARY_PATH
18699 fi
18700 ;;
18701
18702sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18703 version_type=freebsd-elf
18704 need_lib_prefix=no
18705 need_version=no
18706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18707 soname_spec='${libname}${release}${shared_ext}$major'
18708 shlibpath_var=LD_LIBRARY_PATH
18709 shlibpath_overrides_runpath=yes
18710 hardcode_into_libs=yes
18711 if test "$with_gnu_ld" = yes; then
18712 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18713 else
18714 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18715 case $host_os in
18716 sco3.2v5*)
18717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18718 ;;
18719 esac
18720 fi
18721 sys_lib_dlsearch_path_spec='/usr/lib'
18722 ;;
18723
18724tpf*)
18725 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18726 version_type=linux
18727 need_lib_prefix=no
18728 need_version=no
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18730 shlibpath_var=LD_LIBRARY_PATH
18731 shlibpath_overrides_runpath=no
18732 hardcode_into_libs=yes
18733 ;;
18734
18735uts4*)
18736 version_type=linux
18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18738 soname_spec='${libname}${release}${shared_ext}$major'
18739 shlibpath_var=LD_LIBRARY_PATH
18740 ;;
18741
18742*)
18743 dynamic_linker=no
18744 ;;
18745esac
cristy8b350f62009-11-15 23:12:43 +000018746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018747$as_echo "$dynamic_linker" >&6; }
18748test "$dynamic_linker" = no && can_build_shared=no
18749
18750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18751if test "$GCC" = yes; then
18752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18753fi
18754
18755if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18756 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18757fi
18758if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18759 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18760fi
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
cristy8b350f62009-11-15 23:12:43 +000018797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018798$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18799hardcode_action_CXX=
18800if test -n "$hardcode_libdir_flag_spec_CXX" ||
18801 test -n "$runpath_var_CXX" ||
18802 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18803
18804 # We can hardcode non-existent directories.
18805 if test "$hardcode_direct_CXX" != no &&
18806 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18807 # have to relink, otherwise we might link with an installed library
18808 # when we should be linking with a yet-to-be-installed one
18809 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18810 test "$hardcode_minus_L_CXX" != no; then
18811 # Linking always hardcodes the temporary library directory.
18812 hardcode_action_CXX=relink
18813 else
18814 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18815 hardcode_action_CXX=immediate
18816 fi
18817else
18818 # We cannot hardcode anything, or else we can only hardcode existing
18819 # directories.
18820 hardcode_action_CXX=unsupported
18821fi
cristy8b350f62009-11-15 23:12:43 +000018822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018823$as_echo "$hardcode_action_CXX" >&6; }
18824
18825if test "$hardcode_action_CXX" = relink ||
18826 test "$inherit_rpath_CXX" = yes; then
18827 # Fast installation is not supported
18828 enable_fast_install=no
18829elif test "$shlibpath_overrides_runpath" = yes ||
18830 test "$enable_shared" = no; then
18831 # Fast installation is not necessary
18832 enable_fast_install=needless
18833fi
18834
18835
18836
18837
18838
18839
18840
18841 fi # test -n "$compiler"
18842
18843 CC=$lt_save_CC
18844 LDCXX=$LD
18845 LD=$lt_save_LD
18846 GCC=$lt_save_GCC
18847 with_gnu_ld=$lt_save_with_gnu_ld
18848 lt_cv_path_LDCXX=$lt_cv_path_LD
18849 lt_cv_path_LD=$lt_save_path_LD
18850 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18851 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18852fi # test "$_lt_caught_CXX_error" != yes
18853
18854ac_ext=c
18855ac_cpp='$CPP $CPPFLAGS'
18856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858ac_compiler_gnu=$ac_cv_c_compiler_gnu
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872 ac_config_commands="$ac_config_commands libtool"
18873
18874
18875
18876
18877# Only expand once:
18878
18879
18880
18881
18882
18883# Configure libltdl
18884
18885
18886
18887
18888
18889
18890
cristy18304f92009-11-22 15:48:26 +000018891
cristy8b350f62009-11-15 23:12:43 +000018892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018893$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018894if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018895 $as_echo_n "(cached) " >&6
18896else
18897
18898module=yes
18899eval libltdl_cv_shlibext=$shrext_cmds
18900
18901fi
cristy8b350f62009-11-15 23:12:43 +000018902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018903$as_echo "$libltdl_cv_shlibext" >&6; }
18904if test -n "$libltdl_cv_shlibext"; then
18905
18906cat >>confdefs.h <<_ACEOF
18907#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18908_ACEOF
18909
18910fi
18911
cristy8b350f62009-11-15 23:12:43 +000018912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018913$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018914if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018915 $as_echo_n "(cached) " >&6
18916else
18917 lt_cv_module_path_var="$shlibpath_var"
18918fi
cristy8b350f62009-11-15 23:12:43 +000018919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018920$as_echo "$lt_cv_module_path_var" >&6; }
18921if test -n "$lt_cv_module_path_var"; then
18922
18923cat >>confdefs.h <<_ACEOF
18924#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18925_ACEOF
18926
18927fi
18928
cristy8b350f62009-11-15 23:12:43 +000018929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018930$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018931if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018932 $as_echo_n "(cached) " >&6
18933else
18934 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18935fi
cristy8b350f62009-11-15 23:12:43 +000018936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018937$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18938if test -n "$lt_cv_sys_dlsearch_path"; then
18939 sys_dlsearch_path=
18940 for dir in $lt_cv_sys_dlsearch_path; do
18941 if test -z "$sys_dlsearch_path"; then
18942 sys_dlsearch_path="$dir"
18943 else
18944 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18945 fi
18946 done
18947
18948cat >>confdefs.h <<_ACEOF
18949#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18950_ACEOF
18951
18952fi
18953
18954
18955LT_DLLOADERS=
18956
18957
18958ac_ext=c
18959ac_cpp='$CPP $CPPFLAGS'
18960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18962ac_compiler_gnu=$ac_cv_c_compiler_gnu
18963
18964
18965LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018967$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018968if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018969 $as_echo_n "(cached) " >&6
18970else
18971 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018973/* end confdefs.h. */
18974
18975/* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18978#ifdef __cplusplus
18979extern "C"
18980#endif
18981char dlopen ();
18982int
18983main ()
18984{
18985return dlopen ();
18986 ;
18987 return 0;
18988}
18989_ACEOF
18990for ac_lib in '' dl; do
18991 if test -z "$ac_lib"; then
18992 ac_res="none required"
18993 else
18994 ac_res=-l$ac_lib
18995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18996 fi
cristy8b350f62009-11-15 23:12:43 +000018997 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018998 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018999fi
cristy8b350f62009-11-15 23:12:43 +000019000rm -f core conftest.err conftest.$ac_objext \
19001 conftest$ac_exeext
19002 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019003 break
19004fi
19005done
cristy8b350f62009-11-15 23:12:43 +000019006if test "${ac_cv_search_dlopen+set}" = set; then :
19007
cristy3ed852e2009-09-05 21:47:34 +000019008else
19009 ac_cv_search_dlopen=no
19010fi
19011rm conftest.$ac_ext
19012LIBS=$ac_func_search_save_LIBS
19013fi
cristy8b350f62009-11-15 23:12:43 +000019014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019015$as_echo "$ac_cv_search_dlopen" >&6; }
19016ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019017if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19019
cristy8b350f62009-11-15 23:12:43 +000019020$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019021
19022 if test "$ac_cv_search_dlopen" != "none required" ; then
19023 LIBADD_DLOPEN="-ldl"
19024 fi
19025 libltdl_cv_lib_dl_dlopen="yes"
19026 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19027else
cristy8b350f62009-11-15 23:12:43 +000019028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019029/* end confdefs.h. */
19030#if HAVE_DLFCN_H
19031# include <dlfcn.h>
19032#endif
19033
19034int
19035main ()
19036{
19037dlopen(0, 0);
19038 ;
19039 return 0;
19040}
19041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019043
cristy8b350f62009-11-15 23:12:43 +000019044$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019045
19046 libltdl_cv_func_dlopen="yes"
19047 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19048else
cristy8b350f62009-11-15 23:12:43 +000019049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019050$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019051if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019052 $as_echo_n "(cached) " >&6
19053else
19054 ac_check_lib_save_LIBS=$LIBS
19055LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019057/* end confdefs.h. */
19058
19059/* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19062#ifdef __cplusplus
19063extern "C"
19064#endif
19065char dlopen ();
19066int
19067main ()
19068{
19069return dlopen ();
19070 ;
19071 return 0;
19072}
19073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019075 ac_cv_lib_svld_dlopen=yes
19076else
cristy8b350f62009-11-15 23:12:43 +000019077 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019078fi
cristy8b350f62009-11-15 23:12:43 +000019079rm -f core conftest.err conftest.$ac_objext \
19080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019081LIBS=$ac_check_lib_save_LIBS
19082fi
cristy8b350f62009-11-15 23:12:43 +000019083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019084$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019085if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019086
cristy8b350f62009-11-15 23:12:43 +000019087$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019088
19089 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19090 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19091fi
19092
19093fi
cristy8b350f62009-11-15 23:12:43 +000019094rm -f core conftest.err conftest.$ac_objext \
19095 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019096fi
19097
19098if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19099then
19100 lt_save_LIBS="$LIBS"
19101 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019102 for ac_func in dlerror
19103do :
19104 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19105if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019106 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019107#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019108_ACEOF
19109
19110fi
19111done
19112
19113 LIBS="$lt_save_LIBS"
19114fi
19115
19116
19117LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019118ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19119if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019120
cristy8b350f62009-11-15 23:12:43 +000019121$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019122
19123 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19124else
cristy8b350f62009-11-15 23:12:43 +000019125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019126$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019127if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019128 $as_echo_n "(cached) " >&6
19129else
19130 ac_check_lib_save_LIBS=$LIBS
19131LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019133/* end confdefs.h. */
19134
19135/* Override any GCC internal prototype to avoid an error.
19136 Use char because int might match the return type of a GCC
19137 builtin and then its argument prototype would still apply. */
19138#ifdef __cplusplus
19139extern "C"
19140#endif
19141char shl_load ();
19142int
19143main ()
19144{
19145return shl_load ();
19146 ;
19147 return 0;
19148}
19149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019150if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019151 ac_cv_lib_dld_shl_load=yes
19152else
cristy8b350f62009-11-15 23:12:43 +000019153 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019154fi
cristy8b350f62009-11-15 23:12:43 +000019155rm -f core conftest.err conftest.$ac_objext \
19156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019157LIBS=$ac_check_lib_save_LIBS
19158fi
cristy8b350f62009-11-15 23:12:43 +000019159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019160$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019161if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019162
cristy8b350f62009-11-15 23:12:43 +000019163$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019164
19165 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19166 LIBADD_SHL_LOAD="-ldld"
19167fi
19168
19169fi
19170
19171
19172
19173case $host_os in
19174darwin[1567].*)
19175# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019176 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19177if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019178
cristy8b350f62009-11-15 23:12:43 +000019179$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019180
19181 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19182fi
19183
19184 ;;
19185beos*)
19186 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19187 ;;
19188cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019189 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19190"
19191if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19192 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019193else
cristy8b350f62009-11-15 23:12:43 +000019194 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019195fi
19196
cristy3ed852e2009-09-05 21:47:34 +000019197cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019198#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019199_ACEOF
19200
cristy3ed852e2009-09-05 21:47:34 +000019201 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19202 ;;
19203esac
19204
cristy8b350f62009-11-15 23:12:43 +000019205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019206$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019207if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019208 $as_echo_n "(cached) " >&6
19209else
19210 ac_check_lib_save_LIBS=$LIBS
19211LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019213/* end confdefs.h. */
19214
19215/* Override any GCC internal prototype to avoid an error.
19216 Use char because int might match the return type of a GCC
19217 builtin and then its argument prototype would still apply. */
19218#ifdef __cplusplus
19219extern "C"
19220#endif
19221char dld_link ();
19222int
19223main ()
19224{
19225return dld_link ();
19226 ;
19227 return 0;
19228}
19229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019231 ac_cv_lib_dld_dld_link=yes
19232else
cristy8b350f62009-11-15 23:12:43 +000019233 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019234fi
cristy8b350f62009-11-15 23:12:43 +000019235rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019237LIBS=$ac_check_lib_save_LIBS
19238fi
cristy8b350f62009-11-15 23:12:43 +000019239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019240$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019241if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019242
cristy8b350f62009-11-15 23:12:43 +000019243$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019244
19245 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19246fi
19247
19248
19249
19250
19251LT_DLPREOPEN=
19252if test -n "$LT_DLLOADERS"
19253then
19254 for lt_loader in $LT_DLLOADERS; do
19255 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19256 done
19257
cristy8b350f62009-11-15 23:12:43 +000019258$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019259
19260fi
19261
19262
19263LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19264
19265
19266ac_ext=c
19267ac_cpp='$CPP $CPPFLAGS'
19268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19270ac_compiler_gnu=$ac_cv_c_compiler_gnu
19271
19272
cristy8b350f62009-11-15 23:12:43 +000019273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019274$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019275if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019276 $as_echo_n "(cached) " >&6
19277else
19278 lt_cv_sys_symbol_underscore=no
19279 cat > conftest.$ac_ext <<_LT_EOF
19280void nm_test_func(){}
19281int main(){nm_test_func;return 0;}
19282_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019284 (eval $ac_compile) 2>&5
19285 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19287 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019288 # Now try to grab the symbols.
19289 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019290 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 +000019291 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19292 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19294 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019295 # See whether the symbols have a leading underscore.
19296 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19297 lt_cv_sys_symbol_underscore=yes
19298 else
19299 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19300 :
19301 else
19302 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19303 fi
19304 fi
19305 else
19306 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19307 fi
19308 else
19309 echo "configure: failed program was:" >&5
19310 cat conftest.c >&5
19311 fi
19312 rm -rf conftest*
19313
19314fi
cristy8b350f62009-11-15 23:12:43 +000019315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019316$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19317 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19318
19319
19320if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19321 if test x"$libltdl_cv_func_dlopen" = xyes ||
19322 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019324$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019325if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019326 $as_echo_n "(cached) " >&6
19327else
19328 libltdl_cv_need_uscore=unknown
19329 save_LIBS="$LIBS"
19330 LIBS="$LIBS $LIBADD_DLOPEN"
19331 if test "$cross_compiling" = yes; then :
19332 libltdl_cv_need_uscore=cross
19333else
19334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19335 lt_status=$lt_dlunknown
19336 cat > conftest.$ac_ext <<_LT_EOF
cristy964cb7f2010-04-25 23:18:00 +000019337#line 19337 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019338#include "confdefs.h"
19339
19340#if HAVE_DLFCN_H
19341#include <dlfcn.h>
19342#endif
19343
19344#include <stdio.h>
19345
19346#ifdef RTLD_GLOBAL
19347# define LT_DLGLOBAL RTLD_GLOBAL
19348#else
19349# ifdef DL_GLOBAL
19350# define LT_DLGLOBAL DL_GLOBAL
19351# else
19352# define LT_DLGLOBAL 0
19353# endif
19354#endif
19355
19356/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19357 find out it does not work in some platform. */
19358#ifndef LT_DLLAZY_OR_NOW
19359# ifdef RTLD_LAZY
19360# define LT_DLLAZY_OR_NOW RTLD_LAZY
19361# else
19362# ifdef DL_LAZY
19363# define LT_DLLAZY_OR_NOW DL_LAZY
19364# else
19365# ifdef RTLD_NOW
19366# define LT_DLLAZY_OR_NOW RTLD_NOW
19367# else
19368# ifdef DL_NOW
19369# define LT_DLLAZY_OR_NOW DL_NOW
19370# else
19371# define LT_DLLAZY_OR_NOW 0
19372# endif
19373# endif
19374# endif
19375# endif
19376#endif
19377
cristy18304f92009-11-22 15:48:26 +000019378void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019379int main ()
19380{
19381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19382 int status = $lt_dlunknown;
19383
19384 if (self)
19385 {
19386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019387 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019388 /* dlclose (self); */
19389 }
19390 else
19391 puts (dlerror ());
19392
19393 return status;
19394}
19395_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019397 (eval $ac_link) 2>&5
19398 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19400 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019401 (./conftest; exit; ) >&5 2>/dev/null
19402 lt_status=$?
19403 case x$lt_status in
19404 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19405 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19406 x$lt_dlunknown|x*) ;;
19407 esac
19408 else :
19409 # compilation failed
19410
19411 fi
19412fi
19413rm -fr conftest*
19414
19415 LIBS="$save_LIBS"
19416
19417fi
cristy8b350f62009-11-15 23:12:43 +000019418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019419$as_echo "$libltdl_cv_need_uscore" >&6; }
19420 fi
19421fi
19422
19423if test x"$libltdl_cv_need_uscore" = xyes; then
19424
cristy8b350f62009-11-15 23:12:43 +000019425$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019426
19427fi
19428
cristy8b350f62009-11-15 23:12:43 +000019429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019430$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019431if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019432 $as_echo_n "(cached) " >&6
19433else
19434 # PORTME does your system automatically load deplibs for dlopen?
19435 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19436 # For now, we just catch OSes we know something about -- in the
19437 # future, we'll try test this programmatically.
19438 lt_cv_sys_dlopen_deplibs=unknown
19439 case $host_os in
19440 aix3*|aix4.1.*|aix4.2.*)
19441 # Unknown whether this is true for these versions of AIX, but
19442 # we want this `case' here to explicitly catch those versions.
19443 lt_cv_sys_dlopen_deplibs=unknown
19444 ;;
19445 aix[4-9]*)
19446 lt_cv_sys_dlopen_deplibs=yes
19447 ;;
19448 amigaos*)
19449 case $host_cpu in
19450 powerpc)
19451 lt_cv_sys_dlopen_deplibs=no
19452 ;;
19453 esac
19454 ;;
19455 darwin*)
19456 # Assuming the user has installed a libdl from somewhere, this is true
19457 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19458 lt_cv_sys_dlopen_deplibs=yes
19459 ;;
19460 freebsd* | dragonfly*)
19461 lt_cv_sys_dlopen_deplibs=yes
19462 ;;
cristy18304f92009-11-22 15:48:26 +000019463 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019464 # GNU and its variants, using gnu ld.so (Glibc)
19465 lt_cv_sys_dlopen_deplibs=yes
19466 ;;
19467 hpux10*|hpux11*)
19468 lt_cv_sys_dlopen_deplibs=yes
19469 ;;
19470 interix*)
19471 lt_cv_sys_dlopen_deplibs=yes
19472 ;;
19473 irix[12345]*|irix6.[01]*)
19474 # Catch all versions of IRIX before 6.2, and indicate that we don't
19475 # know how it worked for any of those versions.
19476 lt_cv_sys_dlopen_deplibs=unknown
19477 ;;
19478 irix*)
19479 # The case above catches anything before 6.2, and it's known that
19480 # at 6.2 and later dlopen does load deplibs.
19481 lt_cv_sys_dlopen_deplibs=yes
19482 ;;
19483 netbsd*)
19484 lt_cv_sys_dlopen_deplibs=yes
19485 ;;
19486 openbsd*)
19487 lt_cv_sys_dlopen_deplibs=yes
19488 ;;
19489 osf[1234]*)
19490 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19491 # it did *not* use an RPATH in a shared library to find objects the
19492 # library depends on, so we explicitly say `no'.
19493 lt_cv_sys_dlopen_deplibs=no
19494 ;;
19495 osf5.0|osf5.0a|osf5.1)
19496 # dlopen *does* load deplibs and with the right loader patch applied
19497 # it even uses RPATH in a shared library to search for shared objects
19498 # that the library depends on, but there's no easy way to know if that
19499 # patch is installed. Since this is the case, all we can really
19500 # say is unknown -- it depends on the patch being installed. If
19501 # it is, this changes to `yes'. Without it, it would be `no'.
19502 lt_cv_sys_dlopen_deplibs=unknown
19503 ;;
19504 osf*)
19505 # the two cases above should catch all versions of osf <= 5.1. Read
19506 # the comments above for what we know about them.
19507 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19508 # is used to find them so we can finally say `yes'.
19509 lt_cv_sys_dlopen_deplibs=yes
19510 ;;
19511 qnx*)
19512 lt_cv_sys_dlopen_deplibs=yes
19513 ;;
19514 solaris*)
19515 lt_cv_sys_dlopen_deplibs=yes
19516 ;;
19517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19518 libltdl_cv_sys_dlopen_deplibs=yes
19519 ;;
19520 esac
19521
19522fi
cristy8b350f62009-11-15 23:12:43 +000019523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019524$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19525if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19526
cristy8b350f62009-11-15 23:12:43 +000019527$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019528
19529fi
19530
19531:
19532
cristy3ed852e2009-09-05 21:47:34 +000019533for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019534do :
19535 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19536"
19537if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019538 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019539#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019540_ACEOF
19541
19542fi
19543
19544done
19545
19546
cristy8b350f62009-11-15 23:12:43 +000019547ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019548# include <argz.h>
19549#endif
cristy8b350f62009-11-15 23:12:43 +000019550"
19551if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019552
19553cat >>confdefs.h <<_ACEOF
19554#define HAVE_ERROR_T 1
19555_ACEOF
19556
19557
19558else
19559
cristy8b350f62009-11-15 23:12:43 +000019560$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019561
19562
cristy8b350f62009-11-15 23:12:43 +000019563$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019564
19565fi
19566
19567
19568ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019569for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19570 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019571do :
19572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19573ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19574eval as_val=\$$as_ac_var
19575 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019576 cat >>confdefs.h <<_ACEOF
19577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19578_ACEOF
19579
19580else
19581 ARGZ_H=argz.h;
19582
19583 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19584
19585fi
19586done
19587
19588
cristy8b350f62009-11-15 23:12:43 +000019589if test -z "$ARGZ_H"; then :
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019591$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019592if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019593 $as_echo_n "(cached) " >&6
19594else
19595 case $host_os in #(
19596 *cygwin*)
19597 lt_cv_sys_argz_works=no
19598 if test "$cross_compiling" != no; then
19599 lt_cv_sys_argz_works="guessing no"
19600 else
19601 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19602 save_IFS=$IFS
19603 IFS=-.
19604 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19605 IFS=$save_IFS
19606 lt_os_major=${2-0}
19607 lt_os_minor=${3-0}
19608 lt_os_micro=${4-0}
19609 if test "$lt_os_major" -gt 1 \
19610 || { test "$lt_os_major" -eq 1 \
19611 && { test "$lt_os_minor" -gt 5 \
19612 || { test "$lt_os_minor" -eq 5 \
19613 && test "$lt_os_micro" -gt 24; }; }; }; then
19614 lt_cv_sys_argz_works=yes
19615 fi
19616 fi
19617 ;; #(
19618 *) lt_cv_sys_argz_works=yes ;;
19619 esac
19620fi
cristy8b350f62009-11-15 23:12:43 +000019621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019622$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019623 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019624
cristy8b350f62009-11-15 23:12:43 +000019625$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019626
19627else
19628 ARGZ_H=argz.h
19629
19630
19631 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19632
19633fi
cristy3ed852e2009-09-05 21:47:34 +000019634fi
19635
19636
19637
cristy8b350f62009-11-15 23:12:43 +000019638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019639$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019640if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019641 $as_echo_n "(cached) " >&6
19642else
19643 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19644 libltdl_cv_preloaded_symbols=yes
19645 else
19646 libltdl_cv_preloaded_symbols=no
19647 fi
19648
19649fi
cristy8b350f62009-11-15 23:12:43 +000019650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019651$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19652if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19653
cristy8b350f62009-11-15 23:12:43 +000019654$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019655
19656fi
19657
19658# Set options
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019671if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019672 withval=$with_included_ltdl;
19673fi
19674
19675
19676if test "x$with_included_ltdl" != xyes; then
19677 # We are not being forced to use the included libltdl sources, so
19678 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019679 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019680
cristy8b350f62009-11-15 23:12:43 +000019681"
19682if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19683 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 +000019684 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019685"
19686if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019688$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019689if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019690 $as_echo_n "(cached) " >&6
19691else
19692 ac_check_lib_save_LIBS=$LIBS
19693LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019695/* end confdefs.h. */
19696
19697/* Override any GCC internal prototype to avoid an error.
19698 Use char because int might match the return type of a GCC
19699 builtin and then its argument prototype would still apply. */
19700#ifdef __cplusplus
19701extern "C"
19702#endif
19703char lt_dladvise_preload ();
19704int
19705main ()
19706{
19707return lt_dladvise_preload ();
19708 ;
19709 return 0;
19710}
19711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019712if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019713 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19714else
cristy8b350f62009-11-15 23:12:43 +000019715 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019716fi
cristy8b350f62009-11-15 23:12:43 +000019717rm -f core conftest.err conftest.$ac_objext \
19718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019719LIBS=$ac_check_lib_save_LIBS
19720fi
cristy8b350f62009-11-15 23:12:43 +000019721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019722$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019723if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019724 with_included_ltdl=no
19725else
19726 with_included_ltdl=yes
19727fi
19728
19729else
19730 with_included_ltdl=yes
19731fi
19732
19733else
19734 with_included_ltdl=yes
19735fi
19736
19737
19738fi
19739
19740
19741
19742
19743# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019744if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019745 withval=$with_ltdl_include;
19746fi
19747
19748
19749if test -n "$with_ltdl_include"; then
19750 if test -f "$with_ltdl_include/ltdl.h"; then :
19751 else
cristy8b350f62009-11-15 23:12:43 +000019752 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019753 fi
19754else
19755 with_ltdl_include=no
19756fi
19757
19758
19759# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019760if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019761 withval=$with_ltdl_lib;
19762fi
19763
19764
19765if test -n "$with_ltdl_lib"; then
19766 if test -f "$with_ltdl_lib/libltdl.la"; then :
19767 else
cristy8b350f62009-11-15 23:12:43 +000019768 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019769 fi
19770else
19771 with_ltdl_lib=no
19772fi
19773
19774case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19775 ,yes,no,no,)
19776 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019777 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019778 "") enable_ltdl_convenience=yes
19779 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19780esac
19781LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19782LTDLDEPS=$LIBLTDL
19783LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19784
19785
19786
19787
19788
19789# For backwards non-gettext consistent compatibility...
19790INCLTDL="$LTDLINCL"
19791
19792
19793 ;;
19794 ,no,no,no,)
19795 # If the included ltdl is not to be used, then use the
19796 # preinstalled libltdl we found.
19797
cristy8b350f62009-11-15 23:12:43 +000019798$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019799
19800 LIBLTDL=-lltdl
19801 LTDLDEPS=
19802 LTDLINCL=
19803 ;;
19804 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019805 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019806 ;;
19807 *) with_included_ltdl=no
19808 LIBLTDL="-L$with_ltdl_lib -lltdl"
19809 LTDLDEPS=
19810 LTDLINCL="-I$with_ltdl_include"
19811 ;;
19812esac
19813INCLTDL="$LTDLINCL"
19814
19815# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019817$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019819$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019821$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019823$as_echo "$LIBLTDL" >&6; }
19824
19825
19826
19827# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019828if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019829 enableval=$enable_ltdl_install;
19830fi
19831
19832
19833case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19834 *yes*) ;;
19835 *) enable_ltdl_convenience=yes ;;
19836esac
19837
19838 if test x"${enable_ltdl_install-no}" != xno; then
19839 INSTALL_LTDL_TRUE=
19840 INSTALL_LTDL_FALSE='#'
19841else
19842 INSTALL_LTDL_TRUE='#'
19843 INSTALL_LTDL_FALSE=
19844fi
19845
19846 if test x"${enable_ltdl_convenience-no}" != xno; then
19847 CONVENIENCE_LTDL_TRUE=
19848 CONVENIENCE_LTDL_FALSE='#'
19849else
19850 CONVENIENCE_LTDL_TRUE='#'
19851 CONVENIENCE_LTDL_FALSE=
19852fi
19853
19854
19855
19856
19857
19858
cristy18304f92009-11-22 15:48:26 +000019859
cristy3ed852e2009-09-05 21:47:34 +000019860# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19861# the user used. This is so that ltdl.h can pick up the parent projects
19862# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19863# definitions required by ltdl.c.
19864# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19865
19866
19867
cristy3ed852e2009-09-05 21:47:34 +000019868for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019869do :
19870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19871ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19872"
19873eval as_val=\$$as_ac_Header
19874 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019875 cat >>confdefs.h <<_ACEOF
19876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19877_ACEOF
19878
19879fi
19880
19881done
19882
19883
cristy3ed852e2009-09-05 21:47:34 +000019884for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019885do :
19886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19887ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19888eval as_val=\$$as_ac_var
19889 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019890 cat >>confdefs.h <<_ACEOF
19891#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19892_ACEOF
19893
19894else
19895
19896
19897 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19898
19899fi
19900done
19901
cristy3ed852e2009-09-05 21:47:34 +000019902for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019903do :
19904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19905ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19906eval as_val=\$$as_ac_var
19907 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019908 cat >>confdefs.h <<_ACEOF
19909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19910_ACEOF
19911
19912else
19913
19914
19915 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19916
19917fi
19918done
19919
19920
19921
19922cat >>confdefs.h <<_ACEOF
19923#define LT_LIBEXT "$libext"
19924_ACEOF
19925
19926
19927name=ltdl
19928LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19929
19930
19931
19932
19933
19934
19935
19936
19937# Only expand once:
19938
19939
19940
19941# Check to see if building shared libraries
19942libtool_build_shared_libs='no'
19943if test "$enable_shared" = 'yes'; then
19944 libtool_build_shared_libs='yes'
19945fi
19946
19947# Check to see if building static libraries
19948libtool_build_static_libs='no'
19949if test "$enable_static" = 'yes'; then
19950 libtool_build_static_libs='yes'
19951fi
19952
cristyfa112112010-01-04 17:48:07 +000019953 if test "${libtool_build_shared_libs}" = 'yes'; then
19954 WITH_SHARED_LIBS_TRUE=
19955 WITH_SHARED_LIBS_FALSE='#'
19956else
19957 WITH_SHARED_LIBS_TRUE='#'
19958 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019959fi
19960
19961#
19962# Enable support for building loadable modules
19963#
19964
19965# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019966if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019967 withval=$with_modules; with_modules=$withval
19968else
cristy5a1cefd2010-01-06 20:42:35 +000019969 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019970fi
19971
19972
19973# Only allow building loadable modules if we are building shared libraries
19974if test "$with_modules" != 'no' ; then
19975 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019976 { $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 +000019977$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19978 with_modules='no'
19979 fi
19980fi
19981if test "$with_modules" != 'no'; then
19982
cristy8b350f62009-11-15 23:12:43 +000019983$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019984
19985fi
19986 if test "$with_modules" != 'no'; then
19987 WITH_MODULES_TRUE=
19988 WITH_MODULES_FALSE='#'
19989else
19990 WITH_MODULES_TRUE='#'
19991 WITH_MODULES_FALSE=
19992fi
19993
19994
19995# Enable building/use of libltdl if we are building shared libraries regardless
19996# of whether modules are built or not.
19997with_ltdl='no'
19998if test "$libtool_build_shared_libs" != 'no'; then
19999 with_ltdl='yes'
20000fi
20001
20002 if test "$with_ltdl" != 'no'; then
20003 WITH_LTDL_TRUE=
20004 WITH_LTDL_FALSE='#'
20005else
20006 WITH_LTDL_TRUE='#'
20007 WITH_LTDL_FALSE=
20008fi
20009
20010if test "$with_ltdl" != 'no'; then
20011
cristy8b350f62009-11-15 23:12:43 +000020012$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020013
20014
20015 # Set DLLDFLAGS
20016 if test X"$enable_shared" = Xyes; then
20017 DLLDFLAGS=-export-dynamic
20018
20019 fi
20020fi
20021
20022# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020023# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020024# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020025if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020026 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20027else
20028 enable_delegate_build='no'
20029fi
20030
20031
20032# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020033if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020034 enableval=$enable_deprecated; enable_deprecated=$enableval
20035else
20036 enable_deprecated='no'
20037fi
20038
20039
20040if test "$enable_deprecated" = 'yes'; then
20041
cristy8b350f62009-11-15 23:12:43 +000020042$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020043
20044else
20045 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20046fi
20047
20048# Build a version of ImageMagick which operates uninstalled.
20049# Used to build distributions located via MAGICK_HOME / executable path
20050# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020051if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020052 enableval=$enable_installed; enable_installed=$enableval
20053else
20054 enable_installed='yes'
20055fi
20056
20057
20058if test "$enable_installed" = 'yes'; then
20059
cristy8b350f62009-11-15 23:12:43 +000020060$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020061
20062else
20063 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20064fi
20065
20066# Permit enciphering and deciphering image pixels.
20067# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020068if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020069 enableval=$enable_cipher; enable_cipher=$enableval
20070else
20071 enable_cipher='yes'
20072fi
20073
20074
20075if test "$enable_cipher" = 'yes'; then
20076
cristy8b350f62009-11-15 23:12:43 +000020077$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020078
20079fi
20080
20081# Build an embeddable version of ImageMagick.
20082# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020083if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020084 enableval=$enable_embeddable; enable_embeddable=$enableval
20085else
20086 enable_embeddable='no'
20087fi
20088
20089
20090if test "$enable_embeddable" = 'yes'; then
20091
cristy8b350f62009-11-15 23:12:43 +000020092$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020093
20094fi
20095
20096# Build a high dynamic range version of ImageMagick.
20097# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020098if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020099 enableval=$enable_hdri; enable_hdri=$enableval
20100else
20101 enable_hdri='no'
20102fi
20103
20104
20105MAGICK_HDRI=""
20106if test "$enable_hdri" = 'yes'; then
20107 MAGICK_HDRI="HDRI"
20108
cristy8b350f62009-11-15 23:12:43 +000020109$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020110
20111fi
20112
cristy3ed852e2009-09-05 21:47:34 +000020113# Build a version of ImageMagick with assert statements.
20114# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020115if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020116 enableval=$enable_assert; enable_assert=$enableval
20117else
20118 enable_assert='yes'
20119fi
20120
20121
20122if test "$enable_assert" = 'no'; then
20123
cristy8b350f62009-11-15 23:12:43 +000020124$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020125
20126fi
20127
20128# Add configure option --enable-maintainer-mode which enables dependency
20129# checking and generation useful to package maintainers. This is made an
20130# option to avoid confusing end users.
20131
cristy8b350f62009-11-15 23:12:43 +000020132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020133$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20134 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020135if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020136 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20137else
20138 USE_MAINTAINER_MODE=no
20139fi
20140
cristy8b350f62009-11-15 23:12:43 +000020141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020142$as_echo "$USE_MAINTAINER_MODE" >&6; }
20143 if test $USE_MAINTAINER_MODE = yes; then
20144 MAINTAINER_MODE_TRUE=
20145 MAINTAINER_MODE_FALSE='#'
20146else
20147 MAINTAINER_MODE_TRUE='#'
20148 MAINTAINER_MODE_FALSE=
20149fi
20150
20151 MAINT=$MAINTAINER_MODE_TRUE
20152
20153
20154
20155
20156# Enable ccmalloc memory debugging support
20157# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020158if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020159 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20160else
20161 enable_ccmalloc='no'
20162fi
20163
20164
20165# Enable Electric Fence memory debugging support
20166# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020167if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020168 enableval=$enable_efence; enable_efence=$enableval
20169else
20170 enable_efence='no'
20171fi
20172
20173
20174# Enable prof-based profiling support
20175# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020176if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020177 enableval=$enable_prof; enable_prof=$enableval
20178else
20179 enable_prof='no'
20180fi
20181
20182
20183# Enable gprof-based profiling support
20184# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020185if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020186 enableval=$enable_gprof; enable_gprof=$enableval
20187else
20188 enable_gprof='no'
20189fi
20190
20191
20192# Enable gcov-based profiling support
20193# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020194if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020195 enableval=$enable_gcov; enable_gcov=$enableval
20196else
20197 enable_gcov='no'
20198fi
20199
20200
20201enable_profiling='no'
20202if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20203 enable_profiling='yes'
20204 if test "$libtool_build_shared_libs" = 'yes'; then
20205 echo "Warning: Can not profile code using shared libraries"
20206 fi
20207fi
20208
20209# Magick API method prefix
20210
20211# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020212if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020213 withval=$with_method_prefix; with_method_prefix=$enableval
20214else
20215 with_method_prefix=''
20216fi
20217
20218
20219if test "$with_method_prefix" != ''; then
20220
20221cat >>confdefs.h <<_ACEOF
20222#define NAMESPACE_PREFIX $with_method_prefix
20223_ACEOF
20224
20225fi
20226
20227# Number of bits in a Quantum
20228
20229# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020230if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020231 withval=$with_quantum_depth; with_quantum_depth=$withval
20232else
20233 with_quantum_depth=16
20234fi
20235
20236
20237if test "$with_quantum_depth" != '8'; then
20238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20239fi
20240
20241case "${with_quantum_depth}" in
20242 8 ) ;;
20243 16 ) ;;
20244 32 ) ;;
20245 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000020246 * ) { as_fn_set_status 16
20247as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020248esac
20249QUANTUM_DEPTH="$with_quantum_depth"
20250
20251cat >>confdefs.h <<_ACEOF
20252#define QUANTUM_DEPTH $QUANTUM_DEPTH
20253_ACEOF
20254
20255
20256# Set pixel cache threshold
20257
20258# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020259if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020260 withval=$with_cache; with_cache=$withval
20261else
20262 with_cache=''
20263fi
20264
20265
20266if test "$with_cache" != ''; then
20267
20268cat >>confdefs.h <<_ACEOF
20269#define PixelCacheThreshold $with_cache
20270_ACEOF
20271
20272 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20273fi
20274
20275# Disable/Enable support for full delegate paths
20276
20277# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020278if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020279 withval=$with_frozenpaths; with_frozenpaths=$withval
20280else
20281 with_frozenpaths='no'
20282fi
20283
20284
20285# Enable build/install of Magick++
20286
20287# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020288if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020289 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20290else
20291 with_magick_plus_plus='yes'
20292fi
20293
20294
20295# Disable build/install of PerlMagick.
20296
20297# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020298if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020299 withval=$with_perl; with_perl=$withval
20300else
cristyb5f4e2f2010-04-25 00:49:11 +000020301 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020302fi
20303
20304
20305# Options to pass when configuring PerlMagick
20306
20307# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020308if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020309 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020310fi
20311
20312
cristy3ed852e2009-09-05 21:47:34 +000020313
20314# Enable umem, object-caching memory allocation library.
20315
20316# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020317if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020318 withval=$with_umem; with_umem=$withval
20319else
20320 with_umem='no'
20321fi
20322
20323if test "$with_umem" != 'yes' ; then
20324 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20325fi
20326
20327#
20328# Specify path to shared libstdc++ if not in normal location
20329#
20330
20331# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020332if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020333 withval=$with_libstdc; with_libstdc=$withval
20334else
20335 with_libstdc=''
20336fi
20337
20338
20339if test "$with_libstdc" != ''; then
20340 if test -d "$with_libstdc"; then
20341 LIBSTDCLDFLAGS="-L$with_libstdc"
20342 fi
20343fi
20344
20345
20346# Does gcc required -traditional?
20347if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020349$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020350if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020351 $as_echo_n "(cached) " >&6
20352else
20353 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020355/* end confdefs.h. */
20356#include <sgtty.h>
20357Autoconf TIOCGETP
20358_ACEOF
20359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020360 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020361 ac_cv_prog_gcc_traditional=yes
20362else
20363 ac_cv_prog_gcc_traditional=no
20364fi
20365rm -f conftest*
20366
20367
20368 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020370/* end confdefs.h. */
20371#include <termio.h>
20372Autoconf TCGETA
20373_ACEOF
20374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020375 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020376 ac_cv_prog_gcc_traditional=yes
20377fi
20378rm -f conftest*
20379
20380 fi
20381fi
cristy8b350f62009-11-15 23:12:43 +000020382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020383$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20384 if test $ac_cv_prog_gcc_traditional = yes; then
20385 CC="$CC -traditional"
20386 fi
20387fi
20388
20389
20390########
20391#
20392# Set defines required to build DLLs and modules using MinGW
20393#
20394########
20395# These options are set for multi-thread DLL module build
20396# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20397# module: _DLL
20398# executable/Magick++: _DLL _MAGICKMOD_
20399MODULE_EXTRA_CPPFLAGS=''
20400LIBRARY_EXTRA_CPPFLAGS=''
20401if test "${native_win32_build}" = 'yes'; then
20402 if test "${libtool_build_shared_libs}" = 'yes'; then
20403 CPPFLAGS="$CPPFLAGS -D_DLL"
20404 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20405 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20406 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20407 if test "$with_modules" = 'yes'; then
20408 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20409 else
20410 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20411 fi
20412 else
20413 CPPFLAGS="$CPPFLAGS -D_LIB"
20414 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20415 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20416 fi
20417 if test "$with_threads" = 'yes'; then
20418 CPPFLAGS="$CPPFLAGS -D_MT"
20419 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20420 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20421 fi
20422fi
20423
20424
20425
20426# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020428$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020429if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020430 $as_echo_n "(cached) " >&6
20431else
cristy8b350f62009-11-15 23:12:43 +000020432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020433/* end confdefs.h. */
20434#include <stdlib.h>
20435#include <stdarg.h>
20436#include <string.h>
20437#include <float.h>
20438
20439int
20440main ()
20441{
20442
20443 ;
20444 return 0;
20445}
20446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020447if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020448 ac_cv_header_stdc=yes
20449else
cristy8b350f62009-11-15 23:12:43 +000020450 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020451fi
cristy3ed852e2009-09-05 21:47:34 +000020452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453
20454if test $ac_cv_header_stdc = yes; then
20455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020457/* end confdefs.h. */
20458#include <string.h>
20459
20460_ACEOF
20461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020462 $EGREP "memchr" >/dev/null 2>&1; then :
20463
cristy3ed852e2009-09-05 21:47:34 +000020464else
20465 ac_cv_header_stdc=no
20466fi
20467rm -f conftest*
20468
20469fi
20470
20471if test $ac_cv_header_stdc = yes; then
20472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020474/* end confdefs.h. */
20475#include <stdlib.h>
20476
20477_ACEOF
20478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020479 $EGREP "free" >/dev/null 2>&1; then :
20480
cristy3ed852e2009-09-05 21:47:34 +000020481else
20482 ac_cv_header_stdc=no
20483fi
20484rm -f conftest*
20485
20486fi
20487
20488if test $ac_cv_header_stdc = yes; then
20489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020490 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020491 :
20492else
cristy8b350f62009-11-15 23:12:43 +000020493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020494/* end confdefs.h. */
20495#include <ctype.h>
20496#include <stdlib.h>
20497#if ((' ' & 0x0FF) == 0x020)
20498# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20499# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20500#else
20501# define ISLOWER(c) \
20502 (('a' <= (c) && (c) <= 'i') \
20503 || ('j' <= (c) && (c) <= 'r') \
20504 || ('s' <= (c) && (c) <= 'z'))
20505# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20506#endif
20507
20508#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20509int
20510main ()
20511{
20512 int i;
20513 for (i = 0; i < 256; i++)
20514 if (XOR (islower (i), ISLOWER (i))
20515 || toupper (i) != TOUPPER (i))
20516 return 2;
20517 return 0;
20518}
20519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020520if ac_fn_c_try_run "$LINENO"; then :
20521
cristy3ed852e2009-09-05 21:47:34 +000020522else
cristy8b350f62009-11-15 23:12:43 +000020523 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020524fi
cristy8b350f62009-11-15 23:12:43 +000020525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20526 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020527fi
20528
cristy3ed852e2009-09-05 21:47:34 +000020529fi
20530fi
cristy8b350f62009-11-15 23:12:43 +000020531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020532$as_echo "$ac_cv_header_stdc" >&6; }
20533if test $ac_cv_header_stdc = yes; then
20534
cristy8b350f62009-11-15 23:12:43 +000020535$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020536
20537fi
20538
20539if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020540 { $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 +000020541 header files. Compilation cannot proceed. Please install the ANSI C
20542 headers and rerun this script." >&5
20543$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20544 header files. Compilation cannot proceed. Please install the ANSI C
20545 headers and rerun this script." >&2;};
20546fi
cristya0b81c32010-01-22 02:54:33 +000020547
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20549$as_echo_n "checking whether to enable assertions... " >&6; }
20550 # Check whether --enable-assert was given.
20551if test "${enable_assert+set}" = set; then :
20552 enableval=$enable_assert; ac_enable_assert=$enableval
20553 if test "x$enableval" = xno; then :
20554
20555$as_echo "#define NDEBUG 1" >>confdefs.h
20556
20557elif test "x$enableval" != xyes; then :
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20559$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20560 ac_enable_assert=yes
20561fi
20562else
20563 ac_enable_assert=yes
20564fi
20565
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20567$as_echo "$ac_enable_assert" >&6; }
20568
cristy3ed852e2009-09-05 21:47:34 +000020569ac_header_dirent=no
20570for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20571 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020573$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020575 $as_echo_n "(cached) " >&6
20576else
cristy8b350f62009-11-15 23:12:43 +000020577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020578/* end confdefs.h. */
20579#include <sys/types.h>
20580#include <$ac_hdr>
20581
20582int
20583main ()
20584{
20585if ((DIR *) 0)
20586return 0;
20587 ;
20588 return 0;
20589}
20590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020591if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020592 eval "$as_ac_Header=yes"
20593else
cristy8b350f62009-11-15 23:12:43 +000020594 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020595fi
cristy3ed852e2009-09-05 21:47:34 +000020596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597fi
cristy8b350f62009-11-15 23:12:43 +000020598eval ac_res=\$$as_ac_Header
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020600$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020601eval as_val=\$$as_ac_Header
20602 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020603 cat >>confdefs.h <<_ACEOF
20604#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20605_ACEOF
20606
20607ac_header_dirent=$ac_hdr; break
20608fi
20609
20610done
20611# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20612if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020614$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020615if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020616 $as_echo_n "(cached) " >&6
20617else
20618 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020620/* end confdefs.h. */
20621
20622/* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20625#ifdef __cplusplus
20626extern "C"
20627#endif
20628char opendir ();
20629int
20630main ()
20631{
20632return opendir ();
20633 ;
20634 return 0;
20635}
20636_ACEOF
20637for ac_lib in '' dir; do
20638 if test -z "$ac_lib"; then
20639 ac_res="none required"
20640 else
20641 ac_res=-l$ac_lib
20642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20643 fi
cristy8b350f62009-11-15 23:12:43 +000020644 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020645 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020646fi
cristy8b350f62009-11-15 23:12:43 +000020647rm -f core conftest.err conftest.$ac_objext \
20648 conftest$ac_exeext
20649 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020650 break
20651fi
20652done
cristy8b350f62009-11-15 23:12:43 +000020653if test "${ac_cv_search_opendir+set}" = set; then :
20654
cristy3ed852e2009-09-05 21:47:34 +000020655else
20656 ac_cv_search_opendir=no
20657fi
20658rm conftest.$ac_ext
20659LIBS=$ac_func_search_save_LIBS
20660fi
cristy8b350f62009-11-15 23:12:43 +000020661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020662$as_echo "$ac_cv_search_opendir" >&6; }
20663ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020664if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20666
20667fi
20668
20669else
cristy8b350f62009-11-15 23:12:43 +000020670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020671$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020672if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020673 $as_echo_n "(cached) " >&6
20674else
20675 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020677/* end confdefs.h. */
20678
20679/* Override any GCC internal prototype to avoid an error.
20680 Use char because int might match the return type of a GCC
20681 builtin and then its argument prototype would still apply. */
20682#ifdef __cplusplus
20683extern "C"
20684#endif
20685char opendir ();
20686int
20687main ()
20688{
20689return opendir ();
20690 ;
20691 return 0;
20692}
20693_ACEOF
20694for ac_lib in '' x; do
20695 if test -z "$ac_lib"; then
20696 ac_res="none required"
20697 else
20698 ac_res=-l$ac_lib
20699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20700 fi
cristy8b350f62009-11-15 23:12:43 +000020701 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020702 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020703fi
cristy8b350f62009-11-15 23:12:43 +000020704rm -f core conftest.err conftest.$ac_objext \
20705 conftest$ac_exeext
20706 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020707 break
20708fi
20709done
cristy8b350f62009-11-15 23:12:43 +000020710if test "${ac_cv_search_opendir+set}" = set; then :
20711
cristy3ed852e2009-09-05 21:47:34 +000020712else
20713 ac_cv_search_opendir=no
20714fi
20715rm conftest.$ac_ext
20716LIBS=$ac_func_search_save_LIBS
20717fi
cristy8b350f62009-11-15 23:12:43 +000020718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020719$as_echo "$ac_cv_search_opendir" >&6; }
20720ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020721if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20723
20724fi
20725
20726fi
20727
20728
20729# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020730for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000020731do :
20732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20733ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20734eval as_val=\$$as_ac_Header
20735 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020736 cat >>confdefs.h <<_ACEOF
20737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20738_ACEOF
20739
20740fi
20741
20742done
20743
20744
20745########
20746#
20747# Checks for typedefs, structures, and compiler characteristics.
20748#
20749########
20750
cristy8b350f62009-11-15 23:12:43 +000020751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020752$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020753if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020754 $as_echo_n "(cached) " >&6
20755else
cristy8b350f62009-11-15 23:12:43 +000020756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020757/* end confdefs.h. */
20758
20759#include <stdbool.h>
20760#ifndef bool
20761 "error: bool is not defined"
20762#endif
20763#ifndef false
20764 "error: false is not defined"
20765#endif
20766#if false
20767 "error: false is not 0"
20768#endif
20769#ifndef true
20770 "error: true is not defined"
20771#endif
20772#if true != 1
20773 "error: true is not 1"
20774#endif
20775#ifndef __bool_true_false_are_defined
20776 "error: __bool_true_false_are_defined is not defined"
20777#endif
20778
20779 struct s { _Bool s: 1; _Bool t; } s;
20780
20781 char a[true == 1 ? 1 : -1];
20782 char b[false == 0 ? 1 : -1];
20783 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20784 char d[(bool) 0.5 == true ? 1 : -1];
20785 bool e = &s;
20786 char f[(_Bool) 0.0 == false ? 1 : -1];
20787 char g[true];
20788 char h[sizeof (_Bool)];
20789 char i[sizeof s.t];
20790 enum { j = false, k = true, l = false * true, m = true * 256 };
20791 /* The following fails for
20792 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20793 _Bool n[m];
20794 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20795 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20796# if defined __xlc__ || defined __GNUC__
20797 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20798 reported by James Lemley on 2005-10-05; see
20799 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20800 This test is not quite right, since xlc is allowed to
20801 reject this program, as the initializer for xlcbug is
20802 not one of the forms that C requires support for.
20803 However, doing the test right would require a runtime
20804 test, and that would make cross-compilation harder.
20805 Let us hope that IBM fixes the xlc bug, and also adds
20806 support for this kind of constant expression. In the
20807 meantime, this test will reject xlc, which is OK, since
20808 our stdbool.h substitute should suffice. We also test
20809 this with GCC, where it should work, to detect more
20810 quickly whether someone messes up the test in the
20811 future. */
20812 char digs[] = "0123456789";
20813 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20814# endif
20815 /* Catch a bug in an HP-UX C compiler. See
20816 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20817 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20818 */
20819 _Bool q = true;
20820 _Bool *pq = &q;
20821
20822int
20823main ()
20824{
20825
20826 *pq |= q;
20827 *pq |= ! q;
20828 /* Refer to every declared value, to avoid compiler optimizations. */
20829 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20830 + !m + !n + !o + !p + !q + !pq);
20831
20832 ;
20833 return 0;
20834}
20835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020836if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020837 ac_cv_header_stdbool_h=yes
20838else
cristy8b350f62009-11-15 23:12:43 +000020839 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020840fi
cristy3ed852e2009-09-05 21:47:34 +000020841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842fi
cristy8b350f62009-11-15 23:12:43 +000020843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020844$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020845ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20846if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020847
20848cat >>confdefs.h <<_ACEOF
20849#define HAVE__BOOL 1
20850_ACEOF
20851
20852
20853fi
20854
20855if test $ac_cv_header_stdbool_h = yes; then
20856
cristy8b350f62009-11-15 23:12:43 +000020857$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020858
20859fi
20860
cristy8b350f62009-11-15 23:12:43 +000020861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020862$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020863if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020864 $as_echo_n "(cached) " >&6
20865else
cristy8b350f62009-11-15 23:12:43 +000020866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020867/* end confdefs.h. */
20868
20869int
20870main ()
20871{
20872
20873volatile int x;
20874int * volatile y = (int *) 0;
20875return !x && !y;
20876 ;
20877 return 0;
20878}
20879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020880if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020881 ac_cv_c_volatile=yes
20882else
cristy8b350f62009-11-15 23:12:43 +000020883 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020884fi
cristy3ed852e2009-09-05 21:47:34 +000020885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886fi
cristy8b350f62009-11-15 23:12:43 +000020887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020888$as_echo "$ac_cv_c_volatile" >&6; }
20889if test $ac_cv_c_volatile = no; then
20890
cristy8b350f62009-11-15 23:12:43 +000020891$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020892
20893fi
20894
cristy8b350f62009-11-15 23:12:43 +000020895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020896$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020897if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020898 $as_echo_n "(cached) " >&6
20899else
cristy8b350f62009-11-15 23:12:43 +000020900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020901/* end confdefs.h. */
20902#define x(y) #y
20903
20904char *s = x(teststring);
20905_ACEOF
20906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020907 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020908 ac_cv_c_stringize=no
20909else
20910 ac_cv_c_stringize=yes
20911fi
20912rm -f conftest*
20913
20914fi
cristy8b350f62009-11-15 23:12:43 +000020915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020916$as_echo "$ac_cv_c_stringize" >&6; }
20917if test $ac_cv_c_stringize = yes; then
20918
cristy8b350f62009-11-15 23:12:43 +000020919$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020920
20921fi
20922
cristy8b350f62009-11-15 23:12:43 +000020923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020924$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020925if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020926 $as_echo_n "(cached) " >&6
20927else
cristy8b350f62009-11-15 23:12:43 +000020928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020929/* end confdefs.h. */
20930#include <sys/types.h>
20931#include <sys/stat.h>
20932
20933#if defined S_ISBLK && defined S_IFDIR
20934extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20935#endif
20936
20937#if defined S_ISBLK && defined S_IFCHR
20938extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20939#endif
20940
20941#if defined S_ISLNK && defined S_IFREG
20942extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20943#endif
20944
20945#if defined S_ISSOCK && defined S_IFREG
20946extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20947#endif
20948
20949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020950if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020951 ac_cv_header_stat_broken=no
20952else
cristy8b350f62009-11-15 23:12:43 +000020953 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020954fi
cristy3ed852e2009-09-05 21:47:34 +000020955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956fi
cristy8b350f62009-11-15 23:12:43 +000020957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020958$as_echo "$ac_cv_header_stat_broken" >&6; }
20959if test $ac_cv_header_stat_broken = yes; then
20960
cristy8b350f62009-11-15 23:12:43 +000020961$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020962
20963fi
20964
cristy8b350f62009-11-15 23:12:43 +000020965{ $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 +000020966$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020967if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020968 $as_echo_n "(cached) " >&6
20969else
cristy8b350f62009-11-15 23:12:43 +000020970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020971/* end confdefs.h. */
20972#include <sys/types.h>
20973#include <sys/time.h>
20974#include <time.h>
20975
20976int
20977main ()
20978{
20979if ((struct tm *) 0)
20980return 0;
20981 ;
20982 return 0;
20983}
20984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020985if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020986 ac_cv_header_time=yes
20987else
cristy8b350f62009-11-15 23:12:43 +000020988 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020989fi
cristy3ed852e2009-09-05 21:47:34 +000020990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991fi
cristy8b350f62009-11-15 23:12:43 +000020992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020993$as_echo "$ac_cv_header_time" >&6; }
20994if test $ac_cv_header_time = yes; then
20995
cristy8b350f62009-11-15 23:12:43 +000020996$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020997
20998fi
20999
cristy8b350f62009-11-15 23:12:43 +000021000{ $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 +000021001$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021002if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021003 $as_echo_n "(cached) " >&6
21004else
cristy8b350f62009-11-15 23:12:43 +000021005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021006/* end confdefs.h. */
21007#include <sys/types.h>
21008#include <time.h>
21009
21010int
21011main ()
21012{
21013struct tm tm;
21014 int *p = &tm.tm_sec;
21015 return !p;
21016 ;
21017 return 0;
21018}
21019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021020if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021021 ac_cv_struct_tm=time.h
21022else
cristy8b350f62009-11-15 23:12:43 +000021023 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021024fi
cristy3ed852e2009-09-05 21:47:34 +000021025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026fi
cristy8b350f62009-11-15 23:12:43 +000021027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021028$as_echo "$ac_cv_struct_tm" >&6; }
21029if test $ac_cv_struct_tm = sys/time.h; then
21030
cristy8b350f62009-11-15 23:12:43 +000021031$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021032
21033fi
21034
cristy8b350f62009-11-15 23:12:43 +000021035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021036$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021037if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021038 $as_echo_n "(cached) " >&6
21039else
21040 echo '#! /bin/cat
21041exit 69
21042' >conftest
21043chmod u+x conftest
21044(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21045if test $? -ne 69; then
21046 ac_cv_sys_interpreter=yes
21047else
21048 ac_cv_sys_interpreter=no
21049fi
21050rm -f conftest
21051fi
cristy8b350f62009-11-15 23:12:43 +000021052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021053$as_echo "$ac_cv_sys_interpreter" >&6; }
21054interpval=$ac_cv_sys_interpreter
21055
21056
cristy3ed852e2009-09-05 21:47:34 +000021057# If the C compiler supports the keyword inline, do nothing. Otherwise
21058# define inline to __inline__ or __inline if it accepts one of those,
21059# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021061$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021062if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021063 $as_echo_n "(cached) " >&6
21064else
21065 ac_cv_c_inline=no
21066for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021068/* end confdefs.h. */
21069#ifndef __cplusplus
21070typedef int foo_t;
21071static $ac_kw foo_t static_foo () {return 0; }
21072$ac_kw foo_t foo () {return 0; }
21073#endif
21074
21075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021076if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021077 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021078fi
cristy3ed852e2009-09-05 21:47:34 +000021079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 test "$ac_cv_c_inline" != no && break
21081done
21082
21083fi
cristy8b350f62009-11-15 23:12:43 +000021084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021085$as_echo "$ac_cv_c_inline" >&6; }
21086
cristy3ed852e2009-09-05 21:47:34 +000021087case $ac_cv_c_inline in
21088 inline | yes) ;;
21089 *)
21090 case $ac_cv_c_inline in
21091 no) ac_val=;;
21092 *) ac_val=$ac_cv_c_inline;;
21093 esac
21094 cat >>confdefs.h <<_ACEOF
21095#ifndef __cplusplus
21096#define inline $ac_val
21097#endif
21098_ACEOF
21099 ;;
21100esac
21101
21102
21103# If the C compiler supports the keyword restrict, do nothing. Otherwise
21104# define restrict to __restrict__ or __restrict if it accepts one of those,
21105# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021107$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021108if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021109 $as_echo_n "(cached) " >&6
21110else
21111 ac_cv_c_restrict=no
21112 # The order here caters to the fact that C++ does not require restrict.
21113 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021115/* end confdefs.h. */
21116typedef int * int_ptr;
21117 int foo (int_ptr $ac_kw ip) {
21118 return ip[0];
21119 }
21120int
21121main ()
21122{
21123int s[1];
21124 int * $ac_kw t = s;
21125 t[0] = 0;
21126 return foo(t)
21127 ;
21128 return 0;
21129}
21130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021131if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021132 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021133fi
cristy3ed852e2009-09-05 21:47:34 +000021134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 test "$ac_cv_c_restrict" != no && break
21136 done
21137
21138fi
cristy8b350f62009-11-15 23:12:43 +000021139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021140$as_echo "$ac_cv_c_restrict" >&6; }
21141
cristy3ed852e2009-09-05 21:47:34 +000021142 case $ac_cv_c_restrict in
21143 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021144 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021145 ;;
21146 *) cat >>confdefs.h <<_ACEOF
21147#define restrict $ac_cv_c_restrict
21148_ACEOF
21149 ;;
21150 esac
21151
21152
21153# If words are stored with the most significant byte first (like
21154# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021156$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021157if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021158 $as_echo_n "(cached) " >&6
21159else
21160 ac_cv_c_bigendian=unknown
21161 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021163/* end confdefs.h. */
21164#ifndef __APPLE_CC__
21165 not a universal capable compiler
21166 #endif
21167 typedef int dummy;
21168
21169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021170if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021171
21172 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021173 # there are at least two -arch flags with different values.
21174 ac_arch=
21175 ac_prev=
21176 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21177 if test -n "$ac_prev"; then
21178 case $ac_word in
21179 i?86 | x86_64 | ppc | ppc64)
21180 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21181 ac_arch=$ac_word
21182 else
21183 ac_cv_c_bigendian=universal
21184 break
21185 fi
21186 ;;
21187 esac
21188 ac_prev=
21189 elif test "x$ac_word" = "x-arch"; then
21190 ac_prev=arch
21191 fi
21192 done
cristy3ed852e2009-09-05 21:47:34 +000021193fi
cristy3ed852e2009-09-05 21:47:34 +000021194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21195 if test $ac_cv_c_bigendian = unknown; then
21196 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021198/* end confdefs.h. */
21199#include <sys/types.h>
21200 #include <sys/param.h>
21201
21202int
21203main ()
21204{
21205#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21206 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21207 && LITTLE_ENDIAN)
21208 bogus endian macros
21209 #endif
21210
21211 ;
21212 return 0;
21213}
21214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021215if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021216 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021218/* end confdefs.h. */
21219#include <sys/types.h>
21220 #include <sys/param.h>
21221
21222int
21223main ()
21224{
21225#if BYTE_ORDER != BIG_ENDIAN
21226 not big endian
21227 #endif
21228
21229 ;
21230 return 0;
21231}
21232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021234 ac_cv_c_bigendian=yes
21235else
cristy8b350f62009-11-15 23:12:43 +000021236 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021237fi
cristy3ed852e2009-09-05 21:47:34 +000021238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021239fi
cristy3ed852e2009-09-05 21:47:34 +000021240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21241 fi
21242 if test $ac_cv_c_bigendian = unknown; then
21243 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021245/* end confdefs.h. */
21246#include <limits.h>
21247
21248int
21249main ()
21250{
21251#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21252 bogus endian macros
21253 #endif
21254
21255 ;
21256 return 0;
21257}
21258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021260 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021262/* end confdefs.h. */
21263#include <limits.h>
21264
21265int
21266main ()
21267{
21268#ifndef _BIG_ENDIAN
21269 not big endian
21270 #endif
21271
21272 ;
21273 return 0;
21274}
21275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021276if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021277 ac_cv_c_bigendian=yes
21278else
cristy8b350f62009-11-15 23:12:43 +000021279 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021280fi
cristy3ed852e2009-09-05 21:47:34 +000021281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021282fi
cristy3ed852e2009-09-05 21:47:34 +000021283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284 fi
21285 if test $ac_cv_c_bigendian = unknown; then
21286 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021287 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021290/* end confdefs.h. */
21291short int ascii_mm[] =
21292 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21293 short int ascii_ii[] =
21294 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21295 int use_ascii (int i) {
21296 return ascii_mm[i] + ascii_ii[i];
21297 }
21298 short int ebcdic_ii[] =
21299 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21300 short int ebcdic_mm[] =
21301 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21302 int use_ebcdic (int i) {
21303 return ebcdic_mm[i] + ebcdic_ii[i];
21304 }
21305 extern int foo;
21306
21307int
21308main ()
21309{
21310return use_ascii (foo) == use_ebcdic (foo);
21311 ;
21312 return 0;
21313}
21314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021315if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21317 ac_cv_c_bigendian=yes
21318 fi
21319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21320 if test "$ac_cv_c_bigendian" = unknown; then
21321 ac_cv_c_bigendian=no
21322 else
21323 # finding both strings is unlikely to happen, but who knows?
21324 ac_cv_c_bigendian=unknown
21325 fi
21326 fi
cristy3ed852e2009-09-05 21:47:34 +000021327fi
cristy3ed852e2009-09-05 21:47:34 +000021328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329else
cristy8b350f62009-11-15 23:12:43 +000021330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021331/* end confdefs.h. */
21332$ac_includes_default
21333int
21334main ()
21335{
21336
21337 /* Are we little or big endian? From Harbison&Steele. */
21338 union
21339 {
21340 long int l;
21341 char c[sizeof (long int)];
21342 } u;
21343 u.l = 1;
21344 return u.c[sizeof (long int) - 1] == 1;
21345
21346 ;
21347 return 0;
21348}
21349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021350if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021351 ac_cv_c_bigendian=no
21352else
cristy8b350f62009-11-15 23:12:43 +000021353 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021354fi
cristy8b350f62009-11-15 23:12:43 +000021355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21356 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021357fi
21358
cristy3ed852e2009-09-05 21:47:34 +000021359 fi
21360fi
cristy8b350f62009-11-15 23:12:43 +000021361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021362$as_echo "$ac_cv_c_bigendian" >&6; }
21363 case $ac_cv_c_bigendian in #(
21364 yes)
cristy8b350f62009-11-15 23:12:43 +000021365 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021366;; #(
21367 no)
21368 ;; #(
21369 universal)
21370
cristy8b350f62009-11-15 23:12:43 +000021371$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021372
21373 ;; #(
21374 *)
cristy8b350f62009-11-15 23:12:43 +000021375 as_fn_error "unknown endianness
21376 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021377 esac
21378
21379
21380# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021381ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21382if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021383
cristy3ed852e2009-09-05 21:47:34 +000021384else
21385
21386cat >>confdefs.h <<_ACEOF
21387#define mode_t int
21388_ACEOF
21389
21390fi
21391
21392
21393# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021394ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21395if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021396
cristy3ed852e2009-09-05 21:47:34 +000021397else
21398
21399cat >>confdefs.h <<_ACEOF
21400#define off_t long int
21401_ACEOF
21402
21403fi
21404
21405
21406# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021407ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21408if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021409
cristy3ed852e2009-09-05 21:47:34 +000021410else
21411
21412cat >>confdefs.h <<_ACEOF
21413#define pid_t int
21414_ACEOF
21415
21416fi
21417
21418
21419# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021420ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21421if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021422
cristy3ed852e2009-09-05 21:47:34 +000021423else
21424
21425cat >>confdefs.h <<_ACEOF
21426#define size_t unsigned int
21427_ACEOF
21428
21429fi
21430
21431
21432# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021433ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21434if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021435
cristy3ed852e2009-09-05 21:47:34 +000021436else
21437
21438cat >>confdefs.h <<_ACEOF
21439#define ssize_t int
21440_ACEOF
21441
21442fi
21443
21444
21445# If the C compiler supports a working long double type with more range
21446# or precision than the double type, define HAVE_LONG_DOUBLE.
21447
cristy8b350f62009-11-15 23:12:43 +000021448 { $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 +000021449$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021450if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021451 $as_echo_n "(cached) " >&6
21452else
cristy8b350f62009-11-15 23:12:43 +000021453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021454/* end confdefs.h. */
21455#include <float.h>
21456 long double const a[] =
21457 {
21458 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21459 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21460 };
21461 long double
21462 f (long double x)
21463 {
21464 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21465 + (x ? f (x) : 'c'));
21466 }
21467
21468int
21469main ()
21470{
21471static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21472 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21473 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21474 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21475 && (int) LDBL_EPSILON == 0
21476 )];
21477test_array [0] = 0
21478
21479 ;
21480 return 0;
21481}
21482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021483if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021484 ac_cv_type_long_double_wider=yes
21485else
cristy8b350f62009-11-15 23:12:43 +000021486 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021487fi
cristy3ed852e2009-09-05 21:47:34 +000021488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21489fi
cristy8b350f62009-11-15 23:12:43 +000021490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021491$as_echo "$ac_cv_type_long_double_wider" >&6; }
21492 if test $ac_cv_type_long_double_wider = yes; then
21493
cristy8b350f62009-11-15 23:12:43 +000021494$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021495
21496 fi
21497
21498
21499# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21500# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021502$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021503if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021504 $as_echo_n "(cached) " >&6
21505else
cristy8b350f62009-11-15 23:12:43 +000021506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021507/* end confdefs.h. */
21508$ac_includes_default
21509int
21510main ()
21511{
21512static int test_array [1 - 2 * !(((char) -1) < 0)];
21513test_array [0] = 0
21514
21515 ;
21516 return 0;
21517}
21518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021519if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021520 ac_cv_c_char_unsigned=no
21521else
cristy8b350f62009-11-15 23:12:43 +000021522 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021523fi
cristy3ed852e2009-09-05 21:47:34 +000021524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525fi
cristy8b350f62009-11-15 23:12:43 +000021526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021527$as_echo "$ac_cv_c_char_unsigned" >&6; }
21528if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021529 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021530
21531fi
21532
21533
21534# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21535# The cast to long int works around a bug in the HP C Compiler
21536# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21537# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21538# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021540$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021541if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021542 $as_echo_n "(cached) " >&6
21543else
cristy8b350f62009-11-15 23:12:43 +000021544 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 +000021545
cristy3ed852e2009-09-05 21:47:34 +000021546else
cristy8b350f62009-11-15 23:12:43 +000021547 if test "$ac_cv_type_signed_short" = yes; then
21548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021550{ as_fn_set_status 77
21551as_fn_error "cannot compute sizeof (signed short)
21552See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021553 else
21554 ac_cv_sizeof_signed_short=0
21555 fi
21556fi
cristy8b350f62009-11-15 23:12:43 +000021557
cristy3ed852e2009-09-05 21:47:34 +000021558fi
cristy8b350f62009-11-15 23:12:43 +000021559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021560$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21561
21562
21563
21564cat >>confdefs.h <<_ACEOF
21565#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21566_ACEOF
21567
21568
21569
21570# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21571# The cast to long int works around a bug in the HP C Compiler
21572# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21573# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21574# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021576$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021577if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021578 $as_echo_n "(cached) " >&6
21579else
cristy8b350f62009-11-15 23:12:43 +000021580 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 +000021581
cristy3ed852e2009-09-05 21:47:34 +000021582else
cristy8b350f62009-11-15 23:12:43 +000021583 if test "$ac_cv_type_unsigned_short" = yes; then
21584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021586{ as_fn_set_status 77
21587as_fn_error "cannot compute sizeof (unsigned short)
21588See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021589 else
21590 ac_cv_sizeof_unsigned_short=0
21591 fi
21592fi
cristy8b350f62009-11-15 23:12:43 +000021593
cristy3ed852e2009-09-05 21:47:34 +000021594fi
cristy8b350f62009-11-15 23:12:43 +000021595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021596$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21597
21598
21599
21600cat >>confdefs.h <<_ACEOF
21601#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21602_ACEOF
21603
21604
21605
21606# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21607# The cast to long int works around a bug in the HP C Compiler
21608# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21609# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21610# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021612$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021613if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021614 $as_echo_n "(cached) " >&6
21615else
cristy8b350f62009-11-15 23:12:43 +000021616 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 +000021617
cristy3ed852e2009-09-05 21:47:34 +000021618else
cristy8b350f62009-11-15 23:12:43 +000021619 if test "$ac_cv_type_signed_int" = yes; then
21620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021622{ as_fn_set_status 77
21623as_fn_error "cannot compute sizeof (signed int)
21624See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021625 else
21626 ac_cv_sizeof_signed_int=0
21627 fi
21628fi
cristy8b350f62009-11-15 23:12:43 +000021629
cristy3ed852e2009-09-05 21:47:34 +000021630fi
cristy8b350f62009-11-15 23:12:43 +000021631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021632$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21633
21634
21635
21636cat >>confdefs.h <<_ACEOF
21637#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21638_ACEOF
21639
21640
21641
21642# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21643# The cast to long int works around a bug in the HP C Compiler
21644# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21645# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21646# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021648$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021649if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021650 $as_echo_n "(cached) " >&6
21651else
cristy8b350f62009-11-15 23:12:43 +000021652 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 +000021653
cristy3ed852e2009-09-05 21:47:34 +000021654else
cristy8b350f62009-11-15 23:12:43 +000021655 if test "$ac_cv_type_unsigned_int" = yes; then
21656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021658{ as_fn_set_status 77
21659as_fn_error "cannot compute sizeof (unsigned int)
21660See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021661 else
21662 ac_cv_sizeof_unsigned_int=0
21663 fi
21664fi
cristy8b350f62009-11-15 23:12:43 +000021665
cristy3ed852e2009-09-05 21:47:34 +000021666fi
cristy8b350f62009-11-15 23:12:43 +000021667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021668$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21669
21670
21671
21672cat >>confdefs.h <<_ACEOF
21673#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21674_ACEOF
21675
21676
21677
21678# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21679# The cast to long int works around a bug in the HP C Compiler
21680# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21681# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21682# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021684$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021685if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021686 $as_echo_n "(cached) " >&6
21687else
cristy8b350f62009-11-15 23:12:43 +000021688 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 +000021689
cristy3ed852e2009-09-05 21:47:34 +000021690else
cristy8b350f62009-11-15 23:12:43 +000021691 if test "$ac_cv_type_signed_long" = yes; then
21692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021694{ as_fn_set_status 77
21695as_fn_error "cannot compute sizeof (signed long)
21696See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021697 else
21698 ac_cv_sizeof_signed_long=0
21699 fi
21700fi
cristy8b350f62009-11-15 23:12:43 +000021701
cristy3ed852e2009-09-05 21:47:34 +000021702fi
cristy8b350f62009-11-15 23:12:43 +000021703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21705
21706
21707
21708cat >>confdefs.h <<_ACEOF
21709#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21710_ACEOF
21711
21712
21713
21714# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21715# The cast to long int works around a bug in the HP C Compiler
21716# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21717# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21718# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021720$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021721if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021722 $as_echo_n "(cached) " >&6
21723else
cristy8b350f62009-11-15 23:12:43 +000021724 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 +000021725
cristy3ed852e2009-09-05 21:47:34 +000021726else
cristy8b350f62009-11-15 23:12:43 +000021727 if test "$ac_cv_type_unsigned_long" = yes; then
21728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021730{ as_fn_set_status 77
21731as_fn_error "cannot compute sizeof (unsigned long)
21732See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021733 else
21734 ac_cv_sizeof_unsigned_long=0
21735 fi
21736fi
cristy8b350f62009-11-15 23:12:43 +000021737
cristy3ed852e2009-09-05 21:47:34 +000021738fi
cristy8b350f62009-11-15 23:12:43 +000021739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021740$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21741
21742
21743
21744cat >>confdefs.h <<_ACEOF
21745#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21746_ACEOF
21747
21748
21749
21750# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21751# 'signed long long' is not supported then the value defined is zero.
21752# The cast to long int works around a bug in the HP C Compiler
21753# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21754# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21755# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021757$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021758if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021759 $as_echo_n "(cached) " >&6
21760else
cristy8b350f62009-11-15 23:12:43 +000021761 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 +000021762
cristy3ed852e2009-09-05 21:47:34 +000021763else
cristy8b350f62009-11-15 23:12:43 +000021764 if test "$ac_cv_type_signed_long_long" = yes; then
21765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021767{ as_fn_set_status 77
21768as_fn_error "cannot compute sizeof (signed long long)
21769See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021770 else
21771 ac_cv_sizeof_signed_long_long=0
21772 fi
21773fi
cristy8b350f62009-11-15 23:12:43 +000021774
cristy3ed852e2009-09-05 21:47:34 +000021775fi
cristy8b350f62009-11-15 23:12:43 +000021776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021777$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21778
21779
21780
21781cat >>confdefs.h <<_ACEOF
21782#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21783_ACEOF
21784
21785
21786
21787# Obtain size of a 'unsigned long long' and define as
21788# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21789# supported then the value defined is zero.
21790# The cast to long int works around a bug in the HP C Compiler
21791# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21792# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21793# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021795$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021796if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021797 $as_echo_n "(cached) " >&6
21798else
cristy8b350f62009-11-15 23:12:43 +000021799 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 +000021800
cristy3ed852e2009-09-05 21:47:34 +000021801else
cristy8b350f62009-11-15 23:12:43 +000021802 if test "$ac_cv_type_unsigned_long_long" = yes; then
21803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021805{ as_fn_set_status 77
21806as_fn_error "cannot compute sizeof (unsigned long long)
21807See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021808 else
21809 ac_cv_sizeof_unsigned_long_long=0
21810 fi
21811fi
cristy8b350f62009-11-15 23:12:43 +000021812
cristy3ed852e2009-09-05 21:47:34 +000021813fi
cristy8b350f62009-11-15 23:12:43 +000021814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021815$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21816
21817
21818
21819cat >>confdefs.h <<_ACEOF
21820#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21821_ACEOF
21822
21823
21824
21825# Obtain size of off_t and define as SIZEOF_OFF_T
21826# The cast to long int works around a bug in the HP C Compiler
21827# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21828# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21829# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021831$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021832if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021833 $as_echo_n "(cached) " >&6
21834else
cristy8b350f62009-11-15 23:12:43 +000021835 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 +000021836
cristy3ed852e2009-09-05 21:47:34 +000021837else
cristy8b350f62009-11-15 23:12:43 +000021838 if test "$ac_cv_type_off_t" = yes; then
21839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021841{ as_fn_set_status 77
21842as_fn_error "cannot compute sizeof (off_t)
21843See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021844 else
21845 ac_cv_sizeof_off_t=0
21846 fi
21847fi
cristy8b350f62009-11-15 23:12:43 +000021848
cristy3ed852e2009-09-05 21:47:34 +000021849fi
cristy8b350f62009-11-15 23:12:43 +000021850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021851$as_echo "$ac_cv_sizeof_off_t" >&6; }
21852
21853
21854
21855cat >>confdefs.h <<_ACEOF
21856#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21857_ACEOF
21858
21859
21860
21861# Obtain size of size_t and define as SIZEOF_SIZE_T
21862# The cast to long int works around a bug in the HP C Compiler
21863# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21864# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21865# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021867$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021868if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021869 $as_echo_n "(cached) " >&6
21870else
cristy8b350f62009-11-15 23:12:43 +000021871 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 +000021872
cristy3ed852e2009-09-05 21:47:34 +000021873else
cristy8b350f62009-11-15 23:12:43 +000021874 if test "$ac_cv_type_size_t" = yes; then
21875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021877{ as_fn_set_status 77
21878as_fn_error "cannot compute sizeof (size_t)
21879See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021880 else
21881 ac_cv_sizeof_size_t=0
21882 fi
21883fi
cristy8b350f62009-11-15 23:12:43 +000021884
cristy3ed852e2009-09-05 21:47:34 +000021885fi
cristy8b350f62009-11-15 23:12:43 +000021886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021887$as_echo "$ac_cv_sizeof_size_t" >&6; }
21888
21889
21890
21891cat >>confdefs.h <<_ACEOF
21892#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21893_ACEOF
21894
21895
21896
21897# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21898# The cast to long int works around a bug in the HP C Compiler
21899# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21900# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21901# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021903$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021904if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021905 $as_echo_n "(cached) " >&6
21906else
cristy8b350f62009-11-15 23:12:43 +000021907 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 +000021908
cristy3ed852e2009-09-05 21:47:34 +000021909else
cristy8b350f62009-11-15 23:12:43 +000021910 if test "$ac_cv_type_unsigned_intp" = yes; then
21911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021913{ as_fn_set_status 77
21914as_fn_error "cannot compute sizeof (unsigned int*)
21915See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021916 else
21917 ac_cv_sizeof_unsigned_intp=0
21918 fi
21919fi
cristy8b350f62009-11-15 23:12:43 +000021920
cristy3ed852e2009-09-05 21:47:34 +000021921fi
cristy8b350f62009-11-15 23:12:43 +000021922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021923$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21924
21925
21926
21927cat >>confdefs.h <<_ACEOF
21928#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21929_ACEOF
21930
21931
21932
21933#
21934# Compute sized types for current CPU and compiler options.
21935#
21936
cristy8b350f62009-11-15 23:12:43 +000021937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021938$as_echo_n "checking for signed 8-bit type... " >&6; }
21939INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021941$as_echo "$INT8_T" >&6; }
21942
21943
cristy8b350f62009-11-15 23:12:43 +000021944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021945$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21946UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021948$as_echo "$UINT8_T" >&6; }
21949
21950
cristy8b350f62009-11-15 23:12:43 +000021951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021952$as_echo_n "checking for signed 16-bit type... " >&6; }
21953INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021955$as_echo "$INT16_T" >&6; }
21956
21957
cristy8b350f62009-11-15 23:12:43 +000021958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021959$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21960UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021962$as_echo "$UINT16_T" >&6; }
21963
21964
cristy8b350f62009-11-15 23:12:43 +000021965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021966$as_echo_n "checking for signed 32-bit type... " >&6; }
21967INT32_T='none'
21968if test $ac_cv_sizeof_signed_int -eq 4; then
21969 INT32_T='signed int'
21970elif test $ac_cv_sizeof_signed_long -eq 4; then
21971 INT32_T='signed long'
21972fi
cristy8b350f62009-11-15 23:12:43 +000021973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021974$as_echo "$INT32_T" >&6; }
21975
21976
cristy8b350f62009-11-15 23:12:43 +000021977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021978$as_echo_n "checking for unsigned 32-bit type... " >&6; }
21979UINT32_T='none'
21980if test $ac_cv_sizeof_unsigned_int -eq 4; then
21981 UINT32_T='unsigned int'
21982elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21983 UINT32_T='unsigned long'
21984fi
cristy8b350f62009-11-15 23:12:43 +000021985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021986$as_echo "$UINT32_T" >&6; }
21987
21988
cristy8b350f62009-11-15 23:12:43 +000021989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021990$as_echo_n "checking for signed 64-bit type... " >&6; }
21991INT64_T='none'
21992if test $ac_cv_sizeof_signed_long -eq 8; then
21993 INT64_T='signed long'
21994elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21995 INT64_T='signed long long'
21996fi
cristy8b350f62009-11-15 23:12:43 +000021997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021998$as_echo "$INT64_T" >&6; }
21999
22000
cristy8b350f62009-11-15 23:12:43 +000022001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022002$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22003UINT64_T='none'
22004if test $ac_cv_sizeof_unsigned_long -eq 8; then
22005 UINT64_T='unsigned long'
22006elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22007 UINT64_T='unsigned long long'
22008fi
cristy8b350f62009-11-15 23:12:43 +000022009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022010$as_echo "$UINT64_T" >&6; }
22011
22012
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking for unsigned maximum type... " >&6; }
22015UINTMAX_T='none'
22016if test "$UINT64_T" != 'none'; then
22017 UINTMAX_T=$UINT64_T
22018elif test "$UINT32_T" != 'none'; then
22019 UINTMAX_T=$UINT32_T
22020fi
cristy8b350f62009-11-15 23:12:43 +000022021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022$as_echo "$UINTMAX_T" >&6; }
22023
22024
cristy8b350f62009-11-15 23:12:43 +000022025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022026$as_echo_n "checking for pointer difference type... " >&6; }
22027UINTPTR_T='none'
22028if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22029 UINTPTR_T='unsigned long'
22030elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22031 UINTPTR_T='unsigned long long'
22032fi
cristy8b350f62009-11-15 23:12:43 +000022033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022034$as_echo "$UINTPTR_T" >&6; }
22035
22036
cristy8b350f62009-11-15 23:12:43 +000022037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022038$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022040/* end confdefs.h. */
22041
22042int
22043main ()
22044{
22045{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22046 ;
22047 return 0;
22048}
22049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022050if ac_fn_c_try_compile "$LINENO"; then :
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022052$as_echo "yes" >&6; }
22053else
cristy8b350f62009-11-15 23:12:43 +000022054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022055$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022059/* end confdefs.h. */
22060
22061int
22062main ()
22063{
22064{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22065 ;
22066 return 0;
22067}
22068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022069if ac_fn_c_try_compile "$LINENO"; then :
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022071$as_echo "yes" >&6; }
22072
cristy8b350f62009-11-15 23:12:43 +000022073$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022074
22075else
cristy8b350f62009-11-15 23:12:43 +000022076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022077$as_echo "no" >&6; }
22078
cristy8b350f62009-11-15 23:12:43 +000022079$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022080
22081fi
cristy3ed852e2009-09-05 21:47:34 +000022082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083fi
cristy3ed852e2009-09-05 21:47:34 +000022084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085
22086########
22087#
22088# Check for functions
22089#
22090########
cristy3ed852e2009-09-05 21:47:34 +000022091for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022092do :
22093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22094ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22095eval as_val=\$$as_ac_Header
22096 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022097 cat >>confdefs.h <<_ACEOF
22098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22099_ACEOF
22100
22101fi
22102
22103done
22104
cristy3ed852e2009-09-05 21:47:34 +000022105for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022106do :
22107 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22108if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022109 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022110#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022111_ACEOF
22112
22113fi
22114done
22115
cristy8b350f62009-11-15 23:12:43 +000022116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022117$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022118if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022119 $as_echo_n "(cached) " >&6
22120else
cristy8b350f62009-11-15 23:12:43 +000022121 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022122 magick_cv_func_mmap_fileio=no
22123else
cristy8b350f62009-11-15 23:12:43 +000022124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022125/* end confdefs.h. */
22126$ac_includes_default
22127/* malloc might have been renamed as rpl_malloc. */
22128#undef malloc
22129
22130/*
22131 This test is derived from GNU Autoconf's similar macro.
22132 The purpose of this test is to verify that files may be memory
22133 mapped, and that memory mapping and file I/O are coherent.
22134
22135 The test creates a test file, memory maps the file, updates
22136 the file using the memory map, and then reads the file using
22137 file I/O to verify that the file contains the updates.
22138*/
22139
22140#include <fcntl.h>
22141#include <sys/mman.h>
22142
22143#if !STDC_HEADERS && !HAVE_STDLIB_H
22144char *malloc ();
22145#endif
22146
22147/* This mess was copied from the GNU getpagesize.h. */
22148#if !HAVE_GETPAGESIZE
22149/* Assume that all systems that can run configure have sys/param.h. */
22150# if !HAVE_SYS_PARAM_H
22151# define HAVE_SYS_PARAM_H 1
22152# endif
22153
22154# ifdef _SC_PAGESIZE
22155# define getpagesize() sysconf(_SC_PAGESIZE)
22156# else /* no _SC_PAGESIZE */
22157# if HAVE_SYS_PARAM_H
22158# include <sys/param.h>
22159# ifdef EXEC_PAGESIZE
22160# define getpagesize() EXEC_PAGESIZE
22161# else /* no EXEC_PAGESIZE */
22162# ifdef NBPG
22163# define getpagesize() NBPG * CLSIZE
22164# ifndef CLSIZE
22165# define CLSIZE 1
22166# endif /* no CLSIZE */
22167# else /* no NBPG */
22168# ifdef NBPC
22169# define getpagesize() NBPC
22170# else /* no NBPC */
22171# ifdef PAGESIZE
22172# define getpagesize() PAGESIZE
22173# endif /* PAGESIZE */
22174# endif /* no NBPC */
22175# endif /* no NBPG */
22176# endif /* no EXEC_PAGESIZE */
22177# else /* no HAVE_SYS_PARAM_H */
22178# define getpagesize() 8192 /* punt totally */
22179# endif /* no HAVE_SYS_PARAM_H */
22180# endif /* no _SC_PAGESIZE */
22181
22182#endif /* no HAVE_GETPAGESIZE */
22183
22184int
22185main ()
22186{
22187 char *data, *data2, *data3;
22188 int i, pagesize;
22189 int fd;
22190
22191 pagesize = getpagesize ();
22192
22193 /* First, make a file with some known garbage in it. */
22194 data = (char *) malloc (pagesize);
22195 if (!data)
22196 exit (1);
22197 for (i = 0; i < pagesize; ++i)
22198 *(data + i) = rand ();
22199 umask (0);
22200 fd = creat ("conftest.mmap", 0600);
22201 if (fd < 0)
22202 exit (1);
22203 if (write (fd, data, pagesize) != pagesize)
22204 exit (1);
22205 close (fd);
22206
22207 /* Mmap the file as read/write/shared and verify that we see the
22208 same garbage. */
22209 fd = open ("conftest.mmap", O_RDWR);
22210 if (fd < 0)
22211 exit (1);
22212 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22213 if (data2 == 0)
22214 exit (1);
22215 for (i = 0; i < pagesize; ++i)
22216 if (*(data + i) != *(data2 + i))
22217 exit (1);
22218
22219 /* Finally, make sure that changes to the mapped area
22220 percolate back to the file as seen by read(). */
22221 for (i = 0; i < pagesize; ++i)
22222 *(data2 + i) = *(data2 + i) + 1;
22223 data3 = (char *) malloc (pagesize);
22224 if (!data3)
22225 exit (1);
22226 if (read (fd, data3, pagesize) != pagesize)
22227 exit (1);
22228 for (i = 0; i < pagesize; ++i)
22229 if (*(data2 + i) != *(data3 + i))
22230 exit (1);
22231 close (fd);
22232 exit (0);
22233}
22234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022235if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022236 magick_cv_func_mmap_fileio=yes
22237else
cristy8b350f62009-11-15 23:12:43 +000022238 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022239fi
cristy8b350f62009-11-15 23:12:43 +000022240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22241 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022242fi
22243
cristy3ed852e2009-09-05 21:47:34 +000022244fi
cristy8b350f62009-11-15 23:12:43 +000022245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22247if test $magick_cv_func_mmap_fileio = yes; then
22248
cristy8b350f62009-11-15 23:12:43 +000022249$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022250
22251fi
22252rm -f conftest.mmap
22253
cristy8b350f62009-11-15 23:12:43 +000022254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022255$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022256if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022257 $as_echo_n "(cached) " >&6
22258else
cristy8b350f62009-11-15 23:12:43 +000022259 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022260 ac_cv_func_closedir_void=yes
22261else
cristy8b350f62009-11-15 23:12:43 +000022262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022263/* end confdefs.h. */
22264$ac_includes_default
22265#include <$ac_header_dirent>
22266#ifndef __cplusplus
22267int closedir ();
22268#endif
22269
22270int
22271main ()
22272{
22273return closedir (opendir (".")) != 0;
22274 ;
22275 return 0;
22276}
22277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022278if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022279 ac_cv_func_closedir_void=no
22280else
cristy8b350f62009-11-15 23:12:43 +000022281 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022282fi
cristy8b350f62009-11-15 23:12:43 +000022283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22284 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022285fi
22286
cristy3ed852e2009-09-05 21:47:34 +000022287fi
cristy8b350f62009-11-15 23:12:43 +000022288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022289$as_echo "$ac_cv_func_closedir_void" >&6; }
22290if test $ac_cv_func_closedir_void = yes; then
22291
cristy8b350f62009-11-15 23:12:43 +000022292$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022293
22294fi
22295
cristycd4c5312009-11-22 01:19:08 +000022296
22297
22298
22299 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022300do :
22301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22303"
cristy8b350f62009-11-15 23:12:43 +000022304eval as_val=\$$as_ac_Header
22305 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022306 cat >>confdefs.h <<_ACEOF
22307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22308_ACEOF
22309
22310fi
22311
22312done
22313
cristycd4c5312009-11-22 01:19:08 +000022314
22315
22316
22317
22318
22319
22320
cristy3ed852e2009-09-05 21:47:34 +000022321for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022322do :
22323 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22324if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022326#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022327_ACEOF
22328
22329fi
22330done
22331
cristy8b350f62009-11-15 23:12:43 +000022332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022333$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022334if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022335 $as_echo_n "(cached) " >&6
22336else
cristy8b350f62009-11-15 23:12:43 +000022337 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022338 ac_cv_func_mmap_fixed_mapped=no
22339else
cristy8b350f62009-11-15 23:12:43 +000022340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022341/* end confdefs.h. */
22342$ac_includes_default
22343/* malloc might have been renamed as rpl_malloc. */
22344#undef malloc
22345
22346/* Thanks to Mike Haertel and Jim Avera for this test.
22347 Here is a matrix of mmap possibilities:
22348 mmap private not fixed
22349 mmap private fixed at somewhere currently unmapped
22350 mmap private fixed at somewhere already mapped
22351 mmap shared not fixed
22352 mmap shared fixed at somewhere currently unmapped
22353 mmap shared fixed at somewhere already mapped
22354 For private mappings, we should verify that changes cannot be read()
22355 back from the file, nor mmap's back from the file at a different
22356 address. (There have been systems where private was not correctly
22357 implemented like the infamous i386 svr4.0, and systems where the
22358 VM page cache was not coherent with the file system buffer cache
22359 like early versions of FreeBSD and possibly contemporary NetBSD.)
22360 For shared mappings, we should conversely verify that changes get
22361 propagated back to all the places they're supposed to be.
22362
22363 Grep wants private fixed already mapped.
22364 The main things grep needs to know about mmap are:
22365 * does it exist and is it safe to write into the mmap'd area
22366 * how to use it (BSD variants) */
22367
22368#include <fcntl.h>
22369#include <sys/mman.h>
22370
22371#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22372char *malloc ();
22373#endif
22374
22375/* This mess was copied from the GNU getpagesize.h. */
22376#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022377# ifdef _SC_PAGESIZE
22378# define getpagesize() sysconf(_SC_PAGESIZE)
22379# else /* no _SC_PAGESIZE */
22380# ifdef HAVE_SYS_PARAM_H
22381# include <sys/param.h>
22382# ifdef EXEC_PAGESIZE
22383# define getpagesize() EXEC_PAGESIZE
22384# else /* no EXEC_PAGESIZE */
22385# ifdef NBPG
22386# define getpagesize() NBPG * CLSIZE
22387# ifndef CLSIZE
22388# define CLSIZE 1
22389# endif /* no CLSIZE */
22390# else /* no NBPG */
22391# ifdef NBPC
22392# define getpagesize() NBPC
22393# else /* no NBPC */
22394# ifdef PAGESIZE
22395# define getpagesize() PAGESIZE
22396# endif /* PAGESIZE */
22397# endif /* no NBPC */
22398# endif /* no NBPG */
22399# endif /* no EXEC_PAGESIZE */
22400# else /* no HAVE_SYS_PARAM_H */
22401# define getpagesize() 8192 /* punt totally */
22402# endif /* no HAVE_SYS_PARAM_H */
22403# endif /* no _SC_PAGESIZE */
22404
22405#endif /* no HAVE_GETPAGESIZE */
22406
22407int
22408main ()
22409{
22410 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022411 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022412 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022413 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022414
22415 pagesize = getpagesize ();
22416
22417 /* First, make a file with some known garbage in it. */
22418 data = (char *) malloc (pagesize);
22419 if (!data)
22420 return 1;
22421 for (i = 0; i < pagesize; ++i)
22422 *(data + i) = rand ();
22423 umask (0);
22424 fd = creat ("conftest.mmap", 0600);
22425 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022426 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022427 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022428 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022429 close (fd);
22430
cristycd4c5312009-11-22 01:19:08 +000022431 /* Next, check that the tail of a page is zero-filled. File must have
22432 non-zero length, otherwise we risk SIGBUS for entire page. */
22433 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22434 if (fd2 < 0)
22435 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022436 cdata2 = "";
22437 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022438 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022439 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022440 if (data2 == MAP_FAILED)
22441 return 6;
22442 for (i = 0; i < pagesize; ++i)
22443 if (*(data2 + i))
22444 return 7;
22445 close (fd2);
22446 if (munmap (data2, pagesize))
22447 return 8;
22448
cristy3ed852e2009-09-05 21:47:34 +000022449 /* Next, try to mmap the file at a fixed address which already has
22450 something else allocated at it. If we can, also make sure that
22451 we see the same garbage. */
22452 fd = open ("conftest.mmap", O_RDWR);
22453 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022454 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022455 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22456 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022457 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022458 for (i = 0; i < pagesize; ++i)
22459 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022460 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022461
22462 /* Finally, make sure that changes to the mapped area do not
22463 percolate back to the file as seen by read(). (This is a bug on
22464 some variants of i386 svr4.0.) */
22465 for (i = 0; i < pagesize; ++i)
22466 *(data2 + i) = *(data2 + i) + 1;
22467 data3 = (char *) malloc (pagesize);
22468 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022469 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022470 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022471 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022472 for (i = 0; i < pagesize; ++i)
22473 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022474 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022475 close (fd);
22476 return 0;
22477}
22478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022479if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022480 ac_cv_func_mmap_fixed_mapped=yes
22481else
cristy8b350f62009-11-15 23:12:43 +000022482 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022483fi
cristy8b350f62009-11-15 23:12:43 +000022484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22485 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022486fi
22487
cristy3ed852e2009-09-05 21:47:34 +000022488fi
cristy8b350f62009-11-15 23:12:43 +000022489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22491if test $ac_cv_func_mmap_fixed_mapped = yes; then
22492
cristy8b350f62009-11-15 23:12:43 +000022493$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022494
22495fi
cristycd4c5312009-11-22 01:19:08 +000022496rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022497
cristy3ed852e2009-09-05 21:47:34 +000022498for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022499do :
22500 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22501if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022502 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022503#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022504_ACEOF
22505
22506fi
22507
22508done
22509
cristy3ed852e2009-09-05 21:47:34 +000022510for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022511do :
22512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22513ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22514eval as_val=\$$as_ac_var
22515 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022516 cat >>confdefs.h <<_ACEOF
22517#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22518_ACEOF
22519
22520fi
22521done
22522
22523if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022525$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022526if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 $as_echo_n "(cached) " >&6
22528else
cristy8b350f62009-11-15 23:12:43 +000022529 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022530 ac_cv_func_fork_works=cross
22531else
cristy8b350f62009-11-15 23:12:43 +000022532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022533/* end confdefs.h. */
22534$ac_includes_default
22535int
22536main ()
22537{
22538
22539 /* By Ruediger Kuhlmann. */
22540 return fork () < 0;
22541
22542 ;
22543 return 0;
22544}
22545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022546if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022547 ac_cv_func_fork_works=yes
22548else
cristy8b350f62009-11-15 23:12:43 +000022549 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022550fi
cristy8b350f62009-11-15 23:12:43 +000022551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22552 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022553fi
22554
cristy3ed852e2009-09-05 21:47:34 +000022555fi
cristy8b350f62009-11-15 23:12:43 +000022556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022557$as_echo "$ac_cv_func_fork_works" >&6; }
22558
22559else
22560 ac_cv_func_fork_works=$ac_cv_func_fork
22561fi
22562if test "x$ac_cv_func_fork_works" = xcross; then
22563 case $host in
22564 *-*-amigaos* | *-*-msdosdjgpp*)
22565 # Override, as these systems have only a dummy fork() stub
22566 ac_cv_func_fork_works=no
22567 ;;
22568 *)
22569 ac_cv_func_fork_works=yes
22570 ;;
22571 esac
cristy8b350f62009-11-15 23:12:43 +000022572 { $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 +000022573$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22574fi
22575ac_cv_func_vfork_works=$ac_cv_func_vfork
22576if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022578$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022579if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022580 $as_echo_n "(cached) " >&6
22581else
cristy8b350f62009-11-15 23:12:43 +000022582 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 ac_cv_func_vfork_works=cross
22584else
cristy8b350f62009-11-15 23:12:43 +000022585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022586/* end confdefs.h. */
22587/* Thanks to Paul Eggert for this test. */
22588$ac_includes_default
22589#include <sys/wait.h>
22590#ifdef HAVE_VFORK_H
22591# include <vfork.h>
22592#endif
22593/* On some sparc systems, changes by the child to local and incoming
22594 argument registers are propagated back to the parent. The compiler
22595 is told about this with #include <vfork.h>, but some compilers
22596 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22597 static variable whose address is put into a register that is
22598 clobbered by the vfork. */
22599static void
22600#ifdef __cplusplus
22601sparc_address_test (int arg)
22602# else
22603sparc_address_test (arg) int arg;
22604#endif
22605{
22606 static pid_t child;
22607 if (!child) {
22608 child = vfork ();
22609 if (child < 0) {
22610 perror ("vfork");
22611 _exit(2);
22612 }
22613 if (!child) {
22614 arg = getpid();
22615 write(-1, "", 0);
22616 _exit (arg);
22617 }
22618 }
22619}
22620
22621int
22622main ()
22623{
22624 pid_t parent = getpid ();
22625 pid_t child;
22626
22627 sparc_address_test (0);
22628
22629 child = vfork ();
22630
22631 if (child == 0) {
22632 /* Here is another test for sparc vfork register problems. This
22633 test uses lots of local variables, at least as many local
22634 variables as main has allocated so far including compiler
22635 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22636 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22637 reuse the register of parent for one of the local variables,
22638 since it will think that parent can't possibly be used any more
22639 in this routine. Assigning to the local variable will thus
22640 munge parent in the parent process. */
22641 pid_t
22642 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22643 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22644 /* Convince the compiler that p..p7 are live; otherwise, it might
22645 use the same hardware register for all 8 local variables. */
22646 if (p != p1 || p != p2 || p != p3 || p != p4
22647 || p != p5 || p != p6 || p != p7)
22648 _exit(1);
22649
22650 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22651 from child file descriptors. If the child closes a descriptor
22652 before it execs or exits, this munges the parent's descriptor
22653 as well. Test for this by closing stdout in the child. */
22654 _exit(close(fileno(stdout)) != 0);
22655 } else {
22656 int status;
22657 struct stat st;
22658
22659 while (wait(&status) != child)
22660 ;
22661 return (
22662 /* Was there some problem with vforking? */
22663 child < 0
22664
22665 /* Did the child fail? (This shouldn't happen.) */
22666 || status
22667
22668 /* Did the vfork/compiler bug occur? */
22669 || parent != getpid()
22670
22671 /* Did the file descriptor bug occur? */
22672 || fstat(fileno(stdout), &st) != 0
22673 );
22674 }
22675}
22676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022677if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022678 ac_cv_func_vfork_works=yes
22679else
cristy8b350f62009-11-15 23:12:43 +000022680 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022681fi
cristy8b350f62009-11-15 23:12:43 +000022682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22683 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022684fi
22685
cristy3ed852e2009-09-05 21:47:34 +000022686fi
cristy8b350f62009-11-15 23:12:43 +000022687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022688$as_echo "$ac_cv_func_vfork_works" >&6; }
22689
22690fi;
22691if test "x$ac_cv_func_fork_works" = xcross; then
22692 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022693 { $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 +000022694$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22695fi
22696
22697if test "x$ac_cv_func_vfork_works" = xyes; then
22698
cristy8b350f62009-11-15 23:12:43 +000022699$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022700
22701else
22702
cristy8b350f62009-11-15 23:12:43 +000022703$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022704
22705fi
22706if test "x$ac_cv_func_fork_works" = xyes; then
22707
cristy8b350f62009-11-15 23:12:43 +000022708$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022709
22710fi
22711
cristy8b350f62009-11-15 23:12:43 +000022712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022713$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022714if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022715 $as_echo_n "(cached) " >&6
22716else
cristy8b350f62009-11-15 23:12:43 +000022717 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022718 ac_cv_func_memcmp_working=no
22719else
cristy8b350f62009-11-15 23:12:43 +000022720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022721/* end confdefs.h. */
22722$ac_includes_default
22723int
22724main ()
22725{
22726
22727 /* Some versions of memcmp are not 8-bit clean. */
22728 char c0 = '\100', c1 = '\200', c2 = '\201';
22729 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22730 return 1;
22731
22732 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22733 or more and with at least one buffer not starting on a 4-byte boundary.
22734 William Lewis provided this test program. */
22735 {
22736 char foo[21];
22737 char bar[21];
22738 int i;
22739 for (i = 0; i < 4; i++)
22740 {
22741 char *a = foo + i;
22742 char *b = bar + i;
22743 strcpy (a, "--------01111111");
22744 strcpy (b, "--------10000000");
22745 if (memcmp (a, b, 16) >= 0)
22746 return 1;
22747 }
22748 return 0;
22749 }
22750
22751 ;
22752 return 0;
22753}
22754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022755if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022756 ac_cv_func_memcmp_working=yes
22757else
cristy8b350f62009-11-15 23:12:43 +000022758 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022759fi
cristy8b350f62009-11-15 23:12:43 +000022760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22761 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022762fi
22763
cristy3ed852e2009-09-05 21:47:34 +000022764fi
cristy8b350f62009-11-15 23:12:43 +000022765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022766$as_echo "$ac_cv_func_memcmp_working" >&6; }
22767test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22768 *" memcmp.$ac_objext "* ) ;;
22769 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22770 ;;
22771esac
22772
22773
cristy3ed852e2009-09-05 21:47:34 +000022774for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022775do :
22776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22777ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22778eval as_val=\$$as_ac_Header
22779 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022780 cat >>confdefs.h <<_ACEOF
22781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22782_ACEOF
22783
22784fi
22785
22786done
22787
cristy8b350f62009-11-15 23:12:43 +000022788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022789$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022790if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022791 $as_echo_n "(cached) " >&6
22792else
22793 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22794 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22795 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022797/* end confdefs.h. */
22798$ac_includes_default
22799#ifdef HAVE_SYS_SELECT_H
22800# include <sys/select.h>
22801#endif
22802#ifdef HAVE_SYS_SOCKET_H
22803# include <sys/socket.h>
22804#endif
22805
22806int
22807main ()
22808{
22809extern int select ($ac_arg1,
22810 $ac_arg234, $ac_arg234, $ac_arg234,
22811 $ac_arg5);
22812 ;
22813 return 0;
22814}
22815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022816if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022817 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022818fi
cristy3ed852e2009-09-05 21:47:34 +000022819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22820 done
22821 done
22822done
22823# Provide a safe default value.
22824: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22825
22826fi
cristy8b350f62009-11-15 23:12:43 +000022827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022828$as_echo "$ac_cv_func_select_args" >&6; }
22829ac_save_IFS=$IFS; IFS=','
22830set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22831IFS=$ac_save_IFS
22832shift
22833
22834cat >>confdefs.h <<_ACEOF
22835#define SELECT_TYPE_ARG1 $1
22836_ACEOF
22837
22838
22839cat >>confdefs.h <<_ACEOF
22840#define SELECT_TYPE_ARG234 ($2)
22841_ACEOF
22842
22843
22844cat >>confdefs.h <<_ACEOF
22845#define SELECT_TYPE_ARG5 ($3)
22846_ACEOF
22847
22848rm -f conftest*
22849
cristy8b350f62009-11-15 23:12:43 +000022850if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022851 $as_echo_n "(cached) " >&6
22852else
22853 ac_cv_func_setvbuf_reversed=no
22854fi
22855
22856
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022859if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022860 $as_echo_n "(cached) " >&6
22861else
cristy8b350f62009-11-15 23:12:43 +000022862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022863/* end confdefs.h. */
22864#include <sys/types.h>
22865#include <signal.h>
22866
22867int
22868main ()
22869{
22870return *(signal (0, 0)) (0) == 1;
22871 ;
22872 return 0;
22873}
22874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022875if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022876 ac_cv_type_signal=int
22877else
cristy8b350f62009-11-15 23:12:43 +000022878 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022879fi
cristy3ed852e2009-09-05 21:47:34 +000022880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881fi
cristy8b350f62009-11-15 23:12:43 +000022882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022883$as_echo "$ac_cv_type_signal" >&6; }
22884
22885cat >>confdefs.h <<_ACEOF
22886#define RETSIGTYPE $ac_cv_type_signal
22887_ACEOF
22888
22889
cristy8b350f62009-11-15 23:12:43 +000022890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022891$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022892if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022893 $as_echo_n "(cached) " >&6
22894else
cristy8b350f62009-11-15 23:12:43 +000022895 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022896 ac_cv_func_strtod=no
22897else
cristy8b350f62009-11-15 23:12:43 +000022898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022899/* end confdefs.h. */
22900
22901$ac_includes_default
22902#ifndef strtod
22903double strtod ();
22904#endif
22905int
22906main()
22907{
22908 {
22909 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22910 char *string = " +69";
22911 char *term;
22912 double value;
22913 value = strtod (string, &term);
22914 if (value != 69 || term != (string + 4))
22915 return 1;
22916 }
22917
22918 {
22919 /* Under Solaris 2.4, strtod returns the wrong value for the
22920 terminating character under some conditions. */
22921 char *string = "NaN";
22922 char *term;
22923 strtod (string, &term);
22924 if (term != string && *(term - 1) == 0)
22925 return 1;
22926 }
22927 return 0;
22928}
22929
22930_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022931if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022932 ac_cv_func_strtod=yes
22933else
cristy8b350f62009-11-15 23:12:43 +000022934 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022935fi
cristy8b350f62009-11-15 23:12:43 +000022936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22937 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022938fi
22939
cristy3ed852e2009-09-05 21:47:34 +000022940fi
cristy8b350f62009-11-15 23:12:43 +000022941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022942$as_echo "$ac_cv_func_strtod" >&6; }
22943if test $ac_cv_func_strtod = no; then
22944 case " $LIBOBJS " in
22945 *" strtod.$ac_objext "* ) ;;
22946 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22947 ;;
22948esac
22949
cristy8b350f62009-11-15 23:12:43 +000022950ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22951if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022952
cristy3ed852e2009-09-05 21:47:34 +000022953fi
22954
cristy3ed852e2009-09-05 21:47:34 +000022955if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022957$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022958if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022959 $as_echo_n "(cached) " >&6
22960else
22961 ac_check_lib_save_LIBS=$LIBS
22962LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022964/* end confdefs.h. */
22965
22966/* Override any GCC internal prototype to avoid an error.
22967 Use char because int might match the return type of a GCC
22968 builtin and then its argument prototype would still apply. */
22969#ifdef __cplusplus
22970extern "C"
22971#endif
22972char pow ();
22973int
22974main ()
22975{
22976return pow ();
22977 ;
22978 return 0;
22979}
22980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022981if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022982 ac_cv_lib_m_pow=yes
22983else
cristy8b350f62009-11-15 23:12:43 +000022984 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000022985fi
cristy8b350f62009-11-15 23:12:43 +000022986rm -f core conftest.err conftest.$ac_objext \
22987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022988LIBS=$ac_check_lib_save_LIBS
22989fi
cristy8b350f62009-11-15 23:12:43 +000022990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022991$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022992if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022993 POW_LIB=-lm
22994else
cristy8b350f62009-11-15 23:12:43 +000022995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022996$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22997fi
22998
22999fi
23000
23001fi
23002
cristy3ed852e2009-09-05 21:47:34 +000023003for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023004do :
23005 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23006if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023007 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023008#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023009_ACEOF
23010
cristy8b350f62009-11-15 23:12:43 +000023011ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23012if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023013
cristy8b350f62009-11-15 23:12:43 +000023014$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023015
23016fi
23017
23018fi
23019done
23020
23021
23022
cristy161b9262010-03-20 19:34:32 +000023023#
23024# Find math library
23025#
23026MATH_LIBS=''
23027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23028$as_echo_n "checking for sqrt in -lm... " >&6; }
23029if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23030 $as_echo_n "(cached) " >&6
23031else
23032 ac_check_lib_save_LIBS=$LIBS
23033LIBS="-lm $LIBS"
23034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23035/* end confdefs.h. */
23036
23037/* Override any GCC internal prototype to avoid an error.
23038 Use char because int might match the return type of a GCC
23039 builtin and then its argument prototype would still apply. */
23040#ifdef __cplusplus
23041extern "C"
23042#endif
23043char sqrt ();
23044int
23045main ()
23046{
23047return sqrt ();
23048 ;
23049 return 0;
23050}
23051_ACEOF
23052if ac_fn_c_try_link "$LINENO"; then :
23053 ac_cv_lib_m_sqrt=yes
23054else
23055 ac_cv_lib_m_sqrt=no
23056fi
23057rm -f core conftest.err conftest.$ac_objext \
23058 conftest$ac_exeext conftest.$ac_ext
23059LIBS=$ac_check_lib_save_LIBS
23060fi
23061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23062$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23063if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23064 MATH_LIBS="-lm"
23065fi
23066
23067LIBS="$MATH_LIBS $LIBS"
23068
23069
cristy56ed31c2010-03-22 00:46:21 +000023070for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023071do :
23072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23074eval as_val=\$$as_ac_var
23075 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023076 cat >>confdefs.h <<_ACEOF
23077#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23078_ACEOF
23079
23080fi
23081done
23082
23083
cristye43a45e2009-09-28 14:49:00 +000023084#
23085# Check for clock_gettime().
23086#
cristy8b350f62009-11-15 23:12:43 +000023087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023088$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023089if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023090 $as_echo_n "(cached) " >&6
23091else
23092 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023094/* end confdefs.h. */
23095
23096/* Override any GCC internal prototype to avoid an error.
23097 Use char because int might match the return type of a GCC
23098 builtin and then its argument prototype would still apply. */
23099#ifdef __cplusplus
23100extern "C"
23101#endif
23102char clock_gettime ();
23103int
23104main ()
23105{
23106return clock_gettime ();
23107 ;
23108 return 0;
23109}
23110_ACEOF
23111for ac_lib in '' rt; do
23112 if test -z "$ac_lib"; then
23113 ac_res="none required"
23114 else
23115 ac_res=-l$ac_lib
23116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23117 fi
cristy8b350f62009-11-15 23:12:43 +000023118 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023119 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023120fi
cristy8b350f62009-11-15 23:12:43 +000023121rm -f core conftest.err conftest.$ac_objext \
23122 conftest$ac_exeext
23123 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023124 break
23125fi
23126done
cristy8b350f62009-11-15 23:12:43 +000023127if test "${ac_cv_search_clock_gettime+set}" = set; then :
23128
cristye43a45e2009-09-28 14:49:00 +000023129else
23130 ac_cv_search_clock_gettime=no
23131fi
23132rm conftest.$ac_ext
23133LIBS=$ac_func_search_save_LIBS
23134fi
cristy8b350f62009-11-15 23:12:43 +000023135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023136$as_echo "$ac_cv_search_clock_gettime" >&6; }
23137ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023138if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23140
23141
cristy8b350f62009-11-15 23:12:43 +000023142$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023143
cristy8b350f62009-11-15 23:12:43 +000023144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023145$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023147/* end confdefs.h. */
23148#include <time.h>
23149int
23150main ()
23151{
23152clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023153 ;
23154 return 0;
23155}
23156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023157if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023158
cristy8b350f62009-11-15 23:12:43 +000023159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023160$as_echo "yes" >&6; }
23161
cristy8b350f62009-11-15 23:12:43 +000023162$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023163
23164
23165else
cristy8b350f62009-11-15 23:12:43 +000023166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023167$as_echo "no" >&6; }
23168
23169fi
cristye43a45e2009-09-28 14:49:00 +000023170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171
23172else
23173
cristy8b350f62009-11-15 23:12:43 +000023174 for ac_func in gettimeofday ftime
23175do :
23176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23177ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23178eval as_val=\$$as_ac_var
23179 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023180 cat >>confdefs.h <<_ACEOF
23181#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23182_ACEOF
23183 break
23184fi
23185done
23186
23187
23188
23189fi
23190
23191
cristy3ed852e2009-09-05 21:47:34 +000023192########
23193#
23194# Check for function prototypes
23195#
23196########
23197
cristy8b350f62009-11-15 23:12:43 +000023198ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023199#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023200"
23201if test "x$ac_cv_have_decl_pread" = x""yes; then :
23202 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023203else
cristy8b350f62009-11-15 23:12:43 +000023204 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023205fi
23206
cristy3ed852e2009-09-05 21:47:34 +000023207cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023208#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023210ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023211#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023212"
23213if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23214 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023215else
cristy8b350f62009-11-15 23:12:43 +000023216 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023217fi
23218
cristy3ed852e2009-09-05 21:47:34 +000023219cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023220#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023221_ACEOF
23222
23223
cristy8b350f62009-11-15 23:12:43 +000023224ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023225#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023226"
23227if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23228 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023229else
cristy8b350f62009-11-15 23:12:43 +000023230 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023231fi
23232
cristy3ed852e2009-09-05 21:47:34 +000023233cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023234#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023235_ACEOF
23236
23237
cristy8b350f62009-11-15 23:12:43 +000023238ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023239#include <stdio.h>
23240#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023241"
23242if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23243 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023244else
cristy8b350f62009-11-15 23:12:43 +000023245 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023246fi
23247
cristy3ed852e2009-09-05 21:47:34 +000023248cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023249#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023250_ACEOF
23251
23252
cristy3ed852e2009-09-05 21:47:34 +000023253########
23254#
23255# C++ Support Tests (For Magick++)
23256#
23257########
23258have_magick_plus_plus='no'
23259if test "$with_magick_plus_plus" = 'yes'; then
23260 OLIBS="$LIBS"
23261 LIBS=''
23262 ac_ext=cpp
23263ac_cpp='$CXXCPP $CPPFLAGS'
23264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23267
23268
23269 # Full set of headers used...
23270 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23271 # functional iomanip iosfwd iostream iterator list string strstream utility
23272 ac_ext=cpp
23273ac_cpp='$CXXCPP $CPPFLAGS'
23274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23277
23278 ac_ext=cpp
23279ac_cpp='$CXXCPP $CPPFLAGS'
23280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23283if test -z "$CXX"; then
23284 if test -n "$CCC"; then
23285 CXX=$CCC
23286 else
23287 if test -n "$ac_tool_prefix"; then
23288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23289 do
23290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023293$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023294if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023295 $as_echo_n "(cached) " >&6
23296else
23297 if test -n "$CXX"; then
23298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23299else
23300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23301for as_dir in $PATH
23302do
23303 IFS=$as_save_IFS
23304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23307 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023309 break 2
23310 fi
23311done
cristy8b350f62009-11-15 23:12:43 +000023312 done
cristy3ed852e2009-09-05 21:47:34 +000023313IFS=$as_save_IFS
23314
23315fi
23316fi
23317CXX=$ac_cv_prog_CXX
23318if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023320$as_echo "$CXX" >&6; }
23321else
cristy8b350f62009-11-15 23:12:43 +000023322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023323$as_echo "no" >&6; }
23324fi
23325
23326
23327 test -n "$CXX" && break
23328 done
23329fi
23330if test -z "$CXX"; then
23331 ac_ct_CXX=$CXX
23332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23333do
23334 # Extract the first word of "$ac_prog", so it can be a program name with args.
23335set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023337$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023338if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023339 $as_echo_n "(cached) " >&6
23340else
23341 if test -n "$ac_ct_CXX"; then
23342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23343else
23344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23345for as_dir in $PATH
23346do
23347 IFS=$as_save_IFS
23348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23351 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023353 break 2
23354 fi
23355done
cristy8b350f62009-11-15 23:12:43 +000023356 done
cristy3ed852e2009-09-05 21:47:34 +000023357IFS=$as_save_IFS
23358
23359fi
23360fi
23361ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23362if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023364$as_echo "$ac_ct_CXX" >&6; }
23365else
cristy8b350f62009-11-15 23:12:43 +000023366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo "no" >&6; }
23368fi
23369
23370
23371 test -n "$ac_ct_CXX" && break
23372done
23373
23374 if test "x$ac_ct_CXX" = x; then
23375 CXX="g++"
23376 else
23377 case $cross_compiling:$ac_tool_warned in
23378yes:)
cristy8b350f62009-11-15 23:12:43 +000023379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23381ac_tool_warned=yes ;;
23382esac
23383 CXX=$ac_ct_CXX
23384 fi
23385fi
23386
23387 fi
23388fi
23389# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023390$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391set X $ac_compile
23392ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023393for ac_option in --version -v -V -qversion; do
23394 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023395case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23398esac
cristy8b350f62009-11-15 23:12:43 +000023399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23400$as_echo "$ac_try_echo"; } >&5
23401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023402 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023403 if test -s conftest.err; then
23404 sed '10a\
23405... rest of stderr output deleted ...
23406 10q' conftest.err >conftest.er1
23407 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023408 fi
cristycd4c5312009-11-22 01:19:08 +000023409 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23411 test $ac_status = 0; }
23412done
cristy3ed852e2009-09-05 21:47:34 +000023413
cristy8b350f62009-11-15 23:12:43 +000023414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023415$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023416if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023417 $as_echo_n "(cached) " >&6
23418else
cristy8b350f62009-11-15 23:12:43 +000023419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023420/* end confdefs.h. */
23421
23422int
23423main ()
23424{
23425#ifndef __GNUC__
23426 choke me
23427#endif
23428
23429 ;
23430 return 0;
23431}
23432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023433if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023434 ac_compiler_gnu=yes
23435else
cristy8b350f62009-11-15 23:12:43 +000023436 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023437fi
cristy3ed852e2009-09-05 21:47:34 +000023438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23440
23441fi
cristy8b350f62009-11-15 23:12:43 +000023442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023443$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23444if test $ac_compiler_gnu = yes; then
23445 GXX=yes
23446else
23447 GXX=
23448fi
23449ac_test_CXXFLAGS=${CXXFLAGS+set}
23450ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023452$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023453if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023454 $as_echo_n "(cached) " >&6
23455else
23456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23457 ac_cxx_werror_flag=yes
23458 ac_cv_prog_cxx_g=no
23459 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023461/* end confdefs.h. */
23462
23463int
23464main ()
23465{
23466
23467 ;
23468 return 0;
23469}
23470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023471if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023472 ac_cv_prog_cxx_g=yes
23473else
cristy8b350f62009-11-15 23:12:43 +000023474 CXXFLAGS=""
23475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023476/* end confdefs.h. */
23477
23478int
23479main ()
23480{
23481
23482 ;
23483 return 0;
23484}
23485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023486if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023487
cristy8b350f62009-11-15 23:12:43 +000023488else
23489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023490 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023492/* end confdefs.h. */
23493
23494int
23495main ()
23496{
23497
23498 ;
23499 return 0;
23500}
23501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023502if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023503 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023504fi
cristy3ed852e2009-09-05 21:47:34 +000023505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23506fi
cristy3ed852e2009-09-05 21:47:34 +000023507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23508fi
cristy3ed852e2009-09-05 21:47:34 +000023509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23511fi
cristy8b350f62009-11-15 23:12:43 +000023512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023513$as_echo "$ac_cv_prog_cxx_g" >&6; }
23514if test "$ac_test_CXXFLAGS" = set; then
23515 CXXFLAGS=$ac_save_CXXFLAGS
23516elif test $ac_cv_prog_cxx_g = yes; then
23517 if test "$GXX" = yes; then
23518 CXXFLAGS="-g -O2"
23519 else
23520 CXXFLAGS="-g"
23521 fi
23522else
23523 if test "$GXX" = yes; then
23524 CXXFLAGS="-O2"
23525 else
23526 CXXFLAGS=
23527 fi
23528fi
23529ac_ext=cpp
23530ac_cpp='$CXXCPP $CPPFLAGS'
23531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23534
23535depcc="$CXX" am_compiler_list=
23536
cristy8b350f62009-11-15 23:12:43 +000023537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023539if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023540 $as_echo_n "(cached) " >&6
23541else
23542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23543 # We make a subdir and do the tests there. Otherwise we can end up
23544 # making bogus files that we don't know about and never remove. For
23545 # instance it was reported that on HP-UX the gcc test will end up
23546 # making a dummy file named `D' -- because `-MD' means `put the output
23547 # in D'.
23548 mkdir conftest.dir
23549 # Copy depcomp to subdir because otherwise we won't find it if we're
23550 # using a relative directory.
23551 cp "$am_depcomp" conftest.dir
23552 cd conftest.dir
23553 # We will build objects and dependencies in a subdirectory because
23554 # it helps to detect inapplicable dependency modes. For instance
23555 # both Tru64's cc and ICC support -MD to output dependencies as a
23556 # side effect of compilation, but ICC will put the dependencies in
23557 # the current directory while Tru64 will put them in the object
23558 # directory.
23559 mkdir sub
23560
23561 am_cv_CXX_dependencies_compiler_type=none
23562 if test "$am_compiler_list" = ""; then
23563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23564 fi
23565 am__universal=false
23566 case " $depcc " in #(
23567 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23568 esac
23569
23570 for depmode in $am_compiler_list; do
23571 # Setup a source with many dependencies, because some compilers
23572 # like to wrap large dependency lists on column 80 (with \), and
23573 # we should not choose a depcomp mode which is confused by this.
23574 #
23575 # We need to recreate these files for each test, as the compiler may
23576 # overwrite some of them when testing with obscure command lines.
23577 # This happens at least with the AIX C compiler.
23578 : > sub/conftest.c
23579 for i in 1 2 3 4 5 6; do
23580 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23581 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23582 # Solaris 8's {/usr,}/bin/sh.
23583 touch sub/conftst$i.h
23584 done
23585 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23586
23587 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23588 # mode. It turns out that the SunPro C++ compiler does not properly
23589 # handle `-M -o', and we need to detect this. Also, some Intel
23590 # versions had trouble with output in subdirs
23591 am__obj=sub/conftest.${OBJEXT-o}
23592 am__minus_obj="-o $am__obj"
23593 case $depmode in
23594 gcc)
23595 # This depmode causes a compiler race in universal mode.
23596 test "$am__universal" = false || continue
23597 ;;
23598 nosideeffect)
23599 # after this tag, mechanisms are not by side-effect, so they'll
23600 # only be used when explicitly requested
23601 if test "x$enable_dependency_tracking" = xyes; then
23602 continue
23603 else
23604 break
23605 fi
23606 ;;
23607 msvisualcpp | msvcmsys)
23608 # This compiler won't grok `-c -o', but also, the minuso test has
23609 # not run yet. These depmodes are late enough in the game, and
23610 # so weak that their functioning should not be impacted.
23611 am__obj=conftest.${OBJEXT-o}
23612 am__minus_obj=
23613 ;;
23614 none) break ;;
23615 esac
23616 if depmode=$depmode \
23617 source=sub/conftest.c object=$am__obj \
23618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23619 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23620 >/dev/null 2>conftest.err &&
23621 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23622 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23623 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23624 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23625 # icc doesn't choke on unknown options, it will just issue warnings
23626 # or remarks (even with -Werror). So we grep stderr for any message
23627 # that says an option was ignored or not supported.
23628 # When given -MP, icc 7.0 and 7.1 complain thusly:
23629 # icc: Command line warning: ignoring option '-M'; no argument required
23630 # The diagnosis changed in icc 8.0:
23631 # icc: Command line remark: option '-MP' not supported
23632 if (grep 'ignoring option' conftest.err ||
23633 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23634 am_cv_CXX_dependencies_compiler_type=$depmode
23635 break
23636 fi
23637 fi
23638 done
23639
23640 cd ..
23641 rm -rf conftest.dir
23642else
23643 am_cv_CXX_dependencies_compiler_type=none
23644fi
23645
23646fi
cristy8b350f62009-11-15 23:12:43 +000023647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023648$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23649CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23650
23651 if
23652 test "x$enable_dependency_tracking" != xno \
23653 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23654 am__fastdepCXX_TRUE=
23655 am__fastdepCXX_FALSE='#'
23656else
23657 am__fastdepCXX_TRUE='#'
23658 am__fastdepCXX_FALSE=
23659fi
23660
23661
cristy8b350f62009-11-15 23:12:43 +000023662 { $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 +000023663$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023664if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023665 $as_echo_n "(cached) " >&6
23666else
23667
23668 ac_ext=cpp
23669ac_cpp='$CXXCPP $CPPFLAGS'
23670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23673
cristy8b350f62009-11-15 23:12:43 +000023674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023675/* end confdefs.h. */
23676
23677int f(int x){return 1;}
23678int f(char x){return 1;}
23679int f(bool x){return 1;}
23680
23681int
23682main ()
23683{
23684bool b = true; return f(b);
23685 ;
23686 return 0;
23687}
23688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023689if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023690 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023691else
cristy964cb7f2010-04-25 23:18:00 +000023692 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023693fi
cristy3ed852e2009-09-05 21:47:34 +000023694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695 ac_ext=cpp
23696ac_cpp='$CXXCPP $CPPFLAGS'
23697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23700
23701
23702fi
cristy964cb7f2010-04-25 23:18:00 +000023703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23704$as_echo "$ax_cv_cxx_bool" >&6; }
23705if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023706
cristy8b350f62009-11-15 23:12:43 +000023707$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023708
23709fi
23710
cristy8b350f62009-11-15 23:12:43 +000023711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023712$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023713if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023714 $as_echo_n "(cached) " >&6
23715else
23716
23717 ac_ext=cpp
23718ac_cpp='$CXXCPP $CPPFLAGS'
23719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23722
cristy8b350f62009-11-15 23:12:43 +000023723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023724/* end confdefs.h. */
23725namespace Outer { namespace Inner { int i = 0; }}
23726int
23727main ()
23728{
23729using namespace Outer::Inner; return i;
23730 ;
23731 return 0;
23732}
23733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023734if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023735 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023736else
cristy964cb7f2010-04-25 23:18:00 +000023737 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023738fi
cristy3ed852e2009-09-05 21:47:34 +000023739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23740 ac_ext=cpp
23741ac_cpp='$CXXCPP $CPPFLAGS'
23742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23745
23746
23747fi
cristy964cb7f2010-04-25 23:18:00 +000023748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23749$as_echo "$ax_cv_cxx_namespaces" >&6; }
23750if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023751
cristy8b350f62009-11-15 23:12:43 +000023752$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023753
23754fi
23755
cristy964cb7f2010-04-25 23:18:00 +000023756
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23758$as_echo_n "checking if g++ supports namespace std... " >&6; }
23759if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023760 $as_echo_n "(cached) " >&6
23761else
23762
cristy964cb7f2010-04-25 23:18:00 +000023763 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023764ac_cpp='$CXXCPP $CPPFLAGS'
23765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23768
cristy964cb7f2010-04-25 23:18:00 +000023769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023770/* end confdefs.h. */
23771#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023772 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023773int
23774main ()
23775{
cristy964cb7f2010-04-25 23:18:00 +000023776
cristy3ed852e2009-09-05 21:47:34 +000023777 ;
23778 return 0;
23779}
23780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023781if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023782 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023783else
cristy964cb7f2010-04-25 23:18:00 +000023784 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023785fi
cristy3ed852e2009-09-05 21:47:34 +000023786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023787 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023788ac_cpp='$CXXCPP $CPPFLAGS'
23789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23792
23793
23794fi
cristy964cb7f2010-04-25 23:18:00 +000023795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23796$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23797 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023798
cristy964cb7f2010-04-25 23:18:00 +000023799$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023800
cristy964cb7f2010-04-25 23:18:00 +000023801 fi
cristy3ed852e2009-09-05 21:47:34 +000023802
cristy8b350f62009-11-15 23:12:43 +000023803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023804$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023805if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023806 $as_echo_n "(cached) " >&6
23807else
23808
23809
23810 ac_ext=cpp
23811ac_cpp='$CXXCPP $CPPFLAGS'
23812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23815
cristy8b350f62009-11-15 23:12:43 +000023816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023817/* end confdefs.h. */
23818#include <iostream>
23819#include <map>
23820#include <iomanip>
23821#include <cmath>
23822#ifdef HAVE_NAMESPACES
23823using namespace std;
23824#endif
23825int
23826main ()
23827{
23828return 0;
23829 ;
23830 return 0;
23831}
23832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023833if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023834 ac_cv_cxx_have_std_libs=yes
23835else
cristy8b350f62009-11-15 23:12:43 +000023836 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023837fi
cristy3ed852e2009-09-05 21:47:34 +000023838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839 ac_ext=cpp
23840ac_cpp='$CXXCPP $CPPFLAGS'
23841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23844
23845
23846fi
cristy8b350f62009-11-15 23:12:43 +000023847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023848$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23849if test "$ac_cv_cxx_have_std_libs" = yes; then
23850
cristy8b350f62009-11-15 23:12:43 +000023851$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023852
23853fi
23854
cristy8b350f62009-11-15 23:12:43 +000023855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023856$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023857if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023858 $as_echo_n "(cached) " >&6
23859else
23860
23861 ac_ext=cpp
23862ac_cpp='$CXXCPP $CPPFLAGS'
23863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23866
cristy8b350f62009-11-15 23:12:43 +000023867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023868/* end confdefs.h. */
23869const wchar_t* s=L"wide string";
23870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023871if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023872 ac_cv_cxx_have_lstring=yes
23873else
cristy8b350f62009-11-15 23:12:43 +000023874 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023875fi
cristy3ed852e2009-09-05 21:47:34 +000023876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877 ac_ext=cpp
23878ac_cpp='$CXXCPP $CPPFLAGS'
23879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23882
23883
23884fi
cristy8b350f62009-11-15 23:12:43 +000023885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023886$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23887if test "$ac_cv_cxx_have_lstring" = yes; then
23888
cristy8b350f62009-11-15 23:12:43 +000023889$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023890
23891fi
23892
23893
23894 OPENMP_CXXFLAGS=
23895 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023896if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023897 enableval=$enable_openmp;
23898fi
23899
23900 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23902$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023903if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023904 $as_echo_n "(cached) " >&6
23905else
cristy8b350f62009-11-15 23:12:43 +000023906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23907/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023908
23909#ifndef _OPENMP
23910 choke me
23911#endif
23912#include <omp.h>
23913int main () { return omp_get_num_threads (); }
23914
23915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023916if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 ac_cv_prog_cxx_openmp='none needed'
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023920 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23921 ac_save_CXXFLAGS=$CXXFLAGS
23922 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023925
23926#ifndef _OPENMP
23927 choke me
23928#endif
23929#include <omp.h>
23930int main () { return omp_get_num_threads (); }
23931
23932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023933if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023934 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023935fi
cristy8b350f62009-11-15 23:12:43 +000023936rm -f core conftest.err conftest.$ac_objext \
23937 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023938 CXXFLAGS=$ac_save_CXXFLAGS
23939 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23940 break
23941 fi
23942 done
23943fi
cristy8b350f62009-11-15 23:12:43 +000023944rm -f core conftest.err conftest.$ac_objext \
23945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023946fi
cristy8b350f62009-11-15 23:12:43 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023948$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23949 case $ac_cv_prog_cxx_openmp in #(
23950 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023951 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023952 *)
cristy8b350f62009-11-15 23:12:43 +000023953 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023954 esac
23955 fi
23956
23957
23958 ac_ext=c
23959ac_cpp='$CPP $CPPFLAGS'
23960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23962ac_compiler_gnu=$ac_cv_c_compiler_gnu
23963
23964
cristy8b350f62009-11-15 23:12:43 +000023965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023966$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23967 if \
cristy964cb7f2010-04-25 23:18:00 +000023968 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000023969 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000023970 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000023971 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000023972 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000023973 have_magick_plus_plus='yes'
23974 else
23975 have_magick_plus_plus='no (failed tests)'
23976 fi
cristy8b350f62009-11-15 23:12:43 +000023977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000023978$as_echo "$have_magick_plus_plus" >&6; }
23979 LIBS="$OLIBS"
23980fi
23981 if test "$have_magick_plus_plus" = 'yes'; then
23982 WITH_MAGICK_PLUS_PLUS_TRUE=
23983 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23984else
23985 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23986 WITH_MAGICK_PLUS_PLUS_FALSE=
23987fi
23988
23989
23990# Only check for delegate libraries in subdirectories if requested.
23991if test "$enable_delegate_build" != 'no'; then
23992 # Check for delegate sub-directories and add -I & -L options as required.
23993 # This presumes that delegates are installed as detailed in the ImageMagick
23994 # README. If delegates are installed in a standard location where the
23995 # compiler will automatically find them then these options should not be
23996 # required.
23997
23998 #
23999 # Most delegates have includes in the same directory as the library, but not all...
24000 #
24001 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024002 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024003 if test -d "$builddir/$dir"; then
24004 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24005 else
24006 if test -d "$srcdirfull/$dir"; then
24007 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24008 fi
24009 fi
24010 done
24011
24012 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024013 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000024014 if test -d "$builddir/$dir/.libs"; then
24015 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24016 else
24017 if test -d "$srcdirfull/$dir/.libs"; then
24018 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24019 fi
24020 fi
24021 if test -d "$builddir/$dir"; then
24022 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24023 else
24024 if test -d "$srcdirfull/$dir"; then
24025 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24026 fi
24027 fi
24028 done
24029fi
24030
24031# Assume that delegate headers reside under same directory as ImageMagick
24032# installation prefix.
24033MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24034
24035#
24036# Find the X11 RGB database
24037#
cristy8b350f62009-11-15 23:12:43 +000024038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024039$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024040if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024041 $as_echo_n "(cached) " >&6
24042else
24043 # Look for the header file in a standard set of common directories.
24044# Check X11 before X11Rn because it is often a symlink to the current release.
24045 for ac_dir in \
24046 /lib/usr/lib/X11 \
24047 /usr/X11/lib \
24048 /usr/X11R4/lib \
24049 /usr/X11R5/lib \
24050 /usr/X11R6/lib \
24051 /usr/X11R7/lib \
24052 /usr/X386/lib \
24053 /usr/XFree86/lib/X11 \
24054 /usr/athena/lib \
24055 /usr/lib \
24056 /usr/lib/X11 \
24057 /usr/lib/X11R4 \
24058 /usr/lib/X11R5 \
24059 /usr/lib/X11R6 \
24060 /usr/lib/X11R7 \
24061 /usr/local/X11/lib \
24062 /usr/local/X11R4/lib \
24063 /usr/local/X11R5/lib \
24064 /usr/local/X11R6/lib \
24065 /usr/local/lib \
24066 /usr/local/lib/X11 \
24067 /usr/local/lib/X11R4 \
24068 /usr/local/lib/X11R5 \
24069 /usr/local/lib/X11R6 \
24070 /usr/local/lib/X11R7 \
24071 /usr/local/x11r5/lib \
24072 /usr/lpp/Xamples/lib \
24073 /usr/openwin/lib \
24074 /usr/openwin/share/lib \
24075 /usr/unsupported/lib \
24076 /usr/x386/lib \
24077 ; do
24078 if test -f "$ac_dir/X11/rgb.txt"; then
24079 im_cv_x_configure="$ac_dir/X11/"
24080 break
24081 elif test -f "$ac_dir/rgb.txt"; then
24082 im_cv_x_configure="$ac_dir/"
24083 break
24084 fi
24085
24086 done
24087fi
cristy8b350f62009-11-15 23:12:43 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024089$as_echo "$im_cv_x_configure" >&6; }
24090X11_CONFIGURE_PATH="$im_cv_x_configure"
24091case "${build_os}" in
24092 mingw* )
24093 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24094 ;;
24095esac
24096
24097cat >>confdefs.h <<_ACEOF
24098#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24099_ACEOF
24100
24101
24102#
24103# Find OpenMP library
24104#
24105GOMP_LIBS=''
24106if test "$enable_openmp" != 'no'; then
24107 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024109$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024110if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024111 $as_echo_n "(cached) " >&6
24112else
24113 ac_check_lib_save_LIBS=$LIBS
24114LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024116/* end confdefs.h. */
24117
24118/* Override any GCC internal prototype to avoid an error.
24119 Use char because int might match the return type of a GCC
24120 builtin and then its argument prototype would still apply. */
24121#ifdef __cplusplus
24122extern "C"
24123#endif
24124char GOMP_parallel_start ();
24125int
24126main ()
24127{
24128return GOMP_parallel_start ();
24129 ;
24130 return 0;
24131}
24132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024133if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024134 ac_cv_lib_gomp_GOMP_parallel_start=yes
24135else
cristy8b350f62009-11-15 23:12:43 +000024136 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024137fi
cristy8b350f62009-11-15 23:12:43 +000024138rm -f core conftest.err conftest.$ac_objext \
24139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024140LIBS=$ac_check_lib_save_LIBS
24141fi
cristy8b350f62009-11-15 23:12:43 +000024142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024143$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024144if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024145 GOMP_LIBS="-lgomp"
24146fi
24147 # gcc
24148 else
cristy8b350f62009-11-15 23:12:43 +000024149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024150$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024151if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024152 $as_echo_n "(cached) " >&6
24153else
24154 ac_check_lib_save_LIBS=$LIBS
24155LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024157/* end confdefs.h. */
24158
24159/* Override any GCC internal prototype to avoid an error.
24160 Use char because int might match the return type of a GCC
24161 builtin and then its argument prototype would still apply. */
24162#ifdef __cplusplus
24163extern "C"
24164#endif
24165char sunw_mp_register_warn ();
24166int
24167main ()
24168{
24169return sunw_mp_register_warn ();
24170 ;
24171 return 0;
24172}
24173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024175 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24176else
cristy8b350f62009-11-15 23:12:43 +000024177 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024178fi
cristy8b350f62009-11-15 23:12:43 +000024179rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024181LIBS=$ac_check_lib_save_LIBS
24182fi
cristy8b350f62009-11-15 23:12:43 +000024183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024185if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024186 GOMP_LIBS="-lmtsk"
24187fi
24188 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024190$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024191if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024192 $as_echo_n "(cached) " >&6
24193else
24194 ac_check_lib_save_LIBS=$LIBS
24195LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024197/* end confdefs.h. */
24198
24199/* Override any GCC internal prototype to avoid an error.
24200 Use char because int might match the return type of a GCC
24201 builtin and then its argument prototype would still apply. */
24202#ifdef __cplusplus
24203extern "C"
24204#endif
24205char _xlsmpFlush ();
24206int
24207main ()
24208{
24209return _xlsmpFlush ();
24210 ;
24211 return 0;
24212}
24213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024215 ac_cv_lib_xlsmp__xlsmpFlush=yes
24216else
cristy8b350f62009-11-15 23:12:43 +000024217 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024218fi
cristy8b350f62009-11-15 23:12:43 +000024219rm -f core conftest.err conftest.$ac_objext \
24220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024221LIBS=$ac_check_lib_save_LIBS
24222fi
cristy8b350f62009-11-15 23:12:43 +000024223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024224$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024225if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024226 GOMP_LIBS="-lxlsmp"
24227fi
24228 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024230$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024231if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024232 $as_echo_n "(cached) " >&6
24233else
24234 ac_check_lib_save_LIBS=$LIBS
24235LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024237/* end confdefs.h. */
24238
24239/* Override any GCC internal prototype to avoid an error.
24240 Use char because int might match the return type of a GCC
24241 builtin and then its argument prototype would still apply. */
24242#ifdef __cplusplus
24243extern "C"
24244#endif
24245char mp_destroy ();
24246int
24247main ()
24248{
24249return mp_destroy ();
24250 ;
24251 return 0;
24252}
24253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024255 ac_cv_lib_mp_mp_destroy=yes
24256else
cristy8b350f62009-11-15 23:12:43 +000024257 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024258fi
cristy8b350f62009-11-15 23:12:43 +000024259rm -f core conftest.err conftest.$ac_objext \
24260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024261LIBS=$ac_check_lib_save_LIBS
24262fi
cristy8b350f62009-11-15 23:12:43 +000024263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024264$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024265if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024266 GOMP_LIBS="-lmp"
24267fi
24268 # SGI IRIX 6.5 MIPSpro C/C++
24269 fi
24270 LIBS="$GOMP_LIBS $LIBS"
24271fi
24272
24273
24274#
24275# Find Posix threads library
24276#
24277THREAD_LIBS=''
24278if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24279
24280 if test "x$PTHREAD_LIBS" = "x"; then
24281 case "${host_cpu}-${host_os}" in
24282 *-freebsd*)
24283
24284
24285
24286ac_ext=c
24287ac_cpp='$CPP $CPPFLAGS'
24288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24290ac_compiler_gnu=$ac_cv_c_compiler_gnu
24291
24292magick_pthread_lib_ok=no
24293
24294LIB=-lc_r
24295save_LIBS="$LIBS"
24296LIBS="$LIBS $LIB"
24297
cristy8b350f62009-11-15 23:12:43 +000024298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024299$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024301/* end confdefs.h. */
24302#include <pthread.h>
24303int
24304main ()
24305{
24306 pthread_t th;
24307 pthread_join(th, 0);
24308 pthread_attr_init(0);
24309 pthread_cleanup_push(0, 0);
24310 pthread_create(0,0,0,0);
24311 pthread_cleanup_pop(0);
24312 ;
24313 return 0;
24314}
24315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024317 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024318fi
cristy8b350f62009-11-15 23:12:43 +000024319rm -f core conftest.err conftest.$ac_objext \
24320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024321
cristy8b350f62009-11-15 23:12:43 +000024322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024323$as_echo "${magick_pthread_lib_ok}" >&6; }
24324if test "$magick_pthread_lib_ok" = yes
24325then
24326 PTHREAD_LIBS=-lc_r
24327 :
24328else
24329
24330 :
24331fi
24332
24333LIBS="$save_LIBS"
24334
24335ac_ext=c
24336ac_cpp='$CPP $CPPFLAGS'
24337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24339ac_compiler_gnu=$ac_cv_c_compiler_gnu
24340
24341 ;;
24342 esac
24343 fi
24344
24345 for lib in pthread pthreads; do
24346 if test "x$PTHREAD_LIBS" = "x"; then
24347
24348
24349
24350ac_ext=c
24351ac_cpp='$CPP $CPPFLAGS'
24352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24354ac_compiler_gnu=$ac_cv_c_compiler_gnu
24355
24356magick_pthread_lib_ok=no
24357
24358LIB=-l$lib
24359save_LIBS="$LIBS"
24360LIBS="$LIBS $LIB"
24361
cristy8b350f62009-11-15 23:12:43 +000024362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024363$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024365/* end confdefs.h. */
24366#include <pthread.h>
24367int
24368main ()
24369{
24370 pthread_t th;
24371 pthread_join(th, 0);
24372 pthread_attr_init(0);
24373 pthread_cleanup_push(0, 0);
24374 pthread_create(0,0,0,0);
24375 pthread_cleanup_pop(0);
24376 ;
24377 return 0;
24378}
24379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024381 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024382fi
cristy8b350f62009-11-15 23:12:43 +000024383rm -f core conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024385
cristy8b350f62009-11-15 23:12:43 +000024386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024387$as_echo "${magick_pthread_lib_ok}" >&6; }
24388if test "$magick_pthread_lib_ok" = yes
24389then
24390 PTHREAD_LIBS=-l$lib
24391 :
24392else
24393
24394 :
24395fi
24396
24397LIBS="$save_LIBS"
24398
24399ac_ext=c
24400ac_cpp='$CPP $CPPFLAGS'
24401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24403ac_compiler_gnu=$ac_cv_c_compiler_gnu
24404
24405
24406 fi
24407 done
24408
24409 THREAD_LIBS="$PTHREAD_LIBS"
24410 LIBS="$LIBS $THREAD_LIBS"
24411fi
24412
24413
24414#
24415# Check for umem.
24416#
24417have_umem='no'
24418UMEM_LIBS=''
24419if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024421$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024423$as_echo "" >&6; }
24424 failed=0
24425 passed=0
cristy8b350f62009-11-15 23:12:43 +000024426 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24427if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024428 passed=`expr $passed + 1`
24429else
24430 failed=`expr $failed + 1`
24431fi
24432
24433
cristy8b350f62009-11-15 23:12:43 +000024434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024435$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024436if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024437 $as_echo_n "(cached) " >&6
24438else
24439 ac_check_lib_save_LIBS=$LIBS
24440LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024442/* end confdefs.h. */
24443
24444/* Override any GCC internal prototype to avoid an error.
24445 Use char because int might match the return type of a GCC
24446 builtin and then its argument prototype would still apply. */
24447#ifdef __cplusplus
24448extern "C"
24449#endif
24450char umem_alloc ();
24451int
24452main ()
24453{
24454return umem_alloc ();
24455 ;
24456 return 0;
24457}
24458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024459if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024460 ac_cv_lib_umem_umem_alloc=yes
24461else
cristy8b350f62009-11-15 23:12:43 +000024462 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024463fi
cristy8b350f62009-11-15 23:12:43 +000024464rm -f core conftest.err conftest.$ac_objext \
24465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024466LIBS=$ac_check_lib_save_LIBS
24467fi
cristy8b350f62009-11-15 23:12:43 +000024468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024469$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024470if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024471 passed=`expr $passed + 1`
24472else
24473 failed=`expr $failed + 1`
24474fi
24475
cristy8b350f62009-11-15 23:12:43 +000024476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024477$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024478if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024479 $as_echo_n "(cached) " >&6
24480else
24481 ac_check_lib_save_LIBS=$LIBS
24482LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024484/* end confdefs.h. */
24485
24486/* Override any GCC internal prototype to avoid an error.
24487 Use char because int might match the return type of a GCC
24488 builtin and then its argument prototype would still apply. */
24489#ifdef __cplusplus
24490extern "C"
24491#endif
24492char umem_free ();
24493int
24494main ()
24495{
24496return umem_free ();
24497 ;
24498 return 0;
24499}
24500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024502 ac_cv_lib_umem_umem_free=yes
24503else
cristy8b350f62009-11-15 23:12:43 +000024504 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024505fi
cristy8b350f62009-11-15 23:12:43 +000024506rm -f core conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024508LIBS=$ac_check_lib_save_LIBS
24509fi
cristy8b350f62009-11-15 23:12:43 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024512if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 passed=`expr $passed + 1`
24514else
24515 failed=`expr $failed + 1`
24516fi
24517
cristy8b350f62009-11-15 23:12:43 +000024518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024519$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24520 if test $passed -gt 0; then
24521 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024523$as_echo "no -- some components failed test" >&6; }
24524 have_umem='no (failed tests)'
24525 else
24526 UMEM_LIBS='-lumem'
24527 LIBS="$UMEM_LIBS $LIBS"
24528
cristy8b350f62009-11-15 23:12:43 +000024529$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024530
cristy8b350f62009-11-15 23:12:43 +000024531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024532$as_echo "yes" >&6; }
24533 have_umem='yes'
24534 fi
24535 else
cristy8b350f62009-11-15 23:12:43 +000024536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024537$as_echo "no" >&6; }
24538 fi
24539fi
24540 if test "$have_umem" = 'yes'; then
24541 HasUMEM_TRUE=
24542 HasUMEM_FALSE='#'
24543else
24544 HasUMEM_TRUE='#'
24545 HasUMEM_FALSE=
24546fi
24547
24548
24549
24550#
24551# Add support for ccmalloc memory debugging library if requested
24552#
24553have_ccmalloc='no'
24554CCMALLOC_LIBS=''
24555if test "$enable_ccmalloc" = 'yes'; then
24556 # Extract the first word of "ccmalloc", so it can be a program name with args.
24557set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024559$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024560if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024561 $as_echo_n "(cached) " >&6
24562else
24563 case $CCMALLOCDelegate in
24564 [\\/]* | ?:[\\/]*)
24565 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24566 ;;
24567 *)
24568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24569for as_dir in $PATH
24570do
24571 IFS=$as_save_IFS
24572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24575 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024577 break 2
24578 fi
24579done
cristy8b350f62009-11-15 23:12:43 +000024580 done
cristy3ed852e2009-09-05 21:47:34 +000024581IFS=$as_save_IFS
24582
24583 ;;
24584esac
24585fi
24586CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24587if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024589$as_echo "$CCMALLOCDelegate" >&6; }
24590else
cristy8b350f62009-11-15 23:12:43 +000024591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024592$as_echo "no" >&6; }
24593fi
24594
24595
24596 if test -n "$CCMALLOCDelegate"; then
24597 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24598 OLIBS="$LIBS"
24599 # Assume that gcc is used with ccmalloc.
24600 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024602$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024603if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024604 $as_echo_n "(cached) " >&6
24605else
24606 ac_check_lib_save_LIBS=$LIBS
24607LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024609/* end confdefs.h. */
24610
24611/* Override any GCC internal prototype to avoid an error.
24612 Use char because int might match the return type of a GCC
24613 builtin and then its argument prototype would still apply. */
24614#ifdef __cplusplus
24615extern "C"
24616#endif
24617char ccmalloc_malloc ();
24618int
24619main ()
24620{
24621return ccmalloc_malloc ();
24622 ;
24623 return 0;
24624}
24625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024627 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24628else
cristy8b350f62009-11-15 23:12:43 +000024629 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024630fi
cristy8b350f62009-11-15 23:12:43 +000024631rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024633LIBS=$ac_check_lib_save_LIBS
24634fi
cristy8b350f62009-11-15 23:12:43 +000024635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024636$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024637if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024638 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24639fi
24640
24641 if test -n "$CCMALLOC_LIBS"; then
24642 LIBS="$OLIBS"
24643 LIBS="$LIBS $CCMALLOC_LIBS"
24644 have_ccmalloc='yes'
24645 else
24646 LIBS="$OLIBS"
24647 fi
24648 fi
24649fi
24650
24651#
24652# Add support for efence memory debugging library if requested
24653#
24654if test "$enable_efence" = 'yes'; then
24655 EFENCE_LIBS='-lefence'
24656 LIBS="$EFENCE_LIBS $LIBS"
24657fi
24658
cristy3ed852e2009-09-05 21:47:34 +000024659
24660#
24661# Check for BZLIB
24662#
24663
24664
24665# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024666if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024667 withval=$with_bzlib; with_bzlib=$withval
24668else
24669 with_bzlib='yes'
24670fi
24671
24672
24673if test "$with_bzlib" != 'yes'; then
24674 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24675fi
24676
24677have_bzlib='no'
24678if test "$with_bzlib" != 'no'; then
24679 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024681$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024683$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024685$as_echo "" >&6; }
24686 failed=0
24687 passed=0
24688 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024689 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24690if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 passed=`expr $passed + 1`
24692else
24693 failed=`expr $failed + 1`
24694fi
24695
24696
cristy8b350f62009-11-15 23:12:43 +000024697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024698$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024699if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024700 $as_echo_n "(cached) " >&6
24701else
24702 ac_check_lib_save_LIBS=$LIBS
24703LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024705/* end confdefs.h. */
24706
24707/* Override any GCC internal prototype to avoid an error.
24708 Use char because int might match the return type of a GCC
24709 builtin and then its argument prototype would still apply. */
24710#ifdef __cplusplus
24711extern "C"
24712#endif
24713char BZ2_bzDecompress ();
24714int
24715main ()
24716{
24717return BZ2_bzDecompress ();
24718 ;
24719 return 0;
24720}
24721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024722if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024723 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24724else
cristy8b350f62009-11-15 23:12:43 +000024725 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024726fi
cristy8b350f62009-11-15 23:12:43 +000024727rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024729LIBS=$ac_check_lib_save_LIBS
24730fi
cristy8b350f62009-11-15 23:12:43 +000024731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024733if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024734 found_libbz=`expr $found_libbz + 1`
24735fi
24736
24737 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024739$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024740if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 $as_echo_n "(cached) " >&6
24742else
24743 ac_check_lib_save_LIBS=$LIBS
24744LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024746/* end confdefs.h. */
24747
24748/* Override any GCC internal prototype to avoid an error.
24749 Use char because int might match the return type of a GCC
24750 builtin and then its argument prototype would still apply. */
24751#ifdef __cplusplus
24752extern "C"
24753#endif
24754char _imp__BZ2_decompress ();
24755int
24756main ()
24757{
24758return _imp__BZ2_decompress ();
24759 ;
24760 return 0;
24761}
24762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24765else
cristy8b350f62009-11-15 23:12:43 +000024766 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024767fi
cristy8b350f62009-11-15 23:12:43 +000024768rm -f core conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024770LIBS=$ac_check_lib_save_LIBS
24771fi
cristy8b350f62009-11-15 23:12:43 +000024772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024773$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024774if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024775 found_libbz=`expr $found_libbz + 1`
24776fi
24777
24778 fi
24779 if test $found_libbz -gt 0; then
24780 passed=`expr $passed + 1`
24781 else
24782 failed=`expr $failed + 1`
24783 fi
cristy8b350f62009-11-15 23:12:43 +000024784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024785$as_echo_n "checking if BZLIB package is complete... " >&6; }
24786 if test $passed -gt 0; then
24787 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024789$as_echo "no -- some components failed test" >&6; }
24790 have_bzlib='no (failed tests)'
24791 else
24792 BZLIB_LIBS='-lbz2'
24793 LIBS="$BZLIB_LIBS $LIBS"
24794
cristy8b350f62009-11-15 23:12:43 +000024795$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024796
cristy8b350f62009-11-15 23:12:43 +000024797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024798$as_echo "yes" >&6; }
24799 have_bzlib='yes'
24800 fi
24801 else
cristy8b350f62009-11-15 23:12:43 +000024802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024803$as_echo "no" >&6; }
24804 fi
24805fi
24806 if test "$have_bzlib" = 'yes'; then
24807 BZLIB_DELEGATE_TRUE=
24808 BZLIB_DELEGATE_FALSE='#'
24809else
24810 BZLIB_DELEGATE_TRUE='#'
24811 BZLIB_DELEGATE_FALSE=
24812fi
24813
24814
24815
24816#
24817# Find the X11 include and library directories.
24818#
24819IPC_LIBS=''
24820X11_LIBS=''
24821XEXT_LIBS=''
24822XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024824$as_echo_n "checking for X... " >&6; }
24825
24826
24827# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024828if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024829 withval=$with_x;
24830fi
24831
24832# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24833if test "x$with_x" = xno; then
24834 # The user explicitly disabled X.
24835 have_x=disabled
24836else
24837 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000024838 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24839 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024840 $as_echo_n "(cached) " >&6
24841else
24842 # One or both of the vars are not set, and there is no cached value.
24843ac_x_includes=no ac_x_libraries=no
24844rm -f -r conftest.dir
24845if mkdir conftest.dir; then
24846 cd conftest.dir
24847 cat >Imakefile <<'_ACEOF'
24848incroot:
24849 @echo incroot='${INCROOT}'
24850usrlibdir:
24851 @echo usrlibdir='${USRLIBDIR}'
24852libdir:
24853 @echo libdir='${LIBDIR}'
24854_ACEOF
24855 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24856 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24857 for ac_var in incroot usrlibdir libdir; do
24858 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24859 done
24860 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24861 for ac_extension in a so sl dylib la dll; do
24862 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24863 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24864 ac_im_usrlibdir=$ac_im_libdir; break
24865 fi
24866 done
24867 # Screen out bogus values from the imake configuration. They are
24868 # bogus both because they are the default anyway, and because
24869 # using them would break gcc on systems where it needs fixed includes.
24870 case $ac_im_incroot in
24871 /usr/include) ac_x_includes= ;;
24872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24873 esac
24874 case $ac_im_usrlibdir in
24875 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24877 esac
24878 fi
24879 cd ..
24880 rm -f -r conftest.dir
24881fi
24882
24883# Standard set of common directories for X headers.
24884# Check X11 before X11Rn because it is often a symlink to the current release.
24885ac_x_header_dirs='
24886/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024887/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024888/usr/X11R6/include
24889/usr/X11R5/include
24890/usr/X11R4/include
24891
24892/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024893/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024894/usr/include/X11R6
24895/usr/include/X11R5
24896/usr/include/X11R4
24897
24898/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024899/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024900/usr/local/X11R6/include
24901/usr/local/X11R5/include
24902/usr/local/X11R4/include
24903
24904/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024905/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024906/usr/local/include/X11R6
24907/usr/local/include/X11R5
24908/usr/local/include/X11R4
24909
24910/usr/X386/include
24911/usr/x386/include
24912/usr/XFree86/include/X11
24913
24914/usr/include
24915/usr/local/include
24916/usr/unsupported/include
24917/usr/athena/include
24918/usr/local/x11r5/include
24919/usr/lpp/Xamples/include
24920
24921/usr/openwin/include
24922/usr/openwin/share/include'
24923
24924if test "$ac_x_includes" = no; then
24925 # Guess where to find include files, by looking for Xlib.h.
24926 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024928/* end confdefs.h. */
24929#include <X11/Xlib.h>
24930_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024931if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024932 # We can compile using X headers with no special include directory.
24933ac_x_includes=
24934else
cristyc7083c12009-10-14 03:16:55 +000024935 for ac_dir in $ac_x_header_dirs; do
24936 if test -r "$ac_dir/X11/Xlib.h"; then
24937 ac_x_includes=$ac_dir
24938 break
24939 fi
24940done
24941fi
cristyc7083c12009-10-14 03:16:55 +000024942rm -f conftest.err conftest.$ac_ext
24943fi # $ac_x_includes = no
24944
24945if test "$ac_x_libraries" = no; then
24946 # Check for the libraries.
24947 # See if we find them without any special options.
24948 # Don't add to $LIBS permanently.
24949 ac_save_LIBS=$LIBS
24950 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024952/* end confdefs.h. */
24953#include <X11/Xlib.h>
24954int
24955main ()
24956{
24957XrmInitialize ()
24958 ;
24959 return 0;
24960}
24961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024962if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024963 LIBS=$ac_save_LIBS
24964# We can link X programs with no special library path.
24965ac_x_libraries=
24966else
cristy8b350f62009-11-15 23:12:43 +000024967 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024968for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24969do
24970 # Don't even attempt the hair of trying to link an X program!
24971 for ac_extension in a so sl dylib la dll; do
24972 if test -r "$ac_dir/libX11.$ac_extension"; then
24973 ac_x_libraries=$ac_dir
24974 break 2
24975 fi
24976 done
24977done
24978fi
cristy8b350f62009-11-15 23:12:43 +000024979rm -f core conftest.err conftest.$ac_objext \
24980 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024981fi # $ac_x_libraries = no
24982
24983case $ac_x_includes,$ac_x_libraries in #(
24984 no,* | *,no | *\'*)
24985 # Didn't find X, or a directory has "'" in its name.
24986 ac_cv_have_x="have_x=no";; #(
24987 *)
24988 # Record where we found X for the cache.
24989 ac_cv_have_x="have_x=yes\
24990 ac_x_includes='$ac_x_includes'\
24991 ac_x_libraries='$ac_x_libraries'"
24992esac
24993fi
24994;; #(
24995 *) have_x=yes;;
24996 esac
24997 eval "$ac_cv_have_x"
24998fi # $with_x != no
24999
25000if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025002$as_echo "$have_x" >&6; }
25003 no_x=yes
25004else
25005 # If each of the values was on the command line, it overrides each guess.
25006 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25007 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25008 # Update the cache value to reflect the command line values.
25009 ac_cv_have_x="have_x=yes\
25010 ac_x_includes='$x_includes'\
25011 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025013$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25014fi
25015
cristy3ed852e2009-09-05 21:47:34 +000025016if test "$no_x" = yes; then
25017 # Not all programs may use this symbol, but it does not hurt to define it.
25018
cristy8b350f62009-11-15 23:12:43 +000025019$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025020
25021 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25022else
25023 if test -n "$x_includes"; then
25024 X_CFLAGS="$X_CFLAGS -I$x_includes"
25025 fi
25026
25027 # It would also be nice to do this for all -L options, not just this one.
25028 if test -n "$x_libraries"; then
25029 X_LIBS="$X_LIBS -L$x_libraries"
25030 # For Solaris; some versions of Sun CC require a space after -R and
25031 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025033$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25034 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25035 ac_xsave_c_werror_flag=$ac_c_werror_flag
25036 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025038/* end confdefs.h. */
25039
25040int
25041main ()
25042{
25043
25044 ;
25045 return 0;
25046}
25047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025048if ac_fn_c_try_link "$LINENO"; then :
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025050$as_echo "no" >&6; }
25051 X_LIBS="$X_LIBS -R$x_libraries"
25052else
cristy8b350f62009-11-15 23:12:43 +000025053 LIBS="$ac_xsave_LIBS -R $x_libraries"
25054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025055/* end confdefs.h. */
25056
25057int
25058main ()
25059{
25060
25061 ;
25062 return 0;
25063}
25064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025065if ac_fn_c_try_link "$LINENO"; then :
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025067$as_echo "yes" >&6; }
25068 X_LIBS="$X_LIBS -R $x_libraries"
25069else
cristy8b350f62009-11-15 23:12:43 +000025070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025071$as_echo "neither works" >&6; }
25072fi
cristy8b350f62009-11-15 23:12:43 +000025073rm -f core conftest.err conftest.$ac_objext \
25074 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025075fi
cristy8b350f62009-11-15 23:12:43 +000025076rm -f core conftest.err conftest.$ac_objext \
25077 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025078 ac_c_werror_flag=$ac_xsave_c_werror_flag
25079 LIBS=$ac_xsave_LIBS
25080 fi
25081
25082 # Check for system-dependent libraries X programs must link with.
25083 # Do this before checking for the system-independent R6 libraries
25084 # (-lICE), since we may need -lsocket or whatever for X linking.
25085
25086 if test "$ISC" = yes; then
25087 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25088 else
25089 # Martyn Johnson says this is needed for Ultrix, if the X
25090 # libraries were built with DECnet support. And Karl Berry says
25091 # the Alpha needs dnet_stub (dnet does not exist).
25092 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025094/* end confdefs.h. */
25095
25096/* Override any GCC internal prototype to avoid an error.
25097 Use char because int might match the return type of a GCC
25098 builtin and then its argument prototype would still apply. */
25099#ifdef __cplusplus
25100extern "C"
25101#endif
25102char XOpenDisplay ();
25103int
25104main ()
25105{
25106return XOpenDisplay ();
25107 ;
25108 return 0;
25109}
25110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025111if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025112
cristy8b350f62009-11-15 23:12:43 +000025113else
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025115$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025116if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025117 $as_echo_n "(cached) " >&6
25118else
25119 ac_check_lib_save_LIBS=$LIBS
25120LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025122/* end confdefs.h. */
25123
25124/* Override any GCC internal prototype to avoid an error.
25125 Use char because int might match the return type of a GCC
25126 builtin and then its argument prototype would still apply. */
25127#ifdef __cplusplus
25128extern "C"
25129#endif
25130char dnet_ntoa ();
25131int
25132main ()
25133{
25134return dnet_ntoa ();
25135 ;
25136 return 0;
25137}
25138_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025139if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025140 ac_cv_lib_dnet_dnet_ntoa=yes
25141else
cristy8b350f62009-11-15 23:12:43 +000025142 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025143fi
cristy8b350f62009-11-15 23:12:43 +000025144rm -f core conftest.err conftest.$ac_objext \
25145 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025146LIBS=$ac_check_lib_save_LIBS
25147fi
cristy8b350f62009-11-15 23:12:43 +000025148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025149$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025150if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025151 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25152fi
25153
25154 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025156$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025157if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025158 $as_echo_n "(cached) " >&6
25159else
25160 ac_check_lib_save_LIBS=$LIBS
25161LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025163/* end confdefs.h. */
25164
25165/* Override any GCC internal prototype to avoid an error.
25166 Use char because int might match the return type of a GCC
25167 builtin and then its argument prototype would still apply. */
25168#ifdef __cplusplus
25169extern "C"
25170#endif
25171char dnet_ntoa ();
25172int
25173main ()
25174{
25175return dnet_ntoa ();
25176 ;
25177 return 0;
25178}
25179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25182else
cristy8b350f62009-11-15 23:12:43 +000025183 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025184fi
cristy8b350f62009-11-15 23:12:43 +000025185rm -f core conftest.err conftest.$ac_objext \
25186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025187LIBS=$ac_check_lib_save_LIBS
25188fi
cristy8b350f62009-11-15 23:12:43 +000025189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025190$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025191if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025192 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25193fi
25194
25195 fi
25196fi
cristy8b350f62009-11-15 23:12:43 +000025197rm -f core conftest.err conftest.$ac_objext \
25198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025199 LIBS="$ac_xsave_LIBS"
25200
25201 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25202 # to get the SysV transport functions.
25203 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25204 # needs -lnsl.
25205 # The nsl library prevents programs from opening the X display
25206 # on Irix 5.2, according to T.E. Dickey.
25207 # The functions gethostbyname, getservbyname, and inet_addr are
25208 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025209 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25210if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025211
cristy3ed852e2009-09-05 21:47:34 +000025212fi
25213
cristy3ed852e2009-09-05 21:47:34 +000025214 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025216$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025217if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025218 $as_echo_n "(cached) " >&6
25219else
25220 ac_check_lib_save_LIBS=$LIBS
25221LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025223/* end confdefs.h. */
25224
25225/* Override any GCC internal prototype to avoid an error.
25226 Use char because int might match the return type of a GCC
25227 builtin and then its argument prototype would still apply. */
25228#ifdef __cplusplus
25229extern "C"
25230#endif
25231char gethostbyname ();
25232int
25233main ()
25234{
25235return gethostbyname ();
25236 ;
25237 return 0;
25238}
25239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025240if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025241 ac_cv_lib_nsl_gethostbyname=yes
25242else
cristy8b350f62009-11-15 23:12:43 +000025243 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025244fi
cristy8b350f62009-11-15 23:12:43 +000025245rm -f core conftest.err conftest.$ac_objext \
25246 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025247LIBS=$ac_check_lib_save_LIBS
25248fi
cristy8b350f62009-11-15 23:12:43 +000025249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025250$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025251if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25253fi
25254
25255 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025257$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025258if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025259 $as_echo_n "(cached) " >&6
25260else
25261 ac_check_lib_save_LIBS=$LIBS
25262LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025264/* end confdefs.h. */
25265
25266/* Override any GCC internal prototype to avoid an error.
25267 Use char because int might match the return type of a GCC
25268 builtin and then its argument prototype would still apply. */
25269#ifdef __cplusplus
25270extern "C"
25271#endif
25272char gethostbyname ();
25273int
25274main ()
25275{
25276return gethostbyname ();
25277 ;
25278 return 0;
25279}
25280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025282 ac_cv_lib_bsd_gethostbyname=yes
25283else
cristy8b350f62009-11-15 23:12:43 +000025284 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025285fi
cristy8b350f62009-11-15 23:12:43 +000025286rm -f core conftest.err conftest.$ac_objext \
25287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025288LIBS=$ac_check_lib_save_LIBS
25289fi
cristy8b350f62009-11-15 23:12:43 +000025290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025291$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025292if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25294fi
25295
25296 fi
25297 fi
25298
25299 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25300 # socket/setsockopt and other routines are undefined under SCO ODT
25301 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25302 # on later versions), says Simon Leinen: it contains gethostby*
25303 # variants that don't use the name server (or something). -lsocket
25304 # must be given before -lnsl if both are needed. We assume that
25305 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025306 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25307if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025308
cristy3ed852e2009-09-05 21:47:34 +000025309fi
25310
cristy3ed852e2009-09-05 21:47:34 +000025311 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025313$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025314if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025315 $as_echo_n "(cached) " >&6
25316else
25317 ac_check_lib_save_LIBS=$LIBS
25318LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025320/* end confdefs.h. */
25321
25322/* Override any GCC internal prototype to avoid an error.
25323 Use char because int might match the return type of a GCC
25324 builtin and then its argument prototype would still apply. */
25325#ifdef __cplusplus
25326extern "C"
25327#endif
25328char connect ();
25329int
25330main ()
25331{
25332return connect ();
25333 ;
25334 return 0;
25335}
25336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025338 ac_cv_lib_socket_connect=yes
25339else
cristy8b350f62009-11-15 23:12:43 +000025340 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025341fi
cristy8b350f62009-11-15 23:12:43 +000025342rm -f core conftest.err conftest.$ac_objext \
25343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025344LIBS=$ac_check_lib_save_LIBS
25345fi
cristy8b350f62009-11-15 23:12:43 +000025346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025347$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025348if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025349 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25350fi
25351
25352 fi
25353
25354 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025355 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25356if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025357
cristy3ed852e2009-09-05 21:47:34 +000025358fi
25359
cristy3ed852e2009-09-05 21:47:34 +000025360 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025362$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025363if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025364 $as_echo_n "(cached) " >&6
25365else
25366 ac_check_lib_save_LIBS=$LIBS
25367LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025369/* end confdefs.h. */
25370
25371/* Override any GCC internal prototype to avoid an error.
25372 Use char because int might match the return type of a GCC
25373 builtin and then its argument prototype would still apply. */
25374#ifdef __cplusplus
25375extern "C"
25376#endif
25377char remove ();
25378int
25379main ()
25380{
25381return remove ();
25382 ;
25383 return 0;
25384}
25385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025386if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025387 ac_cv_lib_posix_remove=yes
25388else
cristy8b350f62009-11-15 23:12:43 +000025389 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025390fi
cristy8b350f62009-11-15 23:12:43 +000025391rm -f core conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025393LIBS=$ac_check_lib_save_LIBS
25394fi
cristy8b350f62009-11-15 23:12:43 +000025395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025396$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025397if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25399fi
25400
25401 fi
25402
25403 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025404 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25405if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025406
cristy3ed852e2009-09-05 21:47:34 +000025407fi
25408
cristy3ed852e2009-09-05 21:47:34 +000025409 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025411$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025412if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025413 $as_echo_n "(cached) " >&6
25414else
25415 ac_check_lib_save_LIBS=$LIBS
25416LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025418/* end confdefs.h. */
25419
25420/* Override any GCC internal prototype to avoid an error.
25421 Use char because int might match the return type of a GCC
25422 builtin and then its argument prototype would still apply. */
25423#ifdef __cplusplus
25424extern "C"
25425#endif
25426char shmat ();
25427int
25428main ()
25429{
25430return shmat ();
25431 ;
25432 return 0;
25433}
25434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025436 ac_cv_lib_ipc_shmat=yes
25437else
cristy8b350f62009-11-15 23:12:43 +000025438 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025439fi
cristy8b350f62009-11-15 23:12:43 +000025440rm -f core conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025442LIBS=$ac_check_lib_save_LIBS
25443fi
cristy8b350f62009-11-15 23:12:43 +000025444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025445$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025446if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25448fi
25449
25450 fi
25451 fi
25452
25453 # Check for libraries that X11R6 Xt/Xaw programs need.
25454 ac_save_LDFLAGS=$LDFLAGS
25455 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25456 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25457 # check for ICE first), but we must link in the order -lSM -lICE or
25458 # we get undefined symbols. So assume we have SM if we have ICE.
25459 # These have to be linked with before -lX11, unlike the other
25460 # libraries we check for below, so use a different variable.
25461 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025463$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025464if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025465 $as_echo_n "(cached) " >&6
25466else
25467 ac_check_lib_save_LIBS=$LIBS
25468LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025470/* end confdefs.h. */
25471
25472/* Override any GCC internal prototype to avoid an error.
25473 Use char because int might match the return type of a GCC
25474 builtin and then its argument prototype would still apply. */
25475#ifdef __cplusplus
25476extern "C"
25477#endif
25478char IceConnectionNumber ();
25479int
25480main ()
25481{
25482return IceConnectionNumber ();
25483 ;
25484 return 0;
25485}
25486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025487if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025488 ac_cv_lib_ICE_IceConnectionNumber=yes
25489else
cristy8b350f62009-11-15 23:12:43 +000025490 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025491fi
cristy8b350f62009-11-15 23:12:43 +000025492rm -f core conftest.err conftest.$ac_objext \
25493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025494LIBS=$ac_check_lib_save_LIBS
25495fi
cristy8b350f62009-11-15 23:12:43 +000025496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025497$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025498if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025499 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25500fi
25501
25502 LDFLAGS=$ac_save_LDFLAGS
25503
25504fi
25505
25506if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025508$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025510$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025512$as_echo "" >&6; }
25513 LDFLAGS="$LDFLAGS $X_LIBS"
25514 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25515 LIBS="$X11_LIBS $LIBS"
25516 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25517
25518
cristy8b350f62009-11-15 23:12:43 +000025519$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025520
25521 #
25522 # Check for X11 shared memory extension
25523 #
25524 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025525 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25526if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025527 have_shmctl='yes'
25528fi
25529
25530 if test "$have_shmctl" != 'yes'; then
25531 PERSIST_LIBS=$LIBS
25532 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025534/* end confdefs.h. */
25535
25536/* Override any GCC internal prototype to avoid an error.
25537 Use char because int might match the return type of a GCC
25538 builtin and then its argument prototype would still apply. */
25539#ifdef __cplusplus
25540extern "C"
25541#endif
25542char shmctl ();
25543int
25544main ()
25545{
25546return shmctl ();
25547 ;
25548 return 0;
25549}
25550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025551if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025552 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025553fi
cristy8b350f62009-11-15 23:12:43 +000025554rm -f core conftest.err conftest.$ac_objext \
25555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025556 LIBS=$PERSIST_LIBS
25557 fi
25558
25559 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025561$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025562if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025563 $as_echo_n "(cached) " >&6
25564else
25565 ac_check_lib_save_LIBS=$LIBS
25566LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025568/* end confdefs.h. */
25569
25570/* Override any GCC internal prototype to avoid an error.
25571 Use char because int might match the return type of a GCC
25572 builtin and then its argument prototype would still apply. */
25573#ifdef __cplusplus
25574extern "C"
25575#endif
25576char XShmAttach ();
25577int
25578main ()
25579{
25580return XShmAttach ();
25581 ;
25582 return 0;
25583}
25584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025585if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025586 ac_cv_lib_Xext_XShmAttach=yes
25587else
cristy8b350f62009-11-15 23:12:43 +000025588 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025589fi
cristy8b350f62009-11-15 23:12:43 +000025590rm -f core conftest.err conftest.$ac_objext \
25591 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025592LIBS=$ac_check_lib_save_LIBS
25593fi
cristy8b350f62009-11-15 23:12:43 +000025594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025595$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025596if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025597 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025598$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025599
25600fi
25601
25602 fi
25603
25604 #
25605 # Check for X11 shape extension
25606 #
cristy8b350f62009-11-15 23:12:43 +000025607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025608$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025609if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025610 $as_echo_n "(cached) " >&6
25611else
25612 ac_check_lib_save_LIBS=$LIBS
25613LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025615/* end confdefs.h. */
25616
25617/* Override any GCC internal prototype to avoid an error.
25618 Use char because int might match the return type of a GCC
25619 builtin and then its argument prototype would still apply. */
25620#ifdef __cplusplus
25621extern "C"
25622#endif
25623char XShapeCombineMask ();
25624int
25625main ()
25626{
25627return XShapeCombineMask ();
25628 ;
25629 return 0;
25630}
25631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025633 ac_cv_lib_Xext_XShapeCombineMask=yes
25634else
cristy8b350f62009-11-15 23:12:43 +000025635 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025636fi
cristy8b350f62009-11-15 23:12:43 +000025637rm -f core conftest.err conftest.$ac_objext \
25638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025639LIBS=$ac_check_lib_save_LIBS
25640fi
cristy8b350f62009-11-15 23:12:43 +000025641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025642$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025643if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025644 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025645$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025646
25647fi
25648
cristy8b350f62009-11-15 23:12:43 +000025649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025650$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025651if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025652 $as_echo_n "(cached) " >&6
25653else
25654 ac_check_lib_save_LIBS=$LIBS
25655LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025657/* end confdefs.h. */
25658
25659/* Override any GCC internal prototype to avoid an error.
25660 Use char because int might match the return type of a GCC
25661 builtin and then its argument prototype would still apply. */
25662#ifdef __cplusplus
25663extern "C"
25664#endif
25665char XtSetEventDispatcher ();
25666int
25667main ()
25668{
25669return XtSetEventDispatcher ();
25670 ;
25671 return 0;
25672}
25673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025675 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25676else
cristy8b350f62009-11-15 23:12:43 +000025677 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025678fi
cristy8b350f62009-11-15 23:12:43 +000025679rm -f core conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025681LIBS=$ac_check_lib_save_LIBS
25682fi
cristy8b350f62009-11-15 23:12:43 +000025683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025684$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025685if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025686 XT_LIBS='-lXt'
25687fi
25688
25689 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25690fi
25691if test "$no_x" != 'yes'; then
25692 have_x='yes'
25693else
25694 have_x='no'
25695fi
25696 if test "$have_x" = 'yes'; then
25697 X11_DELEGATE_TRUE=
25698 X11_DELEGATE_FALSE='#'
25699else
25700 X11_DELEGATE_TRUE='#'
25701 X11_DELEGATE_FALSE=
25702fi
25703
25704
25705
25706
25707
25708#
25709# Check for ZLIB
25710#
25711
25712# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025713if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025714 withval=$with_zlib; with_zlib=$withval
25715else
25716 with_zlib='yes'
25717fi
25718
25719
25720if test "$with_zlib" != 'yes'; then
25721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25722fi
25723
25724have_zlib='no'
25725ZLIB_LIBS=''
25726if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025728$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025730$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025732$as_echo "" >&6; }
25733 ZLIB_LIBS=''
25734 failed=0
25735 passed=0
cristy8b350f62009-11-15 23:12:43 +000025736 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25737if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025738 passed=`expr $passed + 1`
25739else
25740 failed=`expr $failed + 1`
25741fi
25742
25743
cristy8b350f62009-11-15 23:12:43 +000025744 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25745if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025746 passed=`expr $passed + 1`
25747else
25748 failed=`expr $failed + 1`
25749fi
25750
25751
cristy8b350f62009-11-15 23:12:43 +000025752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025753$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025754if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025755 $as_echo_n "(cached) " >&6
25756else
25757 ac_check_lib_save_LIBS=$LIBS
25758LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025760/* end confdefs.h. */
25761
25762/* Override any GCC internal prototype to avoid an error.
25763 Use char because int might match the return type of a GCC
25764 builtin and then its argument prototype would still apply. */
25765#ifdef __cplusplus
25766extern "C"
25767#endif
25768char compress ();
25769int
25770main ()
25771{
25772return compress ();
25773 ;
25774 return 0;
25775}
25776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025777if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025778 ac_cv_lib_z_compress=yes
25779else
cristy8b350f62009-11-15 23:12:43 +000025780 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025781fi
cristy8b350f62009-11-15 23:12:43 +000025782rm -f core conftest.err conftest.$ac_objext \
25783 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025784LIBS=$ac_check_lib_save_LIBS
25785fi
cristy8b350f62009-11-15 23:12:43 +000025786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025787$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025788if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025789 passed=`expr $passed + 1`
25790else
25791 failed=`expr $failed + 1`
25792fi
25793
cristy8b350f62009-11-15 23:12:43 +000025794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025795$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025796if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025797 $as_echo_n "(cached) " >&6
25798else
25799 ac_check_lib_save_LIBS=$LIBS
25800LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025802/* end confdefs.h. */
25803
25804/* Override any GCC internal prototype to avoid an error.
25805 Use char because int might match the return type of a GCC
25806 builtin and then its argument prototype would still apply. */
25807#ifdef __cplusplus
25808extern "C"
25809#endif
25810char uncompress ();
25811int
25812main ()
25813{
25814return uncompress ();
25815 ;
25816 return 0;
25817}
25818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025820 ac_cv_lib_z_uncompress=yes
25821else
cristy8b350f62009-11-15 23:12:43 +000025822 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025823fi
cristy8b350f62009-11-15 23:12:43 +000025824rm -f core conftest.err conftest.$ac_objext \
25825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025826LIBS=$ac_check_lib_save_LIBS
25827fi
cristy8b350f62009-11-15 23:12:43 +000025828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025829$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025830if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 passed=`expr $passed + 1`
25832else
25833 failed=`expr $failed + 1`
25834fi
25835
cristy8b350f62009-11-15 23:12:43 +000025836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025837$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025838if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025839 $as_echo_n "(cached) " >&6
25840else
25841 ac_check_lib_save_LIBS=$LIBS
25842LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025844/* end confdefs.h. */
25845
25846/* Override any GCC internal prototype to avoid an error.
25847 Use char because int might match the return type of a GCC
25848 builtin and then its argument prototype would still apply. */
25849#ifdef __cplusplus
25850extern "C"
25851#endif
25852char deflate ();
25853int
25854main ()
25855{
25856return deflate ();
25857 ;
25858 return 0;
25859}
25860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025861if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025862 ac_cv_lib_z_deflate=yes
25863else
cristy8b350f62009-11-15 23:12:43 +000025864 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025865fi
cristy8b350f62009-11-15 23:12:43 +000025866rm -f core conftest.err conftest.$ac_objext \
25867 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025868LIBS=$ac_check_lib_save_LIBS
25869fi
cristy8b350f62009-11-15 23:12:43 +000025870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025871$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025872if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 passed=`expr $passed + 1`
25874else
25875 failed=`expr $failed + 1`
25876fi
25877
cristy8b350f62009-11-15 23:12:43 +000025878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025880if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025881 $as_echo_n "(cached) " >&6
25882else
25883 ac_check_lib_save_LIBS=$LIBS
25884LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025886/* end confdefs.h. */
25887
25888/* Override any GCC internal prototype to avoid an error.
25889 Use char because int might match the return type of a GCC
25890 builtin and then its argument prototype would still apply. */
25891#ifdef __cplusplus
25892extern "C"
25893#endif
25894char inflate ();
25895int
25896main ()
25897{
25898return inflate ();
25899 ;
25900 return 0;
25901}
25902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025904 ac_cv_lib_z_inflate=yes
25905else
cristy8b350f62009-11-15 23:12:43 +000025906 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025907fi
cristy8b350f62009-11-15 23:12:43 +000025908rm -f core conftest.err conftest.$ac_objext \
25909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025910LIBS=$ac_check_lib_save_LIBS
25911fi
cristy8b350f62009-11-15 23:12:43 +000025912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025913$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025914if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025915 passed=`expr $passed + 1`
25916else
25917 failed=`expr $failed + 1`
25918fi
25919
cristy8b350f62009-11-15 23:12:43 +000025920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025921$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025922if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025923 $as_echo_n "(cached) " >&6
25924else
25925 ac_check_lib_save_LIBS=$LIBS
25926LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025928/* end confdefs.h. */
25929
25930/* Override any GCC internal prototype to avoid an error.
25931 Use char because int might match the return type of a GCC
25932 builtin and then its argument prototype would still apply. */
25933#ifdef __cplusplus
25934extern "C"
25935#endif
25936char gzseek ();
25937int
25938main ()
25939{
25940return gzseek ();
25941 ;
25942 return 0;
25943}
25944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025946 ac_cv_lib_z_gzseek=yes
25947else
cristy8b350f62009-11-15 23:12:43 +000025948 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025949fi
cristy8b350f62009-11-15 23:12:43 +000025950rm -f core conftest.err conftest.$ac_objext \
25951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025952LIBS=$ac_check_lib_save_LIBS
25953fi
cristy8b350f62009-11-15 23:12:43 +000025954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025955$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025956if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 passed=`expr $passed + 1`
25958else
25959 failed=`expr $failed + 1`
25960fi
25961
cristy8b350f62009-11-15 23:12:43 +000025962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025963$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025964if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025965 $as_echo_n "(cached) " >&6
25966else
25967 ac_check_lib_save_LIBS=$LIBS
25968LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025970/* end confdefs.h. */
25971
25972/* Override any GCC internal prototype to avoid an error.
25973 Use char because int might match the return type of a GCC
25974 builtin and then its argument prototype would still apply. */
25975#ifdef __cplusplus
25976extern "C"
25977#endif
25978char gztell ();
25979int
25980main ()
25981{
25982return gztell ();
25983 ;
25984 return 0;
25985}
25986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 ac_cv_lib_z_gztell=yes
25989else
cristy8b350f62009-11-15 23:12:43 +000025990 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000025991fi
cristy8b350f62009-11-15 23:12:43 +000025992rm -f core conftest.err conftest.$ac_objext \
25993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025994LIBS=$ac_check_lib_save_LIBS
25995fi
cristy8b350f62009-11-15 23:12:43 +000025996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025998if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 passed=`expr $passed + 1`
26000else
26001 failed=`expr $failed + 1`
26002fi
26003
cristy8b350f62009-11-15 23:12:43 +000026004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026005$as_echo_n "checking if ZLIB package is complete... " >&6; }
26006 if test $passed -gt 0; then
26007 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026009$as_echo "no -- some components failed test" >&6; }
26010 have_zlib='no (failed tests)'
26011 else
26012 ZLIB_LIBS='-lz'
26013 LIBS="$ZLIB_LIBS $LIBS"
26014
cristy8b350f62009-11-15 23:12:43 +000026015$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026016
cristy8b350f62009-11-15 23:12:43 +000026017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026018$as_echo "yes" >&6; }
26019 have_zlib='yes'
26020 fi
26021 else
cristy8b350f62009-11-15 23:12:43 +000026022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026023$as_echo "no" >&6; }
26024 fi
26025fi
26026 if test "$have_zlib" = 'yes'; then
26027 ZLIB_DELEGATE_TRUE=
26028 ZLIB_DELEGATE_FALSE='#'
26029else
26030 ZLIB_DELEGATE_TRUE='#'
26031 ZLIB_DELEGATE_FALSE=
26032fi
26033
26034
26035
26036#
26037# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26038#
26039LIB_DL=''
26040if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026043if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026044 $as_echo_n "(cached) " >&6
26045else
26046 ac_check_lib_save_LIBS=$LIBS
26047LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026049/* end confdefs.h. */
26050
26051/* Override any GCC internal prototype to avoid an error.
26052 Use char because int might match the return type of a GCC
26053 builtin and then its argument prototype would still apply. */
26054#ifdef __cplusplus
26055extern "C"
26056#endif
26057char dlopen ();
26058int
26059main ()
26060{
26061return dlopen ();
26062 ;
26063 return 0;
26064}
26065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026066if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026067 ac_cv_lib_dl_dlopen=yes
26068else
cristy8b350f62009-11-15 23:12:43 +000026069 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026070fi
cristy8b350f62009-11-15 23:12:43 +000026071rm -f core conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026073LIBS=$ac_check_lib_save_LIBS
26074fi
cristy8b350f62009-11-15 23:12:43 +000026075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026077if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026078 LIB_DL='-ldl'
26079fi
26080
26081 LIBS="$LIB_DL $LIBS"
26082fi
26083
26084
26085
26086#
26087# Check for Autotrace delegate library.
26088#
26089
26090# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026091if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026092 withval=$with_autotrace; with_autotrace=$withval
26093else
26094 with_autotrace='no'
26095fi
26096
26097
26098if test "$with_autotrace" != 'yes'; then
26099 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26100fi
26101
26102have_autotrace='no'
26103AUTOTRACE_CFLAGS=""
26104AUTOTRACE_LIBS=""
26105AUTOTRACE_PKG=""
26106if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026108$as_echo "-------------------------------------------------------------" >&6; }
26109
26110pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026112$as_echo_n "checking for AUTOTRACE... " >&6; }
26113
26114if test -n "$AUTOTRACE_CFLAGS"; then
26115 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26116 elif test -n "$PKG_CONFIG"; then
26117 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026119 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26120 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026123 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26124else
26125 pkg_failed=yes
26126fi
26127 else
26128 pkg_failed=untried
26129fi
26130if test -n "$AUTOTRACE_LIBS"; then
26131 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26132 elif test -n "$PKG_CONFIG"; then
26133 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026135 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26136 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026139 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26140else
26141 pkg_failed=yes
26142fi
26143 else
26144 pkg_failed=untried
26145fi
26146
26147
26148
26149if test $pkg_failed = yes; then
26150
26151if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26152 _pkg_short_errors_supported=yes
26153else
26154 _pkg_short_errors_supported=no
26155fi
26156 if test $_pkg_short_errors_supported = yes; then
26157 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26158 else
26159 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26160 fi
26161 # Put the nasty error message in config.log where it belongs
26162 echo "$AUTOTRACE_PKG_ERRORS" >&5
26163
cristy8b350f62009-11-15 23:12:43 +000026164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo "no" >&6; }
26166 have_autotrace=no
26167elif test $pkg_failed = untried; then
26168 have_autotrace=no
26169else
26170 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26171 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026173$as_echo "yes" >&6; }
26174 have_autotrace=yes
26175fi
cristy8b350f62009-11-15 23:12:43 +000026176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026177$as_echo "" >&6; }
26178fi
26179
26180if test "$have_autotrace" = 'yes'; then
26181 failed=0
26182
cristy8b350f62009-11-15 23:12:43 +000026183$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026184
26185 if test "$with_modules" = 'no'; then
26186 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26187 fi
26188fi
26189
26190 if test "$have_autotrace" = 'yes'; then
26191 AUTOTRACE_DELEGATE_TRUE=
26192 AUTOTRACE_DELEGATE_FALSE='#'
26193else
26194 AUTOTRACE_DELEGATE_TRUE='#'
26195 AUTOTRACE_DELEGATE_FALSE=
26196fi
26197
26198
26199
26200
26201
26202#
26203# Check for Display Postscript delegate library.
26204#
26205
26206# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026207if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026208 withval=$with_dps; with_dps=$withval
26209else
26210 with_dps='yes'
26211fi
26212
26213
26214if test "$with_dps" != 'yes'; then
26215 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26216fi
26217
26218have_dps='no'
26219DPS_LIBS=''
26220if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026222$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026224$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026226$as_echo "" >&6; }
26227 failed=0
26228 passed=0
26229 PERSIST_CPPFLAGS="$CPPFLAGS"
26230 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026231 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26232if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026233 passed=`expr $passed + 1`
26234else
26235 failed=`expr $failed + 1`
26236fi
26237
26238
26239 # DPS issues:
26240 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26241 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26242 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26243 # ImageMagick itself doesn't use -lXt.
26244 have_libdps='no'
26245 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026248if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026249 $as_echo_n "(cached) " >&6
26250else
26251 ac_check_lib_save_LIBS=$LIBS
26252LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026254/* end confdefs.h. */
26255
26256/* Override any GCC internal prototype to avoid an error.
26257 Use char because int might match the return type of a GCC
26258 builtin and then its argument prototype would still apply. */
26259#ifdef __cplusplus
26260extern "C"
26261#endif
26262char DPSInitialize ();
26263int
26264main ()
26265{
26266return DPSInitialize ();
26267 ;
26268 return 0;
26269}
26270_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026271if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026272 ac_cv_lib_dps_DPSInitialize=yes
26273else
cristy8b350f62009-11-15 23:12:43 +000026274 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026275fi
cristy8b350f62009-11-15 23:12:43 +000026276rm -f core conftest.err conftest.$ac_objext \
26277 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026278LIBS=$ac_check_lib_save_LIBS
26279fi
cristy8b350f62009-11-15 23:12:43 +000026280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026281$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026282if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026283 have_libdps='yes'
26284else
26285 have_libdps='no'
26286fi
26287
26288 if test "$have_libdps" != 'yes'; then
26289 # Unset cache variable so we can try again.
26290 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026292$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026293if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026294 $as_echo_n "(cached) " >&6
26295else
26296 ac_check_lib_save_LIBS=$LIBS
26297LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026299/* end confdefs.h. */
26300
26301/* Override any GCC internal prototype to avoid an error.
26302 Use char because int might match the return type of a GCC
26303 builtin and then its argument prototype would still apply. */
26304#ifdef __cplusplus
26305extern "C"
26306#endif
26307char DPSInitialize ();
26308int
26309main ()
26310{
26311return DPSInitialize ();
26312 ;
26313 return 0;
26314}
26315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026317 ac_cv_lib_dps_DPSInitialize=yes
26318else
cristy8b350f62009-11-15 23:12:43 +000026319 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026320fi
cristy8b350f62009-11-15 23:12:43 +000026321rm -f core conftest.err conftest.$ac_objext \
26322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026323LIBS=$ac_check_lib_save_LIBS
26324fi
cristy8b350f62009-11-15 23:12:43 +000026325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026326$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026327if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026328 have_libdps='yes'
26329else
26330 have_libdps='no'
26331fi
26332
26333 if test "$have_libdps" = 'yes'; then
26334 LIBDPS_XT='-lXt'
26335 fi
26336 fi
26337 if test "$have_libdps" = 'yes'; then
26338 passed=`expr $passed + 1`
26339 else
26340 failed=`expr $failed + 1`
26341 fi
cristy8b350f62009-11-15 23:12:43 +000026342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026343$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026344if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026345 $as_echo_n "(cached) " >&6
26346else
26347 ac_check_lib_save_LIBS=$LIBS
26348LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026350/* end confdefs.h. */
26351
26352/* Override any GCC internal prototype to avoid an error.
26353 Use char because int might match the return type of a GCC
26354 builtin and then its argument prototype would still apply. */
26355#ifdef __cplusplus
26356extern "C"
26357#endif
26358char XDPSPixelsPerPoint ();
26359int
26360main ()
26361{
26362return XDPSPixelsPerPoint ();
26363 ;
26364 return 0;
26365}
26366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026368 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26369else
cristy8b350f62009-11-15 23:12:43 +000026370 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026371fi
cristy8b350f62009-11-15 23:12:43 +000026372rm -f core conftest.err conftest.$ac_objext \
26373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026374LIBS=$ac_check_lib_save_LIBS
26375fi
cristy8b350f62009-11-15 23:12:43 +000026376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026377$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026378if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026379 passed=`expr $passed + 1`
26380else
26381 failed=`expr $failed + 1`
26382fi
26383
cristy8b350f62009-11-15 23:12:43 +000026384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026385$as_echo_n "checking if DPS package is complete... " >&6; }
26386 if test $passed -gt 0; then
26387 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026389$as_echo "no -- some components failed test" >&6; }
26390 have_dps='no (failed tests)'
26391 CPPFLAGS="$PERSIST_CPPFLAGS"
26392 else
26393 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26394 LIBS="$DPS_LIBS $LIBS"
26395
cristy8b350f62009-11-15 23:12:43 +000026396$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026397
cristy8b350f62009-11-15 23:12:43 +000026398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026399$as_echo "yes" >&6; }
26400 have_dps='yes'
26401 fi
26402 else
cristy8b350f62009-11-15 23:12:43 +000026403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026404$as_echo "no" >&6; }
26405 CPPFLAGS=$PERSIST_CPPFLAGS
26406 fi
26407fi
26408 if test "$have_dps" = 'yes'; then
26409 DPS_DELEGATE_TRUE=
26410 DPS_DELEGATE_FALSE='#'
26411else
26412 DPS_DELEGATE_TRUE='#'
26413 DPS_DELEGATE_FALSE=
26414fi
26415
26416
26417
26418
26419#
26420# Check for DJVU delegate library.
26421#
26422
26423# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026424if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026425 withval=$with_djvu; with_djvu=$withval
26426else
26427 with_djvu='yes'
26428fi
26429
26430
26431if test "$with_djvu" != 'yes'; then
26432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26433fi
26434
26435have_djvu='no'
26436DJVU_LIBS=''
26437if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026439$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026441$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026443$as_echo "" >&6; }
26444 failed=0
26445 passed=0
cristy8b350f62009-11-15 23:12:43 +000026446 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26447if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026448 passed=`expr $passed + 1`
26449else
26450 failed=`expr $failed + 1`
26451fi
26452
26453
cristy8b350f62009-11-15 23:12:43 +000026454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026455$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026456if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026457 $as_echo_n "(cached) " >&6
26458else
26459 ac_check_lib_save_LIBS=$LIBS
26460LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026462/* end confdefs.h. */
26463
26464/* Override any GCC internal prototype to avoid an error.
26465 Use char because int might match the return type of a GCC
26466 builtin and then its argument prototype would still apply. */
26467#ifdef __cplusplus
26468extern "C"
26469#endif
26470char ddjvu_context_create ();
26471int
26472main ()
26473{
26474return ddjvu_context_create ();
26475 ;
26476 return 0;
26477}
26478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026480 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26481else
cristy8b350f62009-11-15 23:12:43 +000026482 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026483fi
cristy8b350f62009-11-15 23:12:43 +000026484rm -f core conftest.err conftest.$ac_objext \
26485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026486LIBS=$ac_check_lib_save_LIBS
26487fi
cristy8b350f62009-11-15 23:12:43 +000026488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026489$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026490if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026491 passed=`expr $passed + 1`
26492else
26493 failed=`expr $failed + 1`
26494fi
26495
cristy8b350f62009-11-15 23:12:43 +000026496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026497$as_echo_n "checking if DJVU package is complete... " >&6; }
26498 if test $passed -gt 0; then
26499 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026501$as_echo "no -- some components failed test" >&6; }
26502 have_djvu='no (failed tests)'
26503 else
26504 DJVU_LIBS='-ldjvulibre'
26505 LIBS="$DJVU_LIBS $LIBS"
26506
cristy8b350f62009-11-15 23:12:43 +000026507$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026508
cristy8b350f62009-11-15 23:12:43 +000026509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026510$as_echo "yes" >&6; }
26511 have_djvu='yes'
26512 fi
26513 else
cristy8b350f62009-11-15 23:12:43 +000026514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026515$as_echo "no" >&6; }
26516 fi
26517fi
26518 if test "$have_djvu" = 'yes'; then
26519 DJVU_DELEGATE_TRUE=
26520 DJVU_DELEGATE_FALSE='#'
26521else
26522 DJVU_DELEGATE_TRUE='#'
26523 DJVU_DELEGATE_FALSE=
26524fi
26525
26526
26527
26528
26529#
cristy430a7312010-01-21 20:44:04 +000026530# Set DejaVu font directory.
26531#
26532
26533# Check whether --with-dejavu-font-dir was given.
26534if test "${with_dejavu_font_dir+set}" = set; then :
26535 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26536else
26537 with_dejavu_font_dir='default'
26538fi
26539
26540
26541if test "$with_dejavu_font_dir" != 'default'; then
26542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26543fi
26544
26545
26546#
cristy3ed852e2009-09-05 21:47:34 +000026547# Check for FFTW delegate library.
26548#
26549
26550# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026551if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026552 withval=$with_fftw; with_fftw=$withval
26553else
26554 with_fftw='yes'
26555fi
26556
26557
26558if test "$with_fftw" != 'yes'; then
26559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26560fi
26561
26562have_fftw='no'
26563FFTW_LIBS=''
26564if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026566$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026570$as_echo "" >&6; }
26571 failed=0
26572 passed=0
cristy8b350f62009-11-15 23:12:43 +000026573 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26574if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026575 passed=`expr $passed + 1`
26576else
26577 failed=`expr $failed + 1`
26578fi
26579
26580
cristy8b350f62009-11-15 23:12:43 +000026581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026582$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026583if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 $as_echo_n "(cached) " >&6
26585else
26586 ac_check_lib_save_LIBS=$LIBS
26587LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026589/* end confdefs.h. */
26590
26591/* Override any GCC internal prototype to avoid an error.
26592 Use char because int might match the return type of a GCC
26593 builtin and then its argument prototype would still apply. */
26594#ifdef __cplusplus
26595extern "C"
26596#endif
26597char fftw_execute ();
26598int
26599main ()
26600{
26601return fftw_execute ();
26602 ;
26603 return 0;
26604}
26605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026606if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026607 ac_cv_lib_fftw3_fftw_execute=yes
26608else
cristy8b350f62009-11-15 23:12:43 +000026609 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026610fi
cristy8b350f62009-11-15 23:12:43 +000026611rm -f core conftest.err conftest.$ac_objext \
26612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026613LIBS=$ac_check_lib_save_LIBS
26614fi
cristy8b350f62009-11-15 23:12:43 +000026615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026616$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026617if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026618 passed=`expr $passed + 1`
26619else
26620 failed=`expr $failed + 1`
26621fi
26622
cristy8b350f62009-11-15 23:12:43 +000026623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026624$as_echo_n "checking if FFTW package is complete... " >&6; }
26625 if test $passed -gt 0; then
26626 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026628$as_echo "no -- some components failed test" >&6; }
26629 have_fftw='no (failed tests)'
26630 else
26631 FFTW_LIBS='-lfftw3'
26632 LIBS="$FFTW_LIBS $LIBS"
26633
cristy8b350f62009-11-15 23:12:43 +000026634$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026635
cristy8b350f62009-11-15 23:12:43 +000026636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026637$as_echo "yes" >&6; }
26638 have_fftw='yes'
26639 fi
26640 else
cristy8b350f62009-11-15 23:12:43 +000026641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026642$as_echo "no" >&6; }
26643 fi
26644fi
26645 if test "$have_fftw" = 'yes'; then
26646 FFTW_DELEGATE_TRUE=
26647 FFTW_DELEGATE_FALSE='#'
26648else
26649 FFTW_DELEGATE_TRUE='#'
26650 FFTW_DELEGATE_FALSE=
26651fi
26652
26653
26654
26655
26656#
26657# Check for FlashPIX delegate library.
26658#
26659
26660# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026661if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026662 withval=$with_fpx; with_fpx=$withval
26663else
26664 with_fpx='yes'
26665fi
26666
26667
26668if test "$with_fpx" != 'yes'; then
26669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26670fi
26671
26672have_fpx='no'
26673FPX_LIBS=''
26674if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026676$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026680$as_echo "" >&6; }
26681 failed=0
26682 passed=0
26683 ac_ext=cpp
26684ac_cpp='$CXXCPP $CPPFLAGS'
26685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26688
26689
cristy8b350f62009-11-15 23:12:43 +000026690ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26691if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 passed=`expr $passed + 1`
26693else
26694 failed=`expr $failed + 1`
26695fi
26696
26697
cristy8b350f62009-11-15 23:12:43 +000026698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026699$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026700if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026701 $as_echo_n "(cached) " >&6
26702else
26703 ac_check_lib_save_LIBS=$LIBS
26704LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026706/* end confdefs.h. */
26707
26708/* Override any GCC internal prototype to avoid an error.
26709 Use char because int might match the return type of a GCC
26710 builtin and then its argument prototype would still apply. */
26711#ifdef __cplusplus
26712extern "C"
26713#endif
26714char FPX_OpenImageByFilename ();
26715int
26716main ()
26717{
26718return FPX_OpenImageByFilename ();
26719 ;
26720 return 0;
26721}
26722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026723if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026724 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26725else
cristy8b350f62009-11-15 23:12:43 +000026726 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026727fi
cristy8b350f62009-11-15 23:12:43 +000026728rm -f core conftest.err conftest.$ac_objext \
26729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026730LIBS=$ac_check_lib_save_LIBS
26731fi
cristy8b350f62009-11-15 23:12:43 +000026732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026734if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 passed=`expr $passed + 1`
26736else
26737 failed=`expr $failed + 1`
26738fi
26739
26740 ac_ext=c
26741ac_cpp='$CPP $CPPFLAGS'
26742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26744ac_compiler_gnu=$ac_cv_c_compiler_gnu
26745
cristy8b350f62009-11-15 23:12:43 +000026746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026747$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26748 if test $passed -gt 0; then
26749 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo "no -- some components failed test" >&6; }
26752 have_fpx='no (failed tests)'
26753 else
26754 FPX_LIBS='-lfpx'
26755
cristy8b350f62009-11-15 23:12:43 +000026756$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026757
cristy8b350f62009-11-15 23:12:43 +000026758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026759$as_echo "yes" >&6; }
26760 have_fpx='yes'
26761 PERLMAINCC="$CXX"
26762 fi
26763 else
cristy8b350f62009-11-15 23:12:43 +000026764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765$as_echo "no" >&6; }
26766 fi
26767fi
26768 if test "$have_fpx" = 'yes'; then
26769 FPX_DELEGATE_TRUE=
26770 FPX_DELEGATE_FALSE='#'
26771else
26772 FPX_DELEGATE_TRUE='#'
26773 FPX_DELEGATE_FALSE=
26774fi
26775
26776
26777
26778
26779#
26780# Check for fontconfig delegate library.
26781#
26782
26783# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026784if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026785 withval=$with_fontconfig; with_fontconfig=$withval
26786else
26787 with_fontconfig=$have_x
26788fi
26789
26790
26791if test "$with_fontconfig" != 'yes'; then
26792 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26793fi
26794
26795have_fontconfig='no'
26796FONTCONFIG_CFLAGS=""
26797FONTCONFIG_LIBS=""
26798FONTCONFIG_PKG=""
26799if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026801$as_echo "-------------------------------------------------------------" >&6; }
26802
26803pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026805$as_echo_n "checking for FONTCONFIG... " >&6; }
26806
26807if test -n "$FONTCONFIG_CFLAGS"; then
26808 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26809 elif test -n "$PKG_CONFIG"; then
26810 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026812 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26813 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26815 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026816 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26817else
26818 pkg_failed=yes
26819fi
26820 else
26821 pkg_failed=untried
26822fi
26823if test -n "$FONTCONFIG_LIBS"; then
26824 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26825 elif test -n "$PKG_CONFIG"; then
26826 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026828 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26829 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26831 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026832 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26833else
26834 pkg_failed=yes
26835fi
26836 else
26837 pkg_failed=untried
26838fi
26839
26840
26841
26842if test $pkg_failed = yes; then
26843
26844if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26845 _pkg_short_errors_supported=yes
26846else
26847 _pkg_short_errors_supported=no
26848fi
26849 if test $_pkg_short_errors_supported = yes; then
26850 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26851 else
26852 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26853 fi
26854 # Put the nasty error message in config.log where it belongs
26855 echo "$FONTCONFIG_PKG_ERRORS" >&5
26856
cristy8b350f62009-11-15 23:12:43 +000026857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026858$as_echo "no" >&6; }
26859 have_fontconfig=no
26860elif test $pkg_failed = untried; then
26861 have_fontconfig=no
26862else
26863 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26864 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026866$as_echo "yes" >&6; }
26867 have_fontconfig=yes
26868fi
cristy8b350f62009-11-15 23:12:43 +000026869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026870$as_echo "" >&6; }
26871fi
26872
26873if test "$have_fontconfig" = 'yes'; then
26874
cristy8b350f62009-11-15 23:12:43 +000026875$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026876
cristyd09bcf92010-03-25 03:04:45 +000026877 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026878 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026879 fi
cristy3ed852e2009-09-05 21:47:34 +000026880fi
26881
26882 if test "$have_fontconfig" = 'yes'; then
26883 FONTCONFIG_DELEGATE_TRUE=
26884 FONTCONFIG_DELEGATE_FALSE='#'
26885else
26886 FONTCONFIG_DELEGATE_TRUE='#'
26887 FONTCONFIG_DELEGATE_FALSE=
26888fi
26889
26890
26891
26892
26893
26894#
26895# Check for freetype delegate library.
26896#
26897
26898# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026899if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026900 withval=$with_freetype; with_freetype=$withval
26901else
26902 with_freetype='yes'
26903fi
26904
26905
26906
26907if test "$with_freetype" != 'yes'; then
26908 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26909fi
26910
26911have_freetype='no'
26912FREETYPE_LIBS=''
26913if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026915$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026917$as_echo_n "checking for FreeType 2.0... " >&6; }
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; }
26920 failed=0
26921 passed=0
cristy66291112009-10-03 22:44:36 +000026922 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026923 PERSIST_CPPFLAGS="$CPPFLAGS"
26924 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26925 :
26926 else
26927 freetype_config=''
26928 for ac_prog in freetype-config
26929do
26930 # Extract the first word of "$ac_prog", so it can be a program name with args.
26931set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026933$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026934if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026935 $as_echo_n "(cached) " >&6
26936else
26937 if test -n "$freetype_config"; then
26938 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26939else
26940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26941for as_dir in $PATH
26942do
26943 IFS=$as_save_IFS
26944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26947 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026949 break 2
26950 fi
26951done
cristy8b350f62009-11-15 23:12:43 +000026952 done
cristy3ed852e2009-09-05 21:47:34 +000026953IFS=$as_save_IFS
26954
26955fi
26956fi
26957freetype_config=$ac_cv_prog_freetype_config
26958if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026960$as_echo "$freetype_config" >&6; }
26961else
cristy8b350f62009-11-15 23:12:43 +000026962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026963$as_echo "no" >&6; }
26964fi
26965
26966
26967 test -n "$freetype_config" && break
26968done
26969 if test -n "$freetype_config"; then
26970 freetype_cflags=`$freetype_config --cflags`
26971 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000026972 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000026973 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26974 fi
26975 fi
26976
26977 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000026978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000026979$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026980if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026981 $as_echo_n "(cached) " >&6
26982else
26983 ac_check_lib_save_LIBS=$LIBS
26984LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026986/* end confdefs.h. */
26987
26988/* Override any GCC internal prototype to avoid an error.
26989 Use char because int might match the return type of a GCC
26990 builtin and then its argument prototype would still apply. */
26991#ifdef __cplusplus
26992extern "C"
26993#endif
26994char FT_Init_FreeType ();
26995int
26996main ()
26997{
26998return FT_Init_FreeType ();
26999 ;
27000 return 0;
27001}
27002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027003if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027004 ac_cv_lib_freetype_FT_Init_FreeType=yes
27005else
cristy8b350f62009-11-15 23:12:43 +000027006 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027007fi
cristy8b350f62009-11-15 23:12:43 +000027008rm -f core conftest.err conftest.$ac_objext \
27009 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027010LIBS=$ac_check_lib_save_LIBS
27011fi
cristy8b350f62009-11-15 23:12:43 +000027012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027014if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027015 FREETYPE_LIBS='-lfreetype'
27016fi
27017
27018 if test "$FREETYPE_LIBS" != ''; then
27019 passed=`expr $passed + 1`
27020 else
27021 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027022 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027023 fi
27024 fi
27025
cristy8b350f62009-11-15 23:12:43 +000027026 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27027if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027028 FT2BUILD_H='#include <ft2build.h>'
27029else
27030 ft2build=''
27031fi
27032
27033
cristy8b350f62009-11-15 23:12:43 +000027034 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27035"
27036if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027037 have_freetype_h='yes'
27038else
27039 have_freetype_h='no'
27040fi
27041
27042
27043 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27044 passed=`expr $passed + 1`
27045 else
27046 failed=`expr $failed + 1`
27047 CPPFLAGS="$PERSIST_CPPFLAGS"
27048 fi
27049
cristy8b350f62009-11-15 23:12:43 +000027050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo_n "checking if FreeType package is complete... " >&6; }
27052 if test $passed -gt 0; then
27053 if test $failed -gt 0; then
27054 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027056$as_echo "no -- some components failed test" >&6; }
27057 have_freetype='no (failed tests)'
27058 else
27059 LIBS="$FREETYPE_LIBS $LIBS"
27060
cristy8b350f62009-11-15 23:12:43 +000027061$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027062
27063 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27064
cristy8b350f62009-11-15 23:12:43 +000027065$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027066
27067 fi
cristy8b350f62009-11-15 23:12:43 +000027068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027069$as_echo "yes" >&6; }
27070 have_freetype='yes'
27071 fi
27072 else
cristy8b350f62009-11-15 23:12:43 +000027073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027074$as_echo "no" >&6; }
27075 fi
27076fi
27077 if test "$have_freetype" = 'yes'; then
27078 FREETYPE_DELEGATE_TRUE=
27079 FREETYPE_DELEGATE_FALSE='#'
27080else
27081 FREETYPE_DELEGATE_TRUE='#'
27082 FREETYPE_DELEGATE_FALSE=
27083fi
27084
27085
27086
27087
27088
27089#
27090# Check for Ghostscript library or framework.
27091#
27092# Test for iapi.h & test for gsapi_new_instance in -lgs
27093# or -framework Ghostscript
27094
27095
27096# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027097if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027098 withval=$with_gslib; with_gslib=$withval
27099else
27100 with_gslib='no'
27101fi
27102
27103
cristyb7931f12009-09-25 10:22:21 +000027104gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027105if test "$with_gslib" != 'yes'; then
27106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27107fi
27108
27109have_gslib='no'
27110GS_LIBS=''
27111if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027115$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027117$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027118 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027119 failed=0
27120 passed=0
cristy8b350f62009-11-15 23:12:43 +000027121 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27122if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027123 passed=`expr $passed + 1`
27124else
27125 failed=`expr $failed + 1`
27126fi
27127
27128
cristy8b350f62009-11-15 23:12:43 +000027129 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27130if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027131 passed=`expr $passed + 1`
27132else
27133 failed=`expr $failed + 1`
27134fi
27135
27136
cristy8b350f62009-11-15 23:12:43 +000027137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027138$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027139if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027140 $as_echo_n "(cached) " >&6
27141else
27142 ac_check_framework_save_LIBS=$LIBS
27143LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027145/* end confdefs.h. */
27146
27147/* Override any GCC internal prototype to avoid an error.
27148 Use char because int might match the return type of a GCC
27149 builtin and then its argument prototype would still apply. */
27150#ifdef __cplusplus
27151extern "C"
27152#endif
27153char gsapi_new_instance ();
27154int
27155main ()
27156{
27157return gsapi_new_instance ();
27158 ;
27159 return 0;
27160}
27161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027162if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027163 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27164else
cristy8b350f62009-11-15 23:12:43 +000027165 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027166fi
cristy8b350f62009-11-15 23:12:43 +000027167rm -f core conftest.err conftest.$ac_objext \
27168 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027169LIBS=$ac_check_framework_save_LIBS
27170fi
cristy8b350f62009-11-15 23:12:43 +000027171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027172$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027173if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027174 framework=`expr $framework + 1`
27175else
cristy8b350f62009-11-15 23:12:43 +000027176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027177$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027178if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027179 $as_echo_n "(cached) " >&6
27180else
27181 ac_check_lib_save_LIBS=$LIBS
27182LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027184/* end confdefs.h. */
27185
27186/* Override any GCC internal prototype to avoid an error.
27187 Use char because int might match the return type of a GCC
27188 builtin and then its argument prototype would still apply. */
27189#ifdef __cplusplus
27190extern "C"
27191#endif
27192char gsapi_new_instance ();
27193int
27194main ()
27195{
27196return gsapi_new_instance ();
27197 ;
27198 return 0;
27199}
27200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027201if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 ac_cv_lib_gs_gsapi_new_instance=yes
27203else
cristy8b350f62009-11-15 23:12:43 +000027204 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027205fi
cristy8b350f62009-11-15 23:12:43 +000027206rm -f core conftest.err conftest.$ac_objext \
27207 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027208LIBS=$ac_check_lib_save_LIBS
27209fi
cristy8b350f62009-11-15 23:12:43 +000027210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027211$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027212if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027213 passed=`expr $passed + 1`
27214else
27215 failed=`expr $failed + 1`
27216fi
27217
27218fi
cristy8b350f62009-11-15 23:12:43 +000027219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027220$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27221 if test $passed -gt 0; then
27222 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo "no -- some components failed test" >&6; }
27225 have_gslib='no (failed tests)'
27226 else
27227 if test $framework -gt 0; then
27228 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027229 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027231$as_echo "yes, using framework." >&6; }
27232 else
cristy8b350f62009-11-15 23:12:43 +000027233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027234$as_echo "yes, using library." >&6; }
27235 GS_LIBS='-lgs'
27236 fi
27237 LIBS="$GS_LIBS $LIBS"
27238
cristy8b350f62009-11-15 23:12:43 +000027239$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027240
27241 have_gslib='yes'
27242 fi
27243 else
cristy8b350f62009-11-15 23:12:43 +000027244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027245$as_echo "no" >&6; }
27246 fi
27247fi
27248 if test "$have_gslib" = 'yes'; then
27249 GS_DELEGATE_TRUE=
27250 GS_DELEGATE_FALSE='#'
27251else
27252 GS_DELEGATE_TRUE='#'
27253 GS_DELEGATE_FALSE=
27254fi
27255
27256
27257
27258# Set default font search path
27259
27260# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027261if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 withval=$with_fontpath; with_fontpath=$withval
27263else
27264 with_fontpath=''
27265fi
27266
27267
27268if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27269 with_fontpath=''
27270else
27271
27272cat >>confdefs.h <<_ACEOF
27273#define MAGICK_FONT_PATH "$with_fontpath"
27274_ACEOF
27275
27276fi
27277if test "$with_fontpath=" != ''; then
27278 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27279fi
27280
27281# Set Ghostscript font directory
27282
27283# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027284if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027285 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27286else
27287 with_gs_font_dir='default'
27288fi
27289
27290
27291if test "$with_gs_font_dir" != 'default'; then
27292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27293fi
27294
27295
27296#
27297# Check for GVC delegate library.
27298#
27299
27300# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027301if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027302 withval=$with_gvc; with_gvc=$withval
27303else
27304 with_gvc='yes'
27305fi
27306
27307
27308if test "$with_gvc" != 'yes'; then
27309 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27310fi
27311
27312GVC_PKG=""
27313if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027315$as_echo "-------------------------------------------------------------" >&6; }
27316
27317pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027319$as_echo_n "checking for GVC... " >&6; }
27320
27321if test -n "$GVC_CFLAGS"; then
27322 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27323 elif test -n "$PKG_CONFIG"; then
27324 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027326 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27327 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27329 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027330 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27331else
27332 pkg_failed=yes
27333fi
27334 else
27335 pkg_failed=untried
27336fi
27337if test -n "$GVC_LIBS"; then
27338 pkg_cv_GVC_LIBS="$GVC_LIBS"
27339 elif test -n "$PKG_CONFIG"; then
27340 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027341 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027342 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27343 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27345 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027346 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27347else
27348 pkg_failed=yes
27349fi
27350 else
27351 pkg_failed=untried
27352fi
27353
27354
27355
27356if test $pkg_failed = yes; then
27357
27358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27359 _pkg_short_errors_supported=yes
27360else
27361 _pkg_short_errors_supported=no
27362fi
27363 if test $_pkg_short_errors_supported = yes; then
27364 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27365 else
27366 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27367 fi
27368 # Put the nasty error message in config.log where it belongs
27369 echo "$GVC_PKG_ERRORS" >&5
27370
cristy8b350f62009-11-15 23:12:43 +000027371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027372$as_echo "no" >&6; }
27373 have_gvc=no
27374elif test $pkg_failed = untried; then
27375 have_gvc=no
27376else
27377 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27378 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo "yes" >&6; }
27381 have_gvc=yes
27382fi
cristy8b350f62009-11-15 23:12:43 +000027383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027384$as_echo "" >&6; }
27385fi
27386
27387if test "$have_gvc" = 'yes'; then
27388
cristy8b350f62009-11-15 23:12:43 +000027389$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027390
27391 if test "$with_modules" = 'no'; then
27392 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27393 fi
27394fi
27395
27396 if test "$have_gvc" = 'yes'; then
27397 GVC_DELEGATE_TRUE=
27398 GVC_DELEGATE_FALSE='#'
27399else
27400 GVC_DELEGATE_TRUE='#'
27401 GVC_DELEGATE_FALSE=
27402fi
27403
27404
27405
27406
27407
27408#
27409# Check for JBIG delegate library.
27410#
27411
27412
27413# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027414if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027415 withval=$with_jbig; with_jbig=$withval
27416else
27417 with_jbig='yes'
27418fi
27419
27420
27421have_jbig='no'
27422JBIG_LIBS=''
27423if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027425$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027427$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027429$as_echo "" >&6; }
27430 failed=0
27431 passed=0
cristy8b350f62009-11-15 23:12:43 +000027432 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27433if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027434 passed=`expr $passed + 1`
27435else
27436 failed=`expr $failed + 1`
27437fi
27438
27439
cristy8b350f62009-11-15 23:12:43 +000027440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027441$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027442if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 $as_echo_n "(cached) " >&6
27444else
27445 ac_check_lib_save_LIBS=$LIBS
27446LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027448/* end confdefs.h. */
27449
27450/* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
27453#ifdef __cplusplus
27454extern "C"
27455#endif
27456char jbg_dec_init ();
27457int
27458main ()
27459{
27460return jbg_dec_init ();
27461 ;
27462 return 0;
27463}
27464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027466 ac_cv_lib_jbig_jbg_dec_init=yes
27467else
cristy8b350f62009-11-15 23:12:43 +000027468 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027469fi
cristy8b350f62009-11-15 23:12:43 +000027470rm -f core conftest.err conftest.$ac_objext \
27471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027472LIBS=$ac_check_lib_save_LIBS
27473fi
cristy8b350f62009-11-15 23:12:43 +000027474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027475$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027476if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027477 passed=`expr $passed + 1`
27478else
27479 failed=`expr $failed + 1`
27480fi
27481
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo_n "checking if JBIG package is complete... " >&6; }
27484 if test $passed -gt 0; then
27485 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027487$as_echo "no -- some components failed test" >&6; }
27488 have_jbig='no (failed tests)'
27489 else
27490 JBIG_LIBS='-ljbig'
27491 LIBS="$JBIG_LIBS $LIBS"
27492
cristy8b350f62009-11-15 23:12:43 +000027493$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027494
cristy8b350f62009-11-15 23:12:43 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027496$as_echo "yes" >&6; }
27497 have_jbig='yes'
27498 fi
27499 else
cristy8b350f62009-11-15 23:12:43 +000027500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027501$as_echo "no" >&6; }
27502 fi
27503fi
27504 if test "$have_jbig" = 'yes'; then
27505 JBIG_DELEGATE_TRUE=
27506 JBIG_DELEGATE_FALSE='#'
27507else
27508 JBIG_DELEGATE_TRUE='#'
27509 JBIG_DELEGATE_FALSE=
27510fi
27511
27512
27513
27514
27515#
27516# Check for JPEG delegate library.
27517#
27518
27519# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027520if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027521 withval=$with_jpeg; with_jpeg=$withval
27522else
27523 with_jpeg='yes'
27524fi
27525
27526
27527if test "$with_jpeg" != 'yes'; then
27528 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27529fi
27530
27531have_jpeg='no'
27532JPEG_LIBS=''
27533if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027539$as_echo "" >&6; }
27540 failed=0
27541 passed=0
cristy8b350f62009-11-15 23:12:43 +000027542 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27543if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027544 passed=`expr $passed + 1`
27545else
27546 failed=`expr $failed + 1`
27547fi
27548
27549
cristy8b350f62009-11-15 23:12:43 +000027550 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27551if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027552 passed=`expr $passed + 1`
27553else
27554 failed=`expr $failed + 1`
27555fi
27556
27557
cristy8b350f62009-11-15 23:12:43 +000027558 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27559if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 passed=`expr $passed + 1`
27561else
27562 failed=`expr $failed + 1`
27563fi
27564
27565
cristy8b350f62009-11-15 23:12:43 +000027566 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27567if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027568 passed=`expr $passed + 1`
27569else
27570 failed=`expr $failed + 1`
27571fi
27572
27573
cristy8b350f62009-11-15 23:12:43 +000027574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027575$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027576if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027577 $as_echo_n "(cached) " >&6
27578else
27579 ac_check_lib_save_LIBS=$LIBS
27580LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027582/* end confdefs.h. */
27583
27584/* Override any GCC internal prototype to avoid an error.
27585 Use char because int might match the return type of a GCC
27586 builtin and then its argument prototype would still apply. */
27587#ifdef __cplusplus
27588extern "C"
27589#endif
27590char jpeg_read_header ();
27591int
27592main ()
27593{
27594return jpeg_read_header ();
27595 ;
27596 return 0;
27597}
27598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027600 ac_cv_lib_jpeg_jpeg_read_header=yes
27601else
cristy8b350f62009-11-15 23:12:43 +000027602 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027603fi
cristy8b350f62009-11-15 23:12:43 +000027604rm -f core conftest.err conftest.$ac_objext \
27605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027606LIBS=$ac_check_lib_save_LIBS
27607fi
cristy8b350f62009-11-15 23:12:43 +000027608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027609$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027610if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027611 passed=`expr $passed + 1`
27612else
27613 failed=`expr $failed + 1`
27614fi
27615
27616
27617# Test for compatible JPEG library
27618if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027621if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 $as_echo_n "(cached) " >&6
27623else
cristy8b350f62009-11-15 23:12:43 +000027624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027625/* end confdefs.h. */
27626#include <stdio.h>
27627#include <stdlib.h>
27628#include <jpeglib.h>
27629
27630int
27631main ()
27632{
27633
27634#if JPEG_LIB_VERSION < 62
27635#error IJG JPEG library must be version 6b or newer!
27636#endif
27637return 0;
27638
27639 ;
27640 return 0;
27641}
27642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027643if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27645else
cristy8b350f62009-11-15 23:12:43 +000027646 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027647fi
cristy3ed852e2009-09-05 21:47:34 +000027648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27649fi
cristy8b350f62009-11-15 23:12:43 +000027650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027651$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27652fi
cristy8b350f62009-11-15 23:12:43 +000027653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027654$as_echo_n "checking if JPEG package is complete... " >&6; }
27655 if test $passed -gt 0; then
27656 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo "no -- some components failed test" >&6; }
27659 have_jpeg='no (failed tests)'
27660 else
27661 JPEG_LIBS='-ljpeg'
27662 LIBS="$JPEG_LIBS $LIBS"
27663
cristy8b350f62009-11-15 23:12:43 +000027664$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027665
cristy8b350f62009-11-15 23:12:43 +000027666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027667$as_echo "yes" >&6; }
27668 have_jpeg='yes'
27669 fi
27670 else
cristy8b350f62009-11-15 23:12:43 +000027671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027672$as_echo "no" >&6; }
27673 fi
27674fi
27675 if test "$have_jpeg" = 'yes'; then
27676 JPEG_DELEGATE_TRUE=
27677 JPEG_DELEGATE_FALSE='#'
27678else
27679 JPEG_DELEGATE_TRUE='#'
27680 JPEG_DELEGATE_FALSE=
27681fi
27682
27683
27684
27685
27686#
27687# Check for JPEG Version 2 delegate library.
27688#
27689
27690# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027691if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027692 withval=$with_jp2; with_jp2=$withval
27693else
27694 with_jp2='yes'
27695fi
27696
27697
27698if test "$with_jp2" != 'yes'; then
27699 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27700fi
27701
27702have_jp2='no'
27703JP2_LIBS=''
27704if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027706$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027708$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027710$as_echo "" >&6; }
27711 failed=0
27712 passed=0
cristy8b350f62009-11-15 23:12:43 +000027713 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27714if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 passed=`expr $passed + 1`
27716else
27717 failed=`expr $failed + 1`
27718fi
27719
27720
cristy8b350f62009-11-15 23:12:43 +000027721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027723if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027724 $as_echo_n "(cached) " >&6
27725else
27726 ac_check_lib_save_LIBS=$LIBS
27727LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027729/* end confdefs.h. */
27730
27731/* Override any GCC internal prototype to avoid an error.
27732 Use char because int might match the return type of a GCC
27733 builtin and then its argument prototype would still apply. */
27734#ifdef __cplusplus
27735extern "C"
27736#endif
27737char jas_stream_fopen ();
27738int
27739main ()
27740{
27741return jas_stream_fopen ();
27742 ;
27743 return 0;
27744}
27745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027747 ac_cv_lib_jasper_jas_stream_fopen=yes
27748else
cristy8b350f62009-11-15 23:12:43 +000027749 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027750fi
cristy8b350f62009-11-15 23:12:43 +000027751rm -f core conftest.err conftest.$ac_objext \
27752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027753LIBS=$ac_check_lib_save_LIBS
27754fi
cristy8b350f62009-11-15 23:12:43 +000027755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027756$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027757if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027758 passed=`expr $passed + 1`
27759else
27760 failed=`expr $failed + 1`
27761fi
27762
cristy8b350f62009-11-15 23:12:43 +000027763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027764$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27765 if test $passed -gt 0; then
27766 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo "no -- some components failed test" >&6; }
27769 have_jp2='no (failed tests)'
27770 else
27771 JP2_LIBS='-ljasper'
27772 LIBS="$JP2_LIBS $LIBS"
27773
cristy8b350f62009-11-15 23:12:43 +000027774$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027775
cristy8b350f62009-11-15 23:12:43 +000027776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027777$as_echo "yes" >&6; }
27778 have_jp2='yes'
27779 fi
27780 else
cristy8b350f62009-11-15 23:12:43 +000027781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027782$as_echo "no" >&6; }
27783 fi
27784fi
27785 if test "$have_jp2" = 'yes'; then
27786 JP2_DELEGATE_TRUE=
27787 JP2_DELEGATE_FALSE='#'
27788else
27789 JP2_DELEGATE_TRUE='#'
27790 JP2_DELEGATE_FALSE=
27791fi
27792
27793
27794
27795
27796#
27797# Check for LCMS delegate library.
27798#
27799
27800# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027801if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027802 withval=$with_lcms; with_lcms=$withval
27803else
27804 with_lcms='yes'
27805fi
27806
27807
27808if test "$with_lcms" != 'yes'; then
27809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27810fi
27811
27812have_lcms='no'
27813LCMS_LIBS=''
27814if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027820$as_echo "" >&6; }
27821 failed=0
27822 passed=0
27823 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000027824 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27825if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27826 have_lcms_header='yes'
27827fi
27828
27829
27830 if test "$have_lcms_header" = 'yes'; then
27831 passed=`expr $passed + 1`
27832
27833$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27834
27835 else
27836 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
27837if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
27838 have_lcms_header='yes'
27839fi
27840
27841
27842 if test "$have_lcms_header" = 'yes'; then
27843 passed=`expr $passed + 1`
27844
27845$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
27846
27847 else
27848 failed=`expr $failed + 1`
27849 fi
27850 fi
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
27852$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
27853if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
27854 $as_echo_n "(cached) " >&6
27855else
27856 ac_check_lib_save_LIBS=$LIBS
27857LIBS="-llcms2 $LIBS"
27858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27859/* end confdefs.h. */
27860
27861/* Override any GCC internal prototype to avoid an error.
27862 Use char because int might match the return type of a GCC
27863 builtin and then its argument prototype would still apply. */
27864#ifdef __cplusplus
27865extern "C"
27866#endif
27867char cmsOpenProfileFromMem ();
27868int
27869main ()
27870{
27871return cmsOpenProfileFromMem ();
27872 ;
27873 return 0;
27874}
27875_ACEOF
27876if ac_fn_c_try_link "$LINENO"; then :
27877 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
27878else
27879 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
27880fi
27881rm -f core conftest.err conftest.$ac_objext \
27882 conftest$ac_exeext conftest.$ac_ext
27883LIBS=$ac_check_lib_save_LIBS
27884fi
27885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
27886$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
27887if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
27888 passed=`expr $passed + 1`
27889else
27890 failed=`expr $failed + 1`
27891fi
27892
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
27894$as_echo_n "checking if LCMS2 package is complete... " >&6; }
27895 if test $passed -gt 0; then
27896 if test $failed -gt 0; then
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27898$as_echo "no -- some components failed test" >&6; }
27899 have_lcms='no (failed tests)'
27900 else
27901 LCMS_LIBS='-llcms2'
27902 LIBS="$LCMS_LIBS $LIBS"
27903
27904$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27905
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27907$as_echo "yes" >&6; }
27908 have_lcms='yes'
27909 fi
27910 else
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27912$as_echo "no" >&6; }
27913 fi
27914fi
27915
27916if test "$with_lcms" != 'no'; then
27917if test "$have_lcms" == 'no'; then
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27919$as_echo "-------------------------------------------------------------" >&6; }
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
27921$as_echo_n "checking for LCMS... " >&6; }
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27923$as_echo "" >&6; }
27924 failed=0
27925 passed=0
27926 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000027927 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27928if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027929 have_lcms_header='yes'
27930fi
27931
27932
27933 if test "$have_lcms_header" = 'yes'; then
27934 passed=`expr $passed + 1`
27935
cristy8b350f62009-11-15 23:12:43 +000027936$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027937
27938 else
cristy8b350f62009-11-15 23:12:43 +000027939 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27940if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 have_lcms_header='yes'
27942fi
27943
27944
27945 if test "$have_lcms_header" = 'yes'; then
27946 passed=`expr $passed + 1`
27947
cristy8b350f62009-11-15 23:12:43 +000027948$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027949
27950 else
27951 failed=`expr $failed + 1`
27952 fi
27953 fi
cristy8b350f62009-11-15 23:12:43 +000027954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027956if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027957 $as_echo_n "(cached) " >&6
27958else
27959 ac_check_lib_save_LIBS=$LIBS
27960LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027962/* end confdefs.h. */
27963
27964/* Override any GCC internal prototype to avoid an error.
27965 Use char because int might match the return type of a GCC
27966 builtin and then its argument prototype would still apply. */
27967#ifdef __cplusplus
27968extern "C"
27969#endif
27970char cmsOpenProfileFromMem ();
27971int
27972main ()
27973{
27974return cmsOpenProfileFromMem ();
27975 ;
27976 return 0;
27977}
27978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027979if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027980 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27981else
cristy8b350f62009-11-15 23:12:43 +000027982 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000027983fi
cristy8b350f62009-11-15 23:12:43 +000027984rm -f core conftest.err conftest.$ac_objext \
27985 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027986LIBS=$ac_check_lib_save_LIBS
27987fi
cristy8b350f62009-11-15 23:12:43 +000027988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027989$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027990if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027991 passed=`expr $passed + 1`
27992else
27993 failed=`expr $failed + 1`
27994fi
27995
cristy8b350f62009-11-15 23:12:43 +000027996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027997$as_echo_n "checking if LCMS package is complete... " >&6; }
27998 if test $passed -gt 0; then
27999 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028001$as_echo "no -- some components failed test" >&6; }
28002 have_lcms='no (failed tests)'
28003 else
28004 LCMS_LIBS='-llcms'
28005 LIBS="$LCMS_LIBS $LIBS"
28006
cristy8b350f62009-11-15 23:12:43 +000028007$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028008
cristy8b350f62009-11-15 23:12:43 +000028009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028010$as_echo "yes" >&6; }
28011 have_lcms='yes'
28012 fi
28013 else
cristy8b350f62009-11-15 23:12:43 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo "no" >&6; }
28016 fi
28017fi
cristyd09bcf92010-03-25 03:04:45 +000028018fi
cristy3ed852e2009-09-05 21:47:34 +000028019 if test "$have_lcms" = 'yes'; then
28020 LCMS_DELEGATE_TRUE=
28021 LCMS_DELEGATE_FALSE='#'
28022else
28023 LCMS_DELEGATE_TRUE='#'
28024 LCMS_DELEGATE_FALSE=
28025fi
28026
28027
28028
28029
28030#
28031# Check for the LQR (Liquid Rescale) delegate library.
28032#
28033
28034# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028035if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028036 withval=$with_lqr; with_lqr=$withval
28037else
28038 with_lqr='yes'
28039fi
28040
28041
28042if test "$with_lqr" != 'yes'; then
28043 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28044fi
28045
28046have_lqr='no'
28047LQR_CFLAGS=""
28048LQR_LIBS=""
28049LQR_PKG=""
28050if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028052$as_echo "-------------------------------------------------------------" >&6; }
28053
28054pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028056$as_echo_n "checking for LQR... " >&6; }
28057
28058if test -n "$LQR_CFLAGS"; then
28059 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28060 elif test -n "$PKG_CONFIG"; then
28061 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028062 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028063 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28064 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28066 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028067 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28068else
28069 pkg_failed=yes
28070fi
28071 else
28072 pkg_failed=untried
28073fi
28074if test -n "$LQR_LIBS"; then
28075 pkg_cv_LQR_LIBS="$LQR_LIBS"
28076 elif test -n "$PKG_CONFIG"; then
28077 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028078 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028079 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28080 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28082 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028083 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28084else
28085 pkg_failed=yes
28086fi
28087 else
28088 pkg_failed=untried
28089fi
28090
28091
28092
28093if test $pkg_failed = yes; then
28094
28095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28096 _pkg_short_errors_supported=yes
28097else
28098 _pkg_short_errors_supported=no
28099fi
28100 if test $_pkg_short_errors_supported = yes; then
28101 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28102 else
28103 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28104 fi
28105 # Put the nasty error message in config.log where it belongs
28106 echo "$LQR_PKG_ERRORS" >&5
28107
cristy8b350f62009-11-15 23:12:43 +000028108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo "no" >&6; }
28110 have_lqr=no
28111elif test $pkg_failed = untried; then
28112 have_lqr=no
28113else
28114 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28115 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028117$as_echo "yes" >&6; }
28118 have_lqr=yes
28119fi
cristy8b350f62009-11-15 23:12:43 +000028120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028121$as_echo "" >&6; }
28122fi
28123
28124if test "$have_lqr" = 'yes'; then
28125
cristy8b350f62009-11-15 23:12:43 +000028126$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028127
28128 CFLAGS="$LQR_CFLAGS $CFLAGS"
28129fi
28130
28131 if test "$have_lqr" = 'yes'; then
28132 LQR_DELEGATE_TRUE=
28133 LQR_DELEGATE_FALSE='#'
28134else
28135 LQR_DELEGATE_TRUE='#'
28136 LQR_DELEGATE_FALSE=
28137fi
28138
28139
28140
28141
28142
28143#
28144# Check for the OpenEXR delegate library.
28145#
28146
28147# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028148if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028149 withval=$with_openexr; with_openexr=$withval
28150else
28151 with_openexr='yes'
28152fi
28153
28154
28155if test "$with_openexr" != 'yes'; then
28156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28157fi
28158
28159have_openexr='no'
28160OPENEXR_CFLAGS=""
28161OPENEXR_LIBS=""
28162OPENEXR_PKG=""
28163if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028165$as_echo "-------------------------------------------------------------" >&6; }
28166
28167pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028169$as_echo_n "checking for OPENEXR... " >&6; }
28170
28171if test -n "$OPENEXR_CFLAGS"; then
28172 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28173 elif test -n "$PKG_CONFIG"; then
28174 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028176 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28177 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28179 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028180 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28181else
28182 pkg_failed=yes
28183fi
28184 else
28185 pkg_failed=untried
28186fi
28187if test -n "$OPENEXR_LIBS"; then
28188 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28189 elif test -n "$PKG_CONFIG"; then
28190 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028192 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28193 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28195 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028196 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28197else
28198 pkg_failed=yes
28199fi
28200 else
28201 pkg_failed=untried
28202fi
28203
28204
28205
28206if test $pkg_failed = yes; then
28207
28208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28209 _pkg_short_errors_supported=yes
28210else
28211 _pkg_short_errors_supported=no
28212fi
28213 if test $_pkg_short_errors_supported = yes; then
28214 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28215 else
28216 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28217 fi
28218 # Put the nasty error message in config.log where it belongs
28219 echo "$OPENEXR_PKG_ERRORS" >&5
28220
cristy8b350f62009-11-15 23:12:43 +000028221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028222$as_echo "no" >&6; }
28223 have_openexr=no
28224elif test $pkg_failed = untried; then
28225 have_openexr=no
28226else
28227 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28228 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028230$as_echo "yes" >&6; }
28231 have_openexr=yes
28232fi
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo "" >&6; }
28235fi
28236
28237if test "$have_openexr" = 'yes'; then
28238
cristy8b350f62009-11-15 23:12:43 +000028239$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028240
28241 if test "$with_modules" = 'no'; then
28242 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28243 fi
28244fi
28245
28246 if test "$have_openexr" = 'yes'; then
28247 OPENEXR_DELEGATE_TRUE=
28248 OPENEXR_DELEGATE_FALSE='#'
28249else
28250 OPENEXR_DELEGATE_TRUE='#'
28251 OPENEXR_DELEGATE_FALSE=
28252fi
28253
28254
28255
28256
28257
28258#
28259# Check for PNG delegate library.
28260#
28261
28262# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028263if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028264 withval=$with_png; with_png=$withval
28265else
28266 with_png='yes'
28267fi
28268
28269
28270if test "$with_png" != 'yes'; then
28271 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28272fi
28273
28274have_png='no'
28275PNG_LIBS=''
28276if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028278$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028280$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo "" >&6; }
28283 failed=0
28284 passed=0
cristy8b350f62009-11-15 23:12:43 +000028285 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28286if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028287 passed=`expr $passed + 1`
28288else
28289 failed=`expr $failed + 1`
28290fi
28291
28292
cristy8b350f62009-11-15 23:12:43 +000028293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028294$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028295if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028296 $as_echo_n "(cached) " >&6
28297else
28298 ac_check_lib_save_LIBS=$LIBS
28299LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028301/* end confdefs.h. */
28302
28303/* Override any GCC internal prototype to avoid an error.
28304 Use char because int might match the return type of a GCC
28305 builtin and then its argument prototype would still apply. */
28306#ifdef __cplusplus
28307extern "C"
28308#endif
28309char png_get_io_ptr ();
28310int
28311main ()
28312{
28313return png_get_io_ptr ();
28314 ;
28315 return 0;
28316}
28317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028319 ac_cv_lib_png_png_get_io_ptr=yes
28320else
cristy8b350f62009-11-15 23:12:43 +000028321 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028322fi
cristy8b350f62009-11-15 23:12:43 +000028323rm -f core conftest.err conftest.$ac_objext \
28324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028325LIBS=$ac_check_lib_save_LIBS
28326fi
cristy8b350f62009-11-15 23:12:43 +000028327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028328$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028329if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028330 passed=`expr $passed + 1`
28331else
28332 failed=`expr $failed + 1`
28333fi
28334
cristy8b350f62009-11-15 23:12:43 +000028335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028336$as_echo_n "checking if PNG package is complete... " >&6; }
28337 if test $passed -gt 0; then
28338 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028340$as_echo "no -- some components failed test" >&6; }
28341 have_png='no (failed tests)'
28342 else
28343 PNG_LIBS='-lpng'
28344 LIBS="$PNG_LIBS $LIBS"
28345
cristy8b350f62009-11-15 23:12:43 +000028346$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028347
cristy8b350f62009-11-15 23:12:43 +000028348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028349$as_echo "yes" >&6; }
28350 have_png='yes'
28351 fi
28352 else
cristy8b350f62009-11-15 23:12:43 +000028353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028354$as_echo "no" >&6; }
28355 fi
28356fi
28357 if test "$have_png" = 'yes'; then
28358 PNG_DELEGATE_TRUE=
28359 PNG_DELEGATE_FALSE='#'
28360else
28361 PNG_DELEGATE_TRUE='#'
28362 PNG_DELEGATE_FALSE=
28363fi
28364
28365
28366
28367
28368#
28369# Check for RSVG delegate library.
28370#
28371
28372# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028373if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 withval=$with_rsvg; with_rsvg=$withval
28375else
28376 with_rsvg=$have_x
28377fi
28378
28379
28380if test "$with_rsvg" != 'yes'; then
28381 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28382fi
28383
28384have_rsvg='no'
28385have_cairo='no'
28386RSVG_CFLAGS=""
28387RSVG_LIBS=""
28388RSVG_PKG=""
28389if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo "-------------------------------------------------------------" >&6; }
28392
28393pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028395$as_echo_n "checking for RSVG... " >&6; }
28396
28397if test -n "$RSVG_CFLAGS"; then
28398 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28399 elif test -n "$PKG_CONFIG"; then
28400 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028401 { { $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 +000028402 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28403 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28405 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028406 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28407else
28408 pkg_failed=yes
28409fi
28410 else
28411 pkg_failed=untried
28412fi
28413if test -n "$RSVG_LIBS"; then
28414 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28415 elif test -n "$PKG_CONFIG"; then
28416 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028417 { { $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 +000028418 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28419 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28421 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028422 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28423else
28424 pkg_failed=yes
28425fi
28426 else
28427 pkg_failed=untried
28428fi
28429
28430
28431
28432if test $pkg_failed = yes; then
28433
28434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28435 _pkg_short_errors_supported=yes
28436else
28437 _pkg_short_errors_supported=no
28438fi
28439 if test $_pkg_short_errors_supported = yes; then
28440 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28441 else
28442 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28443 fi
28444 # Put the nasty error message in config.log where it belongs
28445 echo "$RSVG_PKG_ERRORS" >&5
28446
cristy8b350f62009-11-15 23:12:43 +000028447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo "no" >&6; }
28449 have_rsvg=no
28450elif test $pkg_failed = untried; then
28451 have_rsvg=no
28452else
28453 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28454 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028456$as_echo "yes" >&6; }
28457 have_rsvg=yes
28458fi
cristy8b350f62009-11-15 23:12:43 +000028459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028460$as_echo "" >&6; }
28461
28462pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028464$as_echo_n "checking for CAIRO_SVG... " >&6; }
28465
28466if test -n "$CAIRO_SVG_CFLAGS"; then
28467 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28468 elif test -n "$PKG_CONFIG"; then
28469 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028471 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28472 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28474 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028475 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28476else
28477 pkg_failed=yes
28478fi
28479 else
28480 pkg_failed=untried
28481fi
28482if test -n "$CAIRO_SVG_LIBS"; then
28483 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28484 elif test -n "$PKG_CONFIG"; then
28485 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028487 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28488 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28490 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028491 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28492else
28493 pkg_failed=yes
28494fi
28495 else
28496 pkg_failed=untried
28497fi
28498
28499
28500
28501if test $pkg_failed = yes; then
28502
28503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28504 _pkg_short_errors_supported=yes
28505else
28506 _pkg_short_errors_supported=no
28507fi
28508 if test $_pkg_short_errors_supported = yes; then
28509 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28510 else
28511 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28512 fi
28513 # Put the nasty error message in config.log where it belongs
28514 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28515
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo "no" >&6; }
28518 have_cairo=no
28519elif test $pkg_failed = untried; then
28520 have_cairo=no
28521else
28522 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28523 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028525$as_echo "yes" >&6; }
28526 have_cairo=yes
28527fi
cristy8b350f62009-11-15 23:12:43 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028529$as_echo "" >&6; }
28530fi
28531
28532if test "$have_rsvg" = 'yes'; then
28533
cristy8b350f62009-11-15 23:12:43 +000028534$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028535
28536 if test "$with_modules" = 'no'; then
28537 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28538 fi
28539fi
28540
28541if test "$have_cairo" = 'yes'; then
28542
cristy8b350f62009-11-15 23:12:43 +000028543$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028544
28545 if test "$with_modules" = 'no'; then
28546 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28547 fi
28548fi
28549
28550 if test "$have_rsvg" = 'yes'; then
28551 RSVG_DELEGATE_TRUE=
28552 RSVG_DELEGATE_FALSE='#'
28553else
28554 RSVG_DELEGATE_TRUE='#'
28555 RSVG_DELEGATE_FALSE=
28556fi
28557
28558 if test "$have_cairo" = 'yes'; then
28559 CAIRO_DELEGATE_TRUE=
28560 CAIRO_DELEGATE_FALSE='#'
28561else
28562 CAIRO_DELEGATE_TRUE='#'
28563 CAIRO_DELEGATE_FALSE=
28564fi
28565
28566
28567
28568
28569
28570#
28571# Check for TIFF delegate library.
28572#
28573
28574# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028575if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028576 withval=$with_tiff; with_tiff=$withval
28577else
28578 with_tiff='yes'
28579fi
28580
28581
28582if test "$with_tiff" != 'yes'; then
28583 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28584fi
28585
28586have_tiff='no'
28587TIFF_LIBS=''
28588if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028590$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028592$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028594$as_echo "" >&6; }
28595 failed=0
28596 passed=0
cristy8b350f62009-11-15 23:12:43 +000028597 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28598if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028599 passed=`expr $passed + 1`
28600else
28601 failed=`expr $failed + 1`
28602fi
28603
28604
cristy8b350f62009-11-15 23:12:43 +000028605 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28606if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028607 passed=`expr $passed + 1`
28608else
28609 failed=`expr $failed + 1`
28610fi
28611
28612
cristy8b350f62009-11-15 23:12:43 +000028613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028614$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028615if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028616 $as_echo_n "(cached) " >&6
28617else
28618 ac_check_lib_save_LIBS=$LIBS
28619LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028621/* end confdefs.h. */
28622
28623/* Override any GCC internal prototype to avoid an error.
28624 Use char because int might match the return type of a GCC
28625 builtin and then its argument prototype would still apply. */
28626#ifdef __cplusplus
28627extern "C"
28628#endif
28629char TIFFOpen ();
28630int
28631main ()
28632{
28633return TIFFOpen ();
28634 ;
28635 return 0;
28636}
28637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028639 ac_cv_lib_tiff_TIFFOpen=yes
28640else
cristy8b350f62009-11-15 23:12:43 +000028641 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028642fi
cristy8b350f62009-11-15 23:12:43 +000028643rm -f core conftest.err conftest.$ac_objext \
28644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028645LIBS=$ac_check_lib_save_LIBS
28646fi
cristy8b350f62009-11-15 23:12:43 +000028647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028648$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028649if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028650 passed=`expr $passed + 1`
28651else
28652 failed=`expr $failed + 1`
28653fi
28654
cristy8b350f62009-11-15 23:12:43 +000028655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028656$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028657if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028658 $as_echo_n "(cached) " >&6
28659else
28660 ac_check_lib_save_LIBS=$LIBS
28661LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028663/* end confdefs.h. */
28664
28665/* Override any GCC internal prototype to avoid an error.
28666 Use char because int might match the return type of a GCC
28667 builtin and then its argument prototype would still apply. */
28668#ifdef __cplusplus
28669extern "C"
28670#endif
28671char TIFFClientOpen ();
28672int
28673main ()
28674{
28675return TIFFClientOpen ();
28676 ;
28677 return 0;
28678}
28679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028681 ac_cv_lib_tiff_TIFFClientOpen=yes
28682else
cristy8b350f62009-11-15 23:12:43 +000028683 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028684fi
cristy8b350f62009-11-15 23:12:43 +000028685rm -f core conftest.err conftest.$ac_objext \
28686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028687LIBS=$ac_check_lib_save_LIBS
28688fi
cristy8b350f62009-11-15 23:12:43 +000028689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028690$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028691if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028692 passed=`expr $passed + 1`
28693else
28694 failed=`expr $failed + 1`
28695fi
28696
cristy8b350f62009-11-15 23:12:43 +000028697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028698$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028699if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028700 $as_echo_n "(cached) " >&6
28701else
28702 ac_check_lib_save_LIBS=$LIBS
28703LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028705/* end confdefs.h. */
28706
28707/* Override any GCC internal prototype to avoid an error.
28708 Use char because int might match the return type of a GCC
28709 builtin and then its argument prototype would still apply. */
28710#ifdef __cplusplus
28711extern "C"
28712#endif
28713char TIFFIsByteSwapped ();
28714int
28715main ()
28716{
28717return TIFFIsByteSwapped ();
28718 ;
28719 return 0;
28720}
28721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028722if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028723 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28724else
cristy8b350f62009-11-15 23:12:43 +000028725 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028726fi
cristy8b350f62009-11-15 23:12:43 +000028727rm -f core conftest.err conftest.$ac_objext \
28728 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028729LIBS=$ac_check_lib_save_LIBS
28730fi
cristy8b350f62009-11-15 23:12:43 +000028731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028733if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028734 passed=`expr $passed + 1`
28735else
28736 failed=`expr $failed + 1`
28737fi
28738
cristy8b350f62009-11-15 23:12:43 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028740$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028741if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028742 $as_echo_n "(cached) " >&6
28743else
28744 ac_check_lib_save_LIBS=$LIBS
28745LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028747/* end confdefs.h. */
28748
28749/* Override any GCC internal prototype to avoid an error.
28750 Use char because int might match the return type of a GCC
28751 builtin and then its argument prototype would still apply. */
28752#ifdef __cplusplus
28753extern "C"
28754#endif
28755char TIFFReadRGBATile ();
28756int
28757main ()
28758{
28759return TIFFReadRGBATile ();
28760 ;
28761 return 0;
28762}
28763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028765 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28766else
cristy8b350f62009-11-15 23:12:43 +000028767 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028768fi
cristy8b350f62009-11-15 23:12:43 +000028769rm -f core conftest.err conftest.$ac_objext \
28770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028771LIBS=$ac_check_lib_save_LIBS
28772fi
cristy8b350f62009-11-15 23:12:43 +000028773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028774$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028775if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028776 passed=`expr $passed + 1`
28777else
28778 failed=`expr $failed + 1`
28779fi
28780
cristy8b350f62009-11-15 23:12:43 +000028781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028782$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028783if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028784 $as_echo_n "(cached) " >&6
28785else
28786 ac_check_lib_save_LIBS=$LIBS
28787LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028789/* end confdefs.h. */
28790
28791/* Override any GCC internal prototype to avoid an error.
28792 Use char because int might match the return type of a GCC
28793 builtin and then its argument prototype would still apply. */
28794#ifdef __cplusplus
28795extern "C"
28796#endif
28797char TIFFReadRGBAStrip ();
28798int
28799main ()
28800{
28801return TIFFReadRGBAStrip ();
28802 ;
28803 return 0;
28804}
28805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028807 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28808else
cristy8b350f62009-11-15 23:12:43 +000028809 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028810fi
cristy8b350f62009-11-15 23:12:43 +000028811rm -f core conftest.err conftest.$ac_objext \
28812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028813LIBS=$ac_check_lib_save_LIBS
28814fi
cristy8b350f62009-11-15 23:12:43 +000028815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028816$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028817if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028818 passed=`expr $passed + 1`
28819else
28820 failed=`expr $failed + 1`
28821fi
28822
cristy8b350f62009-11-15 23:12:43 +000028823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028824$as_echo_n "checking if TIFF package is complete... " >&6; }
28825 if test $passed -gt 0; then
28826 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028828$as_echo "no -- some components failed test" >&6; }
28829 have_tiff='no (failed tests)'
28830 else
28831 TIFF_LIBS='-ltiff'
28832 LIBS="$TIFF_LIBS $LIBS"
28833
cristy8b350f62009-11-15 23:12:43 +000028834$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028835
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo "yes" >&6; }
28838 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028839 for ac_header in tiffconf.h
28840do :
28841 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28842if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028843 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028844#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028845_ACEOF
28846
28847fi
28848
28849done
28850
cristy8b350f62009-11-15 23:12:43 +000028851 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028852 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28853 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028854do :
28855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28856ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28857eval as_val=\$$as_ac_var
28858 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028859 cat >>confdefs.h <<_ACEOF
28860#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28861_ACEOF
28862
28863fi
28864done
28865
28866 fi
28867 else
cristy8b350f62009-11-15 23:12:43 +000028868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028869$as_echo "no" >&6; }
28870 fi
28871fi
28872 if test "$have_tiff" = 'yes'; then
28873 TIFF_DELEGATE_TRUE=
28874 TIFF_DELEGATE_FALSE='#'
28875else
28876 TIFF_DELEGATE_TRUE='#'
28877 TIFF_DELEGATE_FALSE=
28878fi
28879
28880
28881
28882
28883#
28884# Set Windows font directory.
28885#
28886
28887# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028888if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028889 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28890else
28891 with_windows_font_dir=''
28892fi
28893
28894if test "$with_windows_font_dir" != '' ; then
28895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28896fi
28897
28898
28899#
28900# Check for WMF delegate library.
28901#
28902
28903# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028904if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028905 withval=$with_wmf; with_wmf=$withval
28906else
cristy8d63d1d2010-01-06 20:38:37 +000028907 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028908fi
28909
28910
28911if test "$with_wmf" != 'yes'; then
28912 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28913fi
28914
28915have_wmf='no'
28916WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000028917if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028919$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028921$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028923$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000028924 failed=0
28925 passed=0
28926 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
28927if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
28928 passed=`expr $passed + 1`
28929else
28930 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028931fi
28932
28933
cristy735e8942010-04-02 20:32:57 +000028934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
28935$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
28936if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028937 $as_echo_n "(cached) " >&6
28938else
28939 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000028940LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028942/* end confdefs.h. */
28943
28944/* Override any GCC internal prototype to avoid an error.
28945 Use char because int might match the return type of a GCC
28946 builtin and then its argument prototype would still apply. */
28947#ifdef __cplusplus
28948extern "C"
28949#endif
cristy735e8942010-04-02 20:32:57 +000028950char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000028951int
28952main ()
28953{
cristy735e8942010-04-02 20:32:57 +000028954return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000028955 ;
28956 return 0;
28957}
28958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028959if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000028960 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000028961else
cristy735e8942010-04-02 20:32:57 +000028962 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000028963fi
cristy8b350f62009-11-15 23:12:43 +000028964rm -f core conftest.err conftest.$ac_objext \
28965 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028966LIBS=$ac_check_lib_save_LIBS
28967fi
cristy735e8942010-04-02 20:32:57 +000028968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
28969$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
28970if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
28971 passed=`expr $passed + 1`
28972else
28973 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028974fi
28975
cristy735e8942010-04-02 20:32:57 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
28977$as_echo_n "checking if WMF package is complete... " >&6; }
28978 if test $passed -gt 0; then
28979 if test $failed -gt 0; then
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28981$as_echo "no -- some components failed test" >&6; }
28982 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000028983 else
cristy735e8942010-04-02 20:32:57 +000028984 WMF_LIBS='-lwmf -lwmflite'
28985 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028986
cristy8b350f62009-11-15 23:12:43 +000028987$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028988
cristy735e8942010-04-02 20:32:57 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028990$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000028991 have_wmf='yes'
28992 fi
cristy3ed852e2009-09-05 21:47:34 +000028993 else
cristy8b350f62009-11-15 23:12:43 +000028994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028995$as_echo "no" >&6; }
28996 fi
28997fi
28998 if test "$have_wmf" = 'yes'; then
28999 WMF_DELEGATE_TRUE=
29000 WMF_DELEGATE_FALSE='#'
29001else
29002 WMF_DELEGATE_TRUE='#'
29003 WMF_DELEGATE_FALSE=
29004fi
29005
29006
29007
29008
29009
cristy735e8942010-04-02 20:32:57 +000029010
cristy3ed852e2009-09-05 21:47:34 +000029011#
29012# Check for XML delegate library.
29013#
29014
29015# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029016if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029017 withval=$with_xml; with_xml=$withval
29018else
29019 with_xml=$have_x
29020fi
29021
29022
29023if test "$with_xml" != 'yes' ; then
29024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29025fi
29026
29027have_xml='no'
29028XML_LIBS=''
29029if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029031$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029033$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029035$as_echo "" >&6; }
29036 PERSIST_LDFLAGS=$LDFLAGS
29037 PERSIST_CPPFLAGS=$CPPFLAGS
29038 xml2_config=''
29039 for ac_prog in xml2-config
29040do
29041 # Extract the first word of "$ac_prog", so it can be a program name with args.
29042set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029044$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029045if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029046 $as_echo_n "(cached) " >&6
29047else
29048 if test -n "$xml2_config"; then
29049 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29050else
29051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29052for as_dir in $PATH
29053do
29054 IFS=$as_save_IFS
29055 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029056 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29058 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029060 break 2
29061 fi
29062done
cristy8b350f62009-11-15 23:12:43 +000029063 done
cristy3ed852e2009-09-05 21:47:34 +000029064IFS=$as_save_IFS
29065
29066fi
29067fi
29068xml2_config=$ac_cv_prog_xml2_config
29069if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029071$as_echo "$xml2_config" >&6; }
29072else
cristy8b350f62009-11-15 23:12:43 +000029073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029074$as_echo "no" >&6; }
29075fi
29076
29077
29078 test -n "$xml2_config" && break
29079done
29080 if test -n "$xml2_config"; then
29081 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29082 # the shared library installed under /usr/lib, whereas the package
29083 # installs itself under $prefix/libxml and $prefix/lib.
29084 xml2_prefix=`xml2-config --prefix`
29085 if test -d "${xml2_prefix}/include/libxml2"; then
29086 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29087 fi
29088 if test "${xml2_prefix}" != '/usr'; then
29089 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29090 fi
29091 fi
29092 failed=0
29093 passed=0
cristy8b350f62009-11-15 23:12:43 +000029094 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29095if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029096 passed=`expr $passed + 1`
29097else
29098 failed=`expr $failed + 1`
29099fi
29100
29101
cristy8b350f62009-11-15 23:12:43 +000029102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029103$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029104if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029105 $as_echo_n "(cached) " >&6
29106else
29107 ac_check_lib_save_LIBS=$LIBS
29108LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029110/* end confdefs.h. */
29111
29112/* Override any GCC internal prototype to avoid an error.
29113 Use char because int might match the return type of a GCC
29114 builtin and then its argument prototype would still apply. */
29115#ifdef __cplusplus
29116extern "C"
29117#endif
29118char xmlParseExternalEntity ();
29119int
29120main ()
29121{
29122return xmlParseExternalEntity ();
29123 ;
29124 return 0;
29125}
29126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029128 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29129else
cristy8b350f62009-11-15 23:12:43 +000029130 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029131fi
cristy8b350f62009-11-15 23:12:43 +000029132rm -f core conftest.err conftest.$ac_objext \
29133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029134LIBS=$ac_check_lib_save_LIBS
29135fi
cristy8b350f62009-11-15 23:12:43 +000029136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029137$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029138if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029139 passed=`expr $passed + 1`
29140else
29141 failed=`expr $failed + 1`
29142fi
29143
cristy8b350f62009-11-15 23:12:43 +000029144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029145$as_echo_n "checking if XML package is complete... " >&6; }
29146 if test $passed -gt 0; then
29147 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029149$as_echo "no -- some components failed test" >&6; }
29150 have_xml='no (failed tests)'
29151 LDFLAGS="$PERSIST_LDFLAGS"
29152 CPPFLAGS="$PERSIST_CPPFLAGS"
29153 else
29154 XML_LIBS='-lxml2'
29155 LIBS="$XML_LIBS $LIBS"
29156
cristy8b350f62009-11-15 23:12:43 +000029157$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029158
cristy8b350f62009-11-15 23:12:43 +000029159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029160$as_echo "yes" >&6; }
29161 have_xml='yes'
29162 fi
29163 else
cristy8b350f62009-11-15 23:12:43 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "no" >&6; }
29166 fi
29167fi
29168 if test "$have_xml" = 'yes'; then
29169 XML_DELEGATE_TRUE=
29170 XML_DELEGATE_FALSE='#'
29171else
29172 XML_DELEGATE_TRUE='#'
29173 XML_DELEGATE_FALSE=
29174fi
29175
29176
29177
29178
29179# Substitute compiler name to build/link PerlMagick
29180#
29181
29182
29183#
29184# Configure install Paths
29185#
29186
29187# Subdirectory under lib to place ImageMagick lib files
29188LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29189
29190cat >>confdefs.h <<_ACEOF
29191#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29192_ACEOF
29193
29194
29195# Path to ImageMagick bin directory
29196EXECUTABLE_PATH="${BIN_DIR}"
29197DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29198case "${build_os}" in
29199 mingw* )
29200 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29201 ;;
29202esac
29203
29204cat >>confdefs.h <<_ACEOF
29205#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29206_ACEOF
29207
29208
29209
29210# Path to ImageMagick lib
29211LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29212DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29213case "${build_os}" in
29214 mingw* )
29215 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29216 ;;
29217esac
29218
29219cat >>confdefs.h <<_ACEOF
29220#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29221_ACEOF
29222
29223
29224
29225# Subdirectory under lib to place ImageMagick configuration files
29226CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29227
29228cat >>confdefs.h <<_ACEOF
29229#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29230_ACEOF
29231
29232CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29233DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29234case "${build_os}" in
29235 mingw* )
29236 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29237 ;;
29238esac
29239
29240cat >>confdefs.h <<_ACEOF
29241#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29242_ACEOF
29243
29244
29245
29246#
29247# Subdirectory under lib to place ImageMagick coder module files
29248CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29249
29250cat >>confdefs.h <<_ACEOF
29251#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29252_ACEOF
29253
29254CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29255DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29256case "${build_os}" in
29257 mingw* )
29258 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29259 ;;
29260esac
29261
29262cat >>confdefs.h <<_ACEOF
29263#define CODER_PATH "$DEFINE_CODER_PATH"
29264_ACEOF
29265
29266
29267
29268#
29269# Subdirectory under lib to place ImageMagick filter module files
29270FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29271
29272cat >>confdefs.h <<_ACEOF
29273#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29274_ACEOF
29275
29276FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29277DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29278case "${build_os}" in
29279 mingw* )
29280 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29281 ;;
29282esac
29283
29284cat >>confdefs.h <<_ACEOF
29285#define FILTER_PATH "$DEFINE_FILTER_PATH"
29286_ACEOF
29287
29288
29289
29290#
29291# Path to ImageMagick documentation files
29292DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29293DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29294DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29295case "${build_os}" in
29296 mingw* )
29297 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29298 ;;
29299esac
29300
29301cat >>confdefs.h <<_ACEOF
29302#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29303_ACEOF
29304
29305
29306
29307#
29308# Path to ImageMagick share files
29309SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29310SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29311DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29312case "${build_os}" in
29313 mingw* )
29314 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29315 ;;
29316esac
29317
29318cat >>confdefs.h <<_ACEOF
29319#define SHARE_PATH "$DEFINE_SHARE_PATH"
29320_ACEOF
29321
29322
29323
29324# Subdirectory under share to place ImageMagick configuration files
29325SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29326
29327cat >>confdefs.h <<_ACEOF
29328#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29329_ACEOF
29330
29331SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29332DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29333case "${build_os}" in
29334 mingw* )
29335 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29336 ;;
29337esac
29338
29339cat >>confdefs.h <<_ACEOF
29340#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29341_ACEOF
29342
29343
29344
29345#
29346# program_transform_name is formed for use in a Makefile, so create a
29347# modified version for use in a shell script.
29348configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29349
29350# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029352$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029354$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029356$as_echo "" >&6; }
29357AutotraceDecodeDelegateDefault='autotrace'
29358AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029359BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029360BZIPDelegateDefault='bzip2'
29361BrowseDelegateDefault='xdg-open'
29362CGMDecodeDelegateDefault='ralcgm'
29363CatDelegateDefault='cat'
29364DNGDecodeDelegateDefault='ufraw-batch'
29365GVCDecodeDelegateDefault='dot'
29366DVIDecodeDelegateDefault='dvips'
29367EchoDelegateDefault='echo'
29368EditorDelegateDefault='xterm'
29369FIGDecodeDelegateDefault='fig2dev'
29370ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29371DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29372MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29373GnuplotDecodeDelegateDefault='gnuplot'
29374HDRDecodeDelegateDefault='ra_pfm'
29375HPGLDecodeDelegateDefault='hp2xx'
29376HTMLDecodeDelegateDefault='html2ps'
29377ILBMDecodeDelegateDefault='ilbmtoppm'
29378ILBMEncodeDelegateDefault='ppmtoilbm'
29379LPDelegateDefault='lp'
29380LPRDelegateDefault='lpr'
29381LZWDecodeDelegateDefault='uncompress'
29382LZWEncodeDelegateDefault='compress'
29383LaunchDelegateDefault='gimp'
29384MANDelegateDefault='groff'
29385MPEGDecodeDelegateDefault='ffmpeg'
29386MPEGEncodeDelegateDefault='ffmpeg'
29387MVDelegateDefault='mv'
29388PCLDelegateDefault='pcl6'
29389PGPDecodeDelegateDefault='pgpv'
29390POVDelegateDefault='povray'
29391if test "$native_win32_build" = 'yes'; then
29392 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029393elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029394 PSDelegateDefault='gsc'
29395else
29396 PSDelegateDefault='gs'
29397fi
29398RLEEncodeDelegateDefault='rawtorle'
29399RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029400RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029401SCANDecodeDelegateDefault='scanimage'
29402TXTDelegateDefault='enscript'
29403WMFDecodeDelegateDefault='wmf2eps'
29404WWWDecodeDelegateDefault='curl'
29405XPSDelegateDefault='gxps'
29406ZipDelegateDefault='gzip'
29407
29408# Search for delegates
29409# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29410set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029412$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029413if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029414 $as_echo_n "(cached) " >&6
29415else
29416 case $AutotraceDecodeDelegate in
29417 [\\/]* | ?:[\\/]*)
29418 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29419 ;;
29420 *)
29421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29422for as_dir in $PATH
29423do
29424 IFS=$as_save_IFS
29425 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029426 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29428 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029430 break 2
29431 fi
29432done
cristy8b350f62009-11-15 23:12:43 +000029433 done
cristy3ed852e2009-09-05 21:47:34 +000029434IFS=$as_save_IFS
29435
29436 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29437 ;;
29438esac
29439fi
29440AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29441if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029443$as_echo "$AutotraceDecodeDelegate" >&6; }
29444else
cristy8b350f62009-11-15 23:12:43 +000029445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029446$as_echo "no" >&6; }
29447fi
29448
29449
29450# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29451set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029453$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029454if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029455 $as_echo_n "(cached) " >&6
29456else
29457 case $AVIDecodeDelegate in
29458 [\\/]* | ?:[\\/]*)
29459 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29460 ;;
29461 *)
29462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29463for as_dir in $PATH
29464do
29465 IFS=$as_save_IFS
29466 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29469 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029471 break 2
29472 fi
29473done
cristy8b350f62009-11-15 23:12:43 +000029474 done
cristy3ed852e2009-09-05 21:47:34 +000029475IFS=$as_save_IFS
29476
29477 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29478 ;;
29479esac
29480fi
29481AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29482if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029484$as_echo "$AVIDecodeDelegate" >&6; }
29485else
cristy8b350f62009-11-15 23:12:43 +000029486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029487$as_echo "no" >&6; }
29488fi
29489
29490
29491# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29492set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029494$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029495if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029496 $as_echo_n "(cached) " >&6
29497else
29498 case $BlenderDecodeDelegate in
29499 [\\/]* | ?:[\\/]*)
29500 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29501 ;;
29502 *)
29503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29504for as_dir in $PATH
29505do
29506 IFS=$as_save_IFS
29507 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029508 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29510 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029512 break 2
29513 fi
29514done
cristy8b350f62009-11-15 23:12:43 +000029515 done
cristy3ed852e2009-09-05 21:47:34 +000029516IFS=$as_save_IFS
29517
29518 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29519 ;;
29520esac
29521fi
29522BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29523if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029525$as_echo "$BlenderDecodeDelegate" >&6; }
29526else
cristy8b350f62009-11-15 23:12:43 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029528$as_echo "no" >&6; }
29529fi
29530
29531
29532# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29533set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029535$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029536if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029537 $as_echo_n "(cached) " >&6
29538else
29539 case $BZIPDelegate in
29540 [\\/]* | ?:[\\/]*)
29541 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29542 ;;
29543 *)
29544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29545for as_dir in $PATH
29546do
29547 IFS=$as_save_IFS
29548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29551 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029553 break 2
29554 fi
29555done
cristy8b350f62009-11-15 23:12:43 +000029556 done
cristy3ed852e2009-09-05 21:47:34 +000029557IFS=$as_save_IFS
29558
29559 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29560 ;;
29561esac
29562fi
29563BZIPDelegate=$ac_cv_path_BZIPDelegate
29564if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029566$as_echo "$BZIPDelegate" >&6; }
29567else
cristy8b350f62009-11-15 23:12:43 +000029568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029569$as_echo "no" >&6; }
29570fi
29571
29572
29573# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29574set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029576$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029577if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029578 $as_echo_n "(cached) " >&6
29579else
29580 case $BrowseDelegate in
29581 [\\/]* | ?:[\\/]*)
29582 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29583 ;;
29584 *)
29585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29586for as_dir in $PATH
29587do
29588 IFS=$as_save_IFS
29589 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029590 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29592 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029594 break 2
29595 fi
29596done
cristy8b350f62009-11-15 23:12:43 +000029597 done
cristy3ed852e2009-09-05 21:47:34 +000029598IFS=$as_save_IFS
29599
29600 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29601 ;;
29602esac
29603fi
29604BrowseDelegate=$ac_cv_path_BrowseDelegate
29605if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029607$as_echo "$BrowseDelegate" >&6; }
29608else
cristy8b350f62009-11-15 23:12:43 +000029609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029610$as_echo "no" >&6; }
29611fi
29612
29613
29614# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29615set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029617$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029618if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029619 $as_echo_n "(cached) " >&6
29620else
29621 case $CGMDecodeDelegate in
29622 [\\/]* | ?:[\\/]*)
29623 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29624 ;;
29625 *)
29626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29627for as_dir in $PATH
29628do
29629 IFS=$as_save_IFS
29630 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029631 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29633 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029635 break 2
29636 fi
29637done
cristy8b350f62009-11-15 23:12:43 +000029638 done
cristy3ed852e2009-09-05 21:47:34 +000029639IFS=$as_save_IFS
29640
29641 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29642 ;;
29643esac
29644fi
29645CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29646if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029648$as_echo "$CGMDecodeDelegate" >&6; }
29649else
cristy8b350f62009-11-15 23:12:43 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029651$as_echo "no" >&6; }
29652fi
29653
29654
29655# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29656set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029659if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029660 $as_echo_n "(cached) " >&6
29661else
29662 case $CatDelegate in
29663 [\\/]* | ?:[\\/]*)
29664 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29665 ;;
29666 *)
29667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29668for as_dir in $PATH
29669do
29670 IFS=$as_save_IFS
29671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29674 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029676 break 2
29677 fi
29678done
cristy8b350f62009-11-15 23:12:43 +000029679 done
cristy3ed852e2009-09-05 21:47:34 +000029680IFS=$as_save_IFS
29681
29682 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29683 ;;
29684esac
29685fi
29686CatDelegate=$ac_cv_path_CatDelegate
29687if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029689$as_echo "$CatDelegate" >&6; }
29690else
cristy8b350f62009-11-15 23:12:43 +000029691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029692$as_echo "no" >&6; }
29693fi
29694
29695
29696# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29697set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029699$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029700if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029701 $as_echo_n "(cached) " >&6
29702else
29703 case $DNGDecodeDelegate in
29704 [\\/]* | ?:[\\/]*)
29705 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29706 ;;
29707 *)
29708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29709for as_dir in $PATH
29710do
29711 IFS=$as_save_IFS
29712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29715 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029717 break 2
29718 fi
29719done
cristy8b350f62009-11-15 23:12:43 +000029720 done
cristy3ed852e2009-09-05 21:47:34 +000029721IFS=$as_save_IFS
29722
29723 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29724 ;;
29725esac
29726fi
29727DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29728if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029730$as_echo "$DNGDecodeDelegate" >&6; }
29731else
cristy8b350f62009-11-15 23:12:43 +000029732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029733$as_echo "no" >&6; }
29734fi
29735
29736
29737# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29738set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029740$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029741if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029742 $as_echo_n "(cached) " >&6
29743else
29744 case $GVCDecodeDelegate in
29745 [\\/]* | ?:[\\/]*)
29746 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29747 ;;
29748 *)
29749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29750for as_dir in $PATH
29751do
29752 IFS=$as_save_IFS
29753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29756 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029758 break 2
29759 fi
29760done
cristy8b350f62009-11-15 23:12:43 +000029761 done
cristy3ed852e2009-09-05 21:47:34 +000029762IFS=$as_save_IFS
29763
29764 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29765 ;;
29766esac
29767fi
29768GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29769if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029771$as_echo "$GVCDecodeDelegate" >&6; }
29772else
cristy8b350f62009-11-15 23:12:43 +000029773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029774$as_echo "no" >&6; }
29775fi
29776
29777
29778# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29779set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029782if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029783 $as_echo_n "(cached) " >&6
29784else
29785 case $DVIDecodeDelegate in
29786 [\\/]* | ?:[\\/]*)
29787 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29788 ;;
29789 *)
29790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29791for as_dir in $PATH
29792do
29793 IFS=$as_save_IFS
29794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29797 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029799 break 2
29800 fi
29801done
cristy8b350f62009-11-15 23:12:43 +000029802 done
cristy3ed852e2009-09-05 21:47:34 +000029803IFS=$as_save_IFS
29804
29805 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29806 ;;
29807esac
29808fi
29809DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29810if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812$as_echo "$DVIDecodeDelegate" >&6; }
29813else
cristy8b350f62009-11-15 23:12:43 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029815$as_echo "no" >&6; }
29816fi
29817
29818
29819# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29820set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029823if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029824 $as_echo_n "(cached) " >&6
29825else
29826 case $EchoDelegate in
29827 [\\/]* | ?:[\\/]*)
29828 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29829 ;;
29830 *)
29831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29832for as_dir in $PATH
29833do
29834 IFS=$as_save_IFS
29835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29838 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029840 break 2
29841 fi
29842done
cristy8b350f62009-11-15 23:12:43 +000029843 done
cristy3ed852e2009-09-05 21:47:34 +000029844IFS=$as_save_IFS
29845
29846 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29847 ;;
29848esac
29849fi
29850EchoDelegate=$ac_cv_path_EchoDelegate
29851if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029853$as_echo "$EchoDelegate" >&6; }
29854else
cristy8b350f62009-11-15 23:12:43 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856$as_echo "no" >&6; }
29857fi
29858
29859
29860# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29861set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029863$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029864if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029865 $as_echo_n "(cached) " >&6
29866else
29867 case $EditorDelegate in
29868 [\\/]* | ?:[\\/]*)
29869 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29870 ;;
29871 *)
29872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29873for as_dir in $PATH
29874do
29875 IFS=$as_save_IFS
29876 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29879 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029881 break 2
29882 fi
29883done
cristy8b350f62009-11-15 23:12:43 +000029884 done
cristy3ed852e2009-09-05 21:47:34 +000029885IFS=$as_save_IFS
29886
29887 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29888 ;;
29889esac
29890fi
29891EditorDelegate=$ac_cv_path_EditorDelegate
29892if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029894$as_echo "$EditorDelegate" >&6; }
29895else
cristy8b350f62009-11-15 23:12:43 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029897$as_echo "no" >&6; }
29898fi
29899
29900
29901# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29902set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029904$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029905if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029906 $as_echo_n "(cached) " >&6
29907else
29908 case $FIGDecodeDelegate in
29909 [\\/]* | ?:[\\/]*)
29910 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29911 ;;
29912 *)
29913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29914for as_dir in $PATH
29915do
29916 IFS=$as_save_IFS
29917 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29920 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029922 break 2
29923 fi
29924done
cristy8b350f62009-11-15 23:12:43 +000029925 done
cristy3ed852e2009-09-05 21:47:34 +000029926IFS=$as_save_IFS
29927
29928 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29929 ;;
29930esac
29931fi
29932FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29933if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935$as_echo "$FIGDecodeDelegate" >&6; }
29936else
cristy8b350f62009-11-15 23:12:43 +000029937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029938$as_echo "no" >&6; }
29939fi
29940
29941
29942# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29943set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029945$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029946if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029947 $as_echo_n "(cached) " >&6
29948else
29949 case $ConvertDelegate in
29950 [\\/]* | ?:[\\/]*)
29951 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29952 ;;
29953 *)
29954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29955for as_dir in $PATH
29956do
29957 IFS=$as_save_IFS
29958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29961 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029963 break 2
29964 fi
29965done
cristy8b350f62009-11-15 23:12:43 +000029966 done
cristy3ed852e2009-09-05 21:47:34 +000029967IFS=$as_save_IFS
29968
29969 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29970 ;;
29971esac
29972fi
29973ConvertDelegate=$ac_cv_path_ConvertDelegate
29974if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029976$as_echo "$ConvertDelegate" >&6; }
29977else
cristy8b350f62009-11-15 23:12:43 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029979$as_echo "no" >&6; }
29980fi
29981
29982
29983# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29984set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029986$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029987if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029988 $as_echo_n "(cached) " >&6
29989else
29990 case $DisplayDelegate in
29991 [\\/]* | ?:[\\/]*)
29992 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29993 ;;
29994 *)
29995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29996for as_dir in $PATH
29997do
29998 IFS=$as_save_IFS
29999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30002 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030004 break 2
30005 fi
30006done
cristy8b350f62009-11-15 23:12:43 +000030007 done
cristy3ed852e2009-09-05 21:47:34 +000030008IFS=$as_save_IFS
30009
30010 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30011 ;;
30012esac
30013fi
30014DisplayDelegate=$ac_cv_path_DisplayDelegate
30015if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030017$as_echo "$DisplayDelegate" >&6; }
30018else
cristy8b350f62009-11-15 23:12:43 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030020$as_echo "no" >&6; }
30021fi
30022
30023
30024# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30025set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030027$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030028if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030029 $as_echo_n "(cached) " >&6
30030else
30031 case $MogrifyDelegate in
30032 [\\/]* | ?:[\\/]*)
30033 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30034 ;;
30035 *)
30036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037for as_dir in $PATH
30038do
30039 IFS=$as_save_IFS
30040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30043 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045 break 2
30046 fi
30047done
cristy8b350f62009-11-15 23:12:43 +000030048 done
cristy3ed852e2009-09-05 21:47:34 +000030049IFS=$as_save_IFS
30050
30051 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30052 ;;
30053esac
30054fi
30055MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30056if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058$as_echo "$MogrifyDelegate" >&6; }
30059else
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo "no" >&6; }
30062fi
30063
30064
30065# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30066set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030068$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030069if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030070 $as_echo_n "(cached) " >&6
30071else
30072 case $GnuplotDecodeDelegate in
30073 [\\/]* | ?:[\\/]*)
30074 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30075 ;;
30076 *)
30077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30078for as_dir in $PATH
30079do
30080 IFS=$as_save_IFS
30081 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30084 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030086 break 2
30087 fi
30088done
cristy8b350f62009-11-15 23:12:43 +000030089 done
cristy3ed852e2009-09-05 21:47:34 +000030090IFS=$as_save_IFS
30091
30092 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30093 ;;
30094esac
30095fi
30096GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30097if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099$as_echo "$GnuplotDecodeDelegate" >&6; }
30100else
cristy8b350f62009-11-15 23:12:43 +000030101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030102$as_echo "no" >&6; }
30103fi
30104
30105
30106# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30107set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030109$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030110if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030111 $as_echo_n "(cached) " >&6
30112else
30113 case $HDRDecodeDelegate in
30114 [\\/]* | ?:[\\/]*)
30115 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30116 ;;
30117 *)
30118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30119for as_dir in $PATH
30120do
30121 IFS=$as_save_IFS
30122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30125 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030127 break 2
30128 fi
30129done
cristy8b350f62009-11-15 23:12:43 +000030130 done
cristy3ed852e2009-09-05 21:47:34 +000030131IFS=$as_save_IFS
30132
30133 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30134 ;;
30135esac
30136fi
30137HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30138if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030140$as_echo "$HDRDecodeDelegate" >&6; }
30141else
cristy8b350f62009-11-15 23:12:43 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143$as_echo "no" >&6; }
30144fi
30145
30146
30147# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30148set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030150$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030151if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030152 $as_echo_n "(cached) " >&6
30153else
30154 case $HPGLDecodeDelegate in
30155 [\\/]* | ?:[\\/]*)
30156 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30157 ;;
30158 *)
30159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30160for as_dir in $PATH
30161do
30162 IFS=$as_save_IFS
30163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30166 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030168 break 2
30169 fi
30170done
cristy8b350f62009-11-15 23:12:43 +000030171 done
cristy3ed852e2009-09-05 21:47:34 +000030172IFS=$as_save_IFS
30173
30174 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30175 ;;
30176esac
30177fi
30178HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30179if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030181$as_echo "$HPGLDecodeDelegate" >&6; }
30182else
cristy8b350f62009-11-15 23:12:43 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030184$as_echo "no" >&6; }
30185fi
30186
30187
30188# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30189set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030192if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030193 $as_echo_n "(cached) " >&6
30194else
30195 case $HTMLDecodeDelegate in
30196 [\\/]* | ?:[\\/]*)
30197 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30198 ;;
30199 *)
30200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30201for as_dir in $PATH
30202do
30203 IFS=$as_save_IFS
30204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30207 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030209 break 2
30210 fi
30211done
cristy8b350f62009-11-15 23:12:43 +000030212 done
cristy3ed852e2009-09-05 21:47:34 +000030213IFS=$as_save_IFS
30214
30215 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30216 ;;
30217esac
30218fi
30219HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30220if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030222$as_echo "$HTMLDecodeDelegate" >&6; }
30223else
cristy8b350f62009-11-15 23:12:43 +000030224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030225$as_echo "no" >&6; }
30226fi
30227
30228
30229# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30230set dummy "$ILBMDecodeDelegateDefault"; 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_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030234 $as_echo_n "(cached) " >&6
30235else
30236 case $ILBMDecodeDelegate in
30237 [\\/]* | ?:[\\/]*)
30238 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30239 ;;
30240 *)
30241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30242for as_dir in $PATH
30243do
30244 IFS=$as_save_IFS
30245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30248 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030250 break 2
30251 fi
30252done
cristy8b350f62009-11-15 23:12:43 +000030253 done
cristy3ed852e2009-09-05 21:47:34 +000030254IFS=$as_save_IFS
30255
30256 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30257 ;;
30258esac
30259fi
30260ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30261if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo "$ILBMDecodeDelegate" >&6; }
30264else
cristy8b350f62009-11-15 23:12:43 +000030265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030266$as_echo "no" >&6; }
30267fi
30268
30269
30270# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30271set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030274if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030275 $as_echo_n "(cached) " >&6
30276else
30277 case $ILBMEncodeDelegate in
30278 [\\/]* | ?:[\\/]*)
30279 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30280 ;;
30281 *)
30282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30283for as_dir in $PATH
30284do
30285 IFS=$as_save_IFS
30286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30289 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030291 break 2
30292 fi
30293done
cristy8b350f62009-11-15 23:12:43 +000030294 done
cristy3ed852e2009-09-05 21:47:34 +000030295IFS=$as_save_IFS
30296
30297 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30298 ;;
30299esac
30300fi
30301ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30302if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304$as_echo "$ILBMEncodeDelegate" >&6; }
30305else
cristy8b350f62009-11-15 23:12:43 +000030306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030307$as_echo "no" >&6; }
30308fi
30309
30310
30311# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30312set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030315if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030316 $as_echo_n "(cached) " >&6
30317else
30318 case $LPDelegate in
30319 [\\/]* | ?:[\\/]*)
30320 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30321 ;;
30322 *)
30323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30324for as_dir in $PATH
30325do
30326 IFS=$as_save_IFS
30327 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30330 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030332 break 2
30333 fi
30334done
cristy8b350f62009-11-15 23:12:43 +000030335 done
cristy3ed852e2009-09-05 21:47:34 +000030336IFS=$as_save_IFS
30337
30338 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30339 ;;
30340esac
30341fi
30342LPDelegate=$ac_cv_path_LPDelegate
30343if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030345$as_echo "$LPDelegate" >&6; }
30346else
cristy8b350f62009-11-15 23:12:43 +000030347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030348$as_echo "no" >&6; }
30349fi
30350
30351
30352# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30353set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030355$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030356if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030357 $as_echo_n "(cached) " >&6
30358else
30359 case $LPRDelegate in
30360 [\\/]* | ?:[\\/]*)
30361 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30362 ;;
30363 *)
30364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30365for as_dir in $PATH
30366do
30367 IFS=$as_save_IFS
30368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30371 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030373 break 2
30374 fi
30375done
cristy8b350f62009-11-15 23:12:43 +000030376 done
cristy3ed852e2009-09-05 21:47:34 +000030377IFS=$as_save_IFS
30378
30379 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30380 ;;
30381esac
30382fi
30383LPRDelegate=$ac_cv_path_LPRDelegate
30384if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo "$LPRDelegate" >&6; }
30387else
cristy8b350f62009-11-15 23:12:43 +000030388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030389$as_echo "no" >&6; }
30390fi
30391
30392
30393# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30394set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030396$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030397if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030398 $as_echo_n "(cached) " >&6
30399else
30400 case $LZWDecodeDelegate in
30401 [\\/]* | ?:[\\/]*)
30402 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30403 ;;
30404 *)
30405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406for as_dir in $PATH
30407do
30408 IFS=$as_save_IFS
30409 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30412 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030414 break 2
30415 fi
30416done
cristy8b350f62009-11-15 23:12:43 +000030417 done
cristy3ed852e2009-09-05 21:47:34 +000030418IFS=$as_save_IFS
30419
30420 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30421 ;;
30422esac
30423fi
30424LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30425if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030427$as_echo "$LZWDecodeDelegate" >&6; }
30428else
cristy8b350f62009-11-15 23:12:43 +000030429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030430$as_echo "no" >&6; }
30431fi
30432
30433
30434# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30435set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030437$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030438if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030439 $as_echo_n "(cached) " >&6
30440else
30441 case $LZWEncodeDelegate in
30442 [\\/]* | ?:[\\/]*)
30443 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30444 ;;
30445 *)
30446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30447for as_dir in $PATH
30448do
30449 IFS=$as_save_IFS
30450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30453 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030455 break 2
30456 fi
30457done
cristy8b350f62009-11-15 23:12:43 +000030458 done
cristy3ed852e2009-09-05 21:47:34 +000030459IFS=$as_save_IFS
30460
30461 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30462 ;;
30463esac
30464fi
30465LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30466if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030468$as_echo "$LZWEncodeDelegate" >&6; }
30469else
cristy8b350f62009-11-15 23:12:43 +000030470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030471$as_echo "no" >&6; }
30472fi
30473
30474
30475# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30476set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030478$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030479if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030480 $as_echo_n "(cached) " >&6
30481else
30482 case $LaunchDelegate in
30483 [\\/]* | ?:[\\/]*)
30484 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30485 ;;
30486 *)
30487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30488for as_dir in $PATH
30489do
30490 IFS=$as_save_IFS
30491 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30494 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030496 break 2
30497 fi
30498done
cristy8b350f62009-11-15 23:12:43 +000030499 done
cristy3ed852e2009-09-05 21:47:34 +000030500IFS=$as_save_IFS
30501
30502 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30503 ;;
30504esac
30505fi
30506LaunchDelegate=$ac_cv_path_LaunchDelegate
30507if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "$LaunchDelegate" >&6; }
30510else
cristy8b350f62009-11-15 23:12:43 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030512$as_echo "no" >&6; }
30513fi
30514
30515
30516# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30517set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030519$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030520if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030521 $as_echo_n "(cached) " >&6
30522else
30523 case $MANDelegate in
30524 [\\/]* | ?:[\\/]*)
30525 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30526 ;;
30527 *)
30528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30529for as_dir in $PATH
30530do
30531 IFS=$as_save_IFS
30532 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30535 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030537 break 2
30538 fi
30539done
cristy8b350f62009-11-15 23:12:43 +000030540 done
cristy3ed852e2009-09-05 21:47:34 +000030541IFS=$as_save_IFS
30542
30543 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30544 ;;
30545esac
30546fi
30547MANDelegate=$ac_cv_path_MANDelegate
30548if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo "$MANDelegate" >&6; }
30551else
cristy8b350f62009-11-15 23:12:43 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030553$as_echo "no" >&6; }
30554fi
30555
30556
30557# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30558set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030561if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030562 $as_echo_n "(cached) " >&6
30563else
30564 case $MPEGDecodeDelegate in
30565 [\\/]* | ?:[\\/]*)
30566 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30567 ;;
30568 *)
30569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30570for as_dir in $PATH
30571do
30572 IFS=$as_save_IFS
30573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30576 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030578 break 2
30579 fi
30580done
cristy8b350f62009-11-15 23:12:43 +000030581 done
cristy3ed852e2009-09-05 21:47:34 +000030582IFS=$as_save_IFS
30583
30584 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30585 ;;
30586esac
30587fi
30588MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30589if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591$as_echo "$MPEGDecodeDelegate" >&6; }
30592else
cristy8b350f62009-11-15 23:12:43 +000030593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030594$as_echo "no" >&6; }
30595fi
30596
30597
30598# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30599set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030602if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030603 $as_echo_n "(cached) " >&6
30604else
30605 case $MPEGEncodeDelegate in
30606 [\\/]* | ?:[\\/]*)
30607 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30608 ;;
30609 *)
30610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30611for as_dir in $PATH
30612do
30613 IFS=$as_save_IFS
30614 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30617 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030619 break 2
30620 fi
30621done
cristy8b350f62009-11-15 23:12:43 +000030622 done
cristy3ed852e2009-09-05 21:47:34 +000030623IFS=$as_save_IFS
30624
30625 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30626 ;;
30627esac
30628fi
30629MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30630if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632$as_echo "$MPEGEncodeDelegate" >&6; }
30633else
cristy8b350f62009-11-15 23:12:43 +000030634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030635$as_echo "no" >&6; }
30636fi
30637
30638
30639# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30640set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030642$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030643if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030644 $as_echo_n "(cached) " >&6
30645else
30646 case $MVDelegate in
30647 [\\/]* | ?:[\\/]*)
30648 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30649 ;;
30650 *)
30651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30652for as_dir in $PATH
30653do
30654 IFS=$as_save_IFS
30655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30658 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030660 break 2
30661 fi
30662done
cristy8b350f62009-11-15 23:12:43 +000030663 done
cristy3ed852e2009-09-05 21:47:34 +000030664IFS=$as_save_IFS
30665
30666 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30667 ;;
30668esac
30669fi
30670MVDelegate=$ac_cv_path_MVDelegate
30671if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673$as_echo "$MVDelegate" >&6; }
30674else
cristy8b350f62009-11-15 23:12:43 +000030675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030676$as_echo "no" >&6; }
30677fi
30678
30679
30680# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30681set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030683$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030684if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030685 $as_echo_n "(cached) " >&6
30686else
30687 case $PCLDelegate in
30688 [\\/]* | ?:[\\/]*)
30689 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30690 ;;
30691 *)
30692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30693for as_dir in $PATH
30694do
30695 IFS=$as_save_IFS
30696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30699 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030701 break 2
30702 fi
30703done
cristy8b350f62009-11-15 23:12:43 +000030704 done
cristy3ed852e2009-09-05 21:47:34 +000030705IFS=$as_save_IFS
30706
30707 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30708 ;;
30709esac
30710fi
30711PCLDelegate=$ac_cv_path_PCLDelegate
30712if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030714$as_echo "$PCLDelegate" >&6; }
30715else
cristy8b350f62009-11-15 23:12:43 +000030716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030717$as_echo "no" >&6; }
30718fi
30719
30720
30721# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30722set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030724$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030725if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030726 $as_echo_n "(cached) " >&6
30727else
30728 case $PGPDecodeDelegate in
30729 [\\/]* | ?:[\\/]*)
30730 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30731 ;;
30732 *)
30733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30734for as_dir in $PATH
30735do
30736 IFS=$as_save_IFS
30737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30740 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030742 break 2
30743 fi
30744done
cristy8b350f62009-11-15 23:12:43 +000030745 done
cristy3ed852e2009-09-05 21:47:34 +000030746IFS=$as_save_IFS
30747
30748 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30749 ;;
30750esac
30751fi
30752PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30753if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030755$as_echo "$PGPDecodeDelegate" >&6; }
30756else
cristy8b350f62009-11-15 23:12:43 +000030757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030758$as_echo "no" >&6; }
30759fi
30760
30761
30762# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30763set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030765$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030766if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030767 $as_echo_n "(cached) " >&6
30768else
30769 case $POVDelegate in
30770 [\\/]* | ?:[\\/]*)
30771 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30772 ;;
30773 *)
30774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30775for as_dir in $PATH
30776do
30777 IFS=$as_save_IFS
30778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30781 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030783 break 2
30784 fi
30785done
cristy8b350f62009-11-15 23:12:43 +000030786 done
cristy3ed852e2009-09-05 21:47:34 +000030787IFS=$as_save_IFS
30788
30789 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30790 ;;
30791esac
30792fi
30793POVDelegate=$ac_cv_path_POVDelegate
30794if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030796$as_echo "$POVDelegate" >&6; }
30797else
cristy8b350f62009-11-15 23:12:43 +000030798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030799$as_echo "no" >&6; }
30800fi
30801
30802
30803for ac_prog in gsx gsc "$PSDelegateDefault"
30804do
30805 # Extract the first word of "$ac_prog", so it can be a program name with args.
30806set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030808$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030809if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030810 $as_echo_n "(cached) " >&6
30811else
30812 case $PSDelegate in
30813 [\\/]* | ?:[\\/]*)
30814 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30815 ;;
30816 *)
30817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30818for as_dir in $PATH
30819do
30820 IFS=$as_save_IFS
30821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30824 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030826 break 2
30827 fi
30828done
cristy8b350f62009-11-15 23:12:43 +000030829 done
cristy3ed852e2009-09-05 21:47:34 +000030830IFS=$as_save_IFS
30831
30832 ;;
30833esac
30834fi
30835PSDelegate=$ac_cv_path_PSDelegate
30836if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030838$as_echo "$PSDelegate" >&6; }
30839else
cristy8b350f62009-11-15 23:12:43 +000030840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841$as_echo "no" >&6; }
30842fi
30843
30844
30845 test -n "$PSDelegate" && break
30846done
30847test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30848
30849# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30850set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030852$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030853if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030854 $as_echo_n "(cached) " >&6
30855else
30856 case $RLEEncodeDelegate in
30857 [\\/]* | ?:[\\/]*)
30858 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30859 ;;
30860 *)
30861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30862for as_dir in $PATH
30863do
30864 IFS=$as_save_IFS
30865 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30868 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030870 break 2
30871 fi
30872done
cristy8b350f62009-11-15 23:12:43 +000030873 done
cristy3ed852e2009-09-05 21:47:34 +000030874IFS=$as_save_IFS
30875
30876 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30877 ;;
30878esac
30879fi
30880RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30881if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030883$as_echo "$RLEEncodeDelegate" >&6; }
30884else
cristy8b350f62009-11-15 23:12:43 +000030885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030886$as_echo "no" >&6; }
30887fi
30888
30889
30890# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30891set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030893$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030894if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030895 $as_echo_n "(cached) " >&6
30896else
30897 case $RMDelegate in
30898 [\\/]* | ?:[\\/]*)
30899 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30900 ;;
30901 *)
30902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30903for as_dir in $PATH
30904do
30905 IFS=$as_save_IFS
30906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30909 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030911 break 2
30912 fi
30913done
cristy8b350f62009-11-15 23:12:43 +000030914 done
cristy3ed852e2009-09-05 21:47:34 +000030915IFS=$as_save_IFS
30916
30917 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30918 ;;
30919esac
30920fi
30921RMDelegate=$ac_cv_path_RMDelegate
30922if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030924$as_echo "$RMDelegate" >&6; }
30925else
cristy8b350f62009-11-15 23:12:43 +000030926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030927$as_echo "no" >&6; }
30928fi
30929
30930
cristy4689cf02010-02-17 21:15:45 +000030931# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
30932set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
30933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30934$as_echo_n "checking for $ac_word... " >&6; }
30935if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
30936 $as_echo_n "(cached) " >&6
30937else
30938 case $RSVGDecodeDelegate in
30939 [\\/]* | ?:[\\/]*)
30940 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
30941 ;;
30942 *)
30943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30944for as_dir in $PATH
30945do
30946 IFS=$as_save_IFS
30947 test -z "$as_dir" && as_dir=.
30948 for ac_exec_ext in '' $ac_executable_extensions; do
30949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30950 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30952 break 2
30953 fi
30954done
30955 done
30956IFS=$as_save_IFS
30957
30958 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
30959 ;;
30960esac
30961fi
30962RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
30963if test -n "$RSVGDecodeDelegate"; then
30964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
30965$as_echo "$RSVGDecodeDelegate" >&6; }
30966else
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30968$as_echo "no" >&6; }
30969fi
30970
30971
cristy3ed852e2009-09-05 21:47:34 +000030972# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30973set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030975$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030976if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030977 $as_echo_n "(cached) " >&6
30978else
30979 case $SCANDecodeDelegate in
30980 [\\/]* | ?:[\\/]*)
30981 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30982 ;;
30983 *)
30984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30985for as_dir in $PATH
30986do
30987 IFS=$as_save_IFS
30988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30991 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030993 break 2
30994 fi
30995done
cristy8b350f62009-11-15 23:12:43 +000030996 done
cristy3ed852e2009-09-05 21:47:34 +000030997IFS=$as_save_IFS
30998
30999 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31000 ;;
31001esac
31002fi
31003SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31004if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031006$as_echo "$SCANDecodeDelegate" >&6; }
31007else
cristy8b350f62009-11-15 23:12:43 +000031008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031009$as_echo "no" >&6; }
31010fi
31011
31012
31013# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31014set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031016$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031017if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031018 $as_echo_n "(cached) " >&6
31019else
31020 case $TXTDelegate in
31021 [\\/]* | ?:[\\/]*)
31022 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31023 ;;
31024 *)
31025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31026for as_dir in $PATH
31027do
31028 IFS=$as_save_IFS
31029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31032 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031034 break 2
31035 fi
31036done
cristy8b350f62009-11-15 23:12:43 +000031037 done
cristy3ed852e2009-09-05 21:47:34 +000031038IFS=$as_save_IFS
31039
31040 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31041 ;;
31042esac
31043fi
31044TXTDelegate=$ac_cv_path_TXTDelegate
31045if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031047$as_echo "$TXTDelegate" >&6; }
31048else
cristy8b350f62009-11-15 23:12:43 +000031049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031050$as_echo "no" >&6; }
31051fi
31052
31053
31054# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31055set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031057$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031058if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031059 $as_echo_n "(cached) " >&6
31060else
31061 case $WMFDecodeDelegate in
31062 [\\/]* | ?:[\\/]*)
31063 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31064 ;;
31065 *)
31066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31067for as_dir in $PATH
31068do
31069 IFS=$as_save_IFS
31070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31073 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031075 break 2
31076 fi
31077done
cristy8b350f62009-11-15 23:12:43 +000031078 done
cristy3ed852e2009-09-05 21:47:34 +000031079IFS=$as_save_IFS
31080
31081 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31082 ;;
31083esac
31084fi
31085WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31086if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031088$as_echo "$WMFDecodeDelegate" >&6; }
31089else
cristy8b350f62009-11-15 23:12:43 +000031090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031091$as_echo "no" >&6; }
31092fi
31093
31094
31095# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31096set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031099if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031100 $as_echo_n "(cached) " >&6
31101else
31102 case $WWWDecodeDelegate in
31103 [\\/]* | ?:[\\/]*)
31104 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31105 ;;
31106 *)
31107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31108for as_dir in $PATH
31109do
31110 IFS=$as_save_IFS
31111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31114 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031116 break 2
31117 fi
31118done
cristy8b350f62009-11-15 23:12:43 +000031119 done
cristy3ed852e2009-09-05 21:47:34 +000031120IFS=$as_save_IFS
31121
31122 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31123 ;;
31124esac
31125fi
31126WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31127if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031129$as_echo "$WWWDecodeDelegate" >&6; }
31130else
cristy8b350f62009-11-15 23:12:43 +000031131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031132$as_echo "no" >&6; }
31133fi
31134
31135
31136# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31137set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031139$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031140if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031141 $as_echo_n "(cached) " >&6
31142else
31143 case $XPSDelegate in
31144 [\\/]* | ?:[\\/]*)
31145 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31146 ;;
31147 *)
31148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31149for as_dir in $PATH
31150do
31151 IFS=$as_save_IFS
31152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31155 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031157 break 2
31158 fi
31159done
cristy8b350f62009-11-15 23:12:43 +000031160 done
cristy3ed852e2009-09-05 21:47:34 +000031161IFS=$as_save_IFS
31162
31163 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31164 ;;
31165esac
31166fi
31167XPSDelegate=$ac_cv_path_XPSDelegate
31168if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031170$as_echo "$XPSDelegate" >&6; }
31171else
cristy8b350f62009-11-15 23:12:43 +000031172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031173$as_echo "no" >&6; }
31174fi
31175
31176
31177# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31178set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031180$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031181if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031182 $as_echo_n "(cached) " >&6
31183else
31184 case $ZipDelegate in
31185 [\\/]* | ?:[\\/]*)
31186 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31187 ;;
31188 *)
31189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31190for as_dir in $PATH
31191do
31192 IFS=$as_save_IFS
31193 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31196 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031198 break 2
31199 fi
31200done
cristy8b350f62009-11-15 23:12:43 +000031201 done
cristy3ed852e2009-09-05 21:47:34 +000031202IFS=$as_save_IFS
31203
31204 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31205 ;;
31206esac
31207fi
31208ZipDelegate=$ac_cv_path_ZipDelegate
31209if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031211$as_echo "$ZipDelegate" >&6; }
31212else
cristy8b350f62009-11-15 23:12:43 +000031213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031214$as_echo "no" >&6; }
31215fi
31216
31217
31218
31219# Prefer lpr to lp; lp needs options tacked on.
31220if test "$LPRDelegate" != no; then
31221 PrintDelegate="$LPRDelegate"
31222else
31223 PrintDelegate="$LPDelegate -c -s"
31224fi
31225
31226
31227# Installed ImageMagick utiltity paths
31228ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31229DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31230MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31231
31232# Set delegate booleans
31233have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31234have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31235have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31236have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31237have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31238have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31239have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31240have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31241have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31242have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31243have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31244
31245#
31246# Test for font directories
31247#
31248type_include_files=''
31249
cristy430a7312010-01-21 20:44:04 +000031250# Dejavu fonts.
31251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31252$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31253dejavu_font_dir=''
31254if test "${with_dejavu_font_dir}" != 'default'; then
31255 dejavu_font_dir="${with_dejavu_font_dir}/"
31256else
31257 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31258 if test -f "${font_dir}DejaVuSerif.ttf"; then
31259 dejavu_font_dir="${font_dir}"
31260 break 1
31261 fi
31262 done
31263fi
31264if test "${dejavu_font_dir}x" != 'x'; then
31265 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31267$as_echo "$dejavu_font_dir" >&6; }
31268else
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31270$as_echo "not found!" >&6; };
31271fi
31272
31273
cristy3ed852e2009-09-05 21:47:34 +000031274# Windows
31275windows_font_dir=''
31276if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31277 windows_font_dir="${with_windows_font_dir}/"
31278fi
cristy430a7312010-01-21 20:44:04 +000031279if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031280 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31281 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31282 fi
31283 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31284 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31285 fi
31286 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31287 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31288 fi
31289fi
cristy430a7312010-01-21 20:44:04 +000031290if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031291 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31292fi
31293
31294
31295# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031297$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31298ghostscript_font_dir=''
31299if test "${with_gs_font_dir}" != 'default'; then
31300 ghostscript_font_dir="${with_gs_font_dir}/"
31301else
31302 if test "${native_win32_build}" = 'yes'; then
31303 # Native Windows Build
31304 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31305 if test -f "${font_dir}a010013l.pfb"; then
31306 ghostscript_font_dir="$font_dir"
31307 break 1
31308 fi
31309 done
31310 if test "${PSDelegate}" != 'gswin32c'; then
31311 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31312 fi
31313 else
31314 # Linux / Mac OS X / Unix Build
31315 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
31316 if test -f "${font_dir}a010013l.pfb"; then
31317 ghostscript_font_dir="${font_dir}"
31318 break 1
31319 fi
31320 done
31321 if test "${ghostscript_font_dir}x" = 'x'; then
31322 if test "$PSDelegate" != 'gs'; then
31323 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31324 fi
31325 fi
31326 fi
31327fi
31328if test "${ghostscript_font_dir}x" != 'x'; then
31329 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031331$as_echo "$ghostscript_font_dir" >&6; }
31332else
cristy8b350f62009-11-15 23:12:43 +000031333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334$as_echo "not found!" >&6; };
31335fi
31336
31337case "${build_os}" in
31338 mingw* )
31339 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31340 ;;
31341esac
31342
31343
31344
31345#
31346# Handle case where user doesn't want frozen paths
31347#
31348if test "$with_frozenpaths" != 'yes'; then
31349 # Re-set delegate definitions to default (no paths)
31350 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31351 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31352 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31353 BZIPDelegate="$BZIPDelegateDefault"
31354 BrowseDelegate="$BrowseDelegateDefault"
31355 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31356 CatDelegate="$CatDelegateDefault"
31357 ConvertDelegate="$ConvertDelegateDefault"
31358 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31359 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31360 EchoDelegate="$EchoDelegateDefault"
31361 EditorDelegate="$EditorDelegateDefault"
31362 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31363 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31364 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31365 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31366 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31367 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31368 LPDelegate="$LPDelegateDefault"
31369 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31370 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31371 LaunchDelegate="$LaunchDelegateDefault"
31372 MANDelegate="$MANDelegateDefault"
31373 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31374 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31375 MVDelegate="$MVDelegateDefault"
31376 MogrifyDelegate="$MogrifyDelegateDefault"
31377 PCLDelegate="$PCLDelegateDefault"
31378 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31379 POVDelegate="$POVDelegateDefault"
31380 PSDelegate="$PSDelegateDefault"
31381 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31382 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31383 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031384 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031385 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31386 ShowImageDelegate="$ShowImageDelegateDefault"
31387 TXTDelegate="$TXTDelegateDefault"
31388 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31389 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31390 XPSDelegate="$XPSDelegateDefault"
31391 ZipDelegate="$ZipDelegateDefault"
31392fi
31393
31394# Delegate substitutions
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437#
31438# RPM support.
31439#
31440RPM=''
31441for ac_prog in gnutar gtar tar
31442do
31443 # Extract the first word of "$ac_prog", so it can be a program name with args.
31444set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031446$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031447if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031448 $as_echo_n "(cached) " >&6
31449else
31450 if test -n "$TAR"; then
31451 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31452else
31453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31454for as_dir in $PATH
31455do
31456 IFS=$as_save_IFS
31457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031458 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31460 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031462 break 2
31463 fi
31464done
cristy8b350f62009-11-15 23:12:43 +000031465 done
cristy3ed852e2009-09-05 21:47:34 +000031466IFS=$as_save_IFS
31467
31468fi
31469fi
31470TAR=$ac_cv_prog_TAR
31471if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031473$as_echo "$TAR" >&6; }
31474else
cristy8b350f62009-11-15 23:12:43 +000031475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031476$as_echo "no" >&6; }
31477fi
31478
31479
31480 test -n "$TAR" && break
31481done
31482
31483for ac_prog in perl
31484do
31485 # Extract the first word of "$ac_prog", so it can be a program name with args.
31486set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031488$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031489if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031490 $as_echo_n "(cached) " >&6
31491else
31492 if test -n "$PERL"; then
31493 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31494else
31495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31496for as_dir in $PATH
31497do
31498 IFS=$as_save_IFS
31499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31502 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031504 break 2
31505 fi
31506done
cristy8b350f62009-11-15 23:12:43 +000031507 done
cristy3ed852e2009-09-05 21:47:34 +000031508IFS=$as_save_IFS
31509
31510fi
31511fi
31512PERL=$ac_cv_prog_PERL
31513if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031515$as_echo "$PERL" >&6; }
31516else
cristy8b350f62009-11-15 23:12:43 +000031517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031518$as_echo "no" >&6; }
31519fi
31520
31521
31522 test -n "$PERL" && break
31523done
31524
31525for ac_prog in rpmbuild rpm
31526do
31527 # Extract the first word of "$ac_prog", so it can be a program name with args.
31528set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031530$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031531if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031532 $as_echo_n "(cached) " >&6
31533else
31534 if test -n "$RPM"; then
31535 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31536else
31537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31538for as_dir in $PATH
31539do
31540 IFS=$as_save_IFS
31541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31544 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031546 break 2
31547 fi
31548done
cristy8b350f62009-11-15 23:12:43 +000031549 done
cristy3ed852e2009-09-05 21:47:34 +000031550IFS=$as_save_IFS
31551
31552fi
31553fi
31554RPM=$ac_cv_prog_RPM
31555if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031557$as_echo "$RPM" >&6; }
31558else
cristy8b350f62009-11-15 23:12:43 +000031559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031560$as_echo "no" >&6; }
31561fi
31562
31563
31564 test -n "$RPM" && break
31565done
31566
31567
31568ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31569
31570
31571AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31572
31573
31574AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31575
31576
31577AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31578
31579
31580 if test "x$RPM" != "x" ; then
31581 RPM_DELEGATE_TRUE=
31582 RPM_DELEGATE_FALSE='#'
31583else
31584 RPM_DELEGATE_TRUE='#'
31585 RPM_DELEGATE_FALSE=
31586fi
31587
31588
31589#
31590# 7ZIP support (http://p7zip.sourceforge.net/)
31591#
31592P7ZIP=''
31593for ac_prog in 7za
31594do
31595 # Extract the first word of "$ac_prog", so it can be a program name with args.
31596set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031598$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031599if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031600 $as_echo_n "(cached) " >&6
31601else
31602 if test -n "$P7ZIP"; then
31603 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31604else
31605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31606for as_dir in $PATH
31607do
31608 IFS=$as_save_IFS
31609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31612 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031614 break 2
31615 fi
31616done
cristy8b350f62009-11-15 23:12:43 +000031617 done
cristy3ed852e2009-09-05 21:47:34 +000031618IFS=$as_save_IFS
31619
31620fi
31621fi
31622P7ZIP=$ac_cv_prog_P7ZIP
31623if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031625$as_echo "$P7ZIP" >&6; }
31626else
cristy8b350f62009-11-15 23:12:43 +000031627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031628$as_echo "no" >&6; }
31629fi
31630
31631
31632 test -n "$P7ZIP" && break
31633done
31634
31635
31636 if test "x$P7ZIP" != "x" ; then
31637 P7ZIP_DELEGATE_TRUE=
31638 P7ZIP_DELEGATE_FALSE='#'
31639else
31640 P7ZIP_DELEGATE_TRUE='#'
31641 P7ZIP_DELEGATE_FALSE=
31642fi
31643
31644
31645#
31646# ZIP support (http://www.info-zip.org/Zip.html)
31647#
31648ZIP=''
31649for ac_prog in zip
31650do
31651 # Extract the first word of "$ac_prog", so it can be a program name with args.
31652set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031654$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031655if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031656 $as_echo_n "(cached) " >&6
31657else
31658 if test -n "$ZIP"; then
31659 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31660else
31661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31662for as_dir in $PATH
31663do
31664 IFS=$as_save_IFS
31665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31668 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031670 break 2
31671 fi
31672done
cristy8b350f62009-11-15 23:12:43 +000031673 done
cristy3ed852e2009-09-05 21:47:34 +000031674IFS=$as_save_IFS
31675
31676fi
31677fi
31678ZIP=$ac_cv_prog_ZIP
31679if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031681$as_echo "$ZIP" >&6; }
31682else
cristy8b350f62009-11-15 23:12:43 +000031683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031684$as_echo "no" >&6; }
31685fi
31686
31687
31688 test -n "$ZIP" && break
31689done
31690
31691
31692 if test "x$ZIP" != "x" ; then
31693 ZIP_DELEGATE_TRUE=
31694 ZIP_DELEGATE_FALSE='#'
31695else
31696 ZIP_DELEGATE_TRUE='#'
31697 ZIP_DELEGATE_FALSE=
31698fi
31699
31700
31701#
31702# GhostPCL related configuration.
31703#
31704PCLColorDevice=ppmraw
31705PCLCMYKDevice=bmpsep8
31706PCLMonoDevice=pbmraw
31707if test -z "$PCLVersion"; then
31708 PCLVersion='unknown'
31709fi
31710if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031712$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031714$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031716$as_echo "" >&6; }
31717 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031719$as_echo_n "checking for pcl color device... " >&6; }
31720 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31721 :
31722 else
31723 PCLColorDevice=ppmraw
31724 fi
cristy8b350f62009-11-15 23:12:43 +000031725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031726$as_echo "$PCLColorDevice" >&6; }
31727
31728 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031730$as_echo_n "checking for pcl CMYK device... " >&6; }
31731 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31732 :
31733 else
31734 PCLCMYKDevice=$PCLColorDevice
31735 fi
cristy8b350f62009-11-15 23:12:43 +000031736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031737$as_echo "$PCLCMYKDevice" >&6; }
31738
31739 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741$as_echo_n "checking for pcl mono device... " >&6; }
31742 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31743 :
31744 else
31745 PCLMonoDevice=$PCLColorDevice
31746 fi
cristy8b350f62009-11-15 23:12:43 +000031747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031748$as_echo "$PCLMonoDevice" >&6; }
31749fi
31750
31751
31752
31753
31754
31755
31756#
31757# GhostXPS related configuration.
31758#
31759XPSColorDevice=ppmraw
31760XPSCMYKDevice=bmpsep8
31761XPSMonoDevice=pbmraw
31762if test -z "$XPSVersion"; then
31763 XPSVersion='unknown'
31764fi
31765if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031767$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031769$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031771$as_echo "" >&6; }
31772 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031774$as_echo_n "checking for xps color device... " >&6; }
31775 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31776 :
31777 else
31778 XPSColorDevice=ppmraw
31779 fi
cristy8b350f62009-11-15 23:12:43 +000031780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031781$as_echo "$XPSColorDevice" >&6; }
31782
31783 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031785$as_echo_n "checking for xps CMYK device... " >&6; }
31786 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31787 :
31788 else
31789 XPSCMYKDevice=$XPSColorDevice
31790 fi
cristy8b350f62009-11-15 23:12:43 +000031791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031792$as_echo "$XPSCMYKDevice" >&6; }
31793
31794 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031796$as_echo_n "checking for xps mono device... " >&6; }
31797 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31798 :
31799 else
31800 XPSMonoDevice=$XPSColorDevice
31801 fi
cristy8b350f62009-11-15 23:12:43 +000031802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031803$as_echo "$XPSMonoDevice" >&6; }
31804fi
31805
31806
31807
31808
31809
31810
31811#
31812# Ghostscript related configuration.
31813#
31814if test "$have_png" = 'yes'; then
31815 GSAlphaDevice=pngalpha
31816else
31817 GSAlphaDevice=pnmraw
31818fi
31819GSColorDevice=pnmraw
31820GSCMYKDevice=pam
31821GSMonoDevice=pbmraw
31822GSPDFDevice=pdfwrite
31823GSPSDevice=pswrite
31824GSEPSDevice=epswrite
31825GSVersion='unknown'
31826if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031828$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031830$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031832$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031834$as_echo_n "checking for Ghostscript version... " >&6; }
31835 if GSVersion=`$PSDelegate --version`; then
31836 :
31837 else
31838 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31839 fi
cristy8b350f62009-11-15 23:12:43 +000031840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031841$as_echo "$GSVersion" >&6; }
31842
31843 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031845$as_echo_n "checking for gs alpha device... " >&6; }
31846 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31847 :
31848 else
31849 GSAlphaDevice=pnmraw
31850 fi
cristy8b350f62009-11-15 23:12:43 +000031851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031852$as_echo "$GSAlphaDevice" >&6; }
31853
31854 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031856$as_echo_n "checking for gs color device... " >&6; }
31857 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31858 :
31859 else
31860 GSColorDevice=pnmraw
31861 fi
cristy8b350f62009-11-15 23:12:43 +000031862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031863$as_echo "$GSColorDevice" >&6; }
31864
31865 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031867$as_echo_n "checking for gs CMYK device... " >&6; }
31868 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31869 :
31870 else
31871 GSCMYKDevice=bmpsep8
31872 fi
cristy8b350f62009-11-15 23:12:43 +000031873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo "$GSCMYKDevice" >&6; }
31875
31876 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031878$as_echo_n "checking for gs mono device... " >&6; }
31879 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31880 :
31881 else
31882 GSMonoDevice=$GSColorDevice
31883 fi
cristy8b350f62009-11-15 23:12:43 +000031884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031885$as_echo "$GSMonoDevice" >&6; }
31886
31887 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000031888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031889$as_echo_n "checking for gs PDF writing device... " >&6; }
31890 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31891 :
31892 else
31893 GSPDFDevice=nodevice
31894 fi
cristy8b350f62009-11-15 23:12:43 +000031895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031896$as_echo "$GSPDFDevice" >&6; }
31897
31898 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000031899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031900$as_echo_n "checking for gs PS writing device... " >&6; }
31901 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31902 :
31903 else
31904 GSPSDevice=nodevice
31905 fi
cristy8b350f62009-11-15 23:12:43 +000031906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031907$as_echo "$GSPSDevice" >&6; }
31908
31909 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031911$as_echo_n "checking for gs EPS writing device... " >&6; }
31912 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31913 :
31914 else
31915 GSEPSDevice=nodevice
31916 fi
cristy8b350f62009-11-15 23:12:43 +000031917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031918$as_echo "$GSEPSDevice" >&6; }
31919fi
31920
31921
31922
31923
31924
31925
31926
31927
31928
31929
31930#
31931# PerlMagick-related configuration
31932#
31933
31934# Look for PERL if PerlMagick requested
31935# If name/path of desired PERL interpreter is specified, look for that one first
31936have_perl='no'
31937if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031939$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031943$as_echo "" >&6; }
31944 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031946$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031947if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031948 $as_echo_n "(cached) " >&6
31949else
31950 ac_cv_path_PERL="$with_perl"
31951fi
cristy8b350f62009-11-15 23:12:43 +000031952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953$as_echo "$ac_cv_path_PERL" >&6; };
31954 PERL=$ac_cv_path_PERL
31955 have_perl="$ac_cv_path_PERL"
31956 else
31957 for ac_prog in perl perl5
31958do
31959 # Extract the first word of "$ac_prog", so it can be a program name with args.
31960set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031963if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031964 $as_echo_n "(cached) " >&6
31965else
31966 case $PERL in
31967 [\\/]* | ?:[\\/]*)
31968 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31969 ;;
31970 *)
31971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31972for as_dir in $PATH
31973do
31974 IFS=$as_save_IFS
31975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31978 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031980 break 2
31981 fi
31982done
cristy8b350f62009-11-15 23:12:43 +000031983 done
cristy3ed852e2009-09-05 21:47:34 +000031984IFS=$as_save_IFS
31985
31986 ;;
31987esac
31988fi
31989PERL=$ac_cv_path_PERL
31990if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992$as_echo "$PERL" >&6; }
31993else
cristy8b350f62009-11-15 23:12:43 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031995$as_echo "no" >&6; }
31996fi
31997
31998
31999 test -n "$PERL" && break
32000done
32001 if test "$ac_cv_path_PERL"; then
32002 have_perl="$ac_cv_path_PERL"
32003 fi
32004 fi
32005fi
32006
cristy949301e2010-01-06 01:38:40 +000032007if test "$with_perl" != 'yes' ; then
32008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32009fi
32010
32011PERL_SUPPORTS_DESTDIR='no'
32012
cristy3ed852e2009-09-05 21:47:34 +000032013with_perl_static='no'
32014with_perl_dynamic='no'
32015if test "$have_perl" != 'no'; then
32016 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32017 with_perl_static='yes'
32018 fi
32019 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32020 with_perl_dynamic='yes'
32021 fi
32022 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032023
32024
32025
32026
32027 if test -n "$PERL"; then :
32028
32029 ax_perl_version="5.8.1"
32030
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32032$as_echo_n "checking for perl version... " >&6; }
32033
32034 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32035
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32037$as_echo "$perl_version" >&6; }
32038
32039 PERL_VERSION=$perl_version
32040
32041
32042
32043
32044
32045 # Used to indicate true or false condition
32046 ax_compare_version=false
32047
32048 # Convert the two version strings to be compared into a format that
32049 # allows a simple string comparison. The end result is that a version
32050 # string of the form 1.12.5-r617 will be converted to the form
32051 # 0001001200050617. In other words, each number is zero padded to four
32052 # digits, and non digits are removed.
32053
32054 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32055 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32056 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32057 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32058 -e 's/[^0-9]//g'`
32059
32060
32061 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32062 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32063 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32064 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32065 -e 's/[^0-9]//g'`
32066
32067
32068 ax_compare_version=`echo "x$ax_compare_version_A
32069x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32070
32071
32072
32073 if test "$ax_compare_version" = "true" ; then
32074
32075 :
32076 PERL_SUPPORTS_DESTDIR='yes'
32077
32078 else
32079 :
32080 PERL_SUPPORTS_DESTDIR='no'
32081
cristy3ed852e2009-09-05 21:47:34 +000032082 fi
cristy3ed852e2009-09-05 21:47:34 +000032083
cristy964cb7f2010-04-25 23:18:00 +000032084
cristy3ed852e2009-09-05 21:47:34 +000032085else
cristy3ed852e2009-09-05 21:47:34 +000032086
cristy964cb7f2010-04-25 23:18:00 +000032087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32088$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32089 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032090
32091fi
32092
cristy3ed852e2009-09-05 21:47:34 +000032093fi
32094 if test "$have_perl" != 'no'; then
32095 WITH_PERL_TRUE=
32096 WITH_PERL_FALSE='#'
32097else
32098 WITH_PERL_TRUE='#'
32099 WITH_PERL_FALSE=
32100fi
32101
32102 if test $with_perl_static = 'yes'; then
32103 WITH_PERL_STATIC_TRUE=
32104 WITH_PERL_STATIC_FALSE='#'
32105else
32106 WITH_PERL_STATIC_TRUE='#'
32107 WITH_PERL_STATIC_FALSE=
32108fi
32109
32110 if test $with_perl_dynamic = 'yes'; then
32111 WITH_PERL_DYNAMIC_TRUE=
32112 WITH_PERL_DYNAMIC_FALSE='#'
32113else
32114 WITH_PERL_DYNAMIC_TRUE='#'
32115 WITH_PERL_DYNAMIC_FALSE=
32116fi
32117
32118
32119
32120# Determine path to pick up MagickCore library from for use with building PerlMagick
32121MAGICKCORE_PATH="${LIB_DIR}"
32122if test $with_perl_static = 'yes'; then
32123 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32124 libtool_objdir=$objdir
32125
32126 # Linker search path to library, followed by -lMagickCore
32127 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32128fi
32129
32130
32131# Create a simple string containing format names for all delegate libraries
32132DELEGATES=''
32133if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32134if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32135if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32136if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32137if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32138if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32139if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32140if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32141if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32142if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32143if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32144if test "$have_jpeg" = 'yes'; then
32145 DELEGATES="$DELEGATES jpeg";
32146 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32147fi
32148if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32149if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32150if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32151if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32152if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32153if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32154if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32155if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32156if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32157if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32158if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32159if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32160
32161
32162
32163#
32164# Handle special compiler flags
32165#
32166
32167# Add '-p' if prof source profiling support enabled
32168if test "$enable_prof" = 'yes'; then
32169 CFLAGS="-p $CFLAGS"
32170 CXXFLAGS="-p $CXXFLAGS"
32171 LDFLAGS="-p $LDFLAGS"
32172fi
32173
32174# Add '-pg' if gprof source profiling support enabled
32175if test "$enable_gprof" = 'yes'; then
32176 CFLAGS="-pg $CFLAGS"
32177 CXXFLAGS="-pg $CXXFLAGS"
32178 LDFLAGS="-pg $LDFLAGS"
32179fi
32180
32181# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32182# This is a gcc-specific feature
32183if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032185$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032186if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032187 $as_echo_n "(cached) " >&6
32188else
32189 ac_check_lib_save_LIBS=$LIBS
32190LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032192/* end confdefs.h. */
32193
32194/* Override any GCC internal prototype to avoid an error.
32195 Use char because int might match the return type of a GCC
32196 builtin and then its argument prototype would still apply. */
32197#ifdef __cplusplus
32198extern "C"
32199#endif
32200char _gcov_init ();
32201int
32202main ()
32203{
32204return _gcov_init ();
32205 ;
32206 return 0;
32207}
32208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032210 ac_cv_lib_gcov__gcov_init=yes
32211else
cristy8b350f62009-11-15 23:12:43 +000032212 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032213fi
cristy8b350f62009-11-15 23:12:43 +000032214rm -f core conftest.err conftest.$ac_objext \
32215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032216LIBS=$ac_check_lib_save_LIBS
32217fi
cristy8b350f62009-11-15 23:12:43 +000032218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032219$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032220if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032221 cat >>confdefs.h <<_ACEOF
32222#define HAVE_LIBGCOV 1
32223_ACEOF
32224
32225 LIBS="-lgcov $LIBS"
32226
32227fi
32228
cristy8b350f62009-11-15 23:12:43 +000032229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032230$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032231if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032232 $as_echo_n "(cached) " >&6
32233else
32234 ac_check_lib_save_LIBS=$LIBS
32235LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032237/* end confdefs.h. */
32238
32239/* Override any GCC internal prototype to avoid an error.
32240 Use char because int might match the return type of a GCC
32241 builtin and then its argument prototype would still apply. */
32242#ifdef __cplusplus
32243extern "C"
32244#endif
32245char __gcov_init ();
32246int
32247main ()
32248{
32249return __gcov_init ();
32250 ;
32251 return 0;
32252}
32253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032255 ac_cv_lib_gcov___gcov_init=yes
32256else
cristy8b350f62009-11-15 23:12:43 +000032257 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032258fi
cristy8b350f62009-11-15 23:12:43 +000032259rm -f core conftest.err conftest.$ac_objext \
32260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032261LIBS=$ac_check_lib_save_LIBS
32262fi
cristy8b350f62009-11-15 23:12:43 +000032263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032264$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032265if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032266 cat >>confdefs.h <<_ACEOF
32267#define HAVE_LIBGCOV 1
32268_ACEOF
32269
32270 LIBS="-lgcov $LIBS"
32271
32272fi
32273
32274 case "$target_os" in
32275 darwin*)
32276 OSX_GCOV_LDFLAG="-Wl,-single_module"
32277 ;;
32278 *)
32279 OSX_GCOV_LDFLAG=""
32280 ;;
32281 esac
32282
32283 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32284 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32285 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32286fi
32287
32288#
32289# Build library dependency list for libMagickCore
32290#
32291
32292MAGICK_LIBLTDL='' # Libltdl for build
32293MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32294MAGICK_LTDLDEPS='' # extra libltdl dependencies
32295if test "$with_ltdl" != 'no'
32296then
32297 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32298 MAGICK_API_LIBLTDL='-lltdl'
32299 fi
32300 MAGICK_LIBLTDL=${LIBLTDL}
32301 MAGICK_LTDLDEPS=${LTDLDEPS}
32302fi
32303
32304
32305
32306if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032307 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 +000032308else
cristy2e8b51d2009-10-17 18:26:15 +000032309 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 +000032310fi
32311
32312
32313#
32314# Remove extraneous spaces from output variables (asthetic)
32315#
32316X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32317X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32318X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32319X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32320
32321CC=`echo $CC | sed -e 's/ */ /g'`
32322CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32323CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32324CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32325DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32326DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32327LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32328TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32329MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32330#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32331
32332# Pass only user-provided LIBS as "global" libraries
32333LIBS=$USER_LIBS
32334
32335#AC_SUBST(CPPFLAGS)
32336
32337#AC_SUBST(LDFLAGS)
32338#AC_SUBST(X_PRE_LIBS)
32339#AC_SUBST(X_LIBS)
32340#AC_SUBST(X_EXTRA_LIBS)
32341
32342MAGICK_CFLAGS=$CFLAGS
32343MAGICK_CXXFLAGS="$CXXFLAGS"
32344MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32345MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32346MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32347MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32348
32349
32350
32351
32352
32353
32354
32355
32356# Set configured scripts to executable.
32357ac_config_commands="$ac_config_commands default"
32358
32359ac_config_commands="$ac_config_commands MagickCore-config.in"
32360
32361ac_config_commands="$ac_config_commands Magick-config.in"
32362
32363ac_config_commands="$ac_config_commands MagickWand-config.in"
32364
32365ac_config_commands="$ac_config_commands Wand-config.in"
32366
32367ac_config_commands="$ac_config_commands Magick++-config.in"
32368
32369ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32370
32371
cristy8b350f62009-11-15 23:12:43 +000032372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032373$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032375$as_echo "Update ImageMagick configuration" >&6; }
32376cat >confcache <<\_ACEOF
32377# This file is a shell script that caches the results of configure
32378# tests run on this system so they can be shared between configure
32379# scripts and configure runs, see configure's option --config-cache.
32380# It is not useful on other systems. If it contains results you don't
32381# want to keep, you may remove or edit it.
32382#
32383# config.status only pays attention to the cache file if you give it
32384# the --recheck option to rerun configure.
32385#
32386# `ac_cv_env_foo' variables (set or unset) will be overridden when
32387# loading this file, other *unset* `ac_cv_foo' will be assigned the
32388# following values.
32389
32390_ACEOF
32391
32392# The following way of writing the cache mishandles newlines in values,
32393# but we know of no workaround that is simple, portable, and efficient.
32394# So, we kill variables containing newlines.
32395# Ultrix sh set writes to stderr and can't be redirected directly,
32396# and sets the high bit in the cache file unless we assign to the vars.
32397(
32398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32399 eval ac_val=\$$ac_var
32400 case $ac_val in #(
32401 *${as_nl}*)
32402 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032403 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032404$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32405 esac
32406 case $ac_var in #(
32407 _ | IFS | as_nl) ;; #(
32408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032409 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032410 esac ;;
32411 esac
32412 done
32413
32414 (set) 2>&1 |
32415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32416 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032417 # `set' does not quote correctly, so add quotes: double-quote
32418 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032419 sed -n \
32420 "s/'/'\\\\''/g;
32421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32422 ;; #(
32423 *)
32424 # `set' quotes correctly as required by POSIX, so do not add quotes.
32425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32426 ;;
32427 esac |
32428 sort
32429) |
32430 sed '
32431 /^ac_cv_env_/b end
32432 t clear
32433 :clear
32434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32435 t end
32436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32437 :end' >>confcache
32438if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32439 if test -w "$cache_file"; then
32440 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032441 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032442$as_echo "$as_me: updating cache $cache_file" >&6;}
32443 cat confcache >$cache_file
32444 else
cristy8b350f62009-11-15 23:12:43 +000032445 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032446$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32447 fi
32448fi
32449rm -f confcache
32450
32451test "x$prefix" = xNONE && prefix=$ac_default_prefix
32452# Let make expand exec_prefix.
32453test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32454
32455DEFS=-DHAVE_CONFIG_H
32456
32457ac_libobjs=
32458ac_ltlibobjs=
32459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32460 # 1. Remove the extension, and $U if already installed.
32461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32464 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032467done
32468LIBOBJS=$ac_libobjs
32469
32470LTLIBOBJS=$ac_ltlibobjs
32471
32472
32473 if test -n "$EXEEXT"; then
32474 am__EXEEXT_TRUE=
32475 am__EXEEXT_FALSE='#'
32476else
32477 am__EXEEXT_TRUE='#'
32478 am__EXEEXT_FALSE=
32479fi
32480
32481if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032482 as_fn_error "conditional \"AMDEP\" was never defined.
32483Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032484fi
32485if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032486 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32487Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032488fi
cristya0b81c32010-01-22 02:54:33 +000032489if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32490 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32491Usually this means the macro was only invoked conditionally." "$LINENO" 5
32492fi
cristy3ed852e2009-09-05 21:47:34 +000032493if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032494 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32495Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032496fi
32497if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032498 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32499Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032500fi
32501if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032502 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32503Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032504fi
32505if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032506 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32507Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032508fi
32509if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032510 as_fn_error "conditional \"USING_CL\" was never defined.
32511Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032512fi
cristy18304f92009-11-22 15:48:26 +000032513if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32514 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32515Usually this means the macro was only invoked conditionally." "$LINENO" 5
32516fi
cristy3ed852e2009-09-05 21:47:34 +000032517if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032518 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32519Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032520fi
32521if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032522 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32523Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032524fi
32525LT_CONFIG_H=config/config.h
32526
32527 _ltdl_libobjs=
32528 _ltdl_ltlibobjs=
32529 if test -n "$_LT_LIBOBJS"; then
32530 # Remove the extension.
32531 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32532 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32533 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32534 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32535 done
32536 fi
32537 ltdl_LIBOBJS=$_ltdl_libobjs
32538
32539 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32540
32541
cristyfa112112010-01-04 17:48:07 +000032542if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32543 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32544Usually this means the macro was only invoked conditionally." "$LINENO" 5
32545fi
cristy3ed852e2009-09-05 21:47:34 +000032546if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032547 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32548Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032549fi
32550if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032551 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32552Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032553fi
32554if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032555 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32556Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032557fi
32558
32559if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032560 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32561Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032562fi
32563if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032564 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32565Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032566fi
32567if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032568 as_fn_error "conditional \"HasUMEM\" was never defined.
32569Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032570fi
32571if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032572 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32573Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032574fi
32575if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032576 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32577Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032578fi
32579if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032580 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32581Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032582fi
32583if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032584 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32585Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032586fi
32587if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032588 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32589Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032590fi
32591if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032592 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32593Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032594fi
32595if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032596 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32597Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032598fi
32599if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032600 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32601Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032602fi
32603if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032604 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32605Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032606fi
32607if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032608 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32609Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032610fi
32611if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032612 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32613Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032614fi
32615if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032616 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32617Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032618fi
32619if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032620 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32621Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032622fi
32623if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032624 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32625Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032626fi
32627if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032628 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32629Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032630fi
32631if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032632 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32633Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032634fi
32635if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032636 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32637Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032638fi
32639if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032640 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32641Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032642fi
32643if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032644 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32645Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032646fi
32647if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032648 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32649Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032650fi
32651if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032652 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32653Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032654fi
32655if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032656 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32657Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032658fi
32659if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032660 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32661Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032662fi
32663if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032664 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32665Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032666fi
32667if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032668 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32669Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032670fi
32671if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032672 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32673Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032674fi
32675if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032676 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32677Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032678fi
32679if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032680 as_fn_error "conditional \"WITH_PERL\" was never defined.
32681Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032682fi
32683if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032684 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32685Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032686fi
32687if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032688 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32689Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032690fi
32691
32692: ${CONFIG_STATUS=./config.status}
32693ac_write_fail=0
32694ac_clean_files_save=$ac_clean_files
32695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032696{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032697$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032698as_write_fail=0
32699cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032700#! $SHELL
32701# Generated by $as_me.
32702# Run this file to recreate the current configuration.
32703# Compiler output produced by configure, useful for debugging
32704# configure, is in config.log if it exists.
32705
32706debug=false
32707ac_cs_recheck=false
32708ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032709
cristy8b350f62009-11-15 23:12:43 +000032710SHELL=\${CONFIG_SHELL-$SHELL}
32711export SHELL
32712_ASEOF
32713cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32714## -------------------- ##
32715## M4sh Initialization. ##
32716## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032717
32718# Be more Bourne compatible
32719DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032720if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032721 emulate sh
32722 NULLCMD=:
32723 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32724 # is contrary to our usage. Disable this feature.
32725 alias -g '${1+"$@"}'='"$@"'
32726 setopt NO_GLOB_SUBST
32727else
cristy8b350f62009-11-15 23:12:43 +000032728 case `(set -o) 2>/dev/null` in #(
32729 *posix*) :
32730 set -o posix ;; #(
32731 *) :
32732 ;;
cristy3ed852e2009-09-05 21:47:34 +000032733esac
cristy3ed852e2009-09-05 21:47:34 +000032734fi
32735
32736
cristy3ed852e2009-09-05 21:47:34 +000032737as_nl='
32738'
32739export as_nl
32740# Printing a long string crashes Solaris 7 /usr/bin/printf.
32741as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32742as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32743as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032744# Prefer a ksh shell builtin over an external printf program on Solaris,
32745# but without wasting forks for bash or zsh.
32746if test -z "$BASH_VERSION$ZSH_VERSION" \
32747 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32748 as_echo='print -r --'
32749 as_echo_n='print -rn --'
32750elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032751 as_echo='printf %s\n'
32752 as_echo_n='printf %s'
32753else
32754 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32755 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32756 as_echo_n='/usr/ucb/echo -n'
32757 else
32758 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32759 as_echo_n_body='eval
32760 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032761 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032762 *"$as_nl"*)
32763 expr "X$arg" : "X\\(.*\\)$as_nl";
32764 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32765 esac;
32766 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32767 '
32768 export as_echo_n_body
32769 as_echo_n='sh -c $as_echo_n_body as_echo'
32770 fi
32771 export as_echo_body
32772 as_echo='sh -c $as_echo_body as_echo'
32773fi
32774
32775# The user is always right.
32776if test "${PATH_SEPARATOR+set}" != set; then
32777 PATH_SEPARATOR=:
32778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32780 PATH_SEPARATOR=';'
32781 }
32782fi
32783
cristy3ed852e2009-09-05 21:47:34 +000032784
32785# IFS
32786# We need space, tab and new line, in precisely that order. Quoting is
32787# there to prevent editors from complaining about space-tab.
32788# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32789# splitting by setting IFS to empty value.)
32790IFS=" "" $as_nl"
32791
32792# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032793case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032794 *[\\/]* ) as_myself=$0 ;;
32795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32796for as_dir in $PATH
32797do
32798 IFS=$as_save_IFS
32799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32801 done
cristy3ed852e2009-09-05 21:47:34 +000032802IFS=$as_save_IFS
32803
32804 ;;
32805esac
32806# We did not find ourselves, most probably we were run as `sh COMMAND'
32807# in which case we are not to be found in the path.
32808if test "x$as_myself" = x; then
32809 as_myself=$0
32810fi
32811if test ! -f "$as_myself"; then
32812 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032813 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032814fi
32815
cristy8b350f62009-11-15 23:12:43 +000032816# Unset variables that we do not need and which cause bugs (e.g. in
32817# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32818# suppresses any "Segmentation fault" message there. '((' could
32819# trigger a bug in pdksh 5.2.14.
32820for as_var in BASH_ENV ENV MAIL MAILPATH
32821do eval test x\${$as_var+set} = xset \
32822 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032823done
32824PS1='$ '
32825PS2='> '
32826PS4='+ '
32827
32828# NLS nuisances.
32829LC_ALL=C
32830export LC_ALL
32831LANGUAGE=C
32832export LANGUAGE
32833
cristy8b350f62009-11-15 23:12:43 +000032834# CDPATH.
32835(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32836
32837
32838# as_fn_error ERROR [LINENO LOG_FD]
32839# ---------------------------------
32840# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32841# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32842# script with status $?, using 1 if that was 0.
32843as_fn_error ()
32844{
32845 as_status=$?; test $as_status -eq 0 && as_status=1
32846 if test "$3"; then
32847 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32848 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32849 fi
32850 $as_echo "$as_me: error: $1" >&2
32851 as_fn_exit $as_status
32852} # as_fn_error
32853
32854
32855# as_fn_set_status STATUS
32856# -----------------------
32857# Set $? to STATUS, without forking.
32858as_fn_set_status ()
32859{
32860 return $1
32861} # as_fn_set_status
32862
32863# as_fn_exit STATUS
32864# -----------------
32865# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32866as_fn_exit ()
32867{
32868 set +e
32869 as_fn_set_status $1
32870 exit $1
32871} # as_fn_exit
32872
32873# as_fn_unset VAR
32874# ---------------
32875# Portably unset VAR.
32876as_fn_unset ()
32877{
32878 { eval $1=; unset $1;}
32879}
32880as_unset=as_fn_unset
32881# as_fn_append VAR VALUE
32882# ----------------------
32883# Append the text in VALUE to the end of the definition contained in VAR. Take
32884# advantage of any shell optimizations that allow amortized linear growth over
32885# repeated appends, instead of the typical quadratic growth present in naive
32886# implementations.
32887if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32888 eval 'as_fn_append ()
32889 {
32890 eval $1+=\$2
32891 }'
32892else
32893 as_fn_append ()
32894 {
32895 eval $1=\$$1\$2
32896 }
32897fi # as_fn_append
32898
32899# as_fn_arith ARG...
32900# ------------------
32901# Perform arithmetic evaluation on the ARGs, and store the result in the
32902# global $as_val. Take advantage of shells that can avoid forks. The arguments
32903# must be portable across $(()) and expr.
32904if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32905 eval 'as_fn_arith ()
32906 {
32907 as_val=$(( $* ))
32908 }'
32909else
32910 as_fn_arith ()
32911 {
32912 as_val=`expr "$@" || test $? -eq 1`
32913 }
32914fi # as_fn_arith
32915
32916
cristy3ed852e2009-09-05 21:47:34 +000032917if expr a : '\(a\)' >/dev/null 2>&1 &&
32918 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32919 as_expr=expr
32920else
32921 as_expr=false
32922fi
32923
32924if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32925 as_basename=basename
32926else
32927 as_basename=false
32928fi
32929
cristy8b350f62009-11-15 23:12:43 +000032930if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32931 as_dirname=dirname
32932else
32933 as_dirname=false
32934fi
cristy3ed852e2009-09-05 21:47:34 +000032935
cristy3ed852e2009-09-05 21:47:34 +000032936as_me=`$as_basename -- "$0" ||
32937$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32938 X"$0" : 'X\(//\)$' \| \
32939 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32940$as_echo X/"$0" |
32941 sed '/^.*\/\([^/][^/]*\)\/*$/{
32942 s//\1/
32943 q
32944 }
32945 /^X\/\(\/\/\)$/{
32946 s//\1/
32947 q
32948 }
32949 /^X\/\(\/\).*/{
32950 s//\1/
32951 q
32952 }
32953 s/.*/./; q'`
32954
cristy8b350f62009-11-15 23:12:43 +000032955# Avoid depending upon Character Ranges.
32956as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32957as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32958as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32959as_cr_digits='0123456789'
32960as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000032961
32962ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000032963case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000032964-n*)
cristy8b350f62009-11-15 23:12:43 +000032965 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000032966 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000032967 xy) ECHO_C='\c';;
32968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32969 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000032970 esac;;
32971*)
32972 ECHO_N='-n';;
32973esac
cristy3ed852e2009-09-05 21:47:34 +000032974
32975rm -f conf$$ conf$$.exe conf$$.file
32976if test -d conf$$.dir; then
32977 rm -f conf$$.dir/conf$$.file
32978else
32979 rm -f conf$$.dir
32980 mkdir conf$$.dir 2>/dev/null
32981fi
32982if (echo >conf$$.file) 2>/dev/null; then
32983 if ln -s conf$$.file conf$$ 2>/dev/null; then
32984 as_ln_s='ln -s'
32985 # ... but there are two gotchas:
32986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32988 # In both cases, we have to default to `cp -p'.
32989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32990 as_ln_s='cp -p'
32991 elif ln conf$$.file conf$$ 2>/dev/null; then
32992 as_ln_s=ln
32993 else
32994 as_ln_s='cp -p'
32995 fi
32996else
32997 as_ln_s='cp -p'
32998fi
32999rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33000rmdir conf$$.dir 2>/dev/null
33001
cristy8b350f62009-11-15 23:12:43 +000033002
33003# as_fn_mkdir_p
33004# -------------
33005# Create "$as_dir" as a directory, including parents if necessary.
33006as_fn_mkdir_p ()
33007{
33008
33009 case $as_dir in #(
33010 -*) as_dir=./$as_dir;;
33011 esac
33012 test -d "$as_dir" || eval $as_mkdir_p || {
33013 as_dirs=
33014 while :; do
33015 case $as_dir in #(
33016 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33017 *) as_qdir=$as_dir;;
33018 esac
33019 as_dirs="'$as_qdir' $as_dirs"
33020 as_dir=`$as_dirname -- "$as_dir" ||
33021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33022 X"$as_dir" : 'X\(//\)[^/]' \| \
33023 X"$as_dir" : 'X\(//\)$' \| \
33024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33025$as_echo X"$as_dir" |
33026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33027 s//\1/
33028 q
33029 }
33030 /^X\(\/\/\)[^/].*/{
33031 s//\1/
33032 q
33033 }
33034 /^X\(\/\/\)$/{
33035 s//\1/
33036 q
33037 }
33038 /^X\(\/\).*/{
33039 s//\1/
33040 q
33041 }
33042 s/.*/./; q'`
33043 test -d "$as_dir" && break
33044 done
33045 test -z "$as_dirs" || eval "mkdir $as_dirs"
33046 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33047
33048
33049} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033050if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033051 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033052else
33053 test -d ./-p && rmdir ./-p
33054 as_mkdir_p=false
33055fi
33056
33057if test -x / >/dev/null 2>&1; then
33058 as_test_x='test -x'
33059else
33060 if ls -dL / >/dev/null 2>&1; then
33061 as_ls_L_option=L
33062 else
33063 as_ls_L_option=
33064 fi
33065 as_test_x='
33066 eval sh -c '\''
33067 if test -d "$1"; then
33068 test -d "$1/.";
33069 else
cristy8b350f62009-11-15 23:12:43 +000033070 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033071 -*)set "./$1";;
33072 esac;
cristy8b350f62009-11-15 23:12:43 +000033073 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033074 ???[sx]*):;;*)false;;esac;fi
33075 '\'' sh
33076 '
33077fi
33078as_executable_p=$as_test_x
33079
33080# Sed expression to map a string onto a valid CPP name.
33081as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33082
33083# Sed expression to map a string onto a valid variable name.
33084as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33085
33086
33087exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033088## ----------------------------------- ##
33089## Main body of $CONFIG_STATUS script. ##
33090## ----------------------------------- ##
33091_ASEOF
33092test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033093
cristy8b350f62009-11-15 23:12:43 +000033094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33095# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033096# report actual input values of CONFIG_FILES etc. instead of their
33097# values after options handling.
33098ac_log="
cristyb36feb22010-03-26 16:54:37 +000033099This file was extended by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +000033100generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033101
33102 CONFIG_FILES = $CONFIG_FILES
33103 CONFIG_HEADERS = $CONFIG_HEADERS
33104 CONFIG_LINKS = $CONFIG_LINKS
33105 CONFIG_COMMANDS = $CONFIG_COMMANDS
33106 $ $0 $@
33107
33108on `(hostname || uname -n) 2>/dev/null | sed 1q`
33109"
33110
33111_ACEOF
33112
33113case $ac_config_files in *"
33114"*) set x $ac_config_files; shift; ac_config_files=$*;;
33115esac
33116
33117case $ac_config_headers in *"
33118"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33119esac
33120
33121
33122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33123# Files that config.status was made for.
33124config_files="$ac_config_files"
33125config_headers="$ac_config_headers"
33126config_commands="$ac_config_commands"
33127
33128_ACEOF
33129
33130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33131ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033132\`$as_me' instantiates files and other configuration actions
33133from templates according to the current configuration. Unless the files
33134and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033135
cristy8b350f62009-11-15 23:12:43 +000033136Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033137
33138 -h, --help print this help, then exit
33139 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033140 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033141 -q, --quiet, --silent
33142 do not print progress messages
33143 -d, --debug don't remove temporary files
33144 --recheck update $as_me by reconfiguring in the same conditions
33145 --file=FILE[:TEMPLATE]
33146 instantiate the configuration file FILE
33147 --header=FILE[:TEMPLATE]
33148 instantiate the configuration header FILE
33149
33150Configuration files:
33151$config_files
33152
33153Configuration headers:
33154$config_headers
33155
33156Configuration commands:
33157$config_commands
33158
cristy8b350f62009-11-15 23:12:43 +000033159Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033160
33161_ACEOF
33162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033163ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033164ac_cs_version="\\
cristyb36feb22010-03-26 16:54:37 +000033165ImageMagick config.status 6.6.1
cristycd4c5312009-11-22 01:19:08 +000033166configured by $0, generated by GNU Autoconf 2.65,
33167 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033168
cristy8b350f62009-11-15 23:12:43 +000033169Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033170This config.status script is free software; the Free Software Foundation
33171gives unlimited permission to copy, distribute and modify it."
33172
33173ac_pwd='$ac_pwd'
33174srcdir='$srcdir'
33175INSTALL='$INSTALL'
33176MKDIR_P='$MKDIR_P'
33177AWK='$AWK'
33178test -n "\$AWK" || AWK=awk
33179_ACEOF
33180
33181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33182# The default lists apply if the user does not specify any file.
33183ac_need_defaults=:
33184while test $# != 0
33185do
33186 case $1 in
33187 --*=*)
33188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33189 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33190 ac_shift=:
33191 ;;
33192 *)
33193 ac_option=$1
33194 ac_optarg=$2
33195 ac_shift=shift
33196 ;;
33197 esac
33198
33199 case $ac_option in
33200 # Handling of the options.
33201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33202 ac_cs_recheck=: ;;
33203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33204 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033205 --config | --confi | --conf | --con | --co | --c )
33206 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033207 --debug | --debu | --deb | --de | --d | -d )
33208 debug=: ;;
33209 --file | --fil | --fi | --f )
33210 $ac_shift
33211 case $ac_optarg in
33212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33213 esac
cristy8b350f62009-11-15 23:12:43 +000033214 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033215 ac_need_defaults=false;;
33216 --header | --heade | --head | --hea )
33217 $ac_shift
33218 case $ac_optarg in
33219 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33220 esac
cristy8b350f62009-11-15 23:12:43 +000033221 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033222 ac_need_defaults=false;;
33223 --he | --h)
33224 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000033225 as_fn_error "ambiguous option: \`$1'
33226Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033227 --help | --hel | -h )
33228 $as_echo "$ac_cs_usage"; exit ;;
33229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33230 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33231 ac_cs_silent=: ;;
33232
33233 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000033234 -*) as_fn_error "unrecognized option: \`$1'
33235Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033236
cristy8b350f62009-11-15 23:12:43 +000033237 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033238 ac_need_defaults=false ;;
33239
33240 esac
33241 shift
33242done
33243
33244ac_configure_extra_args=
33245
33246if $ac_cs_silent; then
33247 exec 6>/dev/null
33248 ac_configure_extra_args="$ac_configure_extra_args --silent"
33249fi
33250
33251_ACEOF
33252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33253if \$ac_cs_recheck; then
33254 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33255 shift
33256 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33257 CONFIG_SHELL='$SHELL'
33258 export CONFIG_SHELL
33259 exec "\$@"
33260fi
33261
33262_ACEOF
33263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33264exec 5>>config.log
33265{
33266 echo
33267 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33268## Running $as_me. ##
33269_ASBOX
33270 $as_echo "$ac_log"
33271} >&5
33272
33273_ACEOF
33274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33275#
33276# INIT-COMMANDS
33277#
33278PACKAGE="$PACKAGE"
33279AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33280
33281
33282# The HP-UX ksh and POSIX shell print the target directory to stdout
33283# if CDPATH is set.
33284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33285
33286sed_quote_subst='$sed_quote_subst'
33287double_quote_subst='$double_quote_subst'
33288delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000033289SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33290Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33291GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33292EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33293FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33294LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33295macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33296macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33297AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33298DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33299OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33300enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33301enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33302pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33303enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33304host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33305host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33306host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33307build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33308build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33309build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33310NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33311LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33312max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33313ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33314exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33315lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33316lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33317lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33318reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33319reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33320deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33321file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33322AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33323AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33324STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33325RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33326old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33327old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33328old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33329CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33330CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33331compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33332GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33333lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33334lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33335lt_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"`'
33336lt_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"`'
33337objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33338SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33339ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33340MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33341lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33342lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33343lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33344lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33345lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33346need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33347DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33348NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33349LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33350OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33351OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33352libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33353shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33354extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33355archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33356enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33357export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33358whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33359compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33360old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33361old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33362archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33363archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33364module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33365module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33366with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33367allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33368no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33369hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33370hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33371hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33372hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33373hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33374hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33375hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33376hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33377inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33378link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33379fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33380always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33381export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33382exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33383include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33384prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33385file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33386variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33387need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33388need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33389version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33390runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33391shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33392shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33393libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33394library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33395soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33396postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33397postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33398finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33399finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33400hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33401sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33402sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33403hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33404enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33405enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33406enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33407old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33408striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33409compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33410predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33411postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33412predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33413postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33414compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33415LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33416old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33417compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33418GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33419lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33420lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33421lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33422lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33423lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33424archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33425enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33426export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33427whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33428compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33429old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33430old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33431archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33432archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33433module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33434module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33435with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33436allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33437no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33438hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33439hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33440hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33441hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33442hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33443hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33444hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33445hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33446inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33447link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33448fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33449always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33450export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33451exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33452include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33453prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33454file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33455hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33456compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33457predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33458postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33459predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33460postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33461compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033462
33463LTCC='$LTCC'
33464LTCFLAGS='$LTCFLAGS'
33465compiler='$compiler_DEFAULT'
33466
33467# Quote evaled strings.
33468for var in SED \
33469GREP \
33470EGREP \
33471FGREP \
33472LD \
33473NM \
33474LN_S \
33475lt_SP2NL \
33476lt_NL2SP \
33477reload_flag \
33478deplibs_check_method \
33479file_magic_cmd \
33480AR \
33481AR_FLAGS \
33482STRIP \
33483RANLIB \
33484CC \
33485CFLAGS \
33486compiler \
33487lt_cv_sys_global_symbol_pipe \
33488lt_cv_sys_global_symbol_to_cdecl \
33489lt_cv_sys_global_symbol_to_c_name_address \
33490lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033491SHELL \
33492ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033493lt_prog_compiler_no_builtin_flag \
33494lt_prog_compiler_wl \
33495lt_prog_compiler_pic \
33496lt_prog_compiler_static \
33497lt_cv_prog_compiler_c_o \
33498need_locks \
33499DSYMUTIL \
33500NMEDIT \
33501LIPO \
33502OTOOL \
33503OTOOL64 \
33504shrext_cmds \
33505export_dynamic_flag_spec \
33506whole_archive_flag_spec \
33507compiler_needs_object \
33508with_gnu_ld \
33509allow_undefined_flag \
33510no_undefined_flag \
33511hardcode_libdir_flag_spec \
33512hardcode_libdir_flag_spec_ld \
33513hardcode_libdir_separator \
33514fix_srcfile_path \
33515exclude_expsyms \
33516include_expsyms \
33517file_list_spec \
33518variables_saved_for_relink \
33519libname_spec \
33520library_names_spec \
33521soname_spec \
33522finish_eval \
33523old_striplib \
33524striplib \
33525compiler_lib_search_dirs \
33526predep_objects \
33527postdep_objects \
33528predeps \
33529postdeps \
33530compiler_lib_search_path \
33531LD_CXX \
33532compiler_CXX \
33533lt_prog_compiler_no_builtin_flag_CXX \
33534lt_prog_compiler_wl_CXX \
33535lt_prog_compiler_pic_CXX \
33536lt_prog_compiler_static_CXX \
33537lt_cv_prog_compiler_c_o_CXX \
33538export_dynamic_flag_spec_CXX \
33539whole_archive_flag_spec_CXX \
33540compiler_needs_object_CXX \
33541with_gnu_ld_CXX \
33542allow_undefined_flag_CXX \
33543no_undefined_flag_CXX \
33544hardcode_libdir_flag_spec_CXX \
33545hardcode_libdir_flag_spec_ld_CXX \
33546hardcode_libdir_separator_CXX \
33547fix_srcfile_path_CXX \
33548exclude_expsyms_CXX \
33549include_expsyms_CXX \
33550file_list_spec_CXX \
33551compiler_lib_search_dirs_CXX \
33552predep_objects_CXX \
33553postdep_objects_CXX \
33554predeps_CXX \
33555postdeps_CXX \
33556compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033557 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033558 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033560 ;;
33561 *)
33562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33563 ;;
33564 esac
33565done
33566
33567# Double-quote double-evaled strings.
33568for var in reload_cmds \
33569old_postinstall_cmds \
33570old_postuninstall_cmds \
33571old_archive_cmds \
33572extract_expsyms_cmds \
33573old_archive_from_new_cmds \
33574old_archive_from_expsyms_cmds \
33575archive_cmds \
33576archive_expsym_cmds \
33577module_cmds \
33578module_expsym_cmds \
33579export_symbols_cmds \
33580prelink_cmds \
33581postinstall_cmds \
33582postuninstall_cmds \
33583finish_cmds \
33584sys_lib_search_path_spec \
33585sys_lib_dlsearch_path_spec \
33586old_archive_cmds_CXX \
33587old_archive_from_new_cmds_CXX \
33588old_archive_from_expsyms_cmds_CXX \
33589archive_cmds_CXX \
33590archive_expsym_cmds_CXX \
33591module_cmds_CXX \
33592module_expsym_cmds_CXX \
33593export_symbols_cmds_CXX \
33594prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033595 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033596 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033597 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 +000033598 ;;
33599 *)
33600 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33601 ;;
33602 esac
33603done
33604
cristy18304f92009-11-22 15:48:26 +000033605# Fix-up fallback echo if it was mangled by the above quoting rules.
33606case \$lt_ECHO in
33607*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33608 ;;
33609esac
33610
cristy3ed852e2009-09-05 21:47:34 +000033611ac_aux_dir='$ac_aux_dir'
33612xsi_shell='$xsi_shell'
33613lt_shell_append='$lt_shell_append'
33614
33615# See if we are running on zsh, and set the options which allow our
33616# commands through without removal of \ escapes INIT.
33617if test -n "\${ZSH_VERSION+set}" ; then
33618 setopt NO_GLOB_SUBST
33619fi
33620
33621
33622 PACKAGE='$PACKAGE'
33623 VERSION='$VERSION'
33624 TIMESTAMP='$TIMESTAMP'
33625 RM='$RM'
33626 ofile='$ofile'
33627
33628
33629
33630
33631
33632
33633_ACEOF
33634
33635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33636
33637# Handling of arguments.
33638for ac_config_target in $ac_config_targets
33639do
33640 case $ac_config_target in
33641 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33642 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33643 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33644 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33645 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33646 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33647 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033648 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033649 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33650 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33651 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33652 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33653 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33654 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33655 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33656 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33657 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33658 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33659 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33660 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33661 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33662 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33663 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33664 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33665 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33666 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33667 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33668 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33669 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33670 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33671 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33672 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33673 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33674 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33675 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33676 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33677 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33678 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33679 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33680 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33681 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33682 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33683 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33684 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33685 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33686 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33687 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33688 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33689 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33690 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33691
cristy8b350f62009-11-15 23:12:43 +000033692 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033693 esac
33694done
33695
33696
33697# If the user did not use the arguments to specify the items to instantiate,
33698# then the envvar interface is used. Set only those that are not.
33699# We use the long form for the default assignment because of an extremely
33700# bizarre bug on SunOS 4.1.3.
33701if $ac_need_defaults; then
33702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33705fi
33706
33707# Have a temporary directory for convenience. Make it in the build tree
33708# simply because there is no reason against having it here, and in addition,
33709# creating and moving files from /tmp can sometimes cause problems.
33710# Hook for its removal unless debugging.
33711# Note that there is a small window in which the directory will not be cleaned:
33712# after its creation but before its name has been assigned to `$tmp'.
33713$debug ||
33714{
33715 tmp=
33716 trap 'exit_status=$?
33717 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33718' 0
cristy8b350f62009-11-15 23:12:43 +000033719 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033720}
33721# Create a (secure) tmp directory for tmp files.
33722
33723{
33724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33725 test -n "$tmp" && test -d "$tmp"
33726} ||
33727{
33728 tmp=./conf$$-$RANDOM
33729 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033730} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033731
33732# Set up the scripts for CONFIG_FILES section.
33733# No need to generate them if there are no CONFIG_FILES.
33734# This happens for instance with `./config.status config.h'.
33735if test -n "$CONFIG_FILES"; then
33736
33737
cristy8b350f62009-11-15 23:12:43 +000033738ac_cr=`echo X | tr X '\015'`
33739# On cygwin, bash can eat \r inside `` if the user requested igncr.
33740# But we know of no other shell where ac_cr would be empty at this
33741# point, so we can use a bashism as a fallback.
33742if test "x$ac_cr" = x; then
33743 eval ac_cr=\$\'\\r\'
33744fi
cristy3ed852e2009-09-05 21:47:34 +000033745ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33746if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033747 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033748else
33749 ac_cs_awk_cr=$ac_cr
33750fi
33751
33752echo 'BEGIN {' >"$tmp/subs1.awk" &&
33753_ACEOF
33754
33755
33756{
33757 echo "cat >conf$$subs.awk <<_ACEOF" &&
33758 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33759 echo "_ACEOF"
33760} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033761 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033762ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33763ac_delim='%!_!# '
33764for ac_last_try in false false false false false :; do
33765 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033766 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033767
33768 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33769 if test $ac_delim_n = $ac_delim_num; then
33770 break
33771 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033772 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033773 else
33774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33775 fi
33776done
33777rm -f conf$$subs.sh
33778
33779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33780cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33781_ACEOF
33782sed -n '
33783h
33784s/^/S["/; s/!.*/"]=/
33785p
33786g
33787s/^[^!]*!//
33788:repl
33789t repl
33790s/'"$ac_delim"'$//
33791t delim
33792:nl
33793h
cristycd4c5312009-11-22 01:19:08 +000033794s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033795t more1
33796s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33797p
33798n
33799b repl
33800:more1
33801s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33802p
33803g
33804s/.\{148\}//
33805t nl
33806:delim
33807h
cristycd4c5312009-11-22 01:19:08 +000033808s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033809t more2
33810s/["\\]/\\&/g; s/^/"/; s/$/"/
33811p
33812b
33813:more2
33814s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33815p
33816g
33817s/.\{148\}//
33818t delim
33819' <conf$$subs.awk | sed '
33820/^[^""]/{
33821 N
33822 s/\n//
33823}
33824' >>$CONFIG_STATUS || ac_write_fail=1
33825rm -f conf$$subs.awk
33826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33827_ACAWK
33828cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33829 for (key in S) S_is_set[key] = 1
33830 FS = ""
33831
33832}
33833{
33834 line = $ 0
33835 nfields = split(line, field, "@")
33836 substed = 0
33837 len = length(field[1])
33838 for (i = 2; i < nfields; i++) {
33839 key = field[i]
33840 keylen = length(key)
33841 if (S_is_set[key]) {
33842 value = S[key]
33843 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33844 len += length(value) + length(field[++i])
33845 substed = 1
33846 } else
33847 len += 1 + keylen
33848 }
33849
33850 print line
33851}
33852
33853_ACAWK
33854_ACEOF
33855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33856if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33858else
33859 cat
33860fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000033861 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033862_ACEOF
33863
33864# VPATH may cause trouble with some makes, so we remove $(srcdir),
33865# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33866# trailing colons and then remove the whole line if VPATH becomes empty
33867# (actually we leave an empty line to preserve line numbers).
33868if test "x$srcdir" = x.; then
33869 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33870s/:*\$(srcdir):*/:/
33871s/:*\${srcdir}:*/:/
33872s/:*@srcdir@:*/:/
33873s/^\([^=]*=[ ]*\):*/\1/
33874s/:*$//
33875s/^[^=]*=[ ]*$//
33876}'
33877fi
33878
33879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33880fi # test -n "$CONFIG_FILES"
33881
33882# Set up the scripts for CONFIG_HEADERS section.
33883# No need to generate them if there are no CONFIG_HEADERS.
33884# This happens for instance with `./config.status Makefile'.
33885if test -n "$CONFIG_HEADERS"; then
33886cat >"$tmp/defines.awk" <<\_ACAWK ||
33887BEGIN {
33888_ACEOF
33889
33890# Transform confdefs.h into an awk script `defines.awk', embedded as
33891# here-document in config.status, that substitutes the proper values into
33892# config.h.in to produce config.h.
33893
33894# Create a delimiter string that does not exist in confdefs.h, to ease
33895# handling of long lines.
33896ac_delim='%!_!# '
33897for ac_last_try in false false :; do
33898 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33899 if test -z "$ac_t"; then
33900 break
33901 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033902 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033903 else
33904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33905 fi
33906done
33907
33908# For the awk script, D is an array of macro values keyed by name,
33909# likewise P contains macro parameters if any. Preserve backslash
33910# newline sequences.
33911
33912ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33913sed -n '
33914s/.\{148\}/&'"$ac_delim"'/g
33915t rset
33916:rset
33917s/^[ ]*#[ ]*define[ ][ ]*/ /
33918t def
33919d
33920:def
33921s/\\$//
33922t bsnl
33923s/["\\]/\\&/g
33924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33925D["\1"]=" \3"/p
33926s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33927d
33928:bsnl
33929s/["\\]/\\&/g
33930s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33931D["\1"]=" \3\\\\\\n"\\/p
33932t cont
33933s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33934t cont
33935d
33936:cont
33937n
33938s/.\{148\}/&'"$ac_delim"'/g
33939t clear
33940:clear
33941s/\\$//
33942t bsnlc
33943s/["\\]/\\&/g; s/^/"/; s/$/"/p
33944d
33945:bsnlc
33946s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33947b cont
33948' <confdefs.h | sed '
33949s/'"$ac_delim"'/"\\\
33950"/g' >>$CONFIG_STATUS || ac_write_fail=1
33951
33952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33953 for (key in D) D_is_set[key] = 1
33954 FS = ""
33955}
33956/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33957 line = \$ 0
33958 split(line, arg, " ")
33959 if (arg[1] == "#") {
33960 defundef = arg[2]
33961 mac1 = arg[3]
33962 } else {
33963 defundef = substr(arg[1], 2)
33964 mac1 = arg[2]
33965 }
33966 split(mac1, mac2, "(") #)
33967 macro = mac2[1]
33968 prefix = substr(line, 1, index(line, defundef) - 1)
33969 if (D_is_set[macro]) {
33970 # Preserve the white space surrounding the "#".
33971 print prefix "define", macro P[macro] D[macro]
33972 next
33973 } else {
33974 # Replace #undef with comments. This is necessary, for example,
33975 # in the case of _POSIX_SOURCE, which is predefined and required
33976 # on some systems where configure will not decide to define it.
33977 if (defundef == "undef") {
33978 print "/*", prefix defundef, macro, "*/"
33979 next
33980 }
33981 }
33982}
33983{ print }
33984_ACAWK
33985_ACEOF
33986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000033987 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033988fi # test -n "$CONFIG_HEADERS"
33989
33990
33991eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33992shift
33993for ac_tag
33994do
33995 case $ac_tag in
33996 :[FHLC]) ac_mode=$ac_tag; continue;;
33997 esac
33998 case $ac_mode$ac_tag in
33999 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000034000 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034001 :[FH]-) ac_tag=-:-;;
34002 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34003 esac
34004 ac_save_IFS=$IFS
34005 IFS=:
34006 set x $ac_tag
34007 IFS=$ac_save_IFS
34008 shift
34009 ac_file=$1
34010 shift
34011
34012 case $ac_mode in
34013 :L) ac_source=$1;;
34014 :[FH])
34015 ac_file_inputs=
34016 for ac_f
34017 do
34018 case $ac_f in
34019 -) ac_f="$tmp/stdin";;
34020 *) # Look for the file first in the build tree, then in the source tree
34021 # (if the path is not absolute). The absolute path cannot be DOS-style,
34022 # because $ac_f cannot contain `:'.
34023 test -f "$ac_f" ||
34024 case $ac_f in
34025 [\\/$]*) false;;
34026 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34027 esac ||
cristy8b350f62009-11-15 23:12:43 +000034028 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034029 esac
34030 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034031 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034032 done
34033
34034 # Let's still pretend it is `configure' which instantiates (i.e., don't
34035 # use $as_me), people would be surprised to read:
34036 # /* config.h. Generated by config.status. */
34037 configure_input='Generated from '`
34038 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34039 `' by configure.'
34040 if test x"$ac_file" != x-; then
34041 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034043$as_echo "$as_me: creating $ac_file" >&6;}
34044 fi
34045 # Neutralize special characters interpreted by sed in replacement strings.
34046 case $configure_input in #(
34047 *\&* | *\|* | *\\* )
34048 ac_sed_conf_input=`$as_echo "$configure_input" |
34049 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34050 *) ac_sed_conf_input=$configure_input;;
34051 esac
34052
34053 case $ac_tag in
34054 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000034055 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034056 esac
34057 ;;
34058 esac
34059
34060 ac_dir=`$as_dirname -- "$ac_file" ||
34061$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34062 X"$ac_file" : 'X\(//\)[^/]' \| \
34063 X"$ac_file" : 'X\(//\)$' \| \
34064 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34065$as_echo X"$ac_file" |
34066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34067 s//\1/
34068 q
34069 }
34070 /^X\(\/\/\)[^/].*/{
34071 s//\1/
34072 q
34073 }
34074 /^X\(\/\/\)$/{
34075 s//\1/
34076 q
34077 }
34078 /^X\(\/\).*/{
34079 s//\1/
34080 q
34081 }
34082 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034083 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034084 ac_builddir=.
34085
34086case "$ac_dir" in
34087.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34088*)
34089 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34090 # A ".." for each directory in $ac_dir_suffix.
34091 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34092 case $ac_top_builddir_sub in
34093 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34094 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34095 esac ;;
34096esac
34097ac_abs_top_builddir=$ac_pwd
34098ac_abs_builddir=$ac_pwd$ac_dir_suffix
34099# for backward compatibility:
34100ac_top_builddir=$ac_top_build_prefix
34101
34102case $srcdir in
34103 .) # We are building in place.
34104 ac_srcdir=.
34105 ac_top_srcdir=$ac_top_builddir_sub
34106 ac_abs_top_srcdir=$ac_pwd ;;
34107 [\\/]* | ?:[\\/]* ) # Absolute name.
34108 ac_srcdir=$srcdir$ac_dir_suffix;
34109 ac_top_srcdir=$srcdir
34110 ac_abs_top_srcdir=$srcdir ;;
34111 *) # Relative name.
34112 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34113 ac_top_srcdir=$ac_top_build_prefix$srcdir
34114 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34115esac
34116ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34117
34118
34119 case $ac_mode in
34120 :F)
34121 #
34122 # CONFIG_FILE
34123 #
34124
34125 case $INSTALL in
34126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34127 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34128 esac
34129 ac_MKDIR_P=$MKDIR_P
34130 case $MKDIR_P in
34131 [\\/$]* | ?:[\\/]* ) ;;
34132 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34133 esac
34134_ACEOF
34135
34136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34137# If the template does not know about datarootdir, expand it.
34138# FIXME: This hack should be removed a few years after 2.60.
34139ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034140ac_sed_dataroot='
34141/datarootdir/ {
34142 p
34143 q
34144}
34145/@datadir@/p
34146/@docdir@/p
34147/@infodir@/p
34148/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034149/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034150case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34151*datarootdir*) ac_datarootdir_seen=yes;;
34152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034154$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34155_ACEOF
34156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34157 ac_datarootdir_hack='
34158 s&@datadir@&$datadir&g
34159 s&@docdir@&$docdir&g
34160 s&@infodir@&$infodir&g
34161 s&@localedir@&$localedir&g
34162 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034163 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034164esac
34165_ACEOF
34166
34167# Neutralize VPATH when `$srcdir' = `.'.
34168# Shell code in configure.ac might set extrasub.
34169# FIXME: do we really want to maintain this feature?
34170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34171ac_sed_extra="$ac_vpsub
34172$extrasub
34173_ACEOF
34174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34175:t
34176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34177s|@configure_input@|$ac_sed_conf_input|;t t
34178s&@top_builddir@&$ac_top_builddir_sub&;t t
34179s&@top_build_prefix@&$ac_top_build_prefix&;t t
34180s&@srcdir@&$ac_srcdir&;t t
34181s&@abs_srcdir@&$ac_abs_srcdir&;t t
34182s&@top_srcdir@&$ac_top_srcdir&;t t
34183s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34184s&@builddir@&$ac_builddir&;t t
34185s&@abs_builddir@&$ac_abs_builddir&;t t
34186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34187s&@INSTALL@&$ac_INSTALL&;t t
34188s&@MKDIR_P@&$ac_MKDIR_P&;t t
34189$ac_datarootdir_hack
34190"
34191eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000034192 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034193
34194test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34195 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34196 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000034198which seems to be undefined. Please make sure it is defined." >&5
34199$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34200which seems to be undefined. Please make sure it is defined." >&2;}
34201
34202 rm -f "$tmp/stdin"
34203 case $ac_file in
34204 -) cat "$tmp/out" && rm -f "$tmp/out";;
34205 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34206 esac \
cristy8b350f62009-11-15 23:12:43 +000034207 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034208 ;;
34209 :H)
34210 #
34211 # CONFIG_HEADER
34212 #
34213 if test x"$ac_file" != x-; then
34214 {
34215 $as_echo "/* $configure_input */" \
34216 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34217 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000034218 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034219 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034220 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034221$as_echo "$as_me: $ac_file is unchanged" >&6;}
34222 else
34223 rm -f "$ac_file"
34224 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000034225 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034226 fi
34227 else
34228 $as_echo "/* $configure_input */" \
34229 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000034230 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034231 fi
34232# Compute "$ac_file"'s index in $config_headers.
34233_am_arg="$ac_file"
34234_am_stamp_count=1
34235for _am_header in $config_headers :; do
34236 case $_am_header in
34237 $_am_arg | $_am_arg:* )
34238 break ;;
34239 * )
34240 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34241 esac
34242done
34243echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34244$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34245 X"$_am_arg" : 'X\(//\)[^/]' \| \
34246 X"$_am_arg" : 'X\(//\)$' \| \
34247 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34248$as_echo X"$_am_arg" |
34249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34250 s//\1/
34251 q
34252 }
34253 /^X\(\/\/\)[^/].*/{
34254 s//\1/
34255 q
34256 }
34257 /^X\(\/\/\)$/{
34258 s//\1/
34259 q
34260 }
34261 /^X\(\/\).*/{
34262 s//\1/
34263 q
34264 }
34265 s/.*/./; q'`/stamp-h$_am_stamp_count
34266 ;;
34267
cristy8b350f62009-11-15 23:12:43 +000034268 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269$as_echo "$as_me: executing $ac_file commands" >&6;}
34270 ;;
34271 esac
34272
34273
34274 case $ac_file$ac_mode in
34275 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34276ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34277ac_prefix_conf_PKG=`echo MagickCore`
34278ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34279ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34280ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34281if test ".$ac_prefix_conf_INP" = "."; then
34282 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34283 case "$ac_file" in
34284 *.h) ac_prefix_conf_INP=$ac_file ;;
34285 *)
34286 esac
34287 test ".$ac_prefix_conf_INP" != "." && break
34288 done
34289fi
34290if test ".$ac_prefix_conf_INP" = "."; then
34291 case "$ac_prefix_conf_OUT" in
34292 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34293 ;;
34294 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34295 ;;
34296 *) ac_prefix_conf_INP=config.h
34297 ;;
34298 esac
34299fi
34300if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000034301 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034302else
34303 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34304 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34305 fi fi
cristy8b350f62009-11-15 23:12:43 +000034306 { $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 +000034307$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34308 if test -f $ac_prefix_conf_INP ; then
34309 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34310 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034311 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34312 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034313 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034314 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34315 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034316 echo "#endif/" >> conftest.prefix
34317 # now executing _script on _DEF input to create _OUT output file
34318 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34319 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34320 echo ' ' >>$tmp/pconfig.h
34321 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34322
34323 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34324 echo ' ' >>$tmp/pconfig.h
34325 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34326 echo "#endif" >>$tmp/pconfig.h
34327 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034329$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34330 else
34331 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34332$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34333 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34334 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34335 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34336$as_echo X"$ac_prefix_conf_OUT" |
34337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34338 s//\1/
34339 q
34340 }
34341 /^X\(\/\/\)[^/].*/{
34342 s//\1/
34343 q
34344 }
34345 /^X\(\/\/\)$/{
34346 s//\1/
34347 q
34348 }
34349 /^X\(\/\).*/{
34350 s//\1/
34351 q
34352 }
34353 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034354 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034355 rm -f "$ac_prefix_conf_OUT"
34356 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34357 fi
34358 cp conftest.prefix _configs.sed
34359 else
cristy8b350f62009-11-15 23:12:43 +000034360 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 +000034361 fi
34362 rm -f conftest.*
34363fi
34364 ;;
34365 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34366 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34367 # are listed without --file. Let's play safe and only enable the eval
34368 # if we detect the quoting.
34369 case $CONFIG_FILES in
34370 *\'*) eval set x "$CONFIG_FILES" ;;
34371 *) set x $CONFIG_FILES ;;
34372 esac
34373 shift
34374 for mf
34375 do
34376 # Strip MF so we end up with the name of the file.
34377 mf=`echo "$mf" | sed -e 's/:.*$//'`
34378 # Check whether this is an Automake generated Makefile or not.
34379 # We used to match only the files named `Makefile.in', but
34380 # some people rename them; so instead we look at the file content.
34381 # Grep'ing the first line is not enough: some people post-process
34382 # each Makefile.in and add a new line on top of each file to say so.
34383 # Grep'ing the whole file is not good either: AIX grep has a line
34384 # limit of 2048, but all sed's we know have understand at least 4000.
34385 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34386 dirpart=`$as_dirname -- "$mf" ||
34387$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34388 X"$mf" : 'X\(//\)[^/]' \| \
34389 X"$mf" : 'X\(//\)$' \| \
34390 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34391$as_echo X"$mf" |
34392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34393 s//\1/
34394 q
34395 }
34396 /^X\(\/\/\)[^/].*/{
34397 s//\1/
34398 q
34399 }
34400 /^X\(\/\/\)$/{
34401 s//\1/
34402 q
34403 }
34404 /^X\(\/\).*/{
34405 s//\1/
34406 q
34407 }
34408 s/.*/./; q'`
34409 else
34410 continue
34411 fi
34412 # Extract the definition of DEPDIR, am__include, and am__quote
34413 # from the Makefile without running `make'.
34414 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34415 test -z "$DEPDIR" && continue
34416 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34417 test -z "am__include" && continue
34418 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34419 # When using ansi2knr, U may be empty or an underscore; expand it
34420 U=`sed -n 's/^U = //p' < "$mf"`
34421 # Find all dependency output files, they are included files with
34422 # $(DEPDIR) in their names. We invoke sed twice because it is the
34423 # simplest approach to changing $(DEPDIR) to its actual value in the
34424 # expansion.
34425 for file in `sed -n "
34426 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34427 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34428 # Make sure the directory exists.
34429 test -f "$dirpart/$file" && continue
34430 fdir=`$as_dirname -- "$file" ||
34431$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34432 X"$file" : 'X\(//\)[^/]' \| \
34433 X"$file" : 'X\(//\)$' \| \
34434 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34435$as_echo X"$file" |
34436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34437 s//\1/
34438 q
34439 }
34440 /^X\(\/\/\)[^/].*/{
34441 s//\1/
34442 q
34443 }
34444 /^X\(\/\/\)$/{
34445 s//\1/
34446 q
34447 }
34448 /^X\(\/\).*/{
34449 s//\1/
34450 q
34451 }
34452 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034453 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034454 # echo "creating $dirpart/$file"
34455 echo '# dummy' > "$dirpart/$file"
34456 done
34457 done
34458}
34459 ;;
34460 "libtool":C)
34461
34462 # See if we are running on zsh, and set the options which allow our
34463 # commands through without removal of \ escapes.
34464 if test -n "${ZSH_VERSION+set}" ; then
34465 setopt NO_GLOB_SUBST
34466 fi
34467
34468 cfgfile="${ofile}T"
34469 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34470 $RM "$cfgfile"
34471
34472 cat <<_LT_EOF >> "$cfgfile"
34473#! $SHELL
34474
34475# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34476# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34477# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34478# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34479#
34480# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034481# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034482# Written by Gordon Matzigkeit, 1996
34483#
34484# This file is part of GNU Libtool.
34485#
34486# GNU Libtool is free software; you can redistribute it and/or
34487# modify it under the terms of the GNU General Public License as
34488# published by the Free Software Foundation; either version 2 of
34489# the License, or (at your option) any later version.
34490#
34491# As a special exception to the GNU General Public License,
34492# if you distribute this file as part of a program or library that
34493# is built using GNU Libtool, you may include this file under the
34494# same distribution terms that you use for the rest of that program.
34495#
34496# GNU Libtool is distributed in the hope that it will be useful,
34497# but WITHOUT ANY WARRANTY; without even the implied warranty of
34498# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34499# GNU General Public License for more details.
34500#
34501# You should have received a copy of the GNU General Public License
34502# along with GNU Libtool; see the file COPYING. If not, a copy
34503# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34504# obtained by writing to the Free Software Foundation, Inc.,
34505# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34506
34507
34508# The names of the tagged configurations supported by this script.
34509available_tags="CXX "
34510
34511# ### BEGIN LIBTOOL CONFIG
34512
34513# A sed program that does not truncate output.
34514SED=$lt_SED
34515
34516# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34517Xsed="\$SED -e 1s/^X//"
34518
34519# A grep program that handles long lines.
34520GREP=$lt_GREP
34521
34522# An ERE matcher.
34523EGREP=$lt_EGREP
34524
34525# A literal string matcher.
34526FGREP=$lt_FGREP
34527
34528# Which release of libtool.m4 was used?
34529macro_version=$macro_version
34530macro_revision=$macro_revision
34531
34532# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034533AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034534
34535# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034536DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034537
34538# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034539OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034540
34541# Whether or not to build shared libraries.
34542build_libtool_libs=$enable_shared
34543
34544# Whether or not to build static libraries.
34545build_old_libs=$enable_static
34546
34547# What type of objects to build.
34548pic_mode=$pic_mode
34549
34550# Whether or not to optimize for fast installation.
34551fast_install=$enable_fast_install
34552
34553# The host system.
34554host_alias=$host_alias
34555host=$host
34556host_os=$host_os
34557
34558# The build system.
34559build_alias=$build_alias
34560build=$build
34561build_os=$build_os
34562
34563# A BSD- or MS-compatible name lister.
34564NM=$lt_NM
34565
34566# Whether we need soft or hard links.
34567LN_S=$lt_LN_S
34568
34569# What is the maximum length of a command?
34570max_cmd_len=$max_cmd_len
34571
34572# Object file suffix (normally "o").
34573objext=$ac_objext
34574
34575# Executable file suffix (normally "").
34576exeext=$exeext
34577
34578# whether the shell understands "unset".
34579lt_unset=$lt_unset
34580
34581# turn spaces into newlines.
34582SP2NL=$lt_lt_SP2NL
34583
34584# turn newlines into spaces.
34585NL2SP=$lt_lt_NL2SP
34586
cristy18304f92009-11-22 15:48:26 +000034587# How to create reloadable object files.
34588reload_flag=$lt_reload_flag
34589reload_cmds=$lt_reload_cmds
34590
cristy3ed852e2009-09-05 21:47:34 +000034591# Method to check whether dependent libraries are shared objects.
34592deplibs_check_method=$lt_deplibs_check_method
34593
34594# Command to use when deplibs_check_method == "file_magic".
34595file_magic_cmd=$lt_file_magic_cmd
34596
34597# The archiver.
34598AR=$lt_AR
34599AR_FLAGS=$lt_AR_FLAGS
34600
34601# A symbol stripping program.
34602STRIP=$lt_STRIP
34603
34604# Commands used to install an old-style archive.
34605RANLIB=$lt_RANLIB
34606old_postinstall_cmds=$lt_old_postinstall_cmds
34607old_postuninstall_cmds=$lt_old_postuninstall_cmds
34608
34609# A C compiler.
34610LTCC=$lt_CC
34611
34612# LTCC compiler flags.
34613LTCFLAGS=$lt_CFLAGS
34614
34615# Take the output of nm and produce a listing of raw symbols and C names.
34616global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34617
34618# Transform the output of nm in a proper C declaration.
34619global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34620
34621# Transform the output of nm in a C name address pair.
34622global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34623
34624# Transform the output of nm in a C name address pair when lib prefix is needed.
34625global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34626
34627# The name of the directory that contains temporary libtool files.
34628objdir=$objdir
34629
cristy18304f92009-11-22 15:48:26 +000034630# Shell to use when invoking shell scripts.
34631SHELL=$lt_SHELL
34632
34633# An echo program that does not interpret backslashes.
34634ECHO=$lt_ECHO
34635
cristy3ed852e2009-09-05 21:47:34 +000034636# Used to examine libraries when file_magic_cmd begins with "file".
34637MAGIC_CMD=$MAGIC_CMD
34638
34639# Must we lock files when doing compilation?
34640need_locks=$lt_need_locks
34641
34642# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34643DSYMUTIL=$lt_DSYMUTIL
34644
34645# Tool to change global to local symbols on Mac OS X.
34646NMEDIT=$lt_NMEDIT
34647
34648# Tool to manipulate fat objects and archives on Mac OS X.
34649LIPO=$lt_LIPO
34650
34651# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34652OTOOL=$lt_OTOOL
34653
34654# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34655OTOOL64=$lt_OTOOL64
34656
34657# Old archive suffix (normally "a").
34658libext=$libext
34659
34660# Shared library suffix (normally ".so").
34661shrext_cmds=$lt_shrext_cmds
34662
34663# The commands to extract the exported symbol list from a shared archive.
34664extract_expsyms_cmds=$lt_extract_expsyms_cmds
34665
34666# Variables whose values should be saved in libtool wrapper scripts and
34667# restored at link time.
34668variables_saved_for_relink=$lt_variables_saved_for_relink
34669
34670# Do we need the "lib" prefix for modules?
34671need_lib_prefix=$need_lib_prefix
34672
34673# Do we need a version for libraries?
34674need_version=$need_version
34675
34676# Library versioning type.
34677version_type=$version_type
34678
34679# Shared library runtime path variable.
34680runpath_var=$runpath_var
34681
34682# Shared library path variable.
34683shlibpath_var=$shlibpath_var
34684
34685# Is shlibpath searched before the hard-coded library search path?
34686shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34687
34688# Format of library name prefix.
34689libname_spec=$lt_libname_spec
34690
34691# List of archive names. First name is the real one, the rest are links.
34692# The last name is the one that the linker finds with -lNAME
34693library_names_spec=$lt_library_names_spec
34694
34695# The coded name of the library, if different from the real name.
34696soname_spec=$lt_soname_spec
34697
34698# Command to use after installation of a shared archive.
34699postinstall_cmds=$lt_postinstall_cmds
34700
34701# Command to use after uninstallation of a shared archive.
34702postuninstall_cmds=$lt_postuninstall_cmds
34703
34704# Commands used to finish a libtool library installation in a directory.
34705finish_cmds=$lt_finish_cmds
34706
34707# As "finish_cmds", except a single script fragment to be evaled but
34708# not shown.
34709finish_eval=$lt_finish_eval
34710
34711# Whether we should hardcode library paths into libraries.
34712hardcode_into_libs=$hardcode_into_libs
34713
34714# Compile-time system search path for libraries.
34715sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34716
34717# Run-time system search path for libraries.
34718sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34719
34720# Whether dlopen is supported.
34721dlopen_support=$enable_dlopen
34722
34723# Whether dlopen of programs is supported.
34724dlopen_self=$enable_dlopen_self
34725
34726# Whether dlopen of statically linked programs is supported.
34727dlopen_self_static=$enable_dlopen_self_static
34728
34729# Commands to strip libraries.
34730old_striplib=$lt_old_striplib
34731striplib=$lt_striplib
34732
34733
34734# The linker used to build libraries.
34735LD=$lt_LD
34736
34737# Commands used to build an old-style archive.
34738old_archive_cmds=$lt_old_archive_cmds
34739
34740# A language specific compiler.
34741CC=$lt_compiler
34742
34743# Is the compiler the GNU compiler?
34744with_gcc=$GCC
34745
34746# Compiler flag to turn off builtin functions.
34747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34748
34749# How to pass a linker flag through the compiler.
34750wl=$lt_lt_prog_compiler_wl
34751
34752# Additional compiler flags for building library objects.
34753pic_flag=$lt_lt_prog_compiler_pic
34754
34755# Compiler flag to prevent dynamic linking.
34756link_static_flag=$lt_lt_prog_compiler_static
34757
34758# Does compiler simultaneously support -c and -o options?
34759compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34760
34761# Whether or not to add -lc for building shared libraries.
34762build_libtool_need_lc=$archive_cmds_need_lc
34763
34764# Whether or not to disallow shared libs when runtime libs are static.
34765allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34766
34767# Compiler flag to allow reflexive dlopens.
34768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34769
34770# Compiler flag to generate shared objects directly from archives.
34771whole_archive_flag_spec=$lt_whole_archive_flag_spec
34772
34773# Whether the compiler copes with passing no objects directly.
34774compiler_needs_object=$lt_compiler_needs_object
34775
34776# Create an old-style archive from a shared archive.
34777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34778
34779# Create a temporary old-style archive to link instead of a shared archive.
34780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34781
34782# Commands used to build a shared archive.
34783archive_cmds=$lt_archive_cmds
34784archive_expsym_cmds=$lt_archive_expsym_cmds
34785
34786# Commands used to build a loadable module if different from building
34787# a shared archive.
34788module_cmds=$lt_module_cmds
34789module_expsym_cmds=$lt_module_expsym_cmds
34790
34791# Whether we are building with GNU ld or not.
34792with_gnu_ld=$lt_with_gnu_ld
34793
34794# Flag that allows shared libraries with undefined symbols to be built.
34795allow_undefined_flag=$lt_allow_undefined_flag
34796
34797# Flag that enforces no undefined symbols.
34798no_undefined_flag=$lt_no_undefined_flag
34799
34800# Flag to hardcode \$libdir into a binary during linking.
34801# This must work even if \$libdir does not exist
34802hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34803
34804# If ld is used when linking, flag to hardcode \$libdir into a binary
34805# during linking. This must work even if \$libdir does not exist.
34806hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34807
34808# Whether we need a single "-rpath" flag with a separated argument.
34809hardcode_libdir_separator=$lt_hardcode_libdir_separator
34810
34811# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34812# DIR into the resulting binary.
34813hardcode_direct=$hardcode_direct
34814
34815# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34816# DIR into the resulting binary and the resulting library dependency is
34817# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34818# library is relocated.
34819hardcode_direct_absolute=$hardcode_direct_absolute
34820
34821# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34822# into the resulting binary.
34823hardcode_minus_L=$hardcode_minus_L
34824
34825# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34826# into the resulting binary.
34827hardcode_shlibpath_var=$hardcode_shlibpath_var
34828
34829# Set to "yes" if building a shared library automatically hardcodes DIR
34830# into the library and all subsequent libraries and executables linked
34831# against it.
34832hardcode_automatic=$hardcode_automatic
34833
34834# Set to yes if linker adds runtime paths of dependent libraries
34835# to runtime path list.
34836inherit_rpath=$inherit_rpath
34837
34838# Whether libtool must link a program against all its dependency libraries.
34839link_all_deplibs=$link_all_deplibs
34840
34841# Fix the shell variable \$srcfile for the compiler.
34842fix_srcfile_path=$lt_fix_srcfile_path
34843
34844# Set to "yes" if exported symbols are required.
34845always_export_symbols=$always_export_symbols
34846
34847# The commands to list exported symbols.
34848export_symbols_cmds=$lt_export_symbols_cmds
34849
34850# Symbols that should not be listed in the preloaded symbols.
34851exclude_expsyms=$lt_exclude_expsyms
34852
34853# Symbols that must always be exported.
34854include_expsyms=$lt_include_expsyms
34855
34856# Commands necessary for linking programs (against libraries) with templates.
34857prelink_cmds=$lt_prelink_cmds
34858
34859# Specify filename containing input files.
34860file_list_spec=$lt_file_list_spec
34861
34862# How to hardcode a shared library path into an executable.
34863hardcode_action=$hardcode_action
34864
34865# The directories searched by this compiler when creating a shared library.
34866compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34867
34868# Dependencies to place before and after the objects being linked to
34869# create a shared library.
34870predep_objects=$lt_predep_objects
34871postdep_objects=$lt_postdep_objects
34872predeps=$lt_predeps
34873postdeps=$lt_postdeps
34874
34875# The library search path used internally by the compiler when linking
34876# a shared library.
34877compiler_lib_search_path=$lt_compiler_lib_search_path
34878
34879# ### END LIBTOOL CONFIG
34880
34881_LT_EOF
34882
34883 case $host_os in
34884 aix3*)
34885 cat <<\_LT_EOF >> "$cfgfile"
34886# AIX sometimes has problems with the GCC collect2 program. For some
34887# reason, if we set the COLLECT_NAMES environment variable, the problems
34888# vanish in a puff of smoke.
34889if test "X${COLLECT_NAMES+set}" != Xset; then
34890 COLLECT_NAMES=
34891 export COLLECT_NAMES
34892fi
34893_LT_EOF
34894 ;;
34895 esac
34896
34897
34898ltmain="$ac_aux_dir/ltmain.sh"
34899
34900
34901 # We use sed instead of cat because bash on DJGPP gets confused if
34902 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34903 # text mode, it properly converts lines to CR/LF. This bash problem
34904 # is reportedly fixed, but why not run on old versions too?
34905 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34906 || (rm -f "$cfgfile"; exit 1)
34907
34908 case $xsi_shell in
34909 yes)
34910 cat << \_LT_EOF >> "$cfgfile"
34911
34912# func_dirname file append nondir_replacement
34913# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34914# otherwise set result to NONDIR_REPLACEMENT.
34915func_dirname ()
34916{
34917 case ${1} in
34918 */*) func_dirname_result="${1%/*}${2}" ;;
34919 * ) func_dirname_result="${3}" ;;
34920 esac
34921}
34922
34923# func_basename file
34924func_basename ()
34925{
34926 func_basename_result="${1##*/}"
34927}
34928
34929# func_dirname_and_basename file append nondir_replacement
34930# perform func_basename and func_dirname in a single function
34931# call:
34932# dirname: Compute the dirname of FILE. If nonempty,
34933# add APPEND to the result, otherwise set result
34934# to NONDIR_REPLACEMENT.
34935# value returned in "$func_dirname_result"
34936# basename: Compute filename of FILE.
34937# value retuned in "$func_basename_result"
34938# Implementation must be kept synchronized with func_dirname
34939# and func_basename. For efficiency, we do not delegate to
34940# those functions but instead duplicate the functionality here.
34941func_dirname_and_basename ()
34942{
34943 case ${1} in
34944 */*) func_dirname_result="${1%/*}${2}" ;;
34945 * ) func_dirname_result="${3}" ;;
34946 esac
34947 func_basename_result="${1##*/}"
34948}
34949
34950# func_stripname prefix suffix name
34951# strip PREFIX and SUFFIX off of NAME.
34952# PREFIX and SUFFIX must not contain globbing or regex special
34953# characters, hashes, percent signs, but SUFFIX may contain a leading
34954# dot (in which case that matches only a dot).
34955func_stripname ()
34956{
34957 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34958 # positional parameters, so assign one to ordinary parameter first.
34959 func_stripname_result=${3}
34960 func_stripname_result=${func_stripname_result#"${1}"}
34961 func_stripname_result=${func_stripname_result%"${2}"}
34962}
34963
34964# func_opt_split
34965func_opt_split ()
34966{
34967 func_opt_split_opt=${1%%=*}
34968 func_opt_split_arg=${1#*=}
34969}
34970
34971# func_lo2o object
34972func_lo2o ()
34973{
34974 case ${1} in
34975 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34976 *) func_lo2o_result=${1} ;;
34977 esac
34978}
34979
34980# func_xform libobj-or-source
34981func_xform ()
34982{
34983 func_xform_result=${1%.*}.lo
34984}
34985
34986# func_arith arithmetic-term...
34987func_arith ()
34988{
34989 func_arith_result=$(( $* ))
34990}
34991
34992# func_len string
34993# STRING may not start with a hyphen.
34994func_len ()
34995{
34996 func_len_result=${#1}
34997}
34998
34999_LT_EOF
35000 ;;
35001 *) # Bourne compatible functions.
35002 cat << \_LT_EOF >> "$cfgfile"
35003
35004# func_dirname file append nondir_replacement
35005# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35006# otherwise set result to NONDIR_REPLACEMENT.
35007func_dirname ()
35008{
35009 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000035010 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035011 if test "X$func_dirname_result" = "X${1}"; then
35012 func_dirname_result="${3}"
35013 else
35014 func_dirname_result="$func_dirname_result${2}"
35015 fi
35016}
35017
35018# func_basename file
35019func_basename ()
35020{
cristy18304f92009-11-22 15:48:26 +000035021 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035022}
35023
35024
35025# func_stripname prefix suffix name
35026# strip PREFIX and SUFFIX off of NAME.
35027# PREFIX and SUFFIX must not contain globbing or regex special
35028# characters, hashes, percent signs, but SUFFIX may contain a leading
35029# dot (in which case that matches only a dot).
35030# func_strip_suffix prefix name
35031func_stripname ()
35032{
35033 case ${2} in
cristy18304f92009-11-22 15:48:26 +000035034 .*) func_stripname_result=`$ECHO "X${3}" \
35035 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35036 *) func_stripname_result=`$ECHO "X${3}" \
35037 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035038 esac
35039}
35040
35041# sed scripts:
35042my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35043my_sed_long_arg='1s/^-[^=]*=//'
35044
35045# func_opt_split
35046func_opt_split ()
35047{
cristy18304f92009-11-22 15:48:26 +000035048 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35049 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035050}
35051
35052# func_lo2o object
35053func_lo2o ()
35054{
cristy18304f92009-11-22 15:48:26 +000035055 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035056}
35057
35058# func_xform libobj-or-source
35059func_xform ()
35060{
cristy18304f92009-11-22 15:48:26 +000035061 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035062}
35063
35064# func_arith arithmetic-term...
35065func_arith ()
35066{
35067 func_arith_result=`expr "$@"`
35068}
35069
35070# func_len string
35071# STRING may not start with a hyphen.
35072func_len ()
35073{
35074 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35075}
35076
35077_LT_EOF
35078esac
35079
35080case $lt_shell_append in
35081 yes)
35082 cat << \_LT_EOF >> "$cfgfile"
35083
35084# func_append var value
35085# Append VALUE to the end of shell variable VAR.
35086func_append ()
35087{
35088 eval "$1+=\$2"
35089}
35090_LT_EOF
35091 ;;
35092 *)
35093 cat << \_LT_EOF >> "$cfgfile"
35094
35095# func_append var value
35096# Append VALUE to the end of shell variable VAR.
35097func_append ()
35098{
35099 eval "$1=\$$1\$2"
35100}
35101
35102_LT_EOF
35103 ;;
35104 esac
35105
35106
35107 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35108 || (rm -f "$cfgfile"; exit 1)
35109
35110 mv -f "$cfgfile" "$ofile" ||
35111 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35112 chmod +x "$ofile"
35113
35114
35115 cat <<_LT_EOF >> "$ofile"
35116
35117# ### BEGIN LIBTOOL TAG CONFIG: CXX
35118
35119# The linker used to build libraries.
35120LD=$lt_LD_CXX
35121
35122# Commands used to build an old-style archive.
35123old_archive_cmds=$lt_old_archive_cmds_CXX
35124
35125# A language specific compiler.
35126CC=$lt_compiler_CXX
35127
35128# Is the compiler the GNU compiler?
35129with_gcc=$GCC_CXX
35130
35131# Compiler flag to turn off builtin functions.
35132no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35133
35134# How to pass a linker flag through the compiler.
35135wl=$lt_lt_prog_compiler_wl_CXX
35136
35137# Additional compiler flags for building library objects.
35138pic_flag=$lt_lt_prog_compiler_pic_CXX
35139
35140# Compiler flag to prevent dynamic linking.
35141link_static_flag=$lt_lt_prog_compiler_static_CXX
35142
35143# Does compiler simultaneously support -c and -o options?
35144compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35145
35146# Whether or not to add -lc for building shared libraries.
35147build_libtool_need_lc=$archive_cmds_need_lc_CXX
35148
35149# Whether or not to disallow shared libs when runtime libs are static.
35150allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35151
35152# Compiler flag to allow reflexive dlopens.
35153export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35154
35155# Compiler flag to generate shared objects directly from archives.
35156whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35157
35158# Whether the compiler copes with passing no objects directly.
35159compiler_needs_object=$lt_compiler_needs_object_CXX
35160
35161# Create an old-style archive from a shared archive.
35162old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35163
35164# Create a temporary old-style archive to link instead of a shared archive.
35165old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35166
35167# Commands used to build a shared archive.
35168archive_cmds=$lt_archive_cmds_CXX
35169archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35170
35171# Commands used to build a loadable module if different from building
35172# a shared archive.
35173module_cmds=$lt_module_cmds_CXX
35174module_expsym_cmds=$lt_module_expsym_cmds_CXX
35175
35176# Whether we are building with GNU ld or not.
35177with_gnu_ld=$lt_with_gnu_ld_CXX
35178
35179# Flag that allows shared libraries with undefined symbols to be built.
35180allow_undefined_flag=$lt_allow_undefined_flag_CXX
35181
35182# Flag that enforces no undefined symbols.
35183no_undefined_flag=$lt_no_undefined_flag_CXX
35184
35185# Flag to hardcode \$libdir into a binary during linking.
35186# This must work even if \$libdir does not exist
35187hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35188
35189# If ld is used when linking, flag to hardcode \$libdir into a binary
35190# during linking. This must work even if \$libdir does not exist.
35191hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35192
35193# Whether we need a single "-rpath" flag with a separated argument.
35194hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35195
35196# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35197# DIR into the resulting binary.
35198hardcode_direct=$hardcode_direct_CXX
35199
35200# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35201# DIR into the resulting binary and the resulting library dependency is
35202# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35203# library is relocated.
35204hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35205
35206# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35207# into the resulting binary.
35208hardcode_minus_L=$hardcode_minus_L_CXX
35209
35210# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35211# into the resulting binary.
35212hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35213
35214# Set to "yes" if building a shared library automatically hardcodes DIR
35215# into the library and all subsequent libraries and executables linked
35216# against it.
35217hardcode_automatic=$hardcode_automatic_CXX
35218
35219# Set to yes if linker adds runtime paths of dependent libraries
35220# to runtime path list.
35221inherit_rpath=$inherit_rpath_CXX
35222
35223# Whether libtool must link a program against all its dependency libraries.
35224link_all_deplibs=$link_all_deplibs_CXX
35225
35226# Fix the shell variable \$srcfile for the compiler.
35227fix_srcfile_path=$lt_fix_srcfile_path_CXX
35228
35229# Set to "yes" if exported symbols are required.
35230always_export_symbols=$always_export_symbols_CXX
35231
35232# The commands to list exported symbols.
35233export_symbols_cmds=$lt_export_symbols_cmds_CXX
35234
35235# Symbols that should not be listed in the preloaded symbols.
35236exclude_expsyms=$lt_exclude_expsyms_CXX
35237
35238# Symbols that must always be exported.
35239include_expsyms=$lt_include_expsyms_CXX
35240
35241# Commands necessary for linking programs (against libraries) with templates.
35242prelink_cmds=$lt_prelink_cmds_CXX
35243
35244# Specify filename containing input files.
35245file_list_spec=$lt_file_list_spec_CXX
35246
35247# How to hardcode a shared library path into an executable.
35248hardcode_action=$hardcode_action_CXX
35249
35250# The directories searched by this compiler when creating a shared library.
35251compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35252
35253# Dependencies to place before and after the objects being linked to
35254# create a shared library.
35255predep_objects=$lt_predep_objects_CXX
35256postdep_objects=$lt_postdep_objects_CXX
35257predeps=$lt_predeps_CXX
35258postdeps=$lt_postdeps_CXX
35259
35260# The library search path used internally by the compiler when linking
35261# a shared library.
35262compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35263
35264# ### END LIBTOOL TAG CONFIG: CXX
35265_LT_EOF
35266
35267 ;;
35268 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35269 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35270 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35271 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35272 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35273 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35274
35275 esac
35276done # for ac_tag
35277
35278
cristy8b350f62009-11-15 23:12:43 +000035279as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035280_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035281ac_clean_files=$ac_clean_files_save
35282
35283test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000035284 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035285
35286
35287# configure is writing to config.log, and then calls config.status.
35288# config.status does its own redirection, appending to config.log.
35289# Unfortunately, on DOS this fails, as config.log is still kept open
35290# by configure, so config.status won't be able to write to it; its
35291# output is simply discarded. So we exec the FD to /dev/null,
35292# effectively closing config.log, so it can be properly (re)opened and
35293# appended to by config.status. When coming back to configure, we
35294# need to make the FD available again.
35295if test "$no_create" != yes; then
35296 ac_cs_success=:
35297 ac_config_status_args=
35298 test "$silent" = yes &&
35299 ac_config_status_args="$ac_config_status_args --quiet"
35300 exec 5>/dev/null
35301 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35302 exec 5>>config.log
35303 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35304 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000035305 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035306fi
35307if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035309$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35310fi
35311
35312
35313rm -f magick-version
35314
cristy430a7312010-01-21 20:44:04 +000035315result_dejavu_font_dir='none'
35316if test "${dejavu_font_dir}x" != 'x'; then
35317 result_dejavu_font_dir=$dejavu_font_dir
35318fi
35319
cristy3ed852e2009-09-05 21:47:34 +000035320result_ghostscript_font_dir='none'
35321if test "${ghostscript_font_dir}x" != 'x'; then
35322 result_ghostscript_font_dir=$ghostscript_font_dir
35323fi
35324
35325result_windows_font_dir='none'
35326if test "${windows_font_dir}x" != 'x'; then
35327 result_windows_font_dir=${windows_font_dir}
35328fi
35329
cristy8b350f62009-11-15 23:12:43 +000035330{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035331ImageMagick is configured as follows. Please verify that this configuration
35332matches your expectations.
35333
35334Host system type: $host
35335Build system type: $build
35336
35337 Option Value
35338-------------------------------------------------------------------------------
35339Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35340Static libraries --enable-static=$enable_static $libtool_build_static_libs
35341Module support --with-modules=$with_modules $with_modules
35342GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35343Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35344High Dynamic Range Imagery
35345 --enable-hdri=$enable_hdri $enable_hdri
35346
35347Delegate Configuration:
35348BZLIB --with-bzlib=$with_bzlib $have_bzlib
35349Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035350Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035351DJVU --with-djvu=$with_djvu $have_djvu
35352DPS --with-dps=$with_dps $have_dps
35353FFTW --with-fftw=$with_fftw $have_fftw
35354FlashPIX --with-fpx=$with_fpx $have_fpx
35355FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35356FreeType --with-freetype=$with_freetype $have_freetype
35357GhostPCL None $PCLDelegate ($PCLVersion)
35358GhostXPS None $XPSDelegate ($XPSVersion)
35359Ghostscript None $PSDelegate ($GSVersion)
35360Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35361Ghostscript lib --with-gslib=$with_gslib $have_gslib
35362Graphviz --with-gvc=$with_gvc $have_gvc
35363JBIG --with-jbig=$with_jbig $have_jbig
35364JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35365JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35366LCMS --with-lcms=$with_lcms $have_lcms
35367LQR --with-lqr=$with_lqr $have_lqr
35368Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35369OpenEXR --with-openexr=$with_openexr $have_openexr
35370PERL --with-perl=$with_perl $have_perl
35371PNG --with-png=$with_png $have_png
35372RSVG --with-rsvg=$with_rsvg $have_rsvg
35373TIFF --with-tiff=$with_tiff $have_tiff
35374Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35375WMF --with-wmf=$with_wmf $have_wmf
35376X11 --with-x=$with_x $have_x
35377XML --with-xml=$with_xml $have_xml
35378ZLIB --with-zlib=$with_zlib $have_zlib
35379
35380X11 Configuration:
35381 X_CFLAGS = $X_CFLAGS
35382 X_PRE_LIBS = $X_PRE_LIBS
35383 X_LIBS = $X_LIBS
35384 X_EXTRA_LIBS = $X_EXTRA_LIBS
35385
35386Options used to compile and link:
35387 PREFIX = $PREFIX_DIR
35388 EXEC-PREFIX = $EXEC_PREFIX_DIR
35389 VERSION = $PACKAGE_VERSION
35390 CC = $CC
35391 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035392 CPPFLAGS = $MAGICK_CPPFLAGS
35393 PCFLAGS = $MAGICK_PCFLAGS
35394 DEFS = $DEFS
35395 LDFLAGS = $LDFLAGS
35396 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35397 LIBS = $MAGICK_LIBS
35398 CXX = $CXX
35399 CXXFLAGS = $CXXFLAGS
35400" >&5
35401$as_echo "
35402ImageMagick is configured as follows. Please verify that this configuration
35403matches your expectations.
35404
35405Host system type: $host
35406Build system type: $build
35407
35408 Option Value
35409-------------------------------------------------------------------------------
35410Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35411Static libraries --enable-static=$enable_static $libtool_build_static_libs
35412Module support --with-modules=$with_modules $with_modules
35413GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35414Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35415High Dynamic Range Imagery
35416 --enable-hdri=$enable_hdri $enable_hdri
35417
35418Delegate Configuration:
35419BZLIB --with-bzlib=$with_bzlib $have_bzlib
35420Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035421Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035422DJVU --with-djvu=$with_djvu $have_djvu
35423DPS --with-dps=$with_dps $have_dps
35424FFTW --with-fftw=$with_fftw $have_fftw
35425FlashPIX --with-fpx=$with_fpx $have_fpx
35426FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35427FreeType --with-freetype=$with_freetype $have_freetype
35428GhostPCL None $PCLDelegate ($PCLVersion)
35429GhostXPS None $XPSDelegate ($XPSVersion)
35430Ghostscript None $PSDelegate ($GSVersion)
35431Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35432Ghostscript lib --with-gslib=$with_gslib $have_gslib
35433Graphviz --with-gvc=$with_gvc $have_gvc
35434JBIG --with-jbig=$with_jbig $have_jbig
35435JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35436JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35437LCMS --with-lcms=$with_lcms $have_lcms
35438LQR --with-lqr=$with_lqr $have_lqr
35439Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35440OpenEXR --with-openexr=$with_openexr $have_openexr
35441PERL --with-perl=$with_perl $have_perl
35442PNG --with-png=$with_png $have_png
35443RSVG --with-rsvg=$with_rsvg $have_rsvg
35444TIFF --with-tiff=$with_tiff $have_tiff
35445Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35446WMF --with-wmf=$with_wmf $have_wmf
35447X11 --with-x=$with_x $have_x
35448XML --with-xml=$with_xml $have_xml
35449ZLIB --with-zlib=$with_zlib $have_zlib
35450
35451X11 Configuration:
35452 X_CFLAGS = $X_CFLAGS
35453 X_PRE_LIBS = $X_PRE_LIBS
35454 X_LIBS = $X_LIBS
35455 X_EXTRA_LIBS = $X_EXTRA_LIBS
35456
35457Options used to compile and link:
35458 PREFIX = $PREFIX_DIR
35459 EXEC-PREFIX = $EXEC_PREFIX_DIR
35460 VERSION = $PACKAGE_VERSION
35461 CC = $CC
35462 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035463 CPPFLAGS = $MAGICK_CPPFLAGS
35464 PCFLAGS = $MAGICK_PCFLAGS
35465 DEFS = $DEFS
35466 LDFLAGS = $LDFLAGS
35467 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35468 LIBS = $MAGICK_LIBS
35469 CXX = $CXX
35470 CXXFLAGS = $CXXFLAGS
35471" >&6; }