blob: fe862a545ccd5212d754dde634d4584991f9de87 [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
776GSVersion
777GSPSDevice
778GSPDFDevice
779GSMonoDevice
780GSEPSDevice
781GSColorDevice
782GSCMYKDevice
783GSAlphaDevice
784XPSVersion
785XPSCMYKDevice
786XPSColorDevice
787XPSMonoDevice
788PCLVersion
789PCLCMYKDevice
790PCLColorDevice
791PCLMonoDevice
792ZIP_DELEGATE_FALSE
793ZIP_DELEGATE_TRUE
794ZIP
795P7ZIP_DELEGATE_FALSE
796P7ZIP_DELEGATE_TRUE
797P7ZIP
798RPM_DELEGATE_FALSE
799RPM_DELEGATE_TRUE
800RPM
801PERL
802TAR
803ShowImageDelegate
804type_include_files
805ghostscript_font_dir
806windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000807dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000808PrintDelegate
809ZipDelegate
810XPSDelegate
811WWWDecodeDelegate
812WMFDecodeDelegate
813TXTDelegate
814SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000815RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000816RMDelegate
817RLEEncodeDelegate
818PSDelegate
819POVDelegate
820PGPDecodeDelegate
821PCLDelegate
822MVDelegate
823MPEGEncodeDelegate
824MPEGDecodeDelegate
825MANDelegate
826LaunchDelegate
827LZWEncodeDelegate
828LZWDecodeDelegate
829LPRDelegate
830LPDelegate
831ILBMEncodeDelegate
832ILBMDecodeDelegate
833HTMLDecodeDelegate
834HPGLDecodeDelegate
835HDRDecodeDelegate
836GnuplotDecodeDelegate
837MogrifyDelegate
838DisplayDelegate
839ConvertDelegate
840FIGDecodeDelegate
841EditorDelegate
842EchoDelegate
843DVIDecodeDelegate
844GVCDecodeDelegate
845DNGDecodeDelegate
846CatDelegate
847CGMDecodeDelegate
848BrowseDelegate
849BZIPDelegate
850BlenderDecodeDelegate
851AVIDecodeDelegate
852AutotraceDecodeDelegate
853SHARE_CONFIGURE_PATH
854SHARE_PATH
855DOCUMENTATION_PATH
856FILTER_PATH
857CODER_PATH
858CONFIGURE_PATH
859LIBRARY_PATH
860EXECUTABLE_PATH
861PERLMAINCC
862XML_LIBS
863XML_DELEGATE_FALSE
864XML_DELEGATE_TRUE
865xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000866WMF_LIBS
867WMF_DELEGATE_FALSE
868WMF_DELEGATE_TRUE
869TIFF_LIBS
870TIFF_DELEGATE_FALSE
871TIFF_DELEGATE_TRUE
872CAIRO_DELEGATE_FALSE
873CAIRO_DELEGATE_TRUE
874RSVG_DELEGATE_FALSE
875RSVG_DELEGATE_TRUE
876CAIRO_SVG_LIBS
877CAIRO_SVG_CFLAGS
878RSVG_LIBS
879RSVG_CFLAGS
880PNG_LIBS
881PNG_DELEGATE_FALSE
882PNG_DELEGATE_TRUE
883OPENEXR_DELEGATE_FALSE
884OPENEXR_DELEGATE_TRUE
885OPENEXR_LIBS
886OPENEXR_CFLAGS
887LQR_DELEGATE_FALSE
888LQR_DELEGATE_TRUE
889LQR_LIBS
890LQR_CFLAGS
891LCMS_LIBS
892LCMS_DELEGATE_FALSE
893LCMS_DELEGATE_TRUE
894JP2_LIBS
895JP2_DELEGATE_FALSE
896JP2_DELEGATE_TRUE
897JPEG_LIBS
898JPEG_DELEGATE_FALSE
899JPEG_DELEGATE_TRUE
900JBIG_LIBS
901JBIG_DELEGATE_FALSE
902JBIG_DELEGATE_TRUE
903GVC_DELEGATE_FALSE
904GVC_DELEGATE_TRUE
905GVC_LIBS
906GVC_CFLAGS
907GS_LIBS
908GS_DELEGATE_FALSE
909GS_DELEGATE_TRUE
910FREETYPE_LIBS
911FREETYPE_DELEGATE_FALSE
912FREETYPE_DELEGATE_TRUE
913freetype_config
914FONTCONFIG_DELEGATE_FALSE
915FONTCONFIG_DELEGATE_TRUE
916FONTCONFIG_LIBS
917FONTCONFIG_CFLAGS
918FPX_LIBS
919FPX_DELEGATE_FALSE
920FPX_DELEGATE_TRUE
921FFTW_LIBS
922FFTW_DELEGATE_FALSE
923FFTW_DELEGATE_TRUE
924DJVU_LIBS
925DJVU_DELEGATE_FALSE
926DJVU_DELEGATE_TRUE
927DPS_LIBS
928DPS_DELEGATE_FALSE
929DPS_DELEGATE_TRUE
930AUTOTRACE_DELEGATE_FALSE
931AUTOTRACE_DELEGATE_TRUE
932AUTOTRACE_LIBS
933AUTOTRACE_CFLAGS
934LIB_DL
935ZLIB_LIBS
936ZLIB_DELEGATE_FALSE
937ZLIB_DELEGATE_TRUE
938XEXT_LIBS
939X11_LIBS
940X11_DELEGATE_FALSE
941X11_DELEGATE_TRUE
942X_EXTRA_LIBS
943X_LIBS
944X_PRE_LIBS
945X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000946XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000947BZLIB_LIBS
948BZLIB_DELEGATE_FALSE
949BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000950CCMALLOCDelegate
951UMEM_LIBS
952HasUMEM_FALSE
953HasUMEM_TRUE
954THREAD_LIBS
955GOMP_LIBS
956WITH_MAGICK_PLUS_PLUS_FALSE
957WITH_MAGICK_PLUS_PLUS_TRUE
958OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000959MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000960POW_LIB
961LIBOBJS
962UINTPTR_T
963UINTMAX_T
964UINT64_T
965INT64_T
966UINT32_T
967INT32_T
968UINT16_T
969INT16_T
970UINT8_T
971INT8_T
972LIBRARY_EXTRA_CPPFLAGS
973MODULE_EXTRA_CPPFLAGS
974LIBSTDCLDFLAGS
975PERL_MAKE_OPTIONS
976QUANTUM_DEPTH
977MAINT
978MAINTAINER_MODE_FALSE
979MAINTAINER_MODE_TRUE
980MAGICK_HDRI
981DLLDFLAGS
982WITH_LTDL_FALSE
983WITH_LTDL_TRUE
984WITH_MODULES_FALSE
985WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000986WITH_SHARED_LIBS_FALSE
987WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000988LTDLOPEN
989LT_CONFIG_H
990CONVENIENCE_LTDL_FALSE
991CONVENIENCE_LTDL_TRUE
992INSTALL_LTDL_FALSE
993INSTALL_LTDL_TRUE
994ARGZ_H
995sys_symbol_underscore
996LIBADD_DL
997LT_DLPREOPEN
998LIBADD_DLD_LINK
999LIBADD_SHL_LOAD
1000LIBADD_DLOPEN
1001LT_DLLOADERS
1002INCLTDL
1003LTDLINCL
1004LTDLDEPS
1005LIBLTDL
1006LIBTOOL_DEPS
1007CXXCPP
1008OTOOL64
1009OTOOL
1010LIPO
1011NMEDIT
1012DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001013lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001014RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001015AR
1016NM
1017ac_ct_DUMPBIN
1018DUMPBIN
1019LIBTOOL
1020OBJDUMP
1021DLLTOOL
1022AS
1023LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001024CL_LIBS
1025CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001026OPENMP_CFLAGS
1027PTHREAD_CFLAGS
1028PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001029PTHREAD_CC
1030acx_pthread_config
1031WinPathScript
1032USING_CL_FALSE
1033USING_CL_TRUE
1034CYGWIN_BUILD_FALSE
1035CYGWIN_BUILD_TRUE
1036WIN32_NATIVE_BUILD_FALSE
1037WIN32_NATIVE_BUILD_TRUE
1038WINGDI32_DELEGATE_FALSE
1039WINGDI32_DELEGATE_TRUE
1040GDI32_LIBS
1041PKG_CONFIG
1042LN_S
cristy3ed852e2009-09-05 21:47:34 +00001043LD
1044FGREP
cristy3ed852e2009-09-05 21:47:34 +00001045SED
cristy95646052009-11-28 23:05:30 +00001046am__fastdepCXX_FALSE
1047am__fastdepCXX_TRUE
1048CXXDEPMODE
1049ac_ct_CXX
1050CXXFLAGS
1051CXX
cristya0b81c32010-01-22 02:54:33 +00001052EGREP
1053GREP
1054CPP
cristy3ed852e2009-09-05 21:47:34 +00001055am__fastdepCC_FALSE
1056am__fastdepCC_TRUE
1057CCDEPMODE
1058AMDEPBACKSLASH
1059AMDEP_FALSE
1060AMDEP_TRUE
1061am__quote
1062am__include
1063DEPDIR
1064OBJEXT
1065EXEEXT
1066ac_ct_CC
1067CPPFLAGS
1068LDFLAGS
1069CFLAGS
1070CC
1071DIRSEP
1072MAGICK_FILTER_MODULE_PATH
1073MAGICK_CONFIGURE_BUILD_PATH
1074MAGICK_CONFIGURE_SRC_PATH
1075MAGICK_CODER_MODULE_PATH
1076MAN_DIR
1077INFO_DIR
1078PERSISTINCLUDE_DIR
1079INCLUDE_DIR
1080LIB_DIR
1081LOCALSTATE_DIR
1082SHAREDSTATE_DIR
1083SYSCONF_DIR
1084DATA_DIR
1085LIBEXEC_DIR
1086SBIN_DIR
1087BIN_DIR
1088EXEC_PREFIX_DIR
1089PREFIX_DIR
1090CONFIG_STATUS_DEPENDENCIES
1091MAGICK_LIB_VERSION_NUMBER
1092MAGICK_LIB_VERSION_TEXT
1093MAGICK_LIB_VERSION
1094AM_BACKSLASH
1095AM_DEFAULT_VERBOSITY
1096am__untar
1097am__tar
1098AMTAR
1099am__leading_dot
1100SET_MAKE
1101AWK
1102mkdir_p
1103MKDIR_P
1104INSTALL_STRIP_PROGRAM
1105STRIP
1106install_sh
1107MAKEINFO
1108AUTOHEADER
1109AUTOMAKE
1110AUTOCONF
1111ACLOCAL
1112VERSION
1113PACKAGE
1114CYGPATH_W
1115am__isrc
1116INSTALL_DATA
1117INSTALL_SCRIPT
1118INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001119PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001120PACKAGE_RELEASE_DATE
1121PACKAGE_LIB_VERSION_NUMBER
1122PACKAGE_LIB_VERSION
1123PACKAGE_CHANGE_DATE
1124PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001125MAGICK_LIBRARY_VERSION_INFO
1126MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001127MAGICK_LIBRARY_AGE
1128MAGICK_LIBRARY_REVISION
1129MAGICK_LIBRARY_CURRENT
1130target_os
1131target_vendor
1132target_cpu
1133target
1134host_os
1135host_vendor
1136host_cpu
1137host
1138build_os
1139build_vendor
1140build_cpu
1141build
1142CONFIGURE_ARGS
1143DISTCHECK_CONFIG_FLAGS
1144target_alias
1145host_alias
1146build_alias
1147LIBS
1148ECHO_T
1149ECHO_N
1150ECHO_C
1151DEFS
1152mandir
1153localedir
1154libdir
1155psdir
1156pdfdir
1157dvidir
1158htmldir
1159infodir
1160docdir
1161oldincludedir
1162includedir
1163localstatedir
1164sharedstatedir
1165sysconfdir
1166datadir
1167datarootdir
1168libexecdir
1169sbindir
1170bindir
1171program_transform_name
1172prefix
1173exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001174PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001175PACKAGE_BUGREPORT
1176PACKAGE_STRING
1177PACKAGE_VERSION
1178PACKAGE_TARNAME
1179PACKAGE_NAME
1180PATH_SEPARATOR
1181SHELL'
1182ac_subst_files=''
1183ac_user_opts='
1184enable_option_checking
1185enable_silent_rules
1186enable_dependency_tracking
1187with_gnu_ld
1188with_maximum_compile_warnings
1189with_dmalloc
1190enable_bounds_checking
1191enable_osx_universal_binary
1192with_threads
1193enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001194enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001195enable_largefile
1196enable_shared
1197enable_static
1198with_pic
1199enable_fast_install
1200enable_libtool_lock
1201with_included_ltdl
1202with_ltdl_include
1203with_ltdl_lib
1204enable_ltdl_install
1205with_modules
1206enable_delegate_build
1207enable_deprecated
1208enable_installed
1209enable_cipher
1210enable_embeddable
1211enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001212enable_assert
1213enable_maintainer_mode
1214enable_ccmalloc
1215enable_efence
1216enable_prof
1217enable_gprof
1218enable_gcov
1219with_method_prefix
1220with_quantum_depth
1221with_cache
1222with_frozenpaths
1223with_magick_plus_plus
1224with_perl
1225with_perl_options
1226with_umem
1227with_libstdc
1228with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001229with_x
cristy3ed852e2009-09-05 21:47:34 +00001230with_zlib
1231with_autotrace
1232with_dps
1233with_djvu
cristy430a7312010-01-21 20:44:04 +00001234with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001235with_fftw
1236with_fpx
1237with_fontconfig
1238with_freetype
1239with_gslib
1240with_fontpath
1241with_gs_font_dir
1242with_gvc
1243with_jbig
1244with_jpeg
1245with_jp2
1246with_lcms
1247with_lqr
1248with_openexr
1249with_png
1250with_rsvg
1251with_tiff
1252with_windows_font_dir
1253with_wmf
1254with_xml
1255'
1256 ac_precious_vars='build_alias
1257host_alias
1258target_alias
1259CC
1260CFLAGS
1261LDFLAGS
1262LIBS
1263CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001264CPP
cristy3ed852e2009-09-05 21:47:34 +00001265CXX
1266CXXFLAGS
1267CCC
1268PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001269CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001270XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001271AUTOTRACE_CFLAGS
1272AUTOTRACE_LIBS
1273FONTCONFIG_CFLAGS
1274FONTCONFIG_LIBS
1275GVC_CFLAGS
1276GVC_LIBS
1277LQR_CFLAGS
1278LQR_LIBS
1279OPENEXR_CFLAGS
1280OPENEXR_LIBS
1281RSVG_CFLAGS
1282RSVG_LIBS
1283CAIRO_SVG_CFLAGS
1284CAIRO_SVG_LIBS'
1285
1286
1287# Initialize some variables set by options.
1288ac_init_help=
1289ac_init_version=false
1290ac_unrecognized_opts=
1291ac_unrecognized_sep=
1292# The variables have the same names as the options, with
1293# dashes changed to underlines.
1294cache_file=/dev/null
1295exec_prefix=NONE
1296no_create=
1297no_recursion=
1298prefix=NONE
1299program_prefix=NONE
1300program_suffix=NONE
1301program_transform_name=s,x,x,
1302silent=
1303site=
1304srcdir=
1305verbose=
1306x_includes=NONE
1307x_libraries=NONE
1308
1309# Installation directory options.
1310# These are left unexpanded so users can "make install exec_prefix=/foo"
1311# and all the variables that are supposed to be based on exec_prefix
1312# by default will actually change.
1313# Use braces instead of parens because sh, perl, etc. also accept them.
1314# (The list follows the same order as the GNU Coding Standards.)
1315bindir='${exec_prefix}/bin'
1316sbindir='${exec_prefix}/sbin'
1317libexecdir='${exec_prefix}/libexec'
1318datarootdir='${prefix}/share'
1319datadir='${datarootdir}'
1320sysconfdir='${prefix}/etc'
1321sharedstatedir='${prefix}/com'
1322localstatedir='${prefix}/var'
1323includedir='${prefix}/include'
1324oldincludedir='/usr/include'
1325docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1326infodir='${datarootdir}/info'
1327htmldir='${docdir}'
1328dvidir='${docdir}'
1329pdfdir='${docdir}'
1330psdir='${docdir}'
1331libdir='${exec_prefix}/lib'
1332localedir='${datarootdir}/locale'
1333mandir='${datarootdir}/man'
1334
1335ac_prev=
1336ac_dashdash=
1337for ac_option
1338do
1339 # If the previous option needs an argument, assign it.
1340 if test -n "$ac_prev"; then
1341 eval $ac_prev=\$ac_option
1342 ac_prev=
1343 continue
1344 fi
1345
1346 case $ac_option in
1347 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1348 *) ac_optarg=yes ;;
1349 esac
1350
1351 # Accept the important Cygnus configure options, so we can diagnose typos.
1352
1353 case $ac_dashdash$ac_option in
1354 --)
1355 ac_dashdash=yes ;;
1356
1357 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1358 ac_prev=bindir ;;
1359 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1360 bindir=$ac_optarg ;;
1361
1362 -build | --build | --buil | --bui | --bu)
1363 ac_prev=build_alias ;;
1364 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1365 build_alias=$ac_optarg ;;
1366
1367 -cache-file | --cache-file | --cache-fil | --cache-fi \
1368 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1369 ac_prev=cache_file ;;
1370 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1371 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1372 cache_file=$ac_optarg ;;
1373
1374 --config-cache | -C)
1375 cache_file=config.cache ;;
1376
1377 -datadir | --datadir | --datadi | --datad)
1378 ac_prev=datadir ;;
1379 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1380 datadir=$ac_optarg ;;
1381
1382 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1383 | --dataroo | --dataro | --datar)
1384 ac_prev=datarootdir ;;
1385 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1386 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1387 datarootdir=$ac_optarg ;;
1388
1389 -disable-* | --disable-*)
1390 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001393 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001394 ac_useropt_orig=$ac_useropt
1395 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1397 *"
1398"enable_$ac_useropt"
1399"*) ;;
1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1401 ac_unrecognized_sep=', ';;
1402 esac
1403 eval enable_$ac_useropt=no ;;
1404
1405 -docdir | --docdir | --docdi | --doc | --do)
1406 ac_prev=docdir ;;
1407 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1408 docdir=$ac_optarg ;;
1409
1410 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1411 ac_prev=dvidir ;;
1412 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1413 dvidir=$ac_optarg ;;
1414
1415 -enable-* | --enable-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001419 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1423 *"
1424"enable_$ac_useropt"
1425"*) ;;
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1428 esac
1429 eval enable_$ac_useropt=\$ac_optarg ;;
1430
1431 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1432 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1433 | --exec | --exe | --ex)
1434 ac_prev=exec_prefix ;;
1435 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1436 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1437 | --exec=* | --exe=* | --ex=*)
1438 exec_prefix=$ac_optarg ;;
1439
1440 -gas | --gas | --ga | --g)
1441 # Obsolete; use --with-gas.
1442 with_gas=yes ;;
1443
1444 -help | --help | --hel | --he | -h)
1445 ac_init_help=long ;;
1446 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1447 ac_init_help=recursive ;;
1448 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1449 ac_init_help=short ;;
1450
1451 -host | --host | --hos | --ho)
1452 ac_prev=host_alias ;;
1453 -host=* | --host=* | --hos=* | --ho=*)
1454 host_alias=$ac_optarg ;;
1455
1456 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1457 ac_prev=htmldir ;;
1458 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1459 | --ht=*)
1460 htmldir=$ac_optarg ;;
1461
1462 -includedir | --includedir | --includedi | --included | --include \
1463 | --includ | --inclu | --incl | --inc)
1464 ac_prev=includedir ;;
1465 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1466 | --includ=* | --inclu=* | --incl=* | --inc=*)
1467 includedir=$ac_optarg ;;
1468
1469 -infodir | --infodir | --infodi | --infod | --info | --inf)
1470 ac_prev=infodir ;;
1471 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1472 infodir=$ac_optarg ;;
1473
1474 -libdir | --libdir | --libdi | --libd)
1475 ac_prev=libdir ;;
1476 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1477 libdir=$ac_optarg ;;
1478
1479 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1480 | --libexe | --libex | --libe)
1481 ac_prev=libexecdir ;;
1482 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1483 | --libexe=* | --libex=* | --libe=*)
1484 libexecdir=$ac_optarg ;;
1485
1486 -localedir | --localedir | --localedi | --localed | --locale)
1487 ac_prev=localedir ;;
1488 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1489 localedir=$ac_optarg ;;
1490
1491 -localstatedir | --localstatedir | --localstatedi | --localstated \
1492 | --localstate | --localstat | --localsta | --localst | --locals)
1493 ac_prev=localstatedir ;;
1494 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1495 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1496 localstatedir=$ac_optarg ;;
1497
1498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1499 ac_prev=mandir ;;
1500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1501 mandir=$ac_optarg ;;
1502
1503 -nfp | --nfp | --nf)
1504 # Obsolete; use --without-fp.
1505 with_fp=no ;;
1506
1507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1508 | --no-cr | --no-c | -n)
1509 no_create=yes ;;
1510
1511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1513 no_recursion=yes ;;
1514
1515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1517 | --oldin | --oldi | --old | --ol | --o)
1518 ac_prev=oldincludedir ;;
1519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1522 oldincludedir=$ac_optarg ;;
1523
1524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1525 ac_prev=prefix ;;
1526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1527 prefix=$ac_optarg ;;
1528
1529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1530 | --program-pre | --program-pr | --program-p)
1531 ac_prev=program_prefix ;;
1532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1534 program_prefix=$ac_optarg ;;
1535
1536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1537 | --program-suf | --program-su | --program-s)
1538 ac_prev=program_suffix ;;
1539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1541 program_suffix=$ac_optarg ;;
1542
1543 -program-transform-name | --program-transform-name \
1544 | --program-transform-nam | --program-transform-na \
1545 | --program-transform-n | --program-transform- \
1546 | --program-transform | --program-transfor \
1547 | --program-transfo | --program-transf \
1548 | --program-trans | --program-tran \
1549 | --progr-tra | --program-tr | --program-t)
1550 ac_prev=program_transform_name ;;
1551 -program-transform-name=* | --program-transform-name=* \
1552 | --program-transform-nam=* | --program-transform-na=* \
1553 | --program-transform-n=* | --program-transform-=* \
1554 | --program-transform=* | --program-transfor=* \
1555 | --program-transfo=* | --program-transf=* \
1556 | --program-trans=* | --program-tran=* \
1557 | --progr-tra=* | --program-tr=* | --program-t=*)
1558 program_transform_name=$ac_optarg ;;
1559
1560 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1561 ac_prev=pdfdir ;;
1562 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1563 pdfdir=$ac_optarg ;;
1564
1565 -psdir | --psdir | --psdi | --psd | --ps)
1566 ac_prev=psdir ;;
1567 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1568 psdir=$ac_optarg ;;
1569
1570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1571 | -silent | --silent | --silen | --sile | --sil)
1572 silent=yes ;;
1573
1574 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1575 ac_prev=sbindir ;;
1576 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1577 | --sbi=* | --sb=*)
1578 sbindir=$ac_optarg ;;
1579
1580 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1581 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1582 | --sharedst | --shareds | --shared | --share | --shar \
1583 | --sha | --sh)
1584 ac_prev=sharedstatedir ;;
1585 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1586 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1587 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1588 | --sha=* | --sh=*)
1589 sharedstatedir=$ac_optarg ;;
1590
1591 -site | --site | --sit)
1592 ac_prev=site ;;
1593 -site=* | --site=* | --sit=*)
1594 site=$ac_optarg ;;
1595
1596 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1597 ac_prev=srcdir ;;
1598 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1599 srcdir=$ac_optarg ;;
1600
1601 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1602 | --syscon | --sysco | --sysc | --sys | --sy)
1603 ac_prev=sysconfdir ;;
1604 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1605 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1606 sysconfdir=$ac_optarg ;;
1607
1608 -target | --target | --targe | --targ | --tar | --ta | --t)
1609 ac_prev=target_alias ;;
1610 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1611 target_alias=$ac_optarg ;;
1612
1613 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1614 verbose=yes ;;
1615
1616 -version | --version | --versio | --versi | --vers | -V)
1617 ac_init_version=: ;;
1618
1619 -with-* | --with-*)
1620 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1621 # Reject names that are not valid shell variable names.
1622 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001623 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001624 ac_useropt_orig=$ac_useropt
1625 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1626 case $ac_user_opts in
1627 *"
1628"with_$ac_useropt"
1629"*) ;;
1630 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1631 ac_unrecognized_sep=', ';;
1632 esac
1633 eval with_$ac_useropt=\$ac_optarg ;;
1634
1635 -without-* | --without-*)
1636 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1637 # Reject names that are not valid shell variable names.
1638 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001639 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001640 ac_useropt_orig=$ac_useropt
1641 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1643 *"
1644"with_$ac_useropt"
1645"*) ;;
1646 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1647 ac_unrecognized_sep=', ';;
1648 esac
1649 eval with_$ac_useropt=no ;;
1650
1651 --x)
1652 # Obsolete; use --with-x.
1653 with_x=yes ;;
1654
1655 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1656 | --x-incl | --x-inc | --x-in | --x-i)
1657 ac_prev=x_includes ;;
1658 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1659 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1660 x_includes=$ac_optarg ;;
1661
1662 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1663 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1664 ac_prev=x_libraries ;;
1665 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1666 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1667 x_libraries=$ac_optarg ;;
1668
cristy8b350f62009-11-15 23:12:43 +00001669 -*) as_fn_error "unrecognized option: \`$ac_option'
1670Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001671 ;;
1672
1673 *=*)
1674 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1675 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001676 case $ac_envvar in #(
1677 '' | [0-9]* | *[!_$as_cr_alnum]* )
1678 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1679 esac
cristy3ed852e2009-09-05 21:47:34 +00001680 eval $ac_envvar=\$ac_optarg
1681 export $ac_envvar ;;
1682
1683 *)
1684 # FIXME: should be removed in autoconf 3.0.
1685 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1686 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1687 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1688 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1689 ;;
1690
1691 esac
1692done
1693
1694if test -n "$ac_prev"; then
1695 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001696 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001697fi
1698
1699if test -n "$ac_unrecognized_opts"; then
1700 case $enable_option_checking in
1701 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001702 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001703 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1704 esac
1705fi
1706
1707# Check all directory arguments for consistency.
1708for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1709 datadir sysconfdir sharedstatedir localstatedir includedir \
1710 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1711 libdir localedir mandir
1712do
1713 eval ac_val=\$$ac_var
1714 # Remove trailing slashes.
1715 case $ac_val in
1716 */ )
1717 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1718 eval $ac_var=\$ac_val;;
1719 esac
1720 # Be sure to have absolute directory names.
1721 case $ac_val in
1722 [\\/$]* | ?:[\\/]* ) continue;;
1723 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1724 esac
cristy8b350f62009-11-15 23:12:43 +00001725 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001726done
1727
1728# There might be people who depend on the old broken behavior: `$host'
1729# used to hold the argument of --host etc.
1730# FIXME: To remove some day.
1731build=$build_alias
1732host=$host_alias
1733target=$target_alias
1734
1735# FIXME: To remove some day.
1736if test "x$host_alias" != x; then
1737 if test "x$build_alias" = x; then
1738 cross_compiling=maybe
1739 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1740 If a cross compiler is detected then cross compile mode will be used." >&2
1741 elif test "x$build_alias" != "x$host_alias"; then
1742 cross_compiling=yes
1743 fi
1744fi
1745
1746ac_tool_prefix=
1747test -n "$host_alias" && ac_tool_prefix=$host_alias-
1748
1749test "$silent" = yes && exec 6>/dev/null
1750
1751
1752ac_pwd=`pwd` && test -n "$ac_pwd" &&
1753ac_ls_di=`ls -di .` &&
1754ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001755 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001756test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001757 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001758
1759
1760# Find the source files, if location was not specified.
1761if test -z "$srcdir"; then
1762 ac_srcdir_defaulted=yes
1763 # Try the directory containing this script, then the parent directory.
1764 ac_confdir=`$as_dirname -- "$as_myself" ||
1765$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1766 X"$as_myself" : 'X\(//\)[^/]' \| \
1767 X"$as_myself" : 'X\(//\)$' \| \
1768 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1769$as_echo X"$as_myself" |
1770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1771 s//\1/
1772 q
1773 }
1774 /^X\(\/\/\)[^/].*/{
1775 s//\1/
1776 q
1777 }
1778 /^X\(\/\/\)$/{
1779 s//\1/
1780 q
1781 }
1782 /^X\(\/\).*/{
1783 s//\1/
1784 q
1785 }
1786 s/.*/./; q'`
1787 srcdir=$ac_confdir
1788 if test ! -r "$srcdir/$ac_unique_file"; then
1789 srcdir=..
1790 fi
1791else
1792 ac_srcdir_defaulted=no
1793fi
1794if test ! -r "$srcdir/$ac_unique_file"; then
1795 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001796 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001797fi
1798ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1799ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001800 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001801 pwd)`
1802# When building in place, set srcdir=.
1803if test "$ac_abs_confdir" = "$ac_pwd"; then
1804 srcdir=.
1805fi
1806# Remove unnecessary trailing slashes from srcdir.
1807# Double slashes in file names in object file debugging info
1808# mess up M-x gdb in Emacs.
1809case $srcdir in
1810*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1811esac
1812for ac_var in $ac_precious_vars; do
1813 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1814 eval ac_env_${ac_var}_value=\$${ac_var}
1815 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1816 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1817done
1818
1819#
1820# Report the --help message.
1821#
1822if test "$ac_init_help" = "long"; then
1823 # Omit some internal or obsolete options to make the list less imposing.
1824 # This message is too long to be a string in the A/UX 3.1 sh.
1825 cat <<_ACEOF
cristyb36feb22010-03-26 16:54:37 +00001826\`configure' configures ImageMagick 6.6.1 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001827
1828Usage: $0 [OPTION]... [VAR=VALUE]...
1829
1830To assign environment variables (e.g., CC, CFLAGS...), specify them as
1831VAR=VALUE. See below for descriptions of some of the useful variables.
1832
1833Defaults for the options are specified in brackets.
1834
1835Configuration:
1836 -h, --help display this help and exit
1837 --help=short display options specific to this package
1838 --help=recursive display the short help of all the included packages
1839 -V, --version display version information and exit
1840 -q, --quiet, --silent do not print \`checking...' messages
1841 --cache-file=FILE cache test results in FILE [disabled]
1842 -C, --config-cache alias for \`--cache-file=config.cache'
1843 -n, --no-create do not create output files
1844 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1845
1846Installation directories:
1847 --prefix=PREFIX install architecture-independent files in PREFIX
1848 [$ac_default_prefix]
1849 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1850 [PREFIX]
1851
1852By default, \`make install' will install all the files in
1853\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1854an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1855for instance \`--prefix=\$HOME'.
1856
1857For better control, use the options below.
1858
1859Fine tuning of the installation directories:
1860 --bindir=DIR user executables [EPREFIX/bin]
1861 --sbindir=DIR system admin executables [EPREFIX/sbin]
1862 --libexecdir=DIR program executables [EPREFIX/libexec]
1863 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1864 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1865 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1866 --libdir=DIR object code libraries [EPREFIX/lib]
1867 --includedir=DIR C header files [PREFIX/include]
1868 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1869 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1870 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1871 --infodir=DIR info documentation [DATAROOTDIR/info]
1872 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1873 --mandir=DIR man documentation [DATAROOTDIR/man]
1874 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1875 --htmldir=DIR html documentation [DOCDIR]
1876 --dvidir=DIR dvi documentation [DOCDIR]
1877 --pdfdir=DIR pdf documentation [DOCDIR]
1878 --psdir=DIR ps documentation [DOCDIR]
1879_ACEOF
1880
1881 cat <<\_ACEOF
1882
1883Program names:
1884 --program-prefix=PREFIX prepend PREFIX to installed program names
1885 --program-suffix=SUFFIX append SUFFIX to installed program names
1886 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1887
1888X features:
1889 --x-includes=DIR X include files are in DIR
1890 --x-libraries=DIR X library files are in DIR
1891
1892System types:
1893 --build=BUILD configure for building on BUILD [guessed]
1894 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1895 --target=TARGET configure for building compilers for TARGET [HOST]
1896_ACEOF
1897fi
1898
1899if test -n "$ac_init_help"; then
1900 case $ac_init_help in
cristyb36feb22010-03-26 16:54:37 +00001901 short | recursive ) echo "Configuration of ImageMagick 6.6.1:";;
cristy3ed852e2009-09-05 21:47:34 +00001902 esac
1903 cat <<\_ACEOF
1904
1905Optional Features:
1906 --disable-option-checking ignore unrecognized --enable/--with options
1907 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1908 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1909 --enable-silent-rules less verbose build output (undo: `make V=1')
1910 --disable-silent-rules verbose build output (undo: `make V=0')
1911 --disable-dependency-tracking speeds up one-time build
1912 --enable-dependency-tracking do not reject slow dependency extractors
1913 --bounds-checking enable run-time bounds-checking
1914 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001915 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001916 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001917 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001918 --disable-largefile omit support for large files
1919 --enable-shared[=PKGS] build shared libraries [default=yes]
1920 --enable-static[=PKGS] build static libraries [default=yes]
1921 --enable-fast-install[=PKGS]
1922 optimize for fast installation [default=yes]
1923 --disable-libtool-lock avoid locking (might break parallel builds)
1924 --enable-ltdl-install install libltdl
1925 --enable-delegate-build look for delegate libraries in build directory
1926 --disable-deprecated exclude deprecated methods in MagickCore and
1927 MagickWand API's
1928 --disable-installed Formally install ImageMagick under PREFIX
1929 --disable-cipher disable enciphering and deciphering image pixels
1930 --enable-embeddable enable self-contained, embeddable,
1931 zero-configuration ImageMagick
1932 --enable-hdri accurately represent the wide range of intensity
1933 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001934 --disable-assert disable assert() statements in build
1935 --enable-maintainer-mode enable make rules and dependencies not useful
1936 (and sometimes confusing) to the casual installer
1937 --enable-ccmalloc enable 'ccmalloc' memory debug support
1938 --enable-efence enable 'efence' memory debug support
1939 --enable-prof enable 'prof' profiling support
1940 --enable-gprof enable 'gprof' profiling support
1941 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001942 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001943
1944Optional Packages:
1945 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1946 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1947 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1948 --without-maximum-compile-warnings
1949 Disable maximum warning verbosity
1950 --with-dmalloc use dmalloc, as in
1951 http://www.dmalloc.com/dmalloc.tar.gz
1952 --without-threads disable threads support
1953 --with-pic try to use only PIC/non-PIC objects [default=use
1954 both]
1955 --with-included-ltdl use the GNU ltdl sources included here
1956 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1957 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1958 --with-modules enable building dynamically loadable modules
1959 --with-method-prefix=PREFIX
1960 prefix MagickCore API methods
1961 --with-quantum-depth=DEPTH
1962 number of bits in a pixel quantum (default 16)
1963 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1964 memory)
1965 --with-frozenpaths freeze delegate paths
1966 --without-magick-plus-plus
1967 disable build/install of Magick++
1968 --with-perl enable build/install of PerlMagick
1969 --with-perl-options=OPTIONS
1970 options to pass on command-line when generating
1971 PerlMagick's build file
1972 --with-umem enable umem memory allocation library support
1973 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1974 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001975 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001976 --without-zlib disable ZLIB support
1977 --with-autotrace enable autotrace support
1978 --without-dps disable Display Postscript support
1979 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001980 --with-dejavu-font-dir=DIR
1981 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001982 --without-fftw disable FFTW support
1983 --without-fpx disable FlashPIX support
1984 --without-fontconfig disable fontconfig support
1985 --without-freetype disable Freetype support
1986 --without-gslib enable Ghostscript library support
1987 --with-fontpath=DIR prepend to default font search path
1988 --with-gs-font-dir=DIR Ghostscript font directory
1989 --without-gvc disable GVC support
1990 --without-jbig disable JBIG support
1991 --without-jpeg disable JPEG support
1992 --without-jp2 disable JPEG-2000 support
1993 --without-lcms disable LCMS support
cristyf0c78232010-03-15 12:53:40 +00001994 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001995 --without-openexr disable OpenEXR support
1996 --without-png disable PNG support
1997 --without-rsvg disable RSVG support
1998 --without-tiff disable TIFF support
1999 --with-windows-font-dir=DIR
2000 directory containing MS-Windows fonts
2001 --without-wmf disable WMF support
2002 --without-xml disable XML support
2003
2004Some influential environment variables:
2005 CC C compiler command
2006 CFLAGS C compiler flags
2007 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2008 nonstandard directory <lib dir>
2009 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002010 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002011 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002012 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002013 CXX C++ compiler command
2014 CXXFLAGS C++ compiler flags
2015 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002016 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002017 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002018 AUTOTRACE_CFLAGS
2019 C compiler flags for AUTOTRACE, overriding pkg-config
2020 AUTOTRACE_LIBS
2021 linker flags for AUTOTRACE, overriding pkg-config
2022 FONTCONFIG_CFLAGS
2023 C compiler flags for FONTCONFIG, overriding pkg-config
2024 FONTCONFIG_LIBS
2025 linker flags for FONTCONFIG, overriding pkg-config
2026 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2027 GVC_LIBS linker flags for GVC, overriding pkg-config
2028 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2029 LQR_LIBS linker flags for LQR, overriding pkg-config
2030 OPENEXR_CFLAGS
2031 C compiler flags for OPENEXR, overriding pkg-config
2032 OPENEXR_LIBS
2033 linker flags for OPENEXR, overriding pkg-config
2034 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2035 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2036 CAIRO_SVG_CFLAGS
2037 C compiler flags for CAIRO_SVG, overriding pkg-config
2038 CAIRO_SVG_LIBS
2039 linker flags for CAIRO_SVG, overriding pkg-config
2040
2041Use these variables to override the choices made by `configure' or to help
2042it to find libraries and programs with nonstandard names/locations.
2043
2044Report bugs to <http://www.imagemagick.org>.
2045_ACEOF
2046ac_status=$?
2047fi
2048
2049if test "$ac_init_help" = "recursive"; then
2050 # If there are subdirs, report their specific --help.
2051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2052 test -d "$ac_dir" ||
2053 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2054 continue
2055 ac_builddir=.
2056
2057case "$ac_dir" in
2058.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2059*)
2060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2061 # A ".." for each directory in $ac_dir_suffix.
2062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2063 case $ac_top_builddir_sub in
2064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2066 esac ;;
2067esac
2068ac_abs_top_builddir=$ac_pwd
2069ac_abs_builddir=$ac_pwd$ac_dir_suffix
2070# for backward compatibility:
2071ac_top_builddir=$ac_top_build_prefix
2072
2073case $srcdir in
2074 .) # We are building in place.
2075 ac_srcdir=.
2076 ac_top_srcdir=$ac_top_builddir_sub
2077 ac_abs_top_srcdir=$ac_pwd ;;
2078 [\\/]* | ?:[\\/]* ) # Absolute name.
2079 ac_srcdir=$srcdir$ac_dir_suffix;
2080 ac_top_srcdir=$srcdir
2081 ac_abs_top_srcdir=$srcdir ;;
2082 *) # Relative name.
2083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2084 ac_top_srcdir=$ac_top_build_prefix$srcdir
2085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2086esac
2087ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2088
2089 cd "$ac_dir" || { ac_status=$?; continue; }
2090 # Check for guested configure.
2091 if test -f "$ac_srcdir/configure.gnu"; then
2092 echo &&
2093 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2094 elif test -f "$ac_srcdir/configure"; then
2095 echo &&
2096 $SHELL "$ac_srcdir/configure" --help=recursive
2097 else
2098 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2099 fi || ac_status=$?
2100 cd "$ac_pwd" || { ac_status=$?; break; }
2101 done
2102fi
2103
2104test -n "$ac_init_help" && exit $ac_status
2105if $ac_init_version; then
2106 cat <<\_ACEOF
cristyb36feb22010-03-26 16:54:37 +00002107ImageMagick configure 6.6.1
cristycd4c5312009-11-22 01:19:08 +00002108generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002109
cristy8b350f62009-11-15 23:12:43 +00002110Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002111This configure script is free software; the Free Software Foundation
2112gives unlimited permission to copy, distribute and modify it.
2113_ACEOF
2114 exit
2115fi
cristy8b350f62009-11-15 23:12:43 +00002116
2117## ------------------------ ##
2118## Autoconf initialization. ##
2119## ------------------------ ##
2120
2121# ac_fn_c_try_compile LINENO
2122# --------------------------
2123# Try to compile conftest.$ac_ext, and return whether this succeeded.
2124ac_fn_c_try_compile ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 rm -f conftest.$ac_objext
2128 if { { ac_try="$ac_compile"
2129case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132esac
2133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134$as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_compile") 2>conftest.err
2136 ac_status=$?
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2141 fi
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } && {
2144 test -z "$ac_c_werror_flag" ||
2145 test ! -s conftest.err
2146 } && test -s conftest.$ac_objext; then :
2147 ac_retval=0
2148else
2149 $as_echo "$as_me: failed program was:" >&5
2150sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 ac_retval=1
2153fi
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002155 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002156
2157} # ac_fn_c_try_compile
2158
cristy95646052009-11-28 23:05:30 +00002159# ac_fn_c_try_cpp LINENO
2160# ----------------------
2161# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2162ac_fn_c_try_cpp ()
2163{
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 if { { ac_try="$ac_cpp conftest.$ac_ext"
2166case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169esac
2170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171$as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2173 ac_status=$?
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2178 fi
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } >/dev/null && {
2181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2182 test ! -s conftest.err
2183 }; then :
2184 ac_retval=0
2185else
2186 $as_echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 ac_retval=1
2190fi
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192 as_fn_set_status $ac_retval
2193
2194} # ac_fn_c_try_cpp
2195
cristy8b350f62009-11-15 23:12:43 +00002196# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2197# -------------------------------------------------------
2198# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2199# the include files in INCLUDES and setting the cache variable VAR
2200# accordingly.
2201ac_fn_c_check_header_mongrel ()
2202{
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206$as_echo_n "checking for $2... " >&6; }
2207if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 $as_echo_n "(cached) " >&6
2209fi
2210eval ac_res=\$$3
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212$as_echo "$ac_res" >&6; }
2213else
2214 # Is the header compilable?
2215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2216$as_echo_n "checking $2 usability... " >&6; }
2217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h. */
2219$4
2220#include <$2>
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_header_compiler=yes
2224else
2225 ac_header_compiler=no
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2229$as_echo "$ac_header_compiler" >&6; }
2230
2231# Is the header present?
2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2233$as_echo_n "checking $2 presence... " >&6; }
2234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h. */
2236#include <$2>
2237_ACEOF
2238if ac_fn_c_try_cpp "$LINENO"; then :
2239 ac_header_preproc=yes
2240else
2241 ac_header_preproc=no
2242fi
2243rm -f conftest.err conftest.$ac_ext
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2245$as_echo "$ac_header_preproc" >&6; }
2246
2247# So? What about this header?
2248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2249 yes:no: )
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2251$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2253$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2254 ;;
2255 no:yes:* )
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2257$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2259$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2261$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2263$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2266( cat <<\_ASBOX
2267## ----------------------------------------- ##
2268## Report this to http://www.imagemagick.org ##
2269## ----------------------------------------- ##
2270_ASBOX
2271 ) | sed "s/^/$as_me: WARNING: /" >&2
2272 ;;
2273esac
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275$as_echo_n "checking for $2... " >&6; }
2276if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2278else
2279 eval "$3=\$ac_header_compiler"
2280fi
2281eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283$as_echo "$ac_res" >&6; }
2284fi
2285 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2286
2287} # ac_fn_c_check_header_mongrel
2288
2289# ac_fn_c_try_run LINENO
2290# ----------------------
2291# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2292# that executables *can* be run.
2293ac_fn_c_try_run ()
2294{
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 if { { ac_try="$ac_link"
2297case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300esac
2301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302$as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_link") 2>&5
2304 ac_status=$?
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2307 { { case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310esac
2311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312$as_echo "$ac_try_echo"; } >&5
2313 (eval "$ac_try") 2>&5
2314 ac_status=$?
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316 test $ac_status = 0; }; }; then :
2317 ac_retval=0
2318else
2319 $as_echo "$as_me: program exited with status $ac_status" >&5
2320 $as_echo "$as_me: failed program was:" >&5
2321sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 ac_retval=$ac_status
2324fi
2325 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2326 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002327 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002328
2329} # ac_fn_c_try_run
2330
2331# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2332# -------------------------------------------------------
2333# Tests whether HEADER exists and can be compiled using the include files in
2334# INCLUDES, setting the cache variable VAR accordingly.
2335ac_fn_c_check_header_compile ()
2336{
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339$as_echo_n "checking for $2... " >&6; }
2340if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2341 $as_echo_n "(cached) " >&6
2342else
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344/* end confdefs.h. */
2345$4
2346#include <$2>
2347_ACEOF
2348if ac_fn_c_try_compile "$LINENO"; then :
2349 eval "$3=yes"
2350else
2351 eval "$3=no"
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354fi
2355eval ac_res=\$$3
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357$as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359
2360} # ac_fn_c_check_header_compile
2361
cristya0b81c32010-01-22 02:54:33 +00002362# ac_fn_cxx_try_compile LINENO
2363# ----------------------------
2364# Try to compile conftest.$ac_ext, and return whether this succeeded.
2365ac_fn_cxx_try_compile ()
2366{
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 rm -f conftest.$ac_objext
2369 if { { ac_try="$ac_compile"
2370case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373esac
2374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2375$as_echo "$ac_try_echo"; } >&5
2376 (eval "$ac_compile") 2>conftest.err
2377 ac_status=$?
2378 if test -s conftest.err; then
2379 grep -v '^ *+' conftest.err >conftest.er1
2380 cat conftest.er1 >&5
2381 mv -f conftest.er1 conftest.err
2382 fi
2383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2384 test $ac_status = 0; } && {
2385 test -z "$ac_cxx_werror_flag" ||
2386 test ! -s conftest.err
2387 } && test -s conftest.$ac_objext; then :
2388 ac_retval=0
2389else
2390 $as_echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 ac_retval=1
2394fi
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396 as_fn_set_status $ac_retval
2397
2398} # ac_fn_cxx_try_compile
2399
cristy8b350f62009-11-15 23:12:43 +00002400# ac_fn_c_try_link LINENO
2401# -----------------------
2402# Try to link conftest.$ac_ext, and return whether this succeeded.
2403ac_fn_c_try_link ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2408case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413$as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2420 fi
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest$ac_exeext
2428 }; then :
2429 ac_retval=0
2430else
2431 $as_echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 ac_retval=1
2435fi
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002442 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002443
2444} # ac_fn_c_try_link
2445
2446# ac_fn_c_check_func LINENO FUNC VAR
2447# ----------------------------------
2448# Tests whether FUNC exists, setting the cache variable VAR accordingly
2449ac_fn_c_check_func ()
2450{
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453$as_echo_n "checking for $2... " >&6; }
2454if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458/* end confdefs.h. */
2459/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2461#define $2 innocuous_$2
2462
2463/* System header to define __stub macros and hopefully few prototypes,
2464 which can conflict with char $2 (); below.
2465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2466 <limits.h> exists even on freestanding compilers. */
2467
2468#ifdef __STDC__
2469# include <limits.h>
2470#else
2471# include <assert.h>
2472#endif
2473
2474#undef $2
2475
2476/* Override any GCC internal prototype to avoid an error.
2477 Use char because int might match the return type of a GCC
2478 builtin and then its argument prototype would still apply. */
2479#ifdef __cplusplus
2480extern "C"
2481#endif
2482char $2 ();
2483/* The GNU C library defines this for functions which it implements
2484 to always fail with ENOSYS. Some functions are actually named
2485 something starting with __ and the normal name is an alias. */
2486#if defined __stub_$2 || defined __stub___$2
2487choke me
2488#endif
2489
2490int
2491main ()
2492{
2493return $2 ();
2494 ;
2495 return 0;
2496}
2497_ACEOF
2498if ac_fn_c_try_link "$LINENO"; then :
2499 eval "$3=yes"
2500else
2501 eval "$3=no"
2502fi
2503rm -f core conftest.err conftest.$ac_objext \
2504 conftest$ac_exeext conftest.$ac_ext
2505fi
2506eval ac_res=\$$3
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508$as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510
2511} # ac_fn_c_check_func
2512
2513# ac_fn_cxx_try_cpp LINENO
2514# ------------------------
2515# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2516ac_fn_cxx_try_cpp ()
2517{
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 if { { ac_try="$ac_cpp conftest.$ac_ext"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2525$as_echo "$ac_try_echo"; } >&5
2526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2527 ac_status=$?
2528 if test -s conftest.err; then
2529 grep -v '^ *+' conftest.err >conftest.er1
2530 cat conftest.er1 >&5
2531 mv -f conftest.er1 conftest.err
2532 fi
2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2534 test $ac_status = 0; } >/dev/null && {
2535 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2536 test ! -s conftest.err
2537 }; then :
2538 ac_retval=0
2539else
2540 $as_echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 ac_retval=1
2544fi
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002546 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002547
2548} # ac_fn_cxx_try_cpp
2549
2550# ac_fn_cxx_try_link LINENO
2551# -------------------------
2552# Try to link conftest.$ac_ext, and return whether this succeeded.
2553ac_fn_cxx_try_link ()
2554{
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 rm -f conftest.$ac_objext conftest$ac_exeext
2557 if { { ac_try="$ac_link"
2558case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561esac
2562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563$as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_link") 2>conftest.err
2565 ac_status=$?
2566 if test -s conftest.err; then
2567 grep -v '^ *+' conftest.err >conftest.er1
2568 cat conftest.er1 >&5
2569 mv -f conftest.er1 conftest.err
2570 fi
2571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2572 test $ac_status = 0; } && {
2573 test -z "$ac_cxx_werror_flag" ||
2574 test ! -s conftest.err
2575 } && test -s conftest$ac_exeext && {
2576 test "$cross_compiling" = yes ||
2577 $as_test_x conftest$ac_exeext
2578 }; then :
2579 ac_retval=0
2580else
2581 $as_echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 ac_retval=1
2585fi
2586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2588 # interfere with the next link command; also delete a directory that is
2589 # left behind by Apple's compiler. We do this before executing the actions.
2590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002592 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002593
2594} # ac_fn_cxx_try_link
2595
2596# ac_fn_c_check_decl LINENO SYMBOL VAR
2597# ------------------------------------
2598# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2599ac_fn_c_check_decl ()
2600{
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2603$as_echo_n "checking whether $2 is declared... " >&6; }
2604if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2605 $as_echo_n "(cached) " >&6
2606else
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608/* end confdefs.h. */
2609$4
2610int
2611main ()
2612{
2613#ifndef $2
2614 (void) $2;
2615#endif
2616
2617 ;
2618 return 0;
2619}
2620_ACEOF
2621if ac_fn_c_try_compile "$LINENO"; then :
2622 eval "$3=yes"
2623else
2624 eval "$3=no"
2625fi
2626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627fi
2628eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630$as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2632
2633} # ac_fn_c_check_decl
2634
2635# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2636# -------------------------------------------
2637# Tests whether TYPE exists after having included INCLUDES, setting cache
2638# variable VAR accordingly.
2639ac_fn_c_check_type ()
2640{
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2643$as_echo_n "checking for $2... " >&6; }
2644if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2645 $as_echo_n "(cached) " >&6
2646else
2647 eval "$3=no"
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649/* end confdefs.h. */
2650$4
2651int
2652main ()
2653{
2654if (sizeof ($2))
2655 return 0;
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_compile "$LINENO"; then :
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h. */
2663$4
2664int
2665main ()
2666{
2667if (sizeof (($2)))
2668 return 0;
2669 ;
2670 return 0;
2671}
2672_ACEOF
2673if ac_fn_c_try_compile "$LINENO"; then :
2674
2675else
2676 eval "$3=yes"
2677fi
2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679fi
2680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681fi
2682eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684$as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686
2687} # ac_fn_c_check_type
2688
2689# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2690# --------------------------------------------
2691# Tries to find the compile-time value of EXPR in a program that includes
2692# INCLUDES, setting VAR accordingly. Returns whether the value could be
2693# computed
2694ac_fn_c_compute_int ()
2695{
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 if test "$cross_compiling" = yes; then
2698 # Depending upon the size, compute the lo and hi bounds.
2699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700/* end confdefs.h. */
2701$4
2702int
2703main ()
2704{
2705static int test_array [1 - 2 * !(($2) >= 0)];
2706test_array [0] = 0
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713 ac_lo=0 ac_mid=0
2714 while :; do
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716/* end confdefs.h. */
2717$4
2718int
2719main ()
2720{
2721static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2722test_array [0] = 0
2723
2724 ;
2725 return 0;
2726}
2727_ACEOF
2728if ac_fn_c_try_compile "$LINENO"; then :
2729 ac_hi=$ac_mid; break
2730else
2731 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2732 if test $ac_lo -le $ac_mid; then
2733 ac_lo= ac_hi=
2734 break
2735 fi
2736 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 done
2740else
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742/* end confdefs.h. */
2743$4
2744int
2745main ()
2746{
2747static int test_array [1 - 2 * !(($2) < 0)];
2748test_array [0] = 0
2749
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754if ac_fn_c_try_compile "$LINENO"; then :
2755 ac_hi=-1 ac_mid=-1
2756 while :; do
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758/* end confdefs.h. */
2759$4
2760int
2761main ()
2762{
2763static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2764test_array [0] = 0
2765
2766 ;
2767 return 0;
2768}
2769_ACEOF
2770if ac_fn_c_try_compile "$LINENO"; then :
2771 ac_lo=$ac_mid; break
2772else
2773 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2774 if test $ac_mid -le $ac_hi; then
2775 ac_lo= ac_hi=
2776 break
2777 fi
2778 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2779fi
2780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 done
2782else
2783 ac_lo= ac_hi=
2784fi
2785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786fi
2787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788# Binary search between lo and hi bounds.
2789while test "x$ac_lo" != "x$ac_hi"; do
2790 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792/* end confdefs.h. */
2793$4
2794int
2795main ()
2796{
2797static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2798test_array [0] = 0
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_compile "$LINENO"; then :
2805 ac_hi=$ac_mid
2806else
2807 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2808fi
2809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810done
2811case $ac_lo in #((
2812?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2813'') ac_retval=1 ;;
2814esac
2815 else
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819static long int longval () { return $2; }
2820static unsigned long int ulongval () { return $2; }
2821#include <stdio.h>
2822#include <stdlib.h>
2823int
2824main ()
2825{
2826
2827 FILE *f = fopen ("conftest.val", "w");
2828 if (! f)
2829 return 1;
2830 if (($2) < 0)
2831 {
2832 long int i = longval ();
2833 if (i != ($2))
2834 return 1;
2835 fprintf (f, "%ld", i);
2836 }
2837 else
2838 {
2839 unsigned long int i = ulongval ();
2840 if (i != ($2))
2841 return 1;
2842 fprintf (f, "%lu", i);
2843 }
2844 /* Do not output a trailing newline, as this causes \r\n confusion
2845 on some platforms. */
2846 return ferror (f) || fclose (f) != 0;
2847
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852if ac_fn_c_try_run "$LINENO"; then :
2853 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2854else
2855 ac_retval=1
2856fi
2857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2858 conftest.$ac_objext conftest.beam conftest.$ac_ext
2859rm -f conftest.val
2860
2861 fi
2862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002863 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002864
2865} # ac_fn_c_compute_int
2866
2867# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2868# ---------------------------------------------------------
2869# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2870# the include files in INCLUDES and setting the cache variable VAR
2871# accordingly.
2872ac_fn_cxx_check_header_mongrel ()
2873{
2874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2875 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2877$as_echo_n "checking for $2... " >&6; }
2878if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2879 $as_echo_n "(cached) " >&6
2880fi
2881eval ac_res=\$$3
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2883$as_echo "$ac_res" >&6; }
2884else
2885 # Is the header compilable?
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2887$as_echo_n "checking $2 usability... " >&6; }
2888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890$4
2891#include <$2>
2892_ACEOF
2893if ac_fn_cxx_try_compile "$LINENO"; then :
2894 ac_header_compiler=yes
2895else
2896 ac_header_compiler=no
2897fi
2898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2900$as_echo "$ac_header_compiler" >&6; }
2901
2902# Is the header present?
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2904$as_echo_n "checking $2 presence... " >&6; }
2905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
2907#include <$2>
2908_ACEOF
2909if ac_fn_cxx_try_cpp "$LINENO"; then :
2910 ac_header_preproc=yes
2911else
2912 ac_header_preproc=no
2913fi
2914rm -f conftest.err conftest.$ac_ext
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2916$as_echo "$ac_header_preproc" >&6; }
2917
2918# So? What about this header?
2919case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2920 yes:no: )
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2922$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2925 ;;
2926 no:yes:* )
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2928$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2930$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2932$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2934$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2937( cat <<\_ASBOX
2938## ----------------------------------------- ##
2939## Report this to http://www.imagemagick.org ##
2940## ----------------------------------------- ##
2941_ASBOX
2942 ) | sed "s/^/$as_me: WARNING: /" >&2
2943 ;;
2944esac
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2946$as_echo_n "checking for $2... " >&6; }
2947if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2948 $as_echo_n "(cached) " >&6
2949else
2950 eval "$3=\$ac_header_compiler"
2951fi
2952eval ac_res=\$$3
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2954$as_echo "$ac_res" >&6; }
2955fi
2956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2957
2958} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002959cat >config.log <<_ACEOF
2960This file contains any messages produced by compilers while
2961running configure, to aid debugging if configure makes a mistake.
2962
cristyb36feb22010-03-26 16:54:37 +00002963It was created by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +00002964generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002965
2966 $ $0 $@
2967
2968_ACEOF
2969exec 5>>config.log
2970{
2971cat <<_ASUNAME
2972## --------- ##
2973## Platform. ##
2974## --------- ##
2975
2976hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2977uname -m = `(uname -m) 2>/dev/null || echo unknown`
2978uname -r = `(uname -r) 2>/dev/null || echo unknown`
2979uname -s = `(uname -s) 2>/dev/null || echo unknown`
2980uname -v = `(uname -v) 2>/dev/null || echo unknown`
2981
2982/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2983/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2984
2985/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2986/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2987/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2988/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2989/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2990/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2991/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2992
2993_ASUNAME
2994
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003000 $as_echo "PATH: $as_dir"
3001 done
cristy3ed852e2009-09-05 21:47:34 +00003002IFS=$as_save_IFS
3003
3004} >&5
3005
3006cat >&5 <<_ACEOF
3007
3008
3009## ----------- ##
3010## Core tests. ##
3011## ----------- ##
3012
3013_ACEOF
3014
3015
3016# Keep a trace of the command line.
3017# Strip out --no-create and --no-recursion so they do not pile up.
3018# Strip out --silent because we don't want to record it for future runs.
3019# Also quote any args containing shell meta-characters.
3020# Make two passes to allow for proper duplicate-argument suppression.
3021ac_configure_args=
3022ac_configure_args0=
3023ac_configure_args1=
3024ac_must_keep_next=false
3025for ac_pass in 1 2
3026do
3027 for ac_arg
3028 do
3029 case $ac_arg in
3030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3032 | -silent | --silent | --silen | --sile | --sil)
3033 continue ;;
3034 *\'*)
3035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3036 esac
3037 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003039 2)
cristy8b350f62009-11-15 23:12:43 +00003040 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003041 if test $ac_must_keep_next = true; then
3042 ac_must_keep_next=false # Got value, back to normal.
3043 else
3044 case $ac_arg in
3045 *=* | --config-cache | -C | -disable-* | --disable-* \
3046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3048 | -with-* | --with-* | -without-* | --without-* | --x)
3049 case "$ac_configure_args0 " in
3050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3051 esac
3052 ;;
3053 -* ) ac_must_keep_next=true ;;
3054 esac
3055 fi
cristy8b350f62009-11-15 23:12:43 +00003056 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003057 ;;
3058 esac
3059 done
3060done
cristy8b350f62009-11-15 23:12:43 +00003061{ ac_configure_args0=; unset ac_configure_args0;}
3062{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003063
3064# When interrupted or exit'd, cleanup temporary files, and complete
3065# config.log. We remove comments because anyway the quotes in there
3066# would cause problems or look ugly.
3067# WARNING: Use '\'' to represent an apostrophe within the trap.
3068# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3069trap 'exit_status=$?
3070 # Save into config.log some information that might help in debugging.
3071 {
3072 echo
3073
3074 cat <<\_ASBOX
3075## ---------------- ##
3076## Cache variables. ##
3077## ---------------- ##
3078_ASBOX
3079 echo
3080 # The following way of writing the cache mishandles newlines in values,
3081(
3082 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3083 eval ac_val=\$$ac_var
3084 case $ac_val in #(
3085 *${as_nl}*)
3086 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3089 esac
3090 case $ac_var in #(
3091 _ | IFS | as_nl) ;; #(
3092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003093 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003094 esac ;;
3095 esac
3096 done
3097 (set) 2>&1 |
3098 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3099 *${as_nl}ac_space=\ *)
3100 sed -n \
3101 "s/'\''/'\''\\\\'\'''\''/g;
3102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3103 ;; #(
3104 *)
3105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3106 ;;
3107 esac |
3108 sort
3109)
3110 echo
3111
3112 cat <<\_ASBOX
3113## ----------------- ##
3114## Output variables. ##
3115## ----------------- ##
3116_ASBOX
3117 echo
3118 for ac_var in $ac_subst_vars
3119 do
3120 eval ac_val=\$$ac_var
3121 case $ac_val in
3122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3123 esac
3124 $as_echo "$ac_var='\''$ac_val'\''"
3125 done | sort
3126 echo
3127
3128 if test -n "$ac_subst_files"; then
3129 cat <<\_ASBOX
3130## ------------------- ##
3131## File substitutions. ##
3132## ------------------- ##
3133_ASBOX
3134 echo
3135 for ac_var in $ac_subst_files
3136 do
3137 eval ac_val=\$$ac_var
3138 case $ac_val in
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3140 esac
3141 $as_echo "$ac_var='\''$ac_val'\''"
3142 done | sort
3143 echo
3144 fi
3145
3146 if test -s confdefs.h; then
3147 cat <<\_ASBOX
3148## ----------- ##
3149## confdefs.h. ##
3150## ----------- ##
3151_ASBOX
3152 echo
3153 cat confdefs.h
3154 echo
3155 fi
3156 test "$ac_signal" != 0 &&
3157 $as_echo "$as_me: caught signal $ac_signal"
3158 $as_echo "$as_me: exit $exit_status"
3159 } >&5
3160 rm -f core *.core core.conftest.* &&
3161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3162 exit $exit_status
3163' 0
3164for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003166done
3167ac_signal=0
3168
3169# confdefs.h avoids OS command line length limits that DEFS can exceed.
3170rm -f -r conftest* confdefs.h
3171
cristy8b350f62009-11-15 23:12:43 +00003172$as_echo "/* confdefs.h */" > confdefs.h
3173
cristy3ed852e2009-09-05 21:47:34 +00003174# Predefined preprocessor variables.
3175
3176cat >>confdefs.h <<_ACEOF
3177#define PACKAGE_NAME "$PACKAGE_NAME"
3178_ACEOF
3179
cristy3ed852e2009-09-05 21:47:34 +00003180cat >>confdefs.h <<_ACEOF
3181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3182_ACEOF
3183
cristy3ed852e2009-09-05 21:47:34 +00003184cat >>confdefs.h <<_ACEOF
3185#define PACKAGE_VERSION "$PACKAGE_VERSION"
3186_ACEOF
3187
cristy3ed852e2009-09-05 21:47:34 +00003188cat >>confdefs.h <<_ACEOF
3189#define PACKAGE_STRING "$PACKAGE_STRING"
3190_ACEOF
3191
cristy3ed852e2009-09-05 21:47:34 +00003192cat >>confdefs.h <<_ACEOF
3193#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3194_ACEOF
3195
cristy8b350f62009-11-15 23:12:43 +00003196cat >>confdefs.h <<_ACEOF
3197#define PACKAGE_URL "$PACKAGE_URL"
3198_ACEOF
3199
cristy3ed852e2009-09-05 21:47:34 +00003200
3201# Let the site file select an alternate cache file if it wants to.
3202# Prefer an explicitly selected file to automatically selected ones.
3203ac_site_file1=NONE
3204ac_site_file2=NONE
3205if test -n "$CONFIG_SITE"; then
3206 ac_site_file1=$CONFIG_SITE
3207elif test "x$prefix" != xNONE; then
3208 ac_site_file1=$prefix/share/config.site
3209 ac_site_file2=$prefix/etc/config.site
3210else
3211 ac_site_file1=$ac_default_prefix/share/config.site
3212 ac_site_file2=$ac_default_prefix/etc/config.site
3213fi
3214for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3215do
3216 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003219$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3220 sed 's/^/| /' "$ac_site_file" >&5
3221 . "$ac_site_file"
3222 fi
3223done
3224
3225if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003226 # Some versions of bash will fail to source /dev/null (special files
3227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003230$as_echo "$as_me: loading cache $cache_file" >&6;}
3231 case $cache_file in
3232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3233 *) . "./$cache_file";;
3234 esac
3235 fi
3236else
cristy8b350f62009-11-15 23:12:43 +00003237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003238$as_echo "$as_me: creating cache $cache_file" >&6;}
3239 >$cache_file
3240fi
3241
cristycd4c5312009-11-22 01:19:08 +00003242as_fn_append ac_header_list " stdlib.h"
3243as_fn_append ac_header_list " unistd.h"
3244as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003245# Check that the precious variables saved in the cache have kept the same
3246# value.
3247ac_cache_corrupted=false
3248for ac_var in $ac_precious_vars; do
3249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3250 eval ac_new_set=\$ac_env_${ac_var}_set
3251 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3252 eval ac_new_val=\$ac_env_${ac_var}_value
3253 case $ac_old_set,$ac_new_set in
3254 set,)
cristy8b350f62009-11-15 23:12:43 +00003255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003256$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3257 ac_cache_corrupted=: ;;
3258 ,set)
cristy8b350f62009-11-15 23:12:43 +00003259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003260$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3261 ac_cache_corrupted=: ;;
3262 ,);;
3263 *)
3264 if test "x$ac_old_val" != "x$ac_new_val"; then
3265 # differences in whitespace do not lead to failure.
3266 ac_old_val_w=`echo x $ac_old_val`
3267 ac_new_val_w=`echo x $ac_new_val`
3268 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003270$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3271 ac_cache_corrupted=:
3272 else
cristy8b350f62009-11-15 23:12:43 +00003273 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003274$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3275 eval $ac_var=\$ac_old_val
3276 fi
cristy8b350f62009-11-15 23:12:43 +00003277 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003278$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003279 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003280$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3281 fi;;
3282 esac
3283 # Pass precious variables to config.status.
3284 if test "$ac_new_set" = set; then
3285 case $ac_new_val in
3286 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3287 *) ac_arg=$ac_var=$ac_new_val ;;
3288 esac
3289 case " $ac_configure_args " in
3290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003291 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003292 esac
3293 fi
3294done
3295if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003299$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003300 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003301fi
cristy8b350f62009-11-15 23:12:43 +00003302## -------------------- ##
3303## Main body of script. ##
3304## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003305
3306ac_ext=c
3307ac_cpp='$CPP $CPPFLAGS'
3308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312
3313
3314ac_aux_dir=
3315for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003316 for ac_t in install-sh install.sh shtool; do
3317 if test -f "$ac_dir/$ac_t"; then
3318 ac_aux_dir=$ac_dir
3319 ac_install_sh="$ac_aux_dir/$ac_t -c"
3320 break 2
3321 fi
3322 done
cristy3ed852e2009-09-05 21:47:34 +00003323done
3324if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003325 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003326fi
3327
3328# These three variables are undocumented and unsupported,
3329# and are intended to be withdrawn in a future Autoconf release.
3330# They can cause serious problems if a builder's source tree is in a directory
3331# whose full name contains unusual characters.
3332ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3333ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3334ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3335
3336
3337
3338
3339ac_config_headers="$ac_config_headers config/config.h"
3340
3341ac_config_commands="$ac_config_commands magick/magick-config.h"
3342
cristy430a7312010-01-21 20:44:04 +00003343ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003344
3345
3346#
3347# Save initial user-tunable values
3348#
3349USER_LIBS=$LIBS
3350for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3351 eval isset=\${$var+set}
3352 if test "$isset" = 'set'; then
3353 eval val=$`echo $var`
3354 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3355 fi
3356done
3357
3358
3359CONFIGURE_ARGS="$0 ${ac_configure_args}"
3360
3361
3362# Source file containing package/library versioning information.
3363. ${srcdir}/version.sh
3364
cristy15a88782010-01-31 23:24:49 +00003365echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003366# Make sure we can run config.sub.
3367$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003368 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003369
cristy8b350f62009-11-15 23:12:43 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003372if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003373 $as_echo_n "(cached) " >&6
3374else
3375 ac_build_alias=$build_alias
3376test "x$ac_build_alias" = x &&
3377 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3378test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003379 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003380ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003381 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003382
3383fi
cristy8b350f62009-11-15 23:12:43 +00003384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$ac_cv_build" >&6; }
3386case $ac_cv_build in
3387*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003388*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003389esac
3390build=$ac_cv_build
3391ac_save_IFS=$IFS; IFS='-'
3392set x $ac_cv_build
3393shift
3394build_cpu=$1
3395build_vendor=$2
3396shift; shift
3397# Remember, the first character of IFS is used to create $*,
3398# except with old shells:
3399build_os=$*
3400IFS=$ac_save_IFS
3401case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3402
3403
cristy8b350f62009-11-15 23:12:43 +00003404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003405$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003406if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003407 $as_echo_n "(cached) " >&6
3408else
3409 if test "x$host_alias" = x; then
3410 ac_cv_host=$ac_cv_build
3411else
3412 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003413 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003414fi
3415
3416fi
cristy8b350f62009-11-15 23:12:43 +00003417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003418$as_echo "$ac_cv_host" >&6; }
3419case $ac_cv_host in
3420*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003421*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003422esac
3423host=$ac_cv_host
3424ac_save_IFS=$IFS; IFS='-'
3425set x $ac_cv_host
3426shift
3427host_cpu=$1
3428host_vendor=$2
3429shift; shift
3430# Remember, the first character of IFS is used to create $*,
3431# except with old shells:
3432host_os=$*
3433IFS=$ac_save_IFS
3434case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3435
3436
cristy8b350f62009-11-15 23:12:43 +00003437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003438$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003439if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003440 $as_echo_n "(cached) " >&6
3441else
3442 if test "x$target_alias" = x; then
3443 ac_cv_target=$ac_cv_host
3444else
3445 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003446 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003447fi
3448
3449fi
cristy8b350f62009-11-15 23:12:43 +00003450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$ac_cv_target" >&6; }
3452case $ac_cv_target in
3453*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003454*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003455esac
3456target=$ac_cv_target
3457ac_save_IFS=$IFS; IFS='-'
3458set x $ac_cv_target
3459shift
3460target_cpu=$1
3461target_vendor=$2
3462shift; shift
3463# Remember, the first character of IFS is used to create $*,
3464# except with old shells:
3465target_os=$*
3466IFS=$ac_save_IFS
3467case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3468
3469
3470# The aliases save the names the user supplied, while $host etc.
3471# will get canonicalized.
3472test -n "$target_alias" &&
3473 test "$program_prefix$program_suffix$program_transform_name" = \
3474 NONENONEs,x,x, &&
3475 program_prefix=${target_alias}-
3476
cristy837d6dc2010-02-27 01:16:57 +00003477
3478
3479
3480
cristy3ed852e2009-09-05 21:47:34 +00003481# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003482MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3483
3484MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3485
cristy3ed852e2009-09-05 21:47:34 +00003486
3487
3488# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo_n "checking whether build environment is sane... " >&6; }
3491# Just in case
3492sleep 1
3493echo timestamp > conftest.file
3494# Reject unsafe characters in $srcdir or the absolute working directory
3495# name. Accept space and tab only in the latter.
3496am_lf='
3497'
3498case `pwd` in
3499 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003500 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003501esac
3502case $srcdir in
3503 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003504 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003505esac
3506
3507# Do `set' in a subshell so we don't clobber the current shell's
3508# arguments. Must try -L first in case configure is actually a
3509# symlink; some systems play weird games with the mod time of symlinks
3510# (eg FreeBSD returns the mod time of the symlink's containing
3511# directory).
3512if (
3513 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3514 if test "$*" = "X"; then
3515 # -L didn't work.
3516 set X `ls -t "$srcdir/configure" conftest.file`
3517 fi
3518 rm -f conftest.file
3519 if test "$*" != "X $srcdir/configure conftest.file" \
3520 && test "$*" != "X conftest.file $srcdir/configure"; then
3521
3522 # If neither matched, then we have a broken ls. This can happen
3523 # if, for instance, CONFIG_SHELL is bash and it inherits a
3524 # broken ls alias from the environment. This has actually
3525 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003526 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3527alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003528 fi
3529
3530 test "$2" = conftest.file
3531 )
3532then
3533 # Ok.
3534 :
3535else
cristy8b350f62009-11-15 23:12:43 +00003536 as_fn_error "newly created file is older than distributed files!
3537Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003538fi
cristy8b350f62009-11-15 23:12:43 +00003539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003540$as_echo "yes" >&6; }
3541
3542am__api_version='1.11'
3543
3544# Find a good install program. We prefer a C program (faster),
3545# so one script is as good as another. But avoid the broken or
3546# incompatible versions:
3547# SysV /etc/install, /usr/sbin/install
3548# SunOS /usr/etc/install
3549# IRIX /sbin/install
3550# AIX /bin/install
3551# AmigaOS /C/install, which installs bootblocks on floppy discs
3552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3555# OS/2's system install, which has a completely different semantic
3556# ./install, which can be erroneously created by make from ./install.sh.
3557# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo_n "checking for a BSD-compatible install... " >&6; }
3560if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003561if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003562 $as_echo_n "(cached) " >&6
3563else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003569 # Account for people who put trailing slashes in PATH elements.
3570case $as_dir/ in #((
3571 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003573 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003574 /usr/ucb/* ) ;;
3575 *)
3576 # OSF1 and SCO ODT 3.0 have their own names for install.
3577 # Don't use installbsd from OSF since it installs stuff as root
3578 # by default.
3579 for ac_prog in ginstall scoinst install; do
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3582 if test $ac_prog = install &&
3583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3584 # AIX install. It has an incompatible calling convention.
3585 :
3586 elif test $ac_prog = install &&
3587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3588 # program-specific install script used by HP pwplus--don't use.
3589 :
3590 else
3591 rm -rf conftest.one conftest.two conftest.dir
3592 echo one > conftest.one
3593 echo two > conftest.two
3594 mkdir conftest.dir
3595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3596 test -s conftest.one && test -s conftest.two &&
3597 test -s conftest.dir/conftest.one &&
3598 test -s conftest.dir/conftest.two
3599 then
3600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3601 break 3
3602 fi
3603 fi
3604 fi
3605 done
3606 done
3607 ;;
3608esac
3609
cristy8b350f62009-11-15 23:12:43 +00003610 done
cristy3ed852e2009-09-05 21:47:34 +00003611IFS=$as_save_IFS
3612
3613rm -rf conftest.one conftest.two conftest.dir
3614
3615fi
3616 if test "${ac_cv_path_install+set}" = set; then
3617 INSTALL=$ac_cv_path_install
3618 else
3619 # As a last resort, use the slow shell script. Don't cache a
3620 # value for INSTALL within a source directory, because that will
3621 # break other packages using the cache if that directory is
3622 # removed, or if the value is a relative name.
3623 INSTALL=$ac_install_sh
3624 fi
3625fi
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo "$INSTALL" >&6; }
3628
3629# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3630# It thinks the first close brace ends the variable substitution.
3631test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3632
3633test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3634
3635test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3636
3637test "$program_prefix" != NONE &&
3638 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3639# Use a double $ so make ignores it.
3640test "$program_suffix" != NONE &&
3641 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3642# Double any \ or $.
3643# By default was `s,x,x', remove it if useless.
3644ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3645program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3646
3647# expand $ac_aux_dir to an absolute path
3648am_aux_dir=`cd $ac_aux_dir && pwd`
3649
3650if test x"${MISSING+set}" != xset; then
3651 case $am_aux_dir in
3652 *\ * | *\ *)
3653 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3654 *)
3655 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3656 esac
3657fi
3658# Use eval to expand $SHELL
3659if eval "$MISSING --run true"; then
3660 am_missing_run="$MISSING --run "
3661else
3662 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003664$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3665fi
3666
3667if test x"${install_sh}" != xset; then
3668 case $am_aux_dir in
3669 *\ * | *\ *)
3670 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3671 *)
3672 install_sh="\${SHELL} $am_aux_dir/install-sh"
3673 esac
3674fi
3675
3676# Installed binaries are usually stripped using `strip' when the user
3677# run `make install-strip'. However `strip' might not be the right
3678# tool to use in cross-compilation environments, therefore Automake
3679# will honor the `STRIP' environment variable to overrule this program.
3680if test "$cross_compiling" != no; then
3681 if test -n "$ac_tool_prefix"; then
3682 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3683set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003685$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003686if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003687 $as_echo_n "(cached) " >&6
3688else
3689 if test -n "$STRIP"; then
3690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3691else
3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693for as_dir in $PATH
3694do
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3699 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003701 break 2
3702 fi
3703done
cristy8b350f62009-11-15 23:12:43 +00003704 done
cristy3ed852e2009-09-05 21:47:34 +00003705IFS=$as_save_IFS
3706
3707fi
3708fi
3709STRIP=$ac_cv_prog_STRIP
3710if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003712$as_echo "$STRIP" >&6; }
3713else
cristy8b350f62009-11-15 23:12:43 +00003714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003715$as_echo "no" >&6; }
3716fi
3717
3718
3719fi
3720if test -z "$ac_cv_prog_STRIP"; then
3721 ac_ct_STRIP=$STRIP
3722 # Extract the first word of "strip", so it can be a program name with args.
3723set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003725$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003726if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003727 $as_echo_n "(cached) " >&6
3728else
3729 if test -n "$ac_ct_STRIP"; then
3730 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003741 break 2
3742 fi
3743done
cristy8b350f62009-11-15 23:12:43 +00003744 done
cristy3ed852e2009-09-05 21:47:34 +00003745IFS=$as_save_IFS
3746
3747fi
3748fi
3749ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3750if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003752$as_echo "$ac_ct_STRIP" >&6; }
3753else
cristy8b350f62009-11-15 23:12:43 +00003754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003755$as_echo "no" >&6; }
3756fi
3757
3758 if test "x$ac_ct_STRIP" = x; then
3759 STRIP=":"
3760 else
3761 case $cross_compiling:$ac_tool_warned in
3762yes:)
cristy8b350f62009-11-15 23:12:43 +00003763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765ac_tool_warned=yes ;;
3766esac
3767 STRIP=$ac_ct_STRIP
3768 fi
3769else
3770 STRIP="$ac_cv_prog_STRIP"
3771fi
3772
3773fi
3774INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3775
cristy8b350f62009-11-15 23:12:43 +00003776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003777$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3778if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003779 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003780 $as_echo_n "(cached) " >&6
3781else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3784do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003787 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3790 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3791 'mkdir (GNU coreutils) '* | \
3792 'mkdir (coreutils) '* | \
3793 'mkdir (fileutils) '4.1*)
3794 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3795 break 3;;
3796 esac
3797 done
3798 done
cristy8b350f62009-11-15 23:12:43 +00003799 done
cristy3ed852e2009-09-05 21:47:34 +00003800IFS=$as_save_IFS
3801
3802fi
3803
cristycd4c5312009-11-22 01:19:08 +00003804 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003805 if test "${ac_cv_path_mkdir+set}" = set; then
3806 MKDIR_P="$ac_cv_path_mkdir -p"
3807 else
3808 # As a last resort, use the slow shell script. Don't cache a
3809 # value for MKDIR_P within a source directory, because that will
3810 # break other packages using the cache if that directory is
3811 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003812 MKDIR_P="$ac_install_sh -d"
3813 fi
3814fi
cristy8b350f62009-11-15 23:12:43 +00003815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003816$as_echo "$MKDIR_P" >&6; }
3817
3818mkdir_p="$MKDIR_P"
3819case $mkdir_p in
3820 [\\/$]* | ?:[\\/]*) ;;
3821 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3822esac
3823
3824for ac_prog in gawk mawk nawk awk
3825do
3826 # Extract the first word of "$ac_prog", so it can be a program name with args.
3827set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003829$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003830if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003831 $as_echo_n "(cached) " >&6
3832else
3833 if test -n "$AWK"; then
3834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3843 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003845 break 2
3846 fi
3847done
cristy8b350f62009-11-15 23:12:43 +00003848 done
cristy3ed852e2009-09-05 21:47:34 +00003849IFS=$as_save_IFS
3850
3851fi
3852fi
3853AWK=$ac_cv_prog_AWK
3854if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003856$as_echo "$AWK" >&6; }
3857else
cristy8b350f62009-11-15 23:12:43 +00003858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003859$as_echo "no" >&6; }
3860fi
3861
3862
3863 test -n "$AWK" && break
3864done
3865
cristy8b350f62009-11-15 23:12:43 +00003866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003867$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3868set x ${MAKE-make}
3869ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003870if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003871 $as_echo_n "(cached) " >&6
3872else
3873 cat >conftest.make <<\_ACEOF
3874SHELL = /bin/sh
3875all:
3876 @echo '@@@%%%=$(MAKE)=@@@%%%'
3877_ACEOF
3878# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3879case `${MAKE-make} -f conftest.make 2>/dev/null` in
3880 *@@@%%%=?*=@@@%%%*)
3881 eval ac_cv_prog_make_${ac_make}_set=yes;;
3882 *)
3883 eval ac_cv_prog_make_${ac_make}_set=no;;
3884esac
3885rm -f conftest.make
3886fi
3887if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003889$as_echo "yes" >&6; }
3890 SET_MAKE=
3891else
cristy8b350f62009-11-15 23:12:43 +00003892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003893$as_echo "no" >&6; }
3894 SET_MAKE="MAKE=${MAKE-make}"
3895fi
3896
3897rm -rf .tst 2>/dev/null
3898mkdir .tst 2>/dev/null
3899if test -d .tst; then
3900 am__leading_dot=.
3901else
3902 am__leading_dot=_
3903fi
3904rmdir .tst 2>/dev/null
3905
3906if test "`cd $srcdir && pwd`" != "`pwd`"; then
3907 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3908 # is not polluted with repeated "-I."
3909 am__isrc=' -I$(srcdir)'
3910 # test to see if srcdir already configured
3911 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003912 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003913 fi
3914fi
3915
3916# test whether we have cygpath
3917if test -z "$CYGPATH_W"; then
3918 if (cygpath --version) >/dev/null 2>/dev/null; then
3919 CYGPATH_W='cygpath -w'
3920 else
3921 CYGPATH_W=echo
3922 fi
3923fi
3924
3925
3926# Define the identity of the package.
3927 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003928 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003929
3930
3931# Some tools Automake needs.
3932
3933ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3934
3935
3936AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3937
3938
3939AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3940
3941
3942AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3943
3944
3945MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3946
3947# We need awk for the "check" target. The system "awk" is bad on
3948# some platforms.
3949# Always define AMTAR for backward compatibility.
3950
3951AMTAR=${AMTAR-"${am_missing_run}tar"}
3952
3953am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3954
3955
3956
3957
3958
3959
3960# Enable support for silent build rules
3961# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003962if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003963 enableval=$enable_silent_rules;
3964fi
3965
3966case $enable_silent_rules in
3967yes) AM_DEFAULT_VERBOSITY=0;;
3968no) AM_DEFAULT_VERBOSITY=1;;
3969*) AM_DEFAULT_VERBOSITY=0;;
3970esac
3971AM_BACKSLASH='\'
3972
3973
3974MAGICK_LIB_VERSION="0x"
3975if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3976 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3977fi
3978MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3979if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3980 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3981fi
3982MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3983if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3984 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3985fi
3986MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3987
3988
3989# Definition used to define MagickLibVersionText in version.h
3990MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3991
3992
3993# Definition used to define MagickLibVersionNumber in version.h
3994MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3995
3996
3997# Regenerate config.status if ChangeLog or version.sh is updated.
3998CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3999
4000
4001PERLMAINCC=$CC
4002
4003MAGICK_CFLAGS=''
4004MAGICK_CPPFLAGS=$CPPFLAGS_USER
4005MAGICK_PCFLAGS=$CPPFLAGS_USER
4006MAGICK_LDFLAGS=''
4007MAGICK_LIBS=''
4008
4009#
4010# Evaluate shell variable equivalents to Makefile directory variables
4011#
4012if test "x$prefix" = xNONE; then
4013 prefix=$ac_default_prefix
4014fi
4015# Let make expand exec_prefix.
4016if test "x$exec_prefix" = xNONE; then
4017 exec_prefix='${prefix}'
4018fi
4019
4020#
4021eval "eval PREFIX_DIR=${prefix}"
4022
4023eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4024
4025eval "eval BIN_DIR=$bindir"
4026
4027eval "eval SBIN_DIR=$sbindir"
4028
4029eval "eval LIBEXEC_DIR=$libexecdir"
4030
4031eval "eval DATA_DIR=$datadir"
4032
4033eval "eval SYSCONF_DIR=$sysconfdir"
4034
4035eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4036
4037eval "eval LOCALSTATE_DIR=$localstatedir"
4038
4039eval "eval LIB_DIR=$libdir"
4040
4041eval "eval INCLUDE_DIR=$includedir"
4042
4043eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4044
4045eval "eval INFO_DIR=$infodir"
4046
4047eval "eval MAN_DIR=$mandir"
4048
4049
4050# Get full paths to source and build directories
4051srcdirfull="`cd $srcdir && pwd`"
4052builddir="`pwd`"
4053
4054#
4055# Compute variables useful for running uninstalled software.
4056#
4057MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4058MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4059MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4060MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4061DIRSEP=':'
4062case "${build_os}" in
4063 mingw* )
4064 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4065 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4066 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4067 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4068 DIRSEP=';'
4069 ;;
4070esac
4071case "${host_os}" in
4072 mingw* )
4073 DIRSEP=';'
4074 ;;
4075esac
4076
4077
4078
4079
4080
4081
cristya0b81c32010-01-22 02:54:33 +00004082
4083#
4084# Enable OS features.
4085#
4086DEPDIR="${am__leading_dot}deps"
4087
4088ac_config_commands="$ac_config_commands depfiles"
4089
4090
4091am_make=${MAKE-make}
4092cat > confinc << 'END'
4093am__doit:
4094 @echo this is the am__doit target
4095.PHONY: am__doit
4096END
4097# If we don't find an include directive, just comment out the code.
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4099$as_echo_n "checking for style of include used by $am_make... " >&6; }
4100am__include="#"
4101am__quote=
4102_am_result=none
4103# First try GNU make style include.
4104echo "include confinc" > confmf
4105# Ignore all kinds of additional output from `make'.
4106case `$am_make -s -f confmf 2> /dev/null` in #(
4107*the\ am__doit\ target*)
4108 am__include=include
4109 am__quote=
4110 _am_result=GNU
4111 ;;
4112esac
4113# Now try BSD make style include.
4114if test "$am__include" = "#"; then
4115 echo '.include "confinc"' > confmf
4116 case `$am_make -s -f confmf 2> /dev/null` in #(
4117 *the\ am__doit\ target*)
4118 am__include=.include
4119 am__quote="\""
4120 _am_result=BSD
4121 ;;
4122 esac
4123fi
4124
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4127$as_echo "$_am_result" >&6; }
4128rm -f confinc confmf
4129
4130# Check whether --enable-dependency-tracking was given.
4131if test "${enable_dependency_tracking+set}" = set; then :
4132 enableval=$enable_dependency_tracking;
4133fi
4134
4135if test "x$enable_dependency_tracking" != xno; then
4136 am_depcomp="$ac_aux_dir/depcomp"
4137 AMDEPBACKSLASH='\'
4138fi
4139 if test "x$enable_dependency_tracking" != xno; then
4140 AMDEP_TRUE=
4141 AMDEP_FALSE='#'
4142else
4143 AMDEP_TRUE='#'
4144 AMDEP_FALSE=
4145fi
4146
4147
cristy3ed852e2009-09-05 21:47:34 +00004148ac_ext=c
4149ac_cpp='$CPP $CPPFLAGS'
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153if test -n "$ac_tool_prefix"; then
4154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4155set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004157$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004158if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004159 $as_echo_n "(cached) " >&6
4160else
4161 if test -n "$CC"; then
4162 ac_cv_prog_CC="$CC" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004173 break 2
4174 fi
4175done
cristy8b350f62009-11-15 23:12:43 +00004176 done
cristy3ed852e2009-09-05 21:47:34 +00004177IFS=$as_save_IFS
4178
4179fi
4180fi
4181CC=$ac_cv_prog_CC
4182if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004184$as_echo "$CC" >&6; }
4185else
cristy8b350f62009-11-15 23:12:43 +00004186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004187$as_echo "no" >&6; }
4188fi
4189
4190
4191fi
4192if test -z "$ac_cv_prog_CC"; then
4193 ac_ct_CC=$CC
4194 # Extract the first word of "gcc", so it can be a program name with args.
4195set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004198if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004199 $as_echo_n "(cached) " >&6
4200else
4201 if test -n "$ac_ct_CC"; then
4202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004213 break 2
4214 fi
4215done
cristy8b350f62009-11-15 23:12:43 +00004216 done
cristy3ed852e2009-09-05 21:47:34 +00004217IFS=$as_save_IFS
4218
4219fi
4220fi
4221ac_ct_CC=$ac_cv_prog_ac_ct_CC
4222if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004224$as_echo "$ac_ct_CC" >&6; }
4225else
cristy8b350f62009-11-15 23:12:43 +00004226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004227$as_echo "no" >&6; }
4228fi
4229
4230 if test "x$ac_ct_CC" = x; then
4231 CC=""
4232 else
4233 case $cross_compiling:$ac_tool_warned in
4234yes:)
cristy8b350f62009-11-15 23:12:43 +00004235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4237ac_tool_warned=yes ;;
4238esac
4239 CC=$ac_ct_CC
4240 fi
4241else
4242 CC="$ac_cv_prog_CC"
4243fi
4244
4245if test -z "$CC"; then
4246 if test -n "$ac_tool_prefix"; then
4247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4248set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004250$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004251if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004252 $as_echo_n "(cached) " >&6
4253else
4254 if test -n "$CC"; then
4255 ac_cv_prog_CC="$CC" # Let the user override the test.
4256else
4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004266 break 2
4267 fi
4268done
cristy8b350f62009-11-15 23:12:43 +00004269 done
cristy3ed852e2009-09-05 21:47:34 +00004270IFS=$as_save_IFS
4271
4272fi
4273fi
4274CC=$ac_cv_prog_CC
4275if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004277$as_echo "$CC" >&6; }
4278else
cristy8b350f62009-11-15 23:12:43 +00004279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280$as_echo "no" >&6; }
4281fi
4282
4283
4284 fi
4285fi
4286if test -z "$CC"; then
4287 # Extract the first word of "cc", so it can be a program name with args.
4288set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004291if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004292 $as_echo_n "(cached) " >&6
4293else
4294 if test -n "$CC"; then
4295 ac_cv_prog_CC="$CC" # Let the user override the test.
4296else
4297 ac_prog_rejected=no
4298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4306 ac_prog_rejected=yes
4307 continue
4308 fi
4309 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004311 break 2
4312 fi
4313done
cristy8b350f62009-11-15 23:12:43 +00004314 done
cristy3ed852e2009-09-05 21:47:34 +00004315IFS=$as_save_IFS
4316
4317if test $ac_prog_rejected = yes; then
4318 # We found a bogon in the path, so make sure we never use it.
4319 set dummy $ac_cv_prog_CC
4320 shift
4321 if test $# != 0; then
4322 # We chose a different compiler from the bogus one.
4323 # However, it has the same basename, so the bogon will be chosen
4324 # first if we set CC to just the basename; use the full file name.
4325 shift
4326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4327 fi
4328fi
4329fi
4330fi
4331CC=$ac_cv_prog_CC
4332if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004334$as_echo "$CC" >&6; }
4335else
cristy8b350f62009-11-15 23:12:43 +00004336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo "no" >&6; }
4338fi
4339
4340
4341fi
4342if test -z "$CC"; then
4343 if test -n "$ac_tool_prefix"; then
4344 for ac_prog in cl.exe
4345 do
4346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004349$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004350if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004351 $as_echo_n "(cached) " >&6
4352else
4353 if test -n "$CC"; then
4354 ac_cv_prog_CC="$CC" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004365 break 2
4366 fi
4367done
cristy8b350f62009-11-15 23:12:43 +00004368 done
cristy3ed852e2009-09-05 21:47:34 +00004369IFS=$as_save_IFS
4370
4371fi
4372fi
4373CC=$ac_cv_prog_CC
4374if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004376$as_echo "$CC" >&6; }
4377else
cristy8b350f62009-11-15 23:12:43 +00004378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379$as_echo "no" >&6; }
4380fi
4381
4382
4383 test -n "$CC" && break
4384 done
4385fi
4386if test -z "$CC"; then
4387 ac_ct_CC=$CC
4388 for ac_prog in cl.exe
4389do
4390 # Extract the first word of "$ac_prog", so it can be a program name with args.
4391set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004393$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004394if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004395 $as_echo_n "(cached) " >&6
4396else
4397 if test -n "$ac_ct_CC"; then
4398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004409 break 2
4410 fi
4411done
cristy8b350f62009-11-15 23:12:43 +00004412 done
cristy3ed852e2009-09-05 21:47:34 +00004413IFS=$as_save_IFS
4414
4415fi
4416fi
4417ac_ct_CC=$ac_cv_prog_ac_ct_CC
4418if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420$as_echo "$ac_ct_CC" >&6; }
4421else
cristy8b350f62009-11-15 23:12:43 +00004422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004423$as_echo "no" >&6; }
4424fi
4425
4426
4427 test -n "$ac_ct_CC" && break
4428done
4429
4430 if test "x$ac_ct_CC" = x; then
4431 CC=""
4432 else
4433 case $cross_compiling:$ac_tool_warned in
4434yes:)
cristy8b350f62009-11-15 23:12:43 +00004435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4437ac_tool_warned=yes ;;
4438esac
4439 CC=$ac_ct_CC
4440 fi
4441fi
4442
4443fi
4444
4445
cristy8b350f62009-11-15 23:12:43 +00004446test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004448as_fn_error "no acceptable C compiler found in \$PATH
4449See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004450
4451# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004452$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004453set X $ac_compile
4454ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004455for ac_option in --version -v -V -qversion; do
4456 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
cristy8b350f62009-11-15 23:12:43 +00004461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462$as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004464 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004465 if test -s conftest.err; then
4466 sed '10a\
4467... rest of stderr output deleted ...
4468 10q' conftest.err >conftest.er1
4469 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004470 fi
cristycd4c5312009-11-22 01:19:08 +00004471 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }
4474done
cristy3ed852e2009-09-05 21:47:34 +00004475
cristy8b350f62009-11-15 23:12:43 +00004476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004477/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004478
cristy3ed852e2009-09-05 21:47:34 +00004479int
4480main ()
4481{
4482
4483 ;
4484 return 0;
4485}
4486_ACEOF
4487ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004488ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004489# Try to create an executable without -o first, disregard a.out.
4490# It will help us diagnose broken compilers, and finding out an intuition
4491# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4493$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004494ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4495
4496# The possible output files:
4497ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4498
4499ac_rmfiles=
4500for ac_file in $ac_files
4501do
4502 case $ac_file in
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4505 esac
4506done
4507rm -f $ac_rmfiles
4508
cristy8b350f62009-11-15 23:12:43 +00004509if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
cristy8b350f62009-11-15 23:12:43 +00004514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004516 (eval "$ac_link_default") 2>&5
4517 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4521# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4522# in a Makefile. We should not override ac_cv_exeext if it was cached,
4523# so that the user can short-circuit this test for compilers unknown to
4524# Autoconf.
4525for ac_file in $ac_files ''
4526do
4527 test -f "$ac_file" || continue
4528 case $ac_file in
4529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4530 ;;
4531 [ab].out )
4532 # We found the default executable, but exeext='' is most
4533 # certainly right.
4534 break;;
4535 *.* )
cristy8b350f62009-11-15 23:12:43 +00004536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004537 then :; else
4538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539 fi
4540 # We set ac_cv_exeext here because the later test for it is not
4541 # safe: cross compilers may not add the suffix if given an `-o'
4542 # argument, so we may need to know it at that point already.
4543 # Even if this section looks crufty: it has the advantage of
4544 # actually working.
4545 break;;
4546 * )
4547 break;;
4548 esac
4549done
4550test "$ac_cv_exeext" = no && ac_cv_exeext=
4551
4552else
4553 ac_file=''
4554fi
cristy8b350f62009-11-15 23:12:43 +00004555if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
4558$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559sed 's/^/| /' conftest.$ac_ext >&5
4560
cristy8b350f62009-11-15 23:12:43 +00004561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004563{ as_fn_set_status 77
4564as_fn_error "C compiler cannot create executables
4565See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004566else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004569fi
cristycd4c5312009-11-22 01:19:08 +00004570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4571$as_echo_n "checking for C compiler default output file name... " >&6; }
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4573$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004574ac_exeext=$ac_cv_exeext
4575
cristycd4c5312009-11-22 01:19:08 +00004576rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004577ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004579$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004580if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
cristy8b350f62009-11-15 23:12:43 +00004585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004587 (eval "$ac_link") 2>&5
4588 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004591 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4592# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4593# work properly (i.e., refer to `conftest.exe'), while it won't with
4594# `rm'.
4595for ac_file in conftest.exe conftest conftest.*; do
4596 test -f "$ac_file" || continue
4597 case $ac_file in
4598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4600 break;;
4601 * ) break;;
4602 esac
4603done
4604else
cristy8b350f62009-11-15 23:12:43 +00004605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004607as_fn_error "cannot compute suffix of executables: cannot compile and link
4608See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004609fi
cristycd4c5312009-11-22 01:19:08 +00004610rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004612$as_echo "$ac_cv_exeext" >&6; }
4613
4614rm -f conftest.$ac_ext
4615EXEEXT=$ac_cv_exeext
4616ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h. */
4619#include <stdio.h>
4620int
4621main ()
4622{
4623FILE *f = fopen ("conftest.out", "w");
4624 return ferror (f) || fclose (f) != 0;
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
4630ac_clean_files="$ac_clean_files conftest.out"
4631# Check that the compiler produces executables we can run. If not, either
4632# the compiler is broken, or we cross compile.
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4634$as_echo_n "checking whether we are cross compiling... " >&6; }
4635if test "$cross_compiling" != yes; then
4636 { { ac_try="$ac_link"
4637case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
4641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4642$as_echo "$ac_try_echo"; } >&5
4643 (eval "$ac_link") 2>&5
4644 ac_status=$?
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4647 if { ac_try='./conftest$ac_cv_exeext'
4648 { { case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651esac
4652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653$as_echo "$ac_try_echo"; } >&5
4654 (eval "$ac_try") 2>&5
4655 ac_status=$?
4656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }; }; then
4658 cross_compiling=no
4659 else
4660 if test "$cross_compiling" = maybe; then
4661 cross_compiling=yes
4662 else
4663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4665as_fn_error "cannot run C compiled programs.
4666If you meant to cross compile, use \`--host'.
4667See \`config.log' for more details." "$LINENO" 5; }
4668 fi
4669 fi
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4672$as_echo "$cross_compiling" >&6; }
4673
4674rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4675ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004677$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004678if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004679 $as_echo_n "(cached) " >&6
4680else
cristy8b350f62009-11-15 23:12:43 +00004681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004682/* end confdefs.h. */
4683
4684int
4685main ()
4686{
4687
4688 ;
4689 return 0;
4690}
4691_ACEOF
4692rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004693if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004694case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697esac
cristy8b350f62009-11-15 23:12:43 +00004698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004700 (eval "$ac_compile") 2>&5
4701 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004704 for ac_file in conftest.o conftest.obj conftest.*; do
4705 test -f "$ac_file" || continue;
4706 case $ac_file in
4707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4709 break;;
4710 esac
4711done
4712else
4713 $as_echo "$as_me: failed program was:" >&5
4714sed 's/^/| /' conftest.$ac_ext >&5
4715
cristy8b350f62009-11-15 23:12:43 +00004716{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004718as_fn_error "cannot compute suffix of object files: cannot compile
4719See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004720fi
cristy3ed852e2009-09-05 21:47:34 +00004721rm -f conftest.$ac_cv_objext conftest.$ac_ext
4722fi
cristy8b350f62009-11-15 23:12:43 +00004723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004724$as_echo "$ac_cv_objext" >&6; }
4725OBJEXT=$ac_cv_objext
4726ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004728$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004729if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004730 $as_echo_n "(cached) " >&6
4731else
cristy8b350f62009-11-15 23:12:43 +00004732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004733/* end confdefs.h. */
4734
4735int
4736main ()
4737{
4738#ifndef __GNUC__
4739 choke me
4740#endif
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004746if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004747 ac_compiler_gnu=yes
4748else
cristy8b350f62009-11-15 23:12:43 +00004749 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004750fi
cristy3ed852e2009-09-05 21:47:34 +00004751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752ac_cv_c_compiler_gnu=$ac_compiler_gnu
4753
4754fi
cristy8b350f62009-11-15 23:12:43 +00004755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4757if test $ac_compiler_gnu = yes; then
4758 GCC=yes
4759else
4760 GCC=
4761fi
4762ac_test_CFLAGS=${CFLAGS+set}
4763ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004765$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004766if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004767 $as_echo_n "(cached) " >&6
4768else
4769 ac_save_c_werror_flag=$ac_c_werror_flag
4770 ac_c_werror_flag=yes
4771 ac_cv_prog_cc_g=no
4772 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004774/* end confdefs.h. */
4775
4776int
4777main ()
4778{
4779
4780 ;
4781 return 0;
4782}
4783_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004784if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004785 ac_cv_prog_cc_g=yes
4786else
cristy8b350f62009-11-15 23:12:43 +00004787 CFLAGS=""
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004789/* end confdefs.h. */
4790
4791int
4792main ()
4793{
4794
4795 ;
4796 return 0;
4797}
4798_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004799if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004800
cristy8b350f62009-11-15 23:12:43 +00004801else
4802 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004803 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004805/* end confdefs.h. */
4806
4807int
4808main ()
4809{
4810
4811 ;
4812 return 0;
4813}
4814_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004815if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004816 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004817fi
cristy3ed852e2009-09-05 21:47:34 +00004818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819fi
cristy3ed852e2009-09-05 21:47:34 +00004820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821fi
cristy3ed852e2009-09-05 21:47:34 +00004822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_c_werror_flag=$ac_save_c_werror_flag
4824fi
cristy8b350f62009-11-15 23:12:43 +00004825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004826$as_echo "$ac_cv_prog_cc_g" >&6; }
4827if test "$ac_test_CFLAGS" = set; then
4828 CFLAGS=$ac_save_CFLAGS
4829elif test $ac_cv_prog_cc_g = yes; then
4830 if test "$GCC" = yes; then
4831 CFLAGS="-g -O2"
4832 else
4833 CFLAGS="-g"
4834 fi
4835else
4836 if test "$GCC" = yes; then
4837 CFLAGS="-O2"
4838 else
4839 CFLAGS=
4840 fi
4841fi
cristy8b350f62009-11-15 23:12:43 +00004842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004843$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004844if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004845 $as_echo_n "(cached) " >&6
4846else
4847 ac_cv_prog_cc_c89=no
4848ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004850/* end confdefs.h. */
4851#include <stdarg.h>
4852#include <stdio.h>
4853#include <sys/types.h>
4854#include <sys/stat.h>
4855/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4856struct buf { int x; };
4857FILE * (*rcsopen) (struct buf *, struct stat *, int);
4858static char *e (p, i)
4859 char **p;
4860 int i;
4861{
4862 return p[i];
4863}
4864static char *f (char * (*g) (char **, int), char **p, ...)
4865{
4866 char *s;
4867 va_list v;
4868 va_start (v,p);
4869 s = g (p, va_arg (v,int));
4870 va_end (v);
4871 return s;
4872}
4873
4874/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4875 function prototypes and stuff, but not '\xHH' hex character constants.
4876 These don't provoke an error unfortunately, instead are silently treated
4877 as 'x'. The following induces an error, until -std is added to get
4878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4879 array size at least. It's necessary to write '\x00'==0 to get something
4880 that's true only with -std. */
4881int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4882
4883/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4884 inside strings and character constants. */
4885#define FOO(x) 'x'
4886int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4887
4888int test (int i, double x);
4889struct s1 {int (*f) (int a);};
4890struct s2 {int (*f) (double a);};
4891int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4892int argc;
4893char **argv;
4894int
4895main ()
4896{
4897return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4904do
4905 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004906 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004907 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004908fi
cristy3ed852e2009-09-05 21:47:34 +00004909rm -f core conftest.err conftest.$ac_objext
4910 test "x$ac_cv_prog_cc_c89" != "xno" && break
4911done
4912rm -f conftest.$ac_ext
4913CC=$ac_save_CC
4914
4915fi
4916# AC_CACHE_VAL
4917case "x$ac_cv_prog_cc_c89" in
4918 x)
cristy8b350f62009-11-15 23:12:43 +00004919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004920$as_echo "none needed" >&6; } ;;
4921 xno)
cristy8b350f62009-11-15 23:12:43 +00004922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004923$as_echo "unsupported" >&6; } ;;
4924 *)
4925 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004927$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4928esac
cristy8b350f62009-11-15 23:12:43 +00004929if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004930
cristy8b350f62009-11-15 23:12:43 +00004931fi
cristy3ed852e2009-09-05 21:47:34 +00004932
4933ac_ext=c
4934ac_cpp='$CPP $CPPFLAGS'
4935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004938
cristya0b81c32010-01-22 02:54:33 +00004939depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004940
cristya0b81c32010-01-22 02:54:33 +00004941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4942$as_echo_n "checking dependency style of $depcc... " >&6; }
4943if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004945else
cristya0b81c32010-01-22 02:54:33 +00004946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4947 # We make a subdir and do the tests there. Otherwise we can end up
4948 # making bogus files that we don't know about and never remove. For
4949 # instance it was reported that on HP-UX the gcc test will end up
4950 # making a dummy file named `D' -- because `-MD' means `put the output
4951 # in D'.
4952 mkdir conftest.dir
4953 # Copy depcomp to subdir because otherwise we won't find it if we're
4954 # using a relative directory.
4955 cp "$am_depcomp" conftest.dir
4956 cd conftest.dir
4957 # We will build objects and dependencies in a subdirectory because
4958 # it helps to detect inapplicable dependency modes. For instance
4959 # both Tru64's cc and ICC support -MD to output dependencies as a
4960 # side effect of compilation, but ICC will put the dependencies in
4961 # the current directory while Tru64 will put them in the object
4962 # directory.
4963 mkdir sub
4964
4965 am_cv_CC_dependencies_compiler_type=none
4966 if test "$am_compiler_list" = ""; then
4967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968 fi
4969 am__universal=false
4970 case " $depcc " in #(
4971 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4972 esac
4973
4974 for depmode in $am_compiler_list; do
4975 # Setup a source with many dependencies, because some compilers
4976 # like to wrap large dependency lists on column 80 (with \), and
4977 # we should not choose a depcomp mode which is confused by this.
4978 #
4979 # We need to recreate these files for each test, as the compiler may
4980 # overwrite some of them when testing with obscure command lines.
4981 # This happens at least with the AIX C compiler.
4982 : > sub/conftest.c
4983 for i in 1 2 3 4 5 6; do
4984 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4985 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4986 # Solaris 8's {/usr,}/bin/sh.
4987 touch sub/conftst$i.h
4988 done
4989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4990
4991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4992 # mode. It turns out that the SunPro C++ compiler does not properly
4993 # handle `-M -o', and we need to detect this. Also, some Intel
4994 # versions had trouble with output in subdirs
4995 am__obj=sub/conftest.${OBJEXT-o}
4996 am__minus_obj="-o $am__obj"
4997 case $depmode in
4998 gcc)
4999 # This depmode causes a compiler race in universal mode.
5000 test "$am__universal" = false || continue
5001 ;;
5002 nosideeffect)
5003 # after this tag, mechanisms are not by side-effect, so they'll
5004 # only be used when explicitly requested
5005 if test "x$enable_dependency_tracking" = xyes; then
5006 continue
5007 else
5008 break
5009 fi
5010 ;;
5011 msvisualcpp | msvcmsys)
5012 # This compiler won't grok `-c -o', but also, the minuso test has
5013 # not run yet. These depmodes are late enough in the game, and
5014 # so weak that their functioning should not be impacted.
5015 am__obj=conftest.${OBJEXT-o}
5016 am__minus_obj=
5017 ;;
5018 none) break ;;
5019 esac
5020 if depmode=$depmode \
5021 source=sub/conftest.c object=$am__obj \
5022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5023 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5024 >/dev/null 2>conftest.err &&
5025 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5027 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5029 # icc doesn't choke on unknown options, it will just issue warnings
5030 # or remarks (even with -Werror). So we grep stderr for any message
5031 # that says an option was ignored or not supported.
5032 # When given -MP, icc 7.0 and 7.1 complain thusly:
5033 # icc: Command line warning: ignoring option '-M'; no argument required
5034 # The diagnosis changed in icc 8.0:
5035 # icc: Command line remark: option '-MP' not supported
5036 if (grep 'ignoring option' conftest.err ||
5037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5038 am_cv_CC_dependencies_compiler_type=$depmode
5039 break
5040 fi
5041 fi
5042 done
5043
5044 cd ..
5045 rm -rf conftest.dir
5046else
5047 am_cv_CC_dependencies_compiler_type=none
5048fi
5049
5050fi
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5052$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5053CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5054
5055 if
5056 test "x$enable_dependency_tracking" != xno \
5057 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5058 am__fastdepCC_TRUE=
5059 am__fastdepCC_FALSE='#'
5060else
5061 am__fastdepCC_TRUE='#'
5062 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005063fi
5064
5065
5066
cristya0b81c32010-01-22 02:54:33 +00005067ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5073$as_echo_n "checking how to run the C preprocessor... " >&6; }
5074# On Suns, sometimes $CPP names a directory.
5075if test -n "$CPP" && test -d "$CPP"; then
5076 CPP=
5077fi
5078if test -z "$CPP"; then
5079 if test "${ac_cv_prog_CPP+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5081else
5082 # Double quotes because CPP needs to be expanded
5083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 do
5085 ac_preproc_ok=false
5086for ac_c_preproc_warn_flag in '' yes
5087do
5088 # Use a header file that comes with gcc, so configuring glibc
5089 # with a fresh cross-compiler works.
5090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5091 # <limits.h> exists even on freestanding compilers.
5092 # On the NeXT, cc -E runs the code through the compiler's parser,
5093 # not just through cpp. "Syntax error" is here to catch this case.
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h. */
5096#ifdef __STDC__
5097# include <limits.h>
5098#else
5099# include <assert.h>
5100#endif
5101 Syntax error
5102_ACEOF
5103if ac_fn_c_try_cpp "$LINENO"; then :
5104
5105else
5106 # Broken: fails on valid input.
5107continue
5108fi
5109rm -f conftest.err conftest.$ac_ext
5110
5111 # OK, works on sane cases. Now check whether nonexistent headers
5112 # can be detected and how.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h. */
5115#include <ac_nonexistent.h>
5116_ACEOF
5117if ac_fn_c_try_cpp "$LINENO"; then :
5118 # Broken: success on invalid input.
5119continue
5120else
5121 # Passes both tests.
5122ac_preproc_ok=:
5123break
5124fi
5125rm -f conftest.err conftest.$ac_ext
5126
5127done
5128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5129rm -f conftest.err conftest.$ac_ext
5130if $ac_preproc_ok; then :
5131 break
5132fi
5133
5134 done
5135 ac_cv_prog_CPP=$CPP
5136
5137fi
5138 CPP=$ac_cv_prog_CPP
5139else
5140 ac_cv_prog_CPP=$CPP
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5143$as_echo "$CPP" >&6; }
5144ac_preproc_ok=false
5145for ac_c_preproc_warn_flag in '' yes
5146do
5147 # Use a header file that comes with gcc, so configuring glibc
5148 # with a fresh cross-compiler works.
5149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5150 # <limits.h> exists even on freestanding compilers.
5151 # On the NeXT, cc -E runs the code through the compiler's parser,
5152 # not just through cpp. "Syntax error" is here to catch this case.
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h. */
5155#ifdef __STDC__
5156# include <limits.h>
5157#else
5158# include <assert.h>
5159#endif
5160 Syntax error
5161_ACEOF
5162if ac_fn_c_try_cpp "$LINENO"; then :
5163
5164else
5165 # Broken: fails on valid input.
5166continue
5167fi
5168rm -f conftest.err conftest.$ac_ext
5169
5170 # OK, works on sane cases. Now check whether nonexistent headers
5171 # can be detected and how.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h. */
5174#include <ac_nonexistent.h>
5175_ACEOF
5176if ac_fn_c_try_cpp "$LINENO"; then :
5177 # Broken: success on invalid input.
5178continue
5179else
5180 # Passes both tests.
5181ac_preproc_ok=:
5182break
5183fi
5184rm -f conftest.err conftest.$ac_ext
5185
5186done
5187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188rm -f conftest.err conftest.$ac_ext
5189if $ac_preproc_ok; then :
5190
5191else
5192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5194as_fn_error "C preprocessor \"$CPP\" fails sanity check
5195See \`config.log' for more details." "$LINENO" 5; }
5196fi
5197
5198ac_ext=c
5199ac_cpp='$CPP $CPPFLAGS'
5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5206$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5207if test "${ac_cv_path_GREP+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209else
5210 if test -z "$GREP"; then
5211 ac_path_GREP_found=false
5212 # Loop through the user's path and test for each of PROGNAME-LIST
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5215do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_prog in grep ggrep; do
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5222# Check for GNU ac_path_GREP and select it if it is found.
5223 # Check for GNU $ac_path_GREP
5224case `"$ac_path_GREP" --version 2>&1` in
5225*GNU*)
5226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5227*)
5228 ac_count=0
5229 $as_echo_n 0123456789 >"conftest.in"
5230 while :
5231 do
5232 cat "conftest.in" "conftest.in" >"conftest.tmp"
5233 mv "conftest.tmp" "conftest.in"
5234 cp "conftest.in" "conftest.nl"
5235 $as_echo 'GREP' >> "conftest.nl"
5236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5238 as_fn_arith $ac_count + 1 && ac_count=$as_val
5239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5240 # Best one so far, save it but keep looking for a better one
5241 ac_cv_path_GREP="$ac_path_GREP"
5242 ac_path_GREP_max=$ac_count
5243 fi
5244 # 10*(2^10) chars as input seems more than enough
5245 test $ac_count -gt 10 && break
5246 done
5247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5248esac
5249
5250 $ac_path_GREP_found && break 3
5251 done
5252 done
5253 done
5254IFS=$as_save_IFS
5255 if test -z "$ac_cv_path_GREP"; then
5256 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5257 fi
5258else
5259 ac_cv_path_GREP=$GREP
5260fi
5261
5262fi
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5264$as_echo "$ac_cv_path_GREP" >&6; }
5265 GREP="$ac_cv_path_GREP"
5266
5267
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5269$as_echo_n "checking for egrep... " >&6; }
5270if test "${ac_cv_path_EGREP+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272else
5273 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5274 then ac_cv_path_EGREP="$GREP -E"
5275 else
5276 if test -z "$EGREP"; then
5277 ac_path_EGREP_found=false
5278 # Loop through the user's path and test for each of PROGNAME-LIST
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_prog in egrep; do
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5287 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5288# Check for GNU ac_path_EGREP and select it if it is found.
5289 # Check for GNU $ac_path_EGREP
5290case `"$ac_path_EGREP" --version 2>&1` in
5291*GNU*)
5292 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5293*)
5294 ac_count=0
5295 $as_echo_n 0123456789 >"conftest.in"
5296 while :
5297 do
5298 cat "conftest.in" "conftest.in" >"conftest.tmp"
5299 mv "conftest.tmp" "conftest.in"
5300 cp "conftest.in" "conftest.nl"
5301 $as_echo 'EGREP' >> "conftest.nl"
5302 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5304 as_fn_arith $ac_count + 1 && ac_count=$as_val
5305 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5306 # Best one so far, save it but keep looking for a better one
5307 ac_cv_path_EGREP="$ac_path_EGREP"
5308 ac_path_EGREP_max=$ac_count
5309 fi
5310 # 10*(2^10) chars as input seems more than enough
5311 test $ac_count -gt 10 && break
5312 done
5313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314esac
5315
5316 $ac_path_EGREP_found && break 3
5317 done
5318 done
5319 done
5320IFS=$as_save_IFS
5321 if test -z "$ac_cv_path_EGREP"; then
5322 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323 fi
5324else
5325 ac_cv_path_EGREP=$EGREP
5326fi
5327
5328 fi
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5331$as_echo "$ac_cv_path_EGREP" >&6; }
5332 EGREP="$ac_cv_path_EGREP"
5333
5334
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5336$as_echo_n "checking for ANSI C header files... " >&6; }
5337if test "${ac_cv_header_stdc+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339else
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5342#include <stdlib.h>
5343#include <stdarg.h>
5344#include <string.h>
5345#include <float.h>
5346
5347int
5348main ()
5349{
5350
5351 ;
5352 return 0;
5353}
5354_ACEOF
5355if ac_fn_c_try_compile "$LINENO"; then :
5356 ac_cv_header_stdc=yes
5357else
5358 ac_cv_header_stdc=no
5359fi
5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361
5362if test $ac_cv_header_stdc = yes; then
5363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h. */
5366#include <string.h>
5367
5368_ACEOF
5369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370 $EGREP "memchr" >/dev/null 2>&1; then :
5371
5372else
5373 ac_cv_header_stdc=no
5374fi
5375rm -f conftest*
5376
5377fi
5378
5379if test $ac_cv_header_stdc = yes; then
5380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383#include <stdlib.h>
5384
5385_ACEOF
5386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5387 $EGREP "free" >/dev/null 2>&1; then :
5388
5389else
5390 ac_cv_header_stdc=no
5391fi
5392rm -f conftest*
5393
5394fi
5395
5396if test $ac_cv_header_stdc = yes; then
5397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5398 if test "$cross_compiling" = yes; then :
5399 :
5400else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h. */
5403#include <ctype.h>
5404#include <stdlib.h>
5405#if ((' ' & 0x0FF) == 0x020)
5406# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5407# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5408#else
5409# define ISLOWER(c) \
5410 (('a' <= (c) && (c) <= 'i') \
5411 || ('j' <= (c) && (c) <= 'r') \
5412 || ('s' <= (c) && (c) <= 'z'))
5413# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5414#endif
5415
5416#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5417int
5418main ()
5419{
5420 int i;
5421 for (i = 0; i < 256; i++)
5422 if (XOR (islower (i), ISLOWER (i))
5423 || toupper (i) != TOUPPER (i))
5424 return 2;
5425 return 0;
5426}
5427_ACEOF
5428if ac_fn_c_try_run "$LINENO"; then :
5429
5430else
5431 ac_cv_header_stdc=no
5432fi
5433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5434 conftest.$ac_objext conftest.beam conftest.$ac_ext
5435fi
5436
5437fi
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5440$as_echo "$ac_cv_header_stdc" >&6; }
5441if test $ac_cv_header_stdc = yes; then
5442
5443$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5444
5445fi
5446
5447# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5448for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5449 inttypes.h stdint.h unistd.h
5450do :
5451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5452ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5453"
5454eval as_val=\$$as_ac_Header
5455 if test "x$as_val" = x""yes; then :
5456 cat >>confdefs.h <<_ACEOF
5457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5458_ACEOF
5459
5460fi
5461
5462done
5463
5464
5465
5466 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5467if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5468 MINIX=yes
5469else
5470 MINIX=
5471fi
5472
5473
5474 if test "$MINIX" = yes; then
5475
5476$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5477
5478
5479$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5480
5481
5482$as_echo "#define _MINIX 1" >>confdefs.h
5483
5484 fi
5485
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5488$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5489if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h. */
5494
5495# define __EXTENSIONS__ 1
5496 $ac_includes_default
5497int
5498main ()
5499{
5500
5501 ;
5502 return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_safe_to_define___extensions__=yes
5507else
5508 ac_cv_safe_to_define___extensions__=no
5509fi
5510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511fi
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5513$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5514 test $ac_cv_safe_to_define___extensions__ = yes &&
5515 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5516
5517 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5518
5519 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5520
5521 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5522
5523 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5524
5525
5526
5527# Check for programs
5528ac_ext=c
5529ac_cpp='$CPP $CPPFLAGS'
5530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5532ac_compiler_gnu=$ac_cv_c_compiler_gnu
5533if test -n "$ac_tool_prefix"; then
5534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5535set dummy ${ac_tool_prefix}gcc; ac_word=$2
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537$as_echo_n "checking for $ac_word... " >&6; }
5538if test "${ac_cv_prog_CC+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540else
5541 if test -n "$CC"; then
5542 ac_cv_prog_CC="$CC" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555done
5556 done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561CC=$ac_cv_prog_CC
5562if test -n "$CC"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5564$as_echo "$CC" >&6; }
5565else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568fi
5569
5570
5571fi
5572if test -z "$ac_cv_prog_CC"; then
5573 ac_ct_CC=$CC
5574 # Extract the first word of "gcc", so it can be a program name with args.
5575set dummy gcc; ac_word=$2
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577$as_echo_n "checking for $ac_word... " >&6; }
5578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580else
5581 if test -n "$ac_ct_CC"; then
5582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_ac_ct_CC="gcc"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595done
5596 done
5597IFS=$as_save_IFS
5598
5599fi
5600fi
5601ac_ct_CC=$ac_cv_prog_ac_ct_CC
5602if test -n "$ac_ct_CC"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5604$as_echo "$ac_ct_CC" >&6; }
5605else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608fi
5609
5610 if test "x$ac_ct_CC" = x; then
5611 CC=""
5612 else
5613 case $cross_compiling:$ac_tool_warned in
5614yes:)
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617ac_tool_warned=yes ;;
5618esac
5619 CC=$ac_ct_CC
5620 fi
5621else
5622 CC="$ac_cv_prog_CC"
5623fi
5624
5625if test -z "$CC"; then
5626 if test -n "$ac_tool_prefix"; then
5627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5628set dummy ${ac_tool_prefix}cc; ac_word=$2
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630$as_echo_n "checking for $ac_word... " >&6; }
5631if test "${ac_cv_prog_CC+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633else
5634 if test -n "$CC"; then
5635 ac_cv_prog_CC="$CC" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_prog_CC="${ac_tool_prefix}cc"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5647 fi
5648done
5649 done
5650IFS=$as_save_IFS
5651
5652fi
5653fi
5654CC=$ac_cv_prog_CC
5655if test -n "$CC"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5657$as_echo "$CC" >&6; }
5658else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660$as_echo "no" >&6; }
5661fi
5662
5663
5664 fi
5665fi
5666if test -z "$CC"; then
5667 # Extract the first word of "cc", so it can be a program name with args.
5668set dummy cc; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if test "${ac_cv_prog_CC+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$CC"; then
5675 ac_cv_prog_CC="$CC" # Let the user override the test.
5676else
5677 ac_prog_rejected=no
5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH
5680do
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5686 ac_prog_rejected=yes
5687 continue
5688 fi
5689 ac_cv_prog_CC="cc"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694 done
5695IFS=$as_save_IFS
5696
5697if test $ac_prog_rejected = yes; then
5698 # We found a bogon in the path, so make sure we never use it.
5699 set dummy $ac_cv_prog_CC
5700 shift
5701 if test $# != 0; then
5702 # We chose a different compiler from the bogus one.
5703 # However, it has the same basename, so the bogon will be chosen
5704 # first if we set CC to just the basename; use the full file name.
5705 shift
5706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5707 fi
5708fi
5709fi
5710fi
5711CC=$ac_cv_prog_CC
5712if test -n "$CC"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5714$as_echo "$CC" >&6; }
5715else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720
5721fi
5722if test -z "$CC"; then
5723 if test -n "$ac_tool_prefix"; then
5724 for ac_prog in cl.exe
5725 do
5726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if test "${ac_cv_prog_CC+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732else
5733 if test -n "$CC"; then
5734 ac_cv_prog_CC="$CC" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747done
5748 done
5749IFS=$as_save_IFS
5750
5751fi
5752fi
5753CC=$ac_cv_prog_CC
5754if test -n "$CC"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5756$as_echo "$CC" >&6; }
5757else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759$as_echo "no" >&6; }
5760fi
5761
5762
5763 test -n "$CC" && break
5764 done
5765fi
5766if test -z "$CC"; then
5767 ac_ct_CC=$CC
5768 for ac_prog in cl.exe
5769do
5770 # Extract the first word of "$ac_prog", so it can be a program name with args.
5771set dummy $ac_prog; ac_word=$2
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
5774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5776else
5777 if test -n "$ac_ct_CC"; then
5778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_prog_ac_ct_CC="$ac_prog"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791done
5792 done
5793IFS=$as_save_IFS
5794
5795fi
5796fi
5797ac_ct_CC=$ac_cv_prog_ac_ct_CC
5798if test -n "$ac_ct_CC"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5800$as_echo "$ac_ct_CC" >&6; }
5801else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
5804fi
5805
5806
5807 test -n "$ac_ct_CC" && break
5808done
5809
5810 if test "x$ac_ct_CC" = x; then
5811 CC=""
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814yes:)
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817ac_tool_warned=yes ;;
5818esac
5819 CC=$ac_ct_CC
5820 fi
5821fi
5822
5823fi
5824
5825
5826test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828as_fn_error "no acceptable C compiler found in \$PATH
5829See \`config.log' for more details." "$LINENO" 5; }
5830
5831# Provide some information about the compiler.
5832$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5833set X $ac_compile
5834ac_compiler=$2
5835for ac_option in --version -v -V -qversion; do
5836 { { ac_try="$ac_compiler $ac_option >&5"
5837case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5842$as_echo "$ac_try_echo"; } >&5
5843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5844 ac_status=$?
5845 if test -s conftest.err; then
5846 sed '10a\
5847... rest of stderr output deleted ...
5848 10q' conftest.err >conftest.er1
5849 cat conftest.er1 >&5
5850 fi
5851 rm -f conftest.er1 conftest.err
5852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5853 test $ac_status = 0; }
5854done
5855
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5857$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5858if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860else
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h. */
5863
5864int
5865main ()
5866{
5867#ifndef __GNUC__
5868 choke me
5869#endif
5870
5871 ;
5872 return 0;
5873}
5874_ACEOF
5875if ac_fn_c_try_compile "$LINENO"; then :
5876 ac_compiler_gnu=yes
5877else
5878 ac_compiler_gnu=no
5879fi
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881ac_cv_c_compiler_gnu=$ac_compiler_gnu
5882
5883fi
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5885$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5886if test $ac_compiler_gnu = yes; then
5887 GCC=yes
5888else
5889 GCC=
5890fi
5891ac_test_CFLAGS=${CFLAGS+set}
5892ac_save_CFLAGS=$CFLAGS
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5894$as_echo_n "checking whether $CC accepts -g... " >&6; }
5895if test "${ac_cv_prog_cc_g+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5897else
5898 ac_save_c_werror_flag=$ac_c_werror_flag
5899 ac_c_werror_flag=yes
5900 ac_cv_prog_cc_g=no
5901 CFLAGS="-g"
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903/* end confdefs.h. */
5904
5905int
5906main ()
5907{
5908
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913if ac_fn_c_try_compile "$LINENO"; then :
5914 ac_cv_prog_cc_g=yes
5915else
5916 CFLAGS=""
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h. */
5919
5920int
5921main ()
5922{
5923
5924 ;
5925 return 0;
5926}
5927_ACEOF
5928if ac_fn_c_try_compile "$LINENO"; then :
5929
5930else
5931 ac_c_werror_flag=$ac_save_c_werror_flag
5932 CFLAGS="-g"
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934/* end confdefs.h. */
5935
5936int
5937main ()
5938{
5939
5940 ;
5941 return 0;
5942}
5943_ACEOF
5944if ac_fn_c_try_compile "$LINENO"; then :
5945 ac_cv_prog_cc_g=yes
5946fi
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948fi
5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950fi
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 ac_c_werror_flag=$ac_save_c_werror_flag
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5955$as_echo "$ac_cv_prog_cc_g" >&6; }
5956if test "$ac_test_CFLAGS" = set; then
5957 CFLAGS=$ac_save_CFLAGS
5958elif test $ac_cv_prog_cc_g = yes; then
5959 if test "$GCC" = yes; then
5960 CFLAGS="-g -O2"
5961 else
5962 CFLAGS="-g"
5963 fi
5964else
5965 if test "$GCC" = yes; then
5966 CFLAGS="-O2"
5967 else
5968 CFLAGS=
5969 fi
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5972$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5973if test "${ac_cv_prog_cc_c89+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975else
5976 ac_cv_prog_cc_c89=no
5977ac_save_CC=$CC
5978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h. */
5980#include <stdarg.h>
5981#include <stdio.h>
5982#include <sys/types.h>
5983#include <sys/stat.h>
5984/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5985struct buf { int x; };
5986FILE * (*rcsopen) (struct buf *, struct stat *, int);
5987static char *e (p, i)
5988 char **p;
5989 int i;
5990{
5991 return p[i];
5992}
5993static char *f (char * (*g) (char **, int), char **p, ...)
5994{
5995 char *s;
5996 va_list v;
5997 va_start (v,p);
5998 s = g (p, va_arg (v,int));
5999 va_end (v);
6000 return s;
6001}
6002
6003/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6004 function prototypes and stuff, but not '\xHH' hex character constants.
6005 These don't provoke an error unfortunately, instead are silently treated
6006 as 'x'. The following induces an error, until -std is added to get
6007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6008 array size at least. It's necessary to write '\x00'==0 to get something
6009 that's true only with -std. */
6010int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6011
6012/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6013 inside strings and character constants. */
6014#define FOO(x) 'x'
6015int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6016
6017int test (int i, double x);
6018struct s1 {int (*f) (int a);};
6019struct s2 {int (*f) (double a);};
6020int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6021int argc;
6022char **argv;
6023int
6024main ()
6025{
6026return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6027 ;
6028 return 0;
6029}
6030_ACEOF
6031for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6032 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6033do
6034 CC="$ac_save_CC $ac_arg"
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036 ac_cv_prog_cc_c89=$ac_arg
6037fi
6038rm -f core conftest.err conftest.$ac_objext
6039 test "x$ac_cv_prog_cc_c89" != "xno" && break
6040done
6041rm -f conftest.$ac_ext
6042CC=$ac_save_CC
6043
6044fi
6045# AC_CACHE_VAL
6046case "x$ac_cv_prog_cc_c89" in
6047 x)
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6049$as_echo "none needed" >&6; } ;;
6050 xno)
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6052$as_echo "unsupported" >&6; } ;;
6053 *)
6054 CC="$CC $ac_cv_prog_cc_c89"
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6056$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6057esac
6058if test "x$ac_cv_prog_cc_c89" != xno; then :
6059
6060fi
6061
6062ac_ext=c
6063ac_cpp='$CPP $CPPFLAGS'
6064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066ac_compiler_gnu=$ac_cv_c_compiler_gnu
6067
cristy3ed852e2009-09-05 21:47:34 +00006068depcc="$CC" am_compiler_list=
6069
cristy8b350f62009-11-15 23:12:43 +00006070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006071$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006072if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006073 $as_echo_n "(cached) " >&6
6074else
6075 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6076 # We make a subdir and do the tests there. Otherwise we can end up
6077 # making bogus files that we don't know about and never remove. For
6078 # instance it was reported that on HP-UX the gcc test will end up
6079 # making a dummy file named `D' -- because `-MD' means `put the output
6080 # in D'.
6081 mkdir conftest.dir
6082 # Copy depcomp to subdir because otherwise we won't find it if we're
6083 # using a relative directory.
6084 cp "$am_depcomp" conftest.dir
6085 cd conftest.dir
6086 # We will build objects and dependencies in a subdirectory because
6087 # it helps to detect inapplicable dependency modes. For instance
6088 # both Tru64's cc and ICC support -MD to output dependencies as a
6089 # side effect of compilation, but ICC will put the dependencies in
6090 # the current directory while Tru64 will put them in the object
6091 # directory.
6092 mkdir sub
6093
6094 am_cv_CC_dependencies_compiler_type=none
6095 if test "$am_compiler_list" = ""; then
6096 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6097 fi
6098 am__universal=false
6099 case " $depcc " in #(
6100 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6101 esac
6102
6103 for depmode in $am_compiler_list; do
6104 # Setup a source with many dependencies, because some compilers
6105 # like to wrap large dependency lists on column 80 (with \), and
6106 # we should not choose a depcomp mode which is confused by this.
6107 #
6108 # We need to recreate these files for each test, as the compiler may
6109 # overwrite some of them when testing with obscure command lines.
6110 # This happens at least with the AIX C compiler.
6111 : > sub/conftest.c
6112 for i in 1 2 3 4 5 6; do
6113 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6114 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6115 # Solaris 8's {/usr,}/bin/sh.
6116 touch sub/conftst$i.h
6117 done
6118 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6119
6120 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6121 # mode. It turns out that the SunPro C++ compiler does not properly
6122 # handle `-M -o', and we need to detect this. Also, some Intel
6123 # versions had trouble with output in subdirs
6124 am__obj=sub/conftest.${OBJEXT-o}
6125 am__minus_obj="-o $am__obj"
6126 case $depmode in
6127 gcc)
6128 # This depmode causes a compiler race in universal mode.
6129 test "$am__universal" = false || continue
6130 ;;
6131 nosideeffect)
6132 # after this tag, mechanisms are not by side-effect, so they'll
6133 # only be used when explicitly requested
6134 if test "x$enable_dependency_tracking" = xyes; then
6135 continue
6136 else
6137 break
6138 fi
6139 ;;
6140 msvisualcpp | msvcmsys)
6141 # This compiler won't grok `-c -o', but also, the minuso test has
6142 # not run yet. These depmodes are late enough in the game, and
6143 # so weak that their functioning should not be impacted.
6144 am__obj=conftest.${OBJEXT-o}
6145 am__minus_obj=
6146 ;;
6147 none) break ;;
6148 esac
6149 if depmode=$depmode \
6150 source=sub/conftest.c object=$am__obj \
6151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6152 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6153 >/dev/null 2>conftest.err &&
6154 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6156 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6158 # icc doesn't choke on unknown options, it will just issue warnings
6159 # or remarks (even with -Werror). So we grep stderr for any message
6160 # that says an option was ignored or not supported.
6161 # When given -MP, icc 7.0 and 7.1 complain thusly:
6162 # icc: Command line warning: ignoring option '-M'; no argument required
6163 # The diagnosis changed in icc 8.0:
6164 # icc: Command line remark: option '-MP' not supported
6165 if (grep 'ignoring option' conftest.err ||
6166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6167 am_cv_CC_dependencies_compiler_type=$depmode
6168 break
6169 fi
6170 fi
6171 done
6172
6173 cd ..
6174 rm -rf conftest.dir
6175else
6176 am_cv_CC_dependencies_compiler_type=none
6177fi
6178
6179fi
cristy8b350f62009-11-15 23:12:43 +00006180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006181$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6182CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6183
6184 if
6185 test "x$enable_dependency_tracking" != xno \
6186 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6187 am__fastdepCC_TRUE=
6188 am__fastdepCC_FALSE='#'
6189else
6190 am__fastdepCC_TRUE='#'
6191 am__fastdepCC_FALSE=
6192fi
6193
6194
cristy95646052009-11-28 23:05:30 +00006195ac_ext=cpp
6196ac_cpp='$CXXCPP $CPPFLAGS'
6197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6200if test -z "$CXX"; then
6201 if test -n "$CCC"; then
6202 CXX=$CCC
6203 else
6204 if test -n "$ac_tool_prefix"; then
6205 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6206 do
6207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210$as_echo_n "checking for $ac_word... " >&6; }
6211if test "${ac_cv_prog_CXX+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6213else
6214 if test -n "$CXX"; then
6215 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228done
6229 done
6230IFS=$as_save_IFS
6231
6232fi
6233fi
6234CXX=$ac_cv_prog_CXX
6235if test -n "$CXX"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6237$as_echo "$CXX" >&6; }
6238else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240$as_echo "no" >&6; }
6241fi
6242
6243
6244 test -n "$CXX" && break
6245 done
6246fi
6247if test -z "$CXX"; then
6248 ac_ct_CXX=$CXX
6249 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6250do
6251 # Extract the first word of "$ac_prog", so it can be a program name with args.
6252set dummy $ac_prog; ac_word=$2
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254$as_echo_n "checking for $ac_word... " >&6; }
6255if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6257else
6258 if test -n "$ac_ct_CXX"; then
6259 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6260else
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_ac_ct_CXX="$ac_prog"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272done
6273 done
6274IFS=$as_save_IFS
6275
6276fi
6277fi
6278ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6279if test -n "$ac_ct_CXX"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6281$as_echo "$ac_ct_CXX" >&6; }
6282else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284$as_echo "no" >&6; }
6285fi
6286
6287
6288 test -n "$ac_ct_CXX" && break
6289done
6290
6291 if test "x$ac_ct_CXX" = x; then
6292 CXX="g++"
6293 else
6294 case $cross_compiling:$ac_tool_warned in
6295yes:)
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6298ac_tool_warned=yes ;;
6299esac
6300 CXX=$ac_ct_CXX
6301 fi
6302fi
6303
6304 fi
6305fi
6306# Provide some information about the compiler.
6307$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6308set X $ac_compile
6309ac_compiler=$2
6310for ac_option in --version -v -V -qversion; do
6311 { { ac_try="$ac_compiler $ac_option >&5"
6312case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
6316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6317$as_echo "$ac_try_echo"; } >&5
6318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6319 ac_status=$?
6320 if test -s conftest.err; then
6321 sed '10a\
6322... rest of stderr output deleted ...
6323 10q' conftest.err >conftest.er1
6324 cat conftest.er1 >&5
6325 fi
6326 rm -f conftest.er1 conftest.err
6327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328 test $ac_status = 0; }
6329done
6330
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6332$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6333if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335else
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h. */
6338
6339int
6340main ()
6341{
6342#ifndef __GNUC__
6343 choke me
6344#endif
6345
6346 ;
6347 return 0;
6348}
6349_ACEOF
6350if ac_fn_cxx_try_compile "$LINENO"; then :
6351 ac_compiler_gnu=yes
6352else
6353 ac_compiler_gnu=no
6354fi
6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6357
6358fi
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6360$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6361if test $ac_compiler_gnu = yes; then
6362 GXX=yes
6363else
6364 GXX=
6365fi
6366ac_test_CXXFLAGS=${CXXFLAGS+set}
6367ac_save_CXXFLAGS=$CXXFLAGS
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6369$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6370if test "${ac_cv_prog_cxx_g+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6372else
6373 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6374 ac_cxx_werror_flag=yes
6375 ac_cv_prog_cxx_g=no
6376 CXXFLAGS="-g"
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h. */
6379
6380int
6381main ()
6382{
6383
6384 ;
6385 return 0;
6386}
6387_ACEOF
6388if ac_fn_cxx_try_compile "$LINENO"; then :
6389 ac_cv_prog_cxx_g=yes
6390else
6391 CXXFLAGS=""
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393/* end confdefs.h. */
6394
6395int
6396main ()
6397{
6398
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403if ac_fn_cxx_try_compile "$LINENO"; then :
6404
6405else
6406 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6407 CXXFLAGS="-g"
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h. */
6410
6411int
6412main ()
6413{
6414
6415 ;
6416 return 0;
6417}
6418_ACEOF
6419if ac_fn_cxx_try_compile "$LINENO"; then :
6420 ac_cv_prog_cxx_g=yes
6421fi
6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423fi
6424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425fi
6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6430$as_echo "$ac_cv_prog_cxx_g" >&6; }
6431if test "$ac_test_CXXFLAGS" = set; then
6432 CXXFLAGS=$ac_save_CXXFLAGS
6433elif test $ac_cv_prog_cxx_g = yes; then
6434 if test "$GXX" = yes; then
6435 CXXFLAGS="-g -O2"
6436 else
6437 CXXFLAGS="-g"
6438 fi
6439else
6440 if test "$GXX" = yes; then
6441 CXXFLAGS="-O2"
6442 else
6443 CXXFLAGS=
6444 fi
6445fi
6446ac_ext=c
6447ac_cpp='$CPP $CPPFLAGS'
6448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450ac_compiler_gnu=$ac_cv_c_compiler_gnu
6451
6452depcc="$CXX" am_compiler_list=
6453
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6455$as_echo_n "checking dependency style of $depcc... " >&6; }
6456if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458else
6459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6460 # We make a subdir and do the tests there. Otherwise we can end up
6461 # making bogus files that we don't know about and never remove. For
6462 # instance it was reported that on HP-UX the gcc test will end up
6463 # making a dummy file named `D' -- because `-MD' means `put the output
6464 # in D'.
6465 mkdir conftest.dir
6466 # Copy depcomp to subdir because otherwise we won't find it if we're
6467 # using a relative directory.
6468 cp "$am_depcomp" conftest.dir
6469 cd conftest.dir
6470 # We will build objects and dependencies in a subdirectory because
6471 # it helps to detect inapplicable dependency modes. For instance
6472 # both Tru64's cc and ICC support -MD to output dependencies as a
6473 # side effect of compilation, but ICC will put the dependencies in
6474 # the current directory while Tru64 will put them in the object
6475 # directory.
6476 mkdir sub
6477
6478 am_cv_CXX_dependencies_compiler_type=none
6479 if test "$am_compiler_list" = ""; then
6480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6481 fi
6482 am__universal=false
6483 case " $depcc " in #(
6484 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6485 esac
6486
6487 for depmode in $am_compiler_list; do
6488 # Setup a source with many dependencies, because some compilers
6489 # like to wrap large dependency lists on column 80 (with \), and
6490 # we should not choose a depcomp mode which is confused by this.
6491 #
6492 # We need to recreate these files for each test, as the compiler may
6493 # overwrite some of them when testing with obscure command lines.
6494 # This happens at least with the AIX C compiler.
6495 : > sub/conftest.c
6496 for i in 1 2 3 4 5 6; do
6497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6499 # Solaris 8's {/usr,}/bin/sh.
6500 touch sub/conftst$i.h
6501 done
6502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6503
6504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6505 # mode. It turns out that the SunPro C++ compiler does not properly
6506 # handle `-M -o', and we need to detect this. Also, some Intel
6507 # versions had trouble with output in subdirs
6508 am__obj=sub/conftest.${OBJEXT-o}
6509 am__minus_obj="-o $am__obj"
6510 case $depmode in
6511 gcc)
6512 # This depmode causes a compiler race in universal mode.
6513 test "$am__universal" = false || continue
6514 ;;
6515 nosideeffect)
6516 # after this tag, mechanisms are not by side-effect, so they'll
6517 # only be used when explicitly requested
6518 if test "x$enable_dependency_tracking" = xyes; then
6519 continue
6520 else
6521 break
6522 fi
6523 ;;
6524 msvisualcpp | msvcmsys)
6525 # This compiler won't grok `-c -o', but also, the minuso test has
6526 # not run yet. These depmodes are late enough in the game, and
6527 # so weak that their functioning should not be impacted.
6528 am__obj=conftest.${OBJEXT-o}
6529 am__minus_obj=
6530 ;;
6531 none) break ;;
6532 esac
6533 if depmode=$depmode \
6534 source=sub/conftest.c object=$am__obj \
6535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6536 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6537 >/dev/null 2>conftest.err &&
6538 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6539 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6540 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6541 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6542 # icc doesn't choke on unknown options, it will just issue warnings
6543 # or remarks (even with -Werror). So we grep stderr for any message
6544 # that says an option was ignored or not supported.
6545 # When given -MP, icc 7.0 and 7.1 complain thusly:
6546 # icc: Command line warning: ignoring option '-M'; no argument required
6547 # The diagnosis changed in icc 8.0:
6548 # icc: Command line remark: option '-MP' not supported
6549 if (grep 'ignoring option' conftest.err ||
6550 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6551 am_cv_CXX_dependencies_compiler_type=$depmode
6552 break
6553 fi
6554 fi
6555 done
6556
6557 cd ..
6558 rm -rf conftest.dir
6559else
6560 am_cv_CXX_dependencies_compiler_type=none
6561fi
6562
6563fi
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6565$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6566CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6567
6568 if
6569 test "x$enable_dependency_tracking" != xno \
6570 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6571 am__fastdepCXX_TRUE=
6572 am__fastdepCXX_FALSE='#'
6573else
6574 am__fastdepCXX_TRUE='#'
6575 am__fastdepCXX_FALSE=
6576fi
6577
6578
cristy8b350f62009-11-15 23:12:43 +00006579 case $ac_cv_prog_cc_stdc in #(
6580 no) :
6581 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6582 *) :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006584$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006585if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006586 $as_echo_n "(cached) " >&6
6587else
6588 ac_cv_prog_cc_c99=no
6589ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006591/* end confdefs.h. */
6592#include <stdarg.h>
6593#include <stdbool.h>
6594#include <stdlib.h>
6595#include <wchar.h>
6596#include <stdio.h>
6597
6598// Check varargs macros. These examples are taken from C99 6.10.3.5.
6599#define debug(...) fprintf (stderr, __VA_ARGS__)
6600#define showlist(...) puts (#__VA_ARGS__)
6601#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6602static void
6603test_varargs_macros (void)
6604{
6605 int x = 1234;
6606 int y = 5678;
6607 debug ("Flag");
6608 debug ("X = %d\n", x);
6609 showlist (The first, second, and third items.);
6610 report (x>y, "x is %d but y is %d", x, y);
6611}
6612
6613// Check long long types.
6614#define BIG64 18446744073709551615ull
6615#define BIG32 4294967295ul
6616#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6617#if !BIG_OK
6618 your preprocessor is broken;
6619#endif
6620#if BIG_OK
6621#else
6622 your preprocessor is broken;
6623#endif
6624static long long int bignum = -9223372036854775807LL;
6625static unsigned long long int ubignum = BIG64;
6626
6627struct incomplete_array
6628{
6629 int datasize;
6630 double data[];
6631};
6632
6633struct named_init {
6634 int number;
6635 const wchar_t *name;
6636 double average;
6637};
6638
6639typedef const char *ccp;
6640
6641static inline int
6642test_restrict (ccp restrict text)
6643{
6644 // See if C++-style comments work.
6645 // Iterate through items via the restricted pointer.
6646 // Also check for declarations in for loops.
6647 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6648 continue;
6649 return 0;
6650}
6651
6652// Check varargs and va_copy.
6653static void
6654test_varargs (const char *format, ...)
6655{
6656 va_list args;
6657 va_start (args, format);
6658 va_list args_copy;
6659 va_copy (args_copy, args);
6660
6661 const char *str;
6662 int number;
6663 float fnumber;
6664
6665 while (*format)
6666 {
6667 switch (*format++)
6668 {
6669 case 's': // string
6670 str = va_arg (args_copy, const char *);
6671 break;
6672 case 'd': // int
6673 number = va_arg (args_copy, int);
6674 break;
6675 case 'f': // float
6676 fnumber = va_arg (args_copy, double);
6677 break;
6678 default:
6679 break;
6680 }
6681 }
6682 va_end (args_copy);
6683 va_end (args);
6684}
6685
6686int
6687main ()
6688{
6689
6690 // Check bool.
6691 _Bool success = false;
6692
6693 // Check restrict.
6694 if (test_restrict ("String literal") == 0)
6695 success = true;
6696 char *restrict newvar = "Another string";
6697
6698 // Check varargs.
6699 test_varargs ("s, d' f .", "string", 65, 34.234);
6700 test_varargs_macros ();
6701
6702 // Check flexible array members.
6703 struct incomplete_array *ia =
6704 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6705 ia->datasize = 10;
6706 for (int i = 0; i < ia->datasize; ++i)
6707 ia->data[i] = i * 1.234;
6708
6709 // Check named initializers.
6710 struct named_init ni = {
6711 .number = 34,
6712 .name = L"Test wide string",
6713 .average = 543.34343,
6714 };
6715
6716 ni.number = 58;
6717
6718 int dynamic_array[ni.number];
6719 dynamic_array[ni.number - 1] = 543;
6720
6721 // work around unused variable warnings
6722 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6723 || dynamic_array[ni.number - 1] != 543);
6724
6725 ;
6726 return 0;
6727}
6728_ACEOF
6729for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6730do
6731 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006732 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006733 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006734fi
cristy3ed852e2009-09-05 21:47:34 +00006735rm -f core conftest.err conftest.$ac_objext
6736 test "x$ac_cv_prog_cc_c99" != "xno" && break
6737done
6738rm -f conftest.$ac_ext
6739CC=$ac_save_CC
6740
6741fi
6742# AC_CACHE_VAL
6743case "x$ac_cv_prog_cc_c99" in
6744 x)
cristy8b350f62009-11-15 23:12:43 +00006745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006746$as_echo "none needed" >&6; } ;;
6747 xno)
cristy8b350f62009-11-15 23:12:43 +00006748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006749$as_echo "unsupported" >&6; } ;;
6750 *)
6751 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006753$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6754esac
cristy8b350f62009-11-15 23:12:43 +00006755if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006756 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6757else
cristy8b350f62009-11-15 23:12:43 +00006758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006760if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006761 $as_echo_n "(cached) " >&6
6762else
6763 ac_cv_prog_cc_c89=no
6764ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006766/* end confdefs.h. */
6767#include <stdarg.h>
6768#include <stdio.h>
6769#include <sys/types.h>
6770#include <sys/stat.h>
6771/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6772struct buf { int x; };
6773FILE * (*rcsopen) (struct buf *, struct stat *, int);
6774static char *e (p, i)
6775 char **p;
6776 int i;
6777{
6778 return p[i];
6779}
6780static char *f (char * (*g) (char **, int), char **p, ...)
6781{
6782 char *s;
6783 va_list v;
6784 va_start (v,p);
6785 s = g (p, va_arg (v,int));
6786 va_end (v);
6787 return s;
6788}
6789
6790/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6791 function prototypes and stuff, but not '\xHH' hex character constants.
6792 These don't provoke an error unfortunately, instead are silently treated
6793 as 'x'. The following induces an error, until -std is added to get
6794 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6795 array size at least. It's necessary to write '\x00'==0 to get something
6796 that's true only with -std. */
6797int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6798
6799/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6800 inside strings and character constants. */
6801#define FOO(x) 'x'
6802int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6803
6804int test (int i, double x);
6805struct s1 {int (*f) (int a);};
6806struct s2 {int (*f) (double a);};
6807int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6808int argc;
6809char **argv;
6810int
6811main ()
6812{
6813return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6814 ;
6815 return 0;
6816}
6817_ACEOF
6818for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6819 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6820do
6821 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006822 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006823 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006824fi
cristy3ed852e2009-09-05 21:47:34 +00006825rm -f core conftest.err conftest.$ac_objext
6826 test "x$ac_cv_prog_cc_c89" != "xno" && break
6827done
6828rm -f conftest.$ac_ext
6829CC=$ac_save_CC
6830
6831fi
6832# AC_CACHE_VAL
6833case "x$ac_cv_prog_cc_c89" in
6834 x)
cristy8b350f62009-11-15 23:12:43 +00006835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006836$as_echo "none needed" >&6; } ;;
6837 xno)
cristy8b350f62009-11-15 23:12:43 +00006838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006839$as_echo "unsupported" >&6; } ;;
6840 *)
6841 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006843$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6844esac
cristy8b350f62009-11-15 23:12:43 +00006845if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006846 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6847else
6848 ac_cv_prog_cc_stdc=no
6849fi
6850
cristy3ed852e2009-09-05 21:47:34 +00006851fi
cristy3ed852e2009-09-05 21:47:34 +00006852 ;;
6853esac
cristy8b350f62009-11-15 23:12:43 +00006854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006855$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006856 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006857 $as_echo_n "(cached) " >&6
6858fi
6859
cristy8b350f62009-11-15 23:12:43 +00006860 case $ac_cv_prog_cc_stdc in #(
6861 no) :
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6863$as_echo "unsupported" >&6; } ;; #(
6864 '') :
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6866$as_echo "none needed" >&6; } ;; #(
6867 *) :
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006869$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6870esac
6871
cristy3ed852e2009-09-05 21:47:34 +00006872ac_ext=c
6873ac_cpp='$CPP $CPPFLAGS'
6874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006878$as_echo_n "checking how to run the C preprocessor... " >&6; }
6879# On Suns, sometimes $CPP names a directory.
6880if test -n "$CPP" && test -d "$CPP"; then
6881 CPP=
6882fi
6883if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006884 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006885 $as_echo_n "(cached) " >&6
6886else
6887 # Double quotes because CPP needs to be expanded
6888 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6889 do
6890 ac_preproc_ok=false
6891for ac_c_preproc_warn_flag in '' yes
6892do
6893 # Use a header file that comes with gcc, so configuring glibc
6894 # with a fresh cross-compiler works.
6895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896 # <limits.h> exists even on freestanding compilers.
6897 # On the NeXT, cc -E runs the code through the compiler's parser,
6898 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006900/* end confdefs.h. */
6901#ifdef __STDC__
6902# include <limits.h>
6903#else
6904# include <assert.h>
6905#endif
6906 Syntax error
6907_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006908if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006909
cristy8b350f62009-11-15 23:12:43 +00006910else
cristy3ed852e2009-09-05 21:47:34 +00006911 # Broken: fails on valid input.
6912continue
6913fi
cristy3ed852e2009-09-05 21:47:34 +00006914rm -f conftest.err conftest.$ac_ext
6915
6916 # OK, works on sane cases. Now check whether nonexistent headers
6917 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006919/* end confdefs.h. */
6920#include <ac_nonexistent.h>
6921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006922if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006923 # Broken: success on invalid input.
6924continue
6925else
cristy3ed852e2009-09-05 21:47:34 +00006926 # Passes both tests.
6927ac_preproc_ok=:
6928break
6929fi
cristy3ed852e2009-09-05 21:47:34 +00006930rm -f conftest.err conftest.$ac_ext
6931
6932done
6933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006935if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006936 break
6937fi
6938
6939 done
6940 ac_cv_prog_CPP=$CPP
6941
6942fi
6943 CPP=$ac_cv_prog_CPP
6944else
6945 ac_cv_prog_CPP=$CPP
6946fi
cristy8b350f62009-11-15 23:12:43 +00006947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006948$as_echo "$CPP" >&6; }
6949ac_preproc_ok=false
6950for ac_c_preproc_warn_flag in '' yes
6951do
6952 # Use a header file that comes with gcc, so configuring glibc
6953 # with a fresh cross-compiler works.
6954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6955 # <limits.h> exists even on freestanding compilers.
6956 # On the NeXT, cc -E runs the code through the compiler's parser,
6957 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006959/* end confdefs.h. */
6960#ifdef __STDC__
6961# include <limits.h>
6962#else
6963# include <assert.h>
6964#endif
6965 Syntax error
6966_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006967if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006968
cristy8b350f62009-11-15 23:12:43 +00006969else
cristy3ed852e2009-09-05 21:47:34 +00006970 # Broken: fails on valid input.
6971continue
6972fi
cristy3ed852e2009-09-05 21:47:34 +00006973rm -f conftest.err conftest.$ac_ext
6974
6975 # OK, works on sane cases. Now check whether nonexistent headers
6976 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006978/* end confdefs.h. */
6979#include <ac_nonexistent.h>
6980_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006981if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006982 # Broken: success on invalid input.
6983continue
6984else
cristy3ed852e2009-09-05 21:47:34 +00006985 # Passes both tests.
6986ac_preproc_ok=:
6987break
6988fi
cristy3ed852e2009-09-05 21:47:34 +00006989rm -f conftest.err conftest.$ac_ext
6990
6991done
6992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6993rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006994if $ac_preproc_ok; then :
6995
cristy3ed852e2009-09-05 21:47:34 +00006996else
cristy8b350f62009-11-15 23:12:43 +00006997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00006999as_fn_error "C preprocessor \"$CPP\" fails sanity check
7000See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007001fi
7002
7003ac_ext=c
7004ac_cpp='$CPP $CPPFLAGS'
7005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008
cristy8b350f62009-11-15 23:12:43 +00007009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007010$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007011if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007012 $as_echo_n "(cached) " >&6
7013else
7014 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7015 for ac_i in 1 2 3 4 5 6 7; do
7016 ac_script="$ac_script$as_nl$ac_script"
7017 done
7018 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007019 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007020 if test -z "$SED"; then
7021 ac_path_SED_found=false
7022 # Loop through the user's path and test for each of PROGNAME-LIST
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007028 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7031 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7032# Check for GNU ac_path_SED and select it if it is found.
7033 # Check for GNU $ac_path_SED
7034case `"$ac_path_SED" --version 2>&1` in
7035*GNU*)
7036 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7037*)
7038 ac_count=0
7039 $as_echo_n 0123456789 >"conftest.in"
7040 while :
7041 do
7042 cat "conftest.in" "conftest.in" >"conftest.tmp"
7043 mv "conftest.tmp" "conftest.in"
7044 cp "conftest.in" "conftest.nl"
7045 $as_echo '' >> "conftest.nl"
7046 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007048 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007049 if test $ac_count -gt ${ac_path_SED_max-0}; then
7050 # Best one so far, save it but keep looking for a better one
7051 ac_cv_path_SED="$ac_path_SED"
7052 ac_path_SED_max=$ac_count
7053 fi
7054 # 10*(2^10) chars as input seems more than enough
7055 test $ac_count -gt 10 && break
7056 done
7057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7058esac
7059
7060 $ac_path_SED_found && break 3
7061 done
7062 done
cristy8b350f62009-11-15 23:12:43 +00007063 done
cristy3ed852e2009-09-05 21:47:34 +00007064IFS=$as_save_IFS
7065 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007066 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007067 fi
7068else
7069 ac_cv_path_SED=$SED
7070fi
7071
7072fi
cristy8b350f62009-11-15 23:12:43 +00007073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007074$as_echo "$ac_cv_path_SED" >&6; }
7075 SED="$ac_cv_path_SED"
7076 rm -f conftest.sed
7077
7078test -z "$SED" && SED=sed
7079Xsed="$SED -e 1s/^X//"
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
cristy8b350f62009-11-15 23:12:43 +00007091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007092$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007093if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007094 $as_echo_n "(cached) " >&6
7095else
7096 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7097 then ac_cv_path_FGREP="$GREP -F"
7098 else
7099 if test -z "$FGREP"; then
7100 ac_path_FGREP_found=false
7101 # Loop through the user's path and test for each of PROGNAME-LIST
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7104do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007107 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7110 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7111# Check for GNU ac_path_FGREP and select it if it is found.
7112 # Check for GNU $ac_path_FGREP
7113case `"$ac_path_FGREP" --version 2>&1` in
7114*GNU*)
7115 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7116*)
7117 ac_count=0
7118 $as_echo_n 0123456789 >"conftest.in"
7119 while :
7120 do
7121 cat "conftest.in" "conftest.in" >"conftest.tmp"
7122 mv "conftest.tmp" "conftest.in"
7123 cp "conftest.in" "conftest.nl"
7124 $as_echo 'FGREP' >> "conftest.nl"
7125 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007127 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007128 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7129 # Best one so far, save it but keep looking for a better one
7130 ac_cv_path_FGREP="$ac_path_FGREP"
7131 ac_path_FGREP_max=$ac_count
7132 fi
7133 # 10*(2^10) chars as input seems more than enough
7134 test $ac_count -gt 10 && break
7135 done
7136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7137esac
7138
7139 $ac_path_FGREP_found && break 3
7140 done
7141 done
cristy8b350f62009-11-15 23:12:43 +00007142 done
cristy3ed852e2009-09-05 21:47:34 +00007143IFS=$as_save_IFS
7144 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007145 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007146 fi
7147else
7148 ac_cv_path_FGREP=$FGREP
7149fi
7150
7151 fi
7152fi
cristy8b350f62009-11-15 23:12:43 +00007153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007154$as_echo "$ac_cv_path_FGREP" >&6; }
7155 FGREP="$ac_cv_path_FGREP"
7156
7157
7158test -z "$GREP" && GREP=grep
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007179if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007180 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7181else
7182 with_gnu_ld=no
7183fi
7184
7185ac_prog=ld
7186if test "$GCC" = yes; then
7187 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007189$as_echo_n "checking for ld used by $CC... " >&6; }
7190 case $host in
7191 *-*-mingw*)
7192 # gcc leaves a trailing carriage return which upsets mingw
7193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7194 *)
7195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7196 esac
7197 case $ac_prog in
7198 # Accept absolute paths.
7199 [\\/]* | ?:[\\/]*)
7200 re_direlt='/[^/][^/]*/\.\./'
7201 # Canonicalize the pathname of ld
7202 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7203 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7204 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7205 done
7206 test -z "$LD" && LD="$ac_prog"
7207 ;;
7208 "")
7209 # If it fails, then pretend we aren't using GCC.
7210 ac_prog=ld
7211 ;;
7212 *)
7213 # If it is relative, then search for the first ld in PATH.
7214 with_gnu_ld=unknown
7215 ;;
7216 esac
7217elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007219$as_echo_n "checking for GNU ld... " >&6; }
7220else
cristy8b350f62009-11-15 23:12:43 +00007221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007222$as_echo_n "checking for non-GNU ld... " >&6; }
7223fi
cristy8b350f62009-11-15 23:12:43 +00007224if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007225 $as_echo_n "(cached) " >&6
7226else
7227 if test -z "$LD"; then
7228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7229 for ac_dir in $PATH; do
7230 IFS="$lt_save_ifs"
7231 test -z "$ac_dir" && ac_dir=.
7232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7233 lt_cv_path_LD="$ac_dir/$ac_prog"
7234 # Check to see if the program is GNU ld. I'd rather use --version,
7235 # but apparently some variants of GNU ld only accept -v.
7236 # Break only if it was the GNU/non-GNU ld that we prefer.
7237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7238 *GNU* | *'with BFD'*)
7239 test "$with_gnu_ld" != no && break
7240 ;;
7241 *)
7242 test "$with_gnu_ld" != yes && break
7243 ;;
7244 esac
7245 fi
7246 done
7247 IFS="$lt_save_ifs"
7248else
7249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7250fi
7251fi
7252
7253LD="$lt_cv_path_LD"
7254if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo "$LD" >&6; }
7257else
cristy8b350f62009-11-15 23:12:43 +00007258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007259$as_echo "no" >&6; }
7260fi
cristy8b350f62009-11-15 23:12:43 +00007261test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007263$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007264if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007265 $as_echo_n "(cached) " >&6
7266else
7267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7268case `$LD -v 2>&1 </dev/null` in
7269*GNU* | *'with BFD'*)
7270 lt_cv_prog_gnu_ld=yes
7271 ;;
7272*)
7273 lt_cv_prog_gnu_ld=no
7274 ;;
7275esac
7276fi
cristy8b350f62009-11-15 23:12:43 +00007277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007278$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7279with_gnu_ld=$lt_cv_prog_gnu_ld
7280
7281
7282
7283
7284
7285
7286
7287
7288
cristy3ed852e2009-09-05 21:47:34 +00007289
cristy837d6dc2010-02-27 01:16:57 +00007290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7291$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7292if test "${ac_cv_prog_cc_c99+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294else
7295 ac_cv_prog_cc_c99=no
7296ac_save_CC=$CC
7297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h. */
7299#include <stdarg.h>
7300#include <stdbool.h>
7301#include <stdlib.h>
7302#include <wchar.h>
7303#include <stdio.h>
7304
7305// Check varargs macros. These examples are taken from C99 6.10.3.5.
7306#define debug(...) fprintf (stderr, __VA_ARGS__)
7307#define showlist(...) puts (#__VA_ARGS__)
7308#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7309static void
7310test_varargs_macros (void)
7311{
7312 int x = 1234;
7313 int y = 5678;
7314 debug ("Flag");
7315 debug ("X = %d\n", x);
7316 showlist (The first, second, and third items.);
7317 report (x>y, "x is %d but y is %d", x, y);
7318}
7319
7320// Check long long types.
7321#define BIG64 18446744073709551615ull
7322#define BIG32 4294967295ul
7323#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7324#if !BIG_OK
7325 your preprocessor is broken;
7326#endif
7327#if BIG_OK
7328#else
7329 your preprocessor is broken;
7330#endif
7331static long long int bignum = -9223372036854775807LL;
7332static unsigned long long int ubignum = BIG64;
7333
7334struct incomplete_array
7335{
7336 int datasize;
7337 double data[];
7338};
7339
7340struct named_init {
7341 int number;
7342 const wchar_t *name;
7343 double average;
7344};
7345
7346typedef const char *ccp;
7347
7348static inline int
7349test_restrict (ccp restrict text)
7350{
7351 // See if C++-style comments work.
7352 // Iterate through items via the restricted pointer.
7353 // Also check for declarations in for loops.
7354 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7355 continue;
7356 return 0;
7357}
7358
7359// Check varargs and va_copy.
7360static void
7361test_varargs (const char *format, ...)
7362{
7363 va_list args;
7364 va_start (args, format);
7365 va_list args_copy;
7366 va_copy (args_copy, args);
7367
7368 const char *str;
7369 int number;
7370 float fnumber;
7371
7372 while (*format)
7373 {
7374 switch (*format++)
7375 {
7376 case 's': // string
7377 str = va_arg (args_copy, const char *);
7378 break;
7379 case 'd': // int
7380 number = va_arg (args_copy, int);
7381 break;
7382 case 'f': // float
7383 fnumber = va_arg (args_copy, double);
7384 break;
7385 default:
7386 break;
7387 }
7388 }
7389 va_end (args_copy);
7390 va_end (args);
7391}
7392
7393int
7394main ()
7395{
7396
7397 // Check bool.
7398 _Bool success = false;
7399
7400 // Check restrict.
7401 if (test_restrict ("String literal") == 0)
7402 success = true;
7403 char *restrict newvar = "Another string";
7404
7405 // Check varargs.
7406 test_varargs ("s, d' f .", "string", 65, 34.234);
7407 test_varargs_macros ();
7408
7409 // Check flexible array members.
7410 struct incomplete_array *ia =
7411 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7412 ia->datasize = 10;
7413 for (int i = 0; i < ia->datasize; ++i)
7414 ia->data[i] = i * 1.234;
7415
7416 // Check named initializers.
7417 struct named_init ni = {
7418 .number = 34,
7419 .name = L"Test wide string",
7420 .average = 543.34343,
7421 };
7422
7423 ni.number = 58;
7424
7425 int dynamic_array[ni.number];
7426 dynamic_array[ni.number - 1] = 543;
7427
7428 // work around unused variable warnings
7429 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7430 || dynamic_array[ni.number - 1] != 543);
7431
7432 ;
7433 return 0;
7434}
7435_ACEOF
7436for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7437do
7438 CC="$ac_save_CC $ac_arg"
7439 if ac_fn_c_try_compile "$LINENO"; then :
7440 ac_cv_prog_cc_c99=$ac_arg
7441fi
7442rm -f core conftest.err conftest.$ac_objext
7443 test "x$ac_cv_prog_cc_c99" != "xno" && break
7444done
7445rm -f conftest.$ac_ext
7446CC=$ac_save_CC
7447
7448fi
7449# AC_CACHE_VAL
7450case "x$ac_cv_prog_cc_c99" in
7451 x)
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7453$as_echo "none needed" >&6; } ;;
7454 xno)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7456$as_echo "unsupported" >&6; } ;;
7457 *)
7458 CC="$CC $ac_cv_prog_cc_c99"
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7460$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7461esac
7462if test "x$ac_cv_prog_cc_c99" != xno; then :
7463
7464fi
7465
7466
cristy3ed852e2009-09-05 21:47:34 +00007467if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007469$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7470else
cristy8b350f62009-11-15 23:12:43 +00007471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007472$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7473fi
7474set dummy $CC; ac_cc=`$as_echo "$2" |
7475 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007476if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007477 $as_echo_n "(cached) " >&6
7478else
cristy8b350f62009-11-15 23:12:43 +00007479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007480/* end confdefs.h. */
7481
7482int
7483main ()
7484{
7485
7486 ;
7487 return 0;
7488}
7489_ACEOF
7490# Make sure it works both with $CC and with simple cc.
7491# We do the test twice because some compilers refuse to overwrite an
7492# existing .o file with -o, though they will create one.
7493ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7494rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007495if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7498esac
cristy8b350f62009-11-15 23:12:43 +00007499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7500$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007501 (eval "$ac_try") 2>&5
7502 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; } &&
7505 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
cristy8b350f62009-11-15 23:12:43 +00007509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7510$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007511 (eval "$ac_try") 2>&5
7512 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007515then
7516 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7517 if test "x$CC" != xcc; then
7518 # Test first that cc exists at all.
7519 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007520 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523esac
cristy8b350f62009-11-15 23:12:43 +00007524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7525$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007526 (eval "$ac_try") 2>&5
7527 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007530 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7531 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007532 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535esac
cristy8b350f62009-11-15 23:12:43 +00007536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7537$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007538 (eval "$ac_try") 2>&5
7539 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; } &&
7542 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545esac
cristy8b350f62009-11-15 23:12:43 +00007546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7547$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007548 (eval "$ac_try") 2>&5
7549 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007552 then
7553 # cc works too.
7554 :
7555 else
7556 # cc exists but doesn't like -o.
7557 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7558 fi
7559 fi
7560 fi
7561else
7562 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7563fi
7564rm -f core conftest*
7565
7566fi
7567if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007569$as_echo "yes" >&6; }
7570else
cristy8b350f62009-11-15 23:12:43 +00007571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007572$as_echo "no" >&6; }
7573
cristy8b350f62009-11-15 23:12:43 +00007574$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007575
7576fi
7577
7578# FIXME: we rely on the cache variable name because
7579# there is no other way.
7580set dummy $CC
7581am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7582eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7583if test "$am_t" != yes; then
7584 # Losing compiler, so override with the script.
7585 # FIXME: It is wrong to rewrite CC.
7586 # But if we don't then we get into trouble of one sort or another.
7587 # A longer-term fix would be to have automake use am__CC in this case,
7588 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7589 CC="$am_aux_dir/compile $CC"
7590fi
7591
7592
cristy3ed852e2009-09-05 21:47:34 +00007593
cristy8b350f62009-11-15 23:12:43 +00007594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007595$as_echo_n "checking maximum warning verbosity option... " >&6; }
7596
7597
7598
7599
7600# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00007601if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007602 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7603else
7604 ac_compile_warnings_on=""
7605fi
7606
7607
7608 if test x"$ac_compile_warnings_on" = xno
7609 then
7610 ac_compile_warnings_msg=no
7611 else
7612 if test -n "$CXX"
7613 then
7614 if test "$GXX" = "yes"
7615 then
cristybcbeec82010-01-22 03:20:31 +00007616 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007617 fi
7618 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7619 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7620 fi
7621
7622 if test -n "$CC"
7623 then
7624 if test "$GCC" = "yes"
7625 then
cristybcbeec82010-01-22 03:20:31 +00007626 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007627 fi
7628 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7629 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7630 fi
7631 fi
cristy8b350f62009-11-15 23:12:43 +00007632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00007633$as_echo "$ac_compile_warnings_msg" >&6; }
7634 unset ac_compile_warnings_msg
7635 unset ac_compile_warnings_opt
7636
cristya0b81c32010-01-22 02:54:33 +00007637$ac_includes_default
7638
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7640$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7641set x ${MAKE-make}
7642ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7643if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7644 $as_echo_n "(cached) " >&6
7645else
7646 cat >conftest.make <<\_ACEOF
7647SHELL = /bin/sh
7648all:
7649 @echo '@@@%%%=$(MAKE)=@@@%%%'
7650_ACEOF
7651# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7652case `${MAKE-make} -f conftest.make 2>/dev/null` in
7653 *@@@%%%=?*=@@@%%%*)
7654 eval ac_cv_prog_make_${ac_make}_set=yes;;
7655 *)
7656 eval ac_cv_prog_make_${ac_make}_set=no;;
7657esac
7658rm -f conftest.make
7659fi
7660if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7662$as_echo "yes" >&6; }
7663 SET_MAKE=
7664else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666$as_echo "no" >&6; }
7667 SET_MAKE="MAKE=${MAKE-make}"
7668fi
7669
cristy8b350f62009-11-15 23:12:43 +00007670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007671$as_echo_n "checking whether ln -s works... " >&6; }
7672LN_S=$as_ln_s
7673if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007675$as_echo "yes" >&6; }
7676else
cristy8b350f62009-11-15 23:12:43 +00007677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007678$as_echo "no, using $LN_S" >&6; }
7679fi
7680
cristy8b350f62009-11-15 23:12:43 +00007681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007682$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7683
7684# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007685if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007686 withval=$with_dmalloc; if test "$withval" = yes; 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; }
7689
cristy8b350f62009-11-15 23:12:43 +00007690$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007691
7692 LIBS="$LIBS -ldmalloc"
7693 LDFLAGS="$LDFLAGS -g"
7694else
cristy8b350f62009-11-15 23:12:43 +00007695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007696$as_echo "no" >&6; }
7697fi
7698else
cristy8b350f62009-11-15 23:12:43 +00007699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007700$as_echo "no" >&6; }
7701fi
7702
7703
7704
7705
7706if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7707 if test -n "$ac_tool_prefix"; then
7708 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7709set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007711$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007712if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007713 $as_echo_n "(cached) " >&6
7714else
7715 case $PKG_CONFIG in
7716 [\\/]* | ?:[\\/]*)
7717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7718 ;;
7719 *)
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007729 break 2
7730 fi
7731done
cristy8b350f62009-11-15 23:12:43 +00007732 done
cristy3ed852e2009-09-05 21:47:34 +00007733IFS=$as_save_IFS
7734
7735 ;;
7736esac
7737fi
7738PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7739if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007741$as_echo "$PKG_CONFIG" >&6; }
7742else
cristy8b350f62009-11-15 23:12:43 +00007743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007744$as_echo "no" >&6; }
7745fi
7746
7747
7748fi
7749if test -z "$ac_cv_path_PKG_CONFIG"; then
7750 ac_pt_PKG_CONFIG=$PKG_CONFIG
7751 # Extract the first word of "pkg-config", so it can be a program name with args.
7752set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007754$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007755if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007756 $as_echo_n "(cached) " >&6
7757else
7758 case $ac_pt_PKG_CONFIG in
7759 [\\/]* | ?:[\\/]*)
7760 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7761 ;;
7762 *)
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007772 break 2
7773 fi
7774done
cristy8b350f62009-11-15 23:12:43 +00007775 done
cristy3ed852e2009-09-05 21:47:34 +00007776IFS=$as_save_IFS
7777
7778 ;;
7779esac
7780fi
7781ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7782if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007784$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7785else
cristy8b350f62009-11-15 23:12:43 +00007786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007787$as_echo "no" >&6; }
7788fi
7789
7790 if test "x$ac_pt_PKG_CONFIG" = x; then
7791 PKG_CONFIG=""
7792 else
7793 case $cross_compiling:$ac_tool_warned in
7794yes:)
cristy8b350f62009-11-15 23:12:43 +00007795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797ac_tool_warned=yes ;;
7798esac
7799 PKG_CONFIG=$ac_pt_PKG_CONFIG
7800 fi
7801else
7802 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7803fi
7804
7805fi
7806if test -n "$PKG_CONFIG"; then
7807 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007809$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7810 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007812$as_echo "yes" >&6; }
7813 else
cristy8b350f62009-11-15 23:12:43 +00007814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007815$as_echo "no" >&6; }
7816 PKG_CONFIG=""
7817 fi
7818
7819fi
7820
7821#
cristy3ed852e2009-09-05 21:47:34 +00007822# Enable run-time checking.
7823#
7824# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007825if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007826 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7827else
7828 enable_bounds_checking='no'
7829fi
7830
7831
7832if test "$enable_bounds_checking" = yes; then
7833
cristy8b350f62009-11-15 23:12:43 +00007834$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007835
7836fi
7837
7838#
7839# Tests for Windows
7840#
7841
7842
7843
7844GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007845native_win32_build='no'
7846cygwin_build='no'
7847case "${host_os}" in
7848 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007849 cygwin_build='yes'
7850 GDI32_LIBS='-lgdi32'
7851 ;;
7852 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007853 native_win32_build='yes'
7854 GDI32_LIBS='-lgdi32'
7855 ;;
7856esac
7857if test "${GDI32_LIBS}x" != 'x'; then
7858
cristy8b350f62009-11-15 23:12:43 +00007859$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007860
7861fi
7862
7863 if test "${GDI32_LIBS}x" != 'x' ; then
7864 WINGDI32_DELEGATE_TRUE=
7865 WINGDI32_DELEGATE_FALSE='#'
7866else
7867 WINGDI32_DELEGATE_TRUE='#'
7868 WINGDI32_DELEGATE_FALSE=
7869fi
7870
7871 if test "${native_win32_build}" = 'yes' ; then
7872 WIN32_NATIVE_BUILD_TRUE=
7873 WIN32_NATIVE_BUILD_FALSE='#'
7874else
7875 WIN32_NATIVE_BUILD_TRUE='#'
7876 WIN32_NATIVE_BUILD_FALSE=
7877fi
7878
7879 if test "${cygwin_build}" = 'yes' ; then
7880 CYGWIN_BUILD_TRUE=
7881 CYGWIN_BUILD_FALSE='#'
7882else
7883 CYGWIN_BUILD_TRUE='#'
7884 CYGWIN_BUILD_FALSE=
7885fi
7886
7887 if test "x${CC}" = 'xcl.exe' ; then
7888 USING_CL_TRUE=
7889 USING_CL_FALSE='#'
7890else
7891 USING_CL_TRUE='#'
7892 USING_CL_FALSE=
7893fi
7894
7895
7896WinPathScript="${srcdirfull}/winpath.sh"
7897
7898
7899#
7900# Compiler flags tweaks
7901#
7902if test "${GCC}" != "yes"; then
7903 case "${host}" in
7904 *-*-hpux* )
7905 # aCC: HP ANSI C++ B3910B A.03.34
7906 CFLAGS="${CFLAGS} -Wp,-H30000"
7907 if test -n "${CXXFLAGS}"; then
7908 CXXFLAGS='-AA'
7909 else
7910 CXXFLAGS="${CXXFLAGS} -AA"
7911 fi
7912 ;;
7913 *-dec-osf5.* )
7914 # Compaq alphaev68-dec-osf5.1 compiler
7915 if test -n "${CXXFLAGS}"; then
7916 CXXFLAGS='-std strict_ansi -noimplicit_include'
7917 else
7918 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7919 fi
7920 esac
7921fi
7922
7923# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007925$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007926if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007927 $as_echo_n "(cached) " >&6
7928else
7929
7930im_cv_ld_lazyload='none'
7931case "${host}" in
7932 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7933 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7934 im_cv_ld_lazyload='-Wl,-zlazyload'
7935 fi
7936 ;;
7937esac
7938
7939fi
cristy8b350f62009-11-15 23:12:43 +00007940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007941$as_echo "$im_cv_ld_lazyload" >&6; }
7942if test "${im_cv_ld_lazyload}" != 'none' ; then
7943 if test -z "${LDFLAGS}" ; then
7944 LDFLAGS="${im_cv_ld_lazyload}"
7945 else
7946 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7947 fi
7948fi
7949
7950case "$host" in
7951*darwin* | *-macos10*)
7952 if test -d /opt/local ; then
7953 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7954 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7955 elif test -d /sw ; then
7956 CPPFLAGS="$CPPFLAGS -I/sw/include"
7957 LDFLAGS="$LDFLAGS -L/sw/lib"
7958 fi
7959 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007960if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007961 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7962else
7963 build_osxuniversal=no
7964fi
7965
7966
7967 if test "${build_osxuniversal}" != no ; then
7968 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007969 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007970Please re-run configure with these options:
7971 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007972 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007973 fi
7974 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7975 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7976 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7977 fi
7978 ;;
7979esac
7980
7981# Enable support for threads
7982
7983# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007984if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007985 withval=$with_threads; with_threads=$withval
7986else
7987 with_threads='yes'
7988fi
7989
7990
7991have_threads=no
7992if test "$with_threads" != 'no'; then
7993
7994
7995
7996ac_ext=c
7997ac_cpp='$CPP $CPPFLAGS'
7998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8000ac_compiler_gnu=$ac_cv_c_compiler_gnu
8001
8002acx_pthread_ok=no
8003
8004# We used to check for pthread.h first, but this fails if pthread.h
8005# requires special compiler flags (e.g. on True64 or Sequent).
8006# It gets checked for in the link test anyway.
8007
8008# First of all, check if the user has set any of the PTHREAD_LIBS,
8009# etcetera environment variables, and if threads linking works using
8010# them:
8011if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8012 save_CFLAGS="$CFLAGS"
8013 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8014 save_LIBS="$LIBS"
8015 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008016 { $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 +00008017$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008019/* end confdefs.h. */
8020
8021/* Override any GCC internal prototype to avoid an error.
8022 Use char because int might match the return type of a GCC
8023 builtin and then its argument prototype would still apply. */
8024#ifdef __cplusplus
8025extern "C"
8026#endif
8027char pthread_join ();
8028int
8029main ()
8030{
8031return pthread_join ();
8032 ;
8033 return 0;
8034}
8035_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008037 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008038fi
cristy8b350f62009-11-15 23:12:43 +00008039rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008042$as_echo "$acx_pthread_ok" >&6; }
8043 if test x"$acx_pthread_ok" = xno; then
8044 PTHREAD_LIBS=""
8045 PTHREAD_CFLAGS=""
8046 fi
8047 LIBS="$save_LIBS"
8048 CFLAGS="$save_CFLAGS"
8049fi
8050
8051# We must check for the threads library under a number of different
8052# names; the ordering is very important because some systems
8053# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8054# libraries is broken (non-POSIX).
8055
8056# Create a list of thread flags to try. Items starting with a "-" are
8057# C compiler flags, and other items are library names, except for "none"
8058# which indicates that we try without any flags at all, and "pthread-config"
8059# which is a program returning the flags for the Pth emulation library.
8060
8061acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8062
8063# The ordering *is* (sometimes) important. Some notes on the
8064# individual items follow:
8065
8066# pthreads: AIX (must check this before -lpthread)
8067# none: in case threads are in libc; should be tried before -Kthread and
8068# other compiler flags to prevent continual compiler warnings
8069# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8070# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8071# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8072# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8073# -pthreads: Solaris/gcc
8074# -mthreads: Mingw32/gcc, Lynx/gcc
8075# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8076# doesn't hurt to check since this sometimes defines pthreads too;
8077# also defines -D_REENTRANT)
8078# ... -mt is also the pthreads flag for HP/aCC
8079# pthread: Linux, etcetera
8080# --thread-safe: KAI C++
8081# pthread-config: use pthread-config program (for GNU Pth library)
8082
8083case "${host_cpu}-${host_os}" in
8084 *solaris*)
8085
8086 # On Solaris (at least, for some versions), libc contains stubbed
8087 # (non-functional) versions of the pthreads routines, so link-based
8088 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8089 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8090 # a function called by this macro, so we could check for that, but
8091 # who knows whether they'll stub that too in a future libc.) So,
8092 # we'll just look for -pthreads and -lpthread first:
8093
8094 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
8095 ;;
cristy3ed852e2009-09-05 21:47:34 +00008096esac
8097
8098if test x"$acx_pthread_ok" = xno; then
8099for flag in $acx_pthread_flags; do
8100
8101 case $flag in
8102 none)
cristy8b350f62009-11-15 23:12:43 +00008103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008104$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8105 ;;
8106
8107 -*)
cristy8b350f62009-11-15 23:12:43 +00008108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008109$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8110 PTHREAD_CFLAGS="$flag"
8111 ;;
8112
8113 pthread-config)
8114 # Extract the first word of "pthread-config", so it can be a program name with args.
8115set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008117$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008118if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008119 $as_echo_n "(cached) " >&6
8120else
8121 if test -n "$acx_pthread_config"; then
8122 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008133 break 2
8134 fi
8135done
cristy8b350f62009-11-15 23:12:43 +00008136 done
cristy3ed852e2009-09-05 21:47:34 +00008137IFS=$as_save_IFS
8138
8139 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
8140fi
8141fi
8142acx_pthread_config=$ac_cv_prog_acx_pthread_config
8143if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00008144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00008145$as_echo "$acx_pthread_config" >&6; }
8146else
cristy8b350f62009-11-15 23:12:43 +00008147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008148$as_echo "no" >&6; }
8149fi
8150
8151
8152 if test x"$acx_pthread_config" = xno; then continue; fi
8153 PTHREAD_CFLAGS="`pthread-config --cflags`"
8154 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8155 ;;
8156
8157 *)
cristy8b350f62009-11-15 23:12:43 +00008158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008159$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8160 PTHREAD_LIBS="-l$flag"
8161 ;;
8162 esac
8163
8164 save_LIBS="$LIBS"
8165 save_CFLAGS="$CFLAGS"
8166 LIBS="$PTHREAD_LIBS $LIBS"
8167 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8168
8169 # Check for various functions. We must include pthread.h,
8170 # since some functions may be macros. (On the Sequent, we
8171 # need a special flag -Kthread to make this header compile.)
8172 # We check for pthread_join because it is in -lpthread on IRIX
8173 # while pthread_create is in libc. We check for pthread_attr_init
8174 # due to DEC craziness with -lpthreads. We check for
8175 # pthread_cleanup_push because it is one of the few pthread
8176 # functions on Solaris that doesn't have a non-functional libc stub.
8177 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008179/* end confdefs.h. */
8180#include <pthread.h>
8181int
8182main ()
8183{
8184pthread_t th; pthread_join(th, 0);
8185 pthread_attr_init(0); pthread_cleanup_push(0, 0);
8186 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8187 ;
8188 return 0;
8189}
8190_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008192 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008193fi
cristy8b350f62009-11-15 23:12:43 +00008194rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008196
8197 LIBS="$save_LIBS"
8198 CFLAGS="$save_CFLAGS"
8199
cristy8b350f62009-11-15 23:12:43 +00008200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008201$as_echo "$acx_pthread_ok" >&6; }
8202 if test "x$acx_pthread_ok" = xyes; then
8203 break;
8204 fi
8205
8206 PTHREAD_LIBS=""
8207 PTHREAD_CFLAGS=""
8208done
8209fi
8210
8211# Various other checks:
8212if test "x$acx_pthread_ok" = xyes; then
8213 save_LIBS="$LIBS"
8214 LIBS="$PTHREAD_LIBS $LIBS"
8215 save_CFLAGS="$CFLAGS"
8216 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8217
8218 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008220$as_echo_n "checking for joinable pthread attribute... " >&6; }
8221 attr_name=unknown
8222 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008224/* end confdefs.h. */
8225#include <pthread.h>
8226int
8227main ()
8228{
8229int attr=$attr; return attr;
8230 ;
8231 return 0;
8232}
8233_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008235 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008236fi
cristy8b350f62009-11-15 23:12:43 +00008237rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008239 done
cristy8b350f62009-11-15 23:12:43 +00008240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008241$as_echo "$attr_name" >&6; }
8242 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8243
8244cat >>confdefs.h <<_ACEOF
8245#define PTHREAD_CREATE_JOINABLE $attr_name
8246_ACEOF
8247
8248 fi
8249
cristy8b350f62009-11-15 23:12:43 +00008250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008251$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8252 flag=no
8253 case "${host_cpu}-${host_os}" in
8254 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8255 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8256 esac
cristy8b350f62009-11-15 23:12:43 +00008257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008258$as_echo "${flag}" >&6; }
8259 if test "x$flag" != xno; then
8260 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8261 fi
8262
8263 LIBS="$save_LIBS"
8264 CFLAGS="$save_CFLAGS"
8265
8266 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008267 if test x"$GCC" != xyes; then
8268 for ac_prog in xlc_r cc_r
8269do
8270 # Extract the first word of "$ac_prog", so it can be a program name with args.
8271set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008274if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008275 $as_echo_n "(cached) " >&6
8276else
8277 if test -n "$PTHREAD_CC"; then
8278 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8279else
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008286 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 +00008287 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008289 break 2
8290 fi
8291done
cristy8b350f62009-11-15 23:12:43 +00008292 done
cristy3ed852e2009-09-05 21:47:34 +00008293IFS=$as_save_IFS
8294
cristy3ed852e2009-09-05 21:47:34 +00008295fi
8296fi
8297PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8298if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008300$as_echo "$PTHREAD_CC" >&6; }
8301else
cristy8b350f62009-11-15 23:12:43 +00008302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008303$as_echo "no" >&6; }
8304fi
8305
cristy736173a2009-09-20 21:18:22 +00008306
8307 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008308done
cristy736173a2009-09-20 21:18:22 +00008309test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008310
cristy736173a2009-09-20 21:18:22 +00008311 else
8312 PTHREAD_CC=$CC
8313 fi
cristy3ed852e2009-09-05 21:47:34 +00008314else
cristy736173a2009-09-20 21:18:22 +00008315 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008316fi
8317
cristy3ed852e2009-09-05 21:47:34 +00008318
8319
8320
8321
8322# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8323if test x"$acx_pthread_ok" = xyes; then
8324
cristy8b350f62009-11-15 23:12:43 +00008325$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008326
8327 :
8328else
8329 acx_pthread_ok=no
8330
8331fi
8332ac_ext=c
8333ac_cpp='$CPP $CPPFLAGS'
8334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8336ac_compiler_gnu=$ac_cv_c_compiler_gnu
8337
8338
8339 if test "$acx_pthread_ok" = yes; then
8340 have_threads=yes
8341 DEF_THREAD="$PTHREAD_CFLAGS"
8342 CFLAGS="$CFLAGS $DEF_THREAD"
8343 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8344 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008345 { $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 +00008346$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8347 CC="$PTHREAD_CC"
8348 fi
8349 fi
8350fi
8351
8352# Enable support for OpenMP
8353if test "$have_threads" != 'yes'; then
8354 ac_cv_prog_c_openmp=unsupported
8355fi
8356
8357 OPENMP_CFLAGS=
8358 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008359if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008360 enableval=$enable_openmp;
8361fi
8362
8363 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008365$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008366if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008367 $as_echo_n "(cached) " >&6
8368else
cristy8b350f62009-11-15 23:12:43 +00008369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008371
8372#ifndef _OPENMP
8373 choke me
8374#endif
8375#include <omp.h>
8376int main () { return omp_get_num_threads (); }
8377
8378_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008379if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008380 ac_cv_prog_c_openmp='none needed'
8381else
cristy8b350f62009-11-15 23:12:43 +00008382 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008383 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8384 ac_save_CFLAGS=$CFLAGS
8385 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008388
8389#ifndef _OPENMP
8390 choke me
8391#endif
8392#include <omp.h>
8393int main () { return omp_get_num_threads (); }
8394
8395_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008397 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008398fi
cristy8b350f62009-11-15 23:12:43 +00008399rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008401 CFLAGS=$ac_save_CFLAGS
8402 if test "$ac_cv_prog_c_openmp" != unsupported; then
8403 break
8404 fi
8405 done
8406fi
cristy8b350f62009-11-15 23:12:43 +00008407rm -f core conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008409fi
cristy8b350f62009-11-15 23:12:43 +00008410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008411$as_echo "$ac_cv_prog_c_openmp" >&6; }
8412 case $ac_cv_prog_c_openmp in #(
8413 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008414 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008415 *)
cristy8b350f62009-11-15 23:12:43 +00008416 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008417 esac
8418 fi
8419
8420
8421CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8422MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8423
8424
cristy736173a2009-09-20 21:18:22 +00008425# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008426
cristy43596fe2010-01-21 16:46:08 +00008427# Check whether --enable-opencl was given.
8428if test "${enable_opencl+set}" = set; then :
8429 enableval=$enable_opencl; disable_opencl=$enableval
8430else
8431 disable_opencl='yes'
8432fi
8433
8434
8435if test "$disable_opencl" = 'yes'; then
8436 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008437ac_cpp='$CPP $CPPFLAGS'
8438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8440ac_compiler_gnu=$ac_cv_c_compiler_gnu
8441
cristy43596fe2010-01-21 16:46:08 +00008442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008443$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008444if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008445 $as_echo_n "(cached) " >&6
8446else
cristy8b350f62009-11-15 23:12:43 +00008447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008448/* end confdefs.h. */
8449
8450int
8451main ()
8452{
8453#ifndef _MSC_VER
8454 choke me
8455#endif
8456
8457 ;
8458 return 0;
8459}
8460_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008461if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008462 ax_compiler_ms=yes
8463else
cristy8b350f62009-11-15 23:12:43 +00008464 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008465fi
cristy736173a2009-09-20 21:18:22 +00008466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467ax_cv_c_compiler_ms=$ax_compiler_ms
8468
8469fi
cristy8b350f62009-11-15 23:12:43 +00008470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008471$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008472 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008473 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8474fi
8475
cristy43596fe2010-01-21 16:46:08 +00008476 ax_save_CPPFLAGS=$CPPFLAGS
8477 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8478 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008479do :
8480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8481ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8482eval as_val=\$$as_ac_Header
8483 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008484 cat >>confdefs.h <<_ACEOF
8485#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8486_ACEOF
8487
8488fi
8489
8490done
8491
cristy43596fe2010-01-21 16:46:08 +00008492 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008493
cristy43596fe2010-01-21 16:46:08 +00008494 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008495do :
8496 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8497if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008498 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008499#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008500_ACEOF
8501
8502fi
8503
8504done
8505
8506
8507
8508
cristy43596fe2010-01-21 16:46:08 +00008509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008510$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008511if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008512 $as_echo_n "(cached) " >&6
8513else
8514 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008515 case $host_cpu in
8516 x86_64) ax_check_cl_libdir=lib64 ;;
8517 *) ax_check_cl_libdir=lib ;;
8518 esac
8519 ax_save_CPPFLAGS=$CPPFLAGS
8520 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8521 ax_save_LIBS=$LIBS
8522 LIBS=""
8523 ax_check_libs="-lOpenCL -lCL -lclparser"
8524 for ax_lib in $ax_check_libs; do
8525 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008526 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8527else
8528 ax_try_lib=$ax_lib
8529fi
cristy43596fe2010-01-21 16:46:08 +00008530 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008532/* end confdefs.h. */
8533
cristy43596fe2010-01-21 16:46:08 +00008534 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8535 # include <windows.h>
8536 # endif
8537 # ifdef HAVE_CL_CL_H
8538 # include <CL/cl.h>
8539 # elif defined(HAVE_OPENCL_CL_H)
8540 # include <OpenCL/cl.h>
8541 # else
8542 # error no CL.h
8543 # endif
cristy736173a2009-09-20 21:18:22 +00008544int
8545main ()
8546{
cristyc7083c12009-10-14 03:16:55 +00008547clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008548 ;
8549 return 0;
8550}
8551_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008552if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008553 ax_cv_check_cl_libcl=$ax_try_lib; break
8554else
cristy8b350f62009-11-15 23:12:43 +00008555 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 +00008556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008557/* end confdefs.h. */
8558
cristy43596fe2010-01-21 16:46:08 +00008559 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8560 # include <windows.h>
8561 # endif
8562 # ifdef HAVE_CL_CL_H
8563 # include <CL/cl.h>
8564 # elif defined(HAVE_OPENCL_CL_H)
8565 # include <OpenCL/cl.h>
8566 # else
8567 # error no CL.h
8568 # endif
cristy736173a2009-09-20 21:18:22 +00008569int
8570main ()
8571{
cristyc7083c12009-10-14 03:16:55 +00008572clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008573 ;
8574 return 0;
8575}
8576_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008577if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008578 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8579else
cristy4dc44432009-12-30 23:30:06 +00008580 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 +00008581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008582/* end confdefs.h. */
8583
cristy43596fe2010-01-21 16:46:08 +00008584 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8585 # include <windows.h>
8586 # endif
8587 # ifdef HAVE_CL_CL_H
8588 # include <CL/cl.h>
8589 # elif defined(HAVE_OPENCL_CL_H)
8590 # include <OpenCL/cl.h>
8591 # else
8592 # error no CL.h
8593 # endif
cristy736173a2009-09-20 21:18:22 +00008594int
8595main ()
8596{
cristyc7083c12009-10-14 03:16:55 +00008597clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008598 ;
8599 return 0;
8600}
8601_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008602if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008603 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00008604fi
cristy8b350f62009-11-15 23:12:43 +00008605rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008607fi
cristy8b350f62009-11-15 23:12:43 +00008608rm -f core conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008610fi
cristy8b350f62009-11-15 23:12:43 +00008611rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008613 done
cristy736173a2009-09-20 21:18:22 +00008614
cristy43596fe2010-01-21 16:46:08 +00008615 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008616 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00008617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008618/* end confdefs.h. */
8619
cristy43596fe2010-01-21 16:46:08 +00008620 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8621 # include <windows.h>
8622 # endif
8623 # ifdef HAVE_CL_CL_H
8624 # include <CL/cl.h>
8625 # elif defined(HAVE_OPENCL_CL_H)
8626 # include <OpenCL/cl.h>
8627 # else
8628 # error no CL.h
8629 # endif
cristy736173a2009-09-20 21:18:22 +00008630int
8631main ()
8632{
cristyc7083c12009-10-14 03:16:55 +00008633clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008634 ;
8635 return 0;
8636}
8637_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008638if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008639 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00008640fi
cristy8b350f62009-11-15 23:12:43 +00008641rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008643fi
8644
cristy43596fe2010-01-21 16:46:08 +00008645 LIBS=$ax_save_LIBS
8646 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008647fi
cristy8b350f62009-11-15 23:12:43 +00008648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00008649$as_echo "$ax_cv_check_cl_libcl" >&6; }
8650
cristy43596fe2010-01-21 16:46:08 +00008651 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008652 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8653else
cristy99cc3002010-01-21 14:50:11 +00008654 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8655$as_echo "#define _OPENCL 1" >>confdefs.h
8656
cristy736173a2009-09-20 21:18:22 +00008657fi
cristy43596fe2010-01-21 16:46:08 +00008658 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008659ac_cpp='$CPP $CPPFLAGS'
8660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8662ac_compiler_gnu=$ac_cv_c_compiler_gnu
8663
cristy43596fe2010-01-21 16:46:08 +00008664fi
cristy736173a2009-09-20 21:18:22 +00008665
8666
8667
8668
cristyc7083c12009-10-14 03:16:55 +00008669CFLAGS="$CL_CFLAGS $CFLAGS"
8670LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008671
cristy2e8b51d2009-10-17 18:26:15 +00008672
cristy3ed852e2009-09-05 21:47:34 +00008673########
8674#
8675# Check for large file support
8676#
8677########
8678# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00008679if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008680 enableval=$enable_largefile;
8681fi
8682
8683if test "$enable_largefile" != no; then
8684
cristy8b350f62009-11-15 23:12:43 +00008685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008686$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008687if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008688 $as_echo_n "(cached) " >&6
8689else
8690 ac_cv_sys_largefile_CC=no
8691 if test "$GCC" != yes; then
8692 ac_save_CC=$CC
8693 while :; do
8694 # IRIX 6.2 and later do not support large files by default,
8695 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00008696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008697/* end confdefs.h. */
8698#include <sys/types.h>
8699 /* Check that off_t can represent 2**63 - 1 correctly.
8700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8701 since some C++ compilers masquerading as C compilers
8702 incorrectly reject 9223372036854775807. */
8703#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8705 && LARGE_OFF_T % 2147483647 == 1)
8706 ? 1 : -1];
8707int
8708main ()
8709{
8710
8711 ;
8712 return 0;
8713}
8714_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008715 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008716 break
cristy3ed852e2009-09-05 21:47:34 +00008717fi
cristy3ed852e2009-09-05 21:47:34 +00008718rm -f core conftest.err conftest.$ac_objext
8719 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00008720 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008721 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00008722fi
cristy3ed852e2009-09-05 21:47:34 +00008723rm -f core conftest.err conftest.$ac_objext
8724 break
8725 done
8726 CC=$ac_save_CC
8727 rm -f conftest.$ac_ext
8728 fi
8729fi
cristy8b350f62009-11-15 23:12:43 +00008730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008731$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8732 if test "$ac_cv_sys_largefile_CC" != no; then
8733 CC=$CC$ac_cv_sys_largefile_CC
8734 fi
8735
cristy8b350f62009-11-15 23:12:43 +00008736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008737$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008738if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008739 $as_echo_n "(cached) " >&6
8740else
8741 while :; do
cristy8b350f62009-11-15 23:12:43 +00008742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008743/* end confdefs.h. */
8744#include <sys/types.h>
8745 /* Check that off_t can represent 2**63 - 1 correctly.
8746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8747 since some C++ compilers masquerading as C compilers
8748 incorrectly reject 9223372036854775807. */
8749#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8751 && LARGE_OFF_T % 2147483647 == 1)
8752 ? 1 : -1];
8753int
8754main ()
8755{
8756
8757 ;
8758 return 0;
8759}
8760_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008761if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008762 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00008763fi
cristy3ed852e2009-09-05 21:47:34 +00008764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008766/* end confdefs.h. */
8767#define _FILE_OFFSET_BITS 64
8768#include <sys/types.h>
8769 /* Check that off_t can represent 2**63 - 1 correctly.
8770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8771 since some C++ compilers masquerading as C compilers
8772 incorrectly reject 9223372036854775807. */
8773#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8775 && LARGE_OFF_T % 2147483647 == 1)
8776 ? 1 : -1];
8777int
8778main ()
8779{
8780
8781 ;
8782 return 0;
8783}
8784_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008785if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008786 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00008787fi
cristy3ed852e2009-09-05 21:47:34 +00008788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 ac_cv_sys_file_offset_bits=unknown
8790 break
8791done
8792fi
cristy8b350f62009-11-15 23:12:43 +00008793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00008794$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8795case $ac_cv_sys_file_offset_bits in #(
8796 no | unknown) ;;
8797 *)
8798cat >>confdefs.h <<_ACEOF
8799#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8800_ACEOF
8801;;
8802esac
8803rm -rf conftest*
8804 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00008805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008806$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008807if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008808 $as_echo_n "(cached) " >&6
8809else
8810 while :; do
cristy8b350f62009-11-15 23:12:43 +00008811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008812/* end confdefs.h. */
8813#include <sys/types.h>
8814 /* Check that off_t can represent 2**63 - 1 correctly.
8815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8816 since some C++ compilers masquerading as C compilers
8817 incorrectly reject 9223372036854775807. */
8818#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8820 && LARGE_OFF_T % 2147483647 == 1)
8821 ? 1 : -1];
8822int
8823main ()
8824{
8825
8826 ;
8827 return 0;
8828}
8829_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008830if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008831 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00008832fi
cristy3ed852e2009-09-05 21:47:34 +00008833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008835/* end confdefs.h. */
8836#define _LARGE_FILES 1
8837#include <sys/types.h>
8838 /* Check that off_t can represent 2**63 - 1 correctly.
8839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8840 since some C++ compilers masquerading as C compilers
8841 incorrectly reject 9223372036854775807. */
8842#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8844 && LARGE_OFF_T % 2147483647 == 1)
8845 ? 1 : -1];
8846int
8847main ()
8848{
8849
8850 ;
8851 return 0;
8852}
8853_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008854if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008855 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00008856fi
cristy3ed852e2009-09-05 21:47:34 +00008857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 ac_cv_sys_large_files=unknown
8859 break
8860done
8861fi
cristy8b350f62009-11-15 23:12:43 +00008862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008863$as_echo "$ac_cv_sys_large_files" >&6; }
8864case $ac_cv_sys_large_files in #(
8865 no | unknown) ;;
8866 *)
8867cat >>confdefs.h <<_ACEOF
8868#define _LARGE_FILES $ac_cv_sys_large_files
8869_ACEOF
8870;;
8871esac
8872rm -rf conftest*
8873 fi
8874fi
8875
cristy8b350f62009-11-15 23:12:43 +00008876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008877$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008878if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008879 $as_echo_n "(cached) " >&6
8880else
8881 while :; do
cristy8b350f62009-11-15 23:12:43 +00008882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008883/* end confdefs.h. */
8884#include <sys/types.h> /* for off_t */
8885 #include <stdio.h>
8886int
8887main ()
8888{
8889int (*fp) (FILE *, off_t, int) = fseeko;
8890 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8891 ;
8892 return 0;
8893}
8894_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008896 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00008897fi
cristy8b350f62009-11-15 23:12:43 +00008898rm -f core conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008901/* end confdefs.h. */
8902#define _LARGEFILE_SOURCE 1
8903#include <sys/types.h> /* for off_t */
8904 #include <stdio.h>
8905int
8906main ()
8907{
8908int (*fp) (FILE *, off_t, int) = fseeko;
8909 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8910 ;
8911 return 0;
8912}
8913_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008915 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00008916fi
cristy8b350f62009-11-15 23:12:43 +00008917rm -f core conftest.err conftest.$ac_objext \
8918 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008919 ac_cv_sys_largefile_source=unknown
8920 break
8921done
8922fi
cristy8b350f62009-11-15 23:12:43 +00008923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008924$as_echo "$ac_cv_sys_largefile_source" >&6; }
8925case $ac_cv_sys_largefile_source in #(
8926 no | unknown) ;;
8927 *)
8928cat >>confdefs.h <<_ACEOF
8929#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8930_ACEOF
8931;;
8932esac
8933rm -rf conftest*
8934
8935# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8936# in glibc 2.1.3, but that breaks too many other things.
8937# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8938if test $ac_cv_sys_largefile_source != unknown; then
8939
cristy8b350f62009-11-15 23:12:43 +00008940$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008941
8942fi
8943
8944LFS_CPPFLAGS=''
8945if test "$enable_largefile" != no; then
8946 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8947 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8948 else
cristy8b350f62009-11-15 23:12:43 +00008949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008950$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008951 if test "$cross_compiling" = yes; then :
8952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008954as_fn_error "cannot run test program while cross compiling
8955See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008956else
cristy8b350f62009-11-15 23:12:43 +00008957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008959#include <unistd.h>
8960 main () {
8961 exit(!(sizeof(off_t) == 8));
8962 }
8963_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008964if ac_fn_c_try_run "$LINENO"; then :
8965 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008966
cristy8b350f62009-11-15 23:12:43 +00008967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008968$as_echo "yes" >&6; }
8969else
cristy8b350f62009-11-15 23:12:43 +00008970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008971$as_echo "no" >&6; }
8972fi
cristy8b350f62009-11-15 23:12:43 +00008973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8974 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008975fi
8976
cristy3ed852e2009-09-05 21:47:34 +00008977 fi
8978 if test "$ac_cv_sys_large_files" != 'no'; then
8979 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8980 fi
8981 if test "$ac_cv_sys_largefile_source" != 'no'; then
8982 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8983 fi
8984fi
8985
8986
8987#
8988# Configure libtool & libltdl
8989#
8990# Configure libtool
8991enable_dlopen=yes
8992
8993
8994
8995case `pwd` in
8996 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008998$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8999esac
9000
9001
9002
cristy18304f92009-11-22 15:48:26 +00009003macro_version='2.2.6b'
9004macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018ltmain="$ac_aux_dir/ltmain.sh"
9019
cristy8b350f62009-11-15 23:12:43 +00009020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009021$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009022if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009023 $as_echo_n "(cached) " >&6
9024else
9025 if test -n "$NM"; then
9026 # Let the user override the test.
9027 lt_cv_path_NM="$NM"
9028else
9029 lt_nm_to_check="${ac_tool_prefix}nm"
9030 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9031 lt_nm_to_check="$lt_nm_to_check nm"
9032 fi
9033 for lt_tmp_nm in $lt_nm_to_check; do
9034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9035 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9036 IFS="$lt_save_ifs"
9037 test -z "$ac_dir" && ac_dir=.
9038 tmp_nm="$ac_dir/$lt_tmp_nm"
9039 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9040 # Check to see if the nm accepts a BSD-compat flag.
9041 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9042 # nm: unknown option "B" ignored
9043 # Tru64's nm complains that /dev/null is an invalid object file
9044 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9045 */dev/null* | *'Invalid file or object type'*)
9046 lt_cv_path_NM="$tmp_nm -B"
9047 break
9048 ;;
9049 *)
9050 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9051 */dev/null*)
9052 lt_cv_path_NM="$tmp_nm -p"
9053 break
9054 ;;
9055 *)
9056 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9057 continue # so that we can try to find one that supports BSD flags
9058 ;;
9059 esac
9060 ;;
9061 esac
9062 fi
9063 done
9064 IFS="$lt_save_ifs"
9065 done
9066 : ${lt_cv_path_NM=no}
9067fi
9068fi
cristy8b350f62009-11-15 23:12:43 +00009069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009070$as_echo "$lt_cv_path_NM" >&6; }
9071if test "$lt_cv_path_NM" != "no"; then
9072 NM="$lt_cv_path_NM"
9073else
9074 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009075 if test -n "$ac_tool_prefix"; then
9076 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009077 do
9078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9079set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009081$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009082if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009083 $as_echo_n "(cached) " >&6
9084else
9085 if test -n "$DUMPBIN"; then
9086 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9087else
9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089for as_dir in $PATH
9090do
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9095 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009097 break 2
9098 fi
9099done
cristy8b350f62009-11-15 23:12:43 +00009100 done
cristy3ed852e2009-09-05 21:47:34 +00009101IFS=$as_save_IFS
9102
9103fi
9104fi
9105DUMPBIN=$ac_cv_prog_DUMPBIN
9106if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009108$as_echo "$DUMPBIN" >&6; }
9109else
cristy8b350f62009-11-15 23:12:43 +00009110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009111$as_echo "no" >&6; }
9112fi
9113
9114
9115 test -n "$DUMPBIN" && break
9116 done
9117fi
9118if test -z "$DUMPBIN"; then
9119 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009120 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009121do
9122 # Extract the first word of "$ac_prog", so it can be a program name with args.
9123set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009125$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009126if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009127 $as_echo_n "(cached) " >&6
9128else
9129 if test -n "$ac_ct_DUMPBIN"; then
9130 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9131else
9132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133for as_dir in $PATH
9134do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009137 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9139 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009141 break 2
9142 fi
9143done
cristy8b350f62009-11-15 23:12:43 +00009144 done
cristy3ed852e2009-09-05 21:47:34 +00009145IFS=$as_save_IFS
9146
9147fi
9148fi
9149ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9150if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009152$as_echo "$ac_ct_DUMPBIN" >&6; }
9153else
cristy8b350f62009-11-15 23:12:43 +00009154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009155$as_echo "no" >&6; }
9156fi
9157
9158
9159 test -n "$ac_ct_DUMPBIN" && break
9160done
9161
9162 if test "x$ac_ct_DUMPBIN" = x; then
9163 DUMPBIN=":"
9164 else
9165 case $cross_compiling:$ac_tool_warned in
9166yes:)
cristy8b350f62009-11-15 23:12:43 +00009167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9169ac_tool_warned=yes ;;
9170esac
9171 DUMPBIN=$ac_ct_DUMPBIN
9172 fi
9173fi
9174
9175
9176 if test "$DUMPBIN" != ":"; then
9177 NM="$DUMPBIN"
9178 fi
9179fi
9180test -z "$NM" && NM=nm
9181
9182
9183
9184
9185
9186
cristy8b350f62009-11-15 23:12:43 +00009187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009188$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009189if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009190 $as_echo_n "(cached) " >&6
9191else
9192 lt_cv_nm_interface="BSD nm"
9193 echo "int some_variable = 0;" > conftest.$ac_ext
cristy735e8942010-04-02 20:32:57 +00009194 (eval echo "\"\$as_me:9194: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009195 (eval "$ac_compile" 2>conftest.err)
9196 cat conftest.err >&5
cristy735e8942010-04-02 20:32:57 +00009197 (eval echo "\"\$as_me:9197: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009198 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9199 cat conftest.err >&5
cristy735e8942010-04-02 20:32:57 +00009200 (eval echo "\"\$as_me:9200: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009201 cat conftest.out >&5
9202 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9203 lt_cv_nm_interface="MS dumpbin"
9204 fi
9205 rm -f conftest*
9206fi
cristy8b350f62009-11-15 23:12:43 +00009207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009208$as_echo "$lt_cv_nm_interface" >&6; }
9209
9210# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009212$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009213if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009214 $as_echo_n "(cached) " >&6
9215else
9216 i=0
9217 teststring="ABCD"
9218
9219 case $build_os in
9220 msdosdjgpp*)
9221 # On DJGPP, this test can blow up pretty badly due to problems in libc
9222 # (any single argument exceeding 2000 bytes causes a buffer overrun
9223 # during glob expansion). Even if it were fixed, the result of this
9224 # check would be larger than it should be.
9225 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9226 ;;
9227
9228 gnu*)
9229 # Under GNU Hurd, this test is not required because there is
9230 # no limit to the length of command line arguments.
9231 # Libtool will interpret -1 as no limit whatsoever
9232 lt_cv_sys_max_cmd_len=-1;
9233 ;;
9234
9235 cygwin* | mingw* | cegcc*)
9236 # On Win9x/ME, this test blows up -- it succeeds, but takes
9237 # about 5 minutes as the teststring grows exponentially.
9238 # Worse, since 9x/ME are not pre-emptively multitasking,
9239 # you end up with a "frozen" computer, even though with patience
9240 # the test eventually succeeds (with a max line length of 256k).
9241 # Instead, let's just punt: use the minimum linelength reported by
9242 # all of the supported platforms: 8192 (on NT/2K/XP).
9243 lt_cv_sys_max_cmd_len=8192;
9244 ;;
9245
9246 amigaos*)
9247 # On AmigaOS with pdksh, this test takes hours, literally.
9248 # So we just punt and use a minimum line length of 8192.
9249 lt_cv_sys_max_cmd_len=8192;
9250 ;;
9251
9252 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9253 # This has been around since 386BSD, at least. Likely further.
9254 if test -x /sbin/sysctl; then
9255 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9256 elif test -x /usr/sbin/sysctl; then
9257 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9258 else
9259 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9260 fi
9261 # And add a safety zone
9262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9264 ;;
9265
9266 interix*)
9267 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9268 lt_cv_sys_max_cmd_len=196608
9269 ;;
9270
9271 osf*)
9272 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9273 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9274 # nice to cause kernel panics so lets avoid the loop below.
9275 # First set a reasonable default.
9276 lt_cv_sys_max_cmd_len=16384
9277 #
9278 if test -x /sbin/sysconfig; then
9279 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9280 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9281 esac
9282 fi
9283 ;;
9284 sco3.2v5*)
9285 lt_cv_sys_max_cmd_len=102400
9286 ;;
9287 sysv5* | sco5v6* | sysv4.2uw2*)
9288 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9289 if test -n "$kargmax"; then
9290 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9291 else
9292 lt_cv_sys_max_cmd_len=32768
9293 fi
9294 ;;
9295 *)
9296 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9297 if test -n "$lt_cv_sys_max_cmd_len"; then
9298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9300 else
9301 # Make teststring a little bigger before we do anything with it.
9302 # a 1K string should be a reasonable start.
9303 for i in 1 2 3 4 5 6 7 8 ; do
9304 teststring=$teststring$teststring
9305 done
9306 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9307 # If test is not a shell built-in, we'll probably end up computing a
9308 # maximum length that is only half of the actual maximum length, but
9309 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009310 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9311 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009312 test $i != 17 # 1/2 MB should be enough
9313 do
9314 i=`expr $i + 1`
9315 teststring=$teststring$teststring
9316 done
9317 # Only check the string length outside the loop.
9318 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9319 teststring=
9320 # Add a significant safety factor because C++ compilers can tack on
9321 # massive amounts of additional arguments before passing them to the
9322 # linker. It appears as though 1/2 is a usable value.
9323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9324 fi
9325 ;;
9326 esac
9327
9328fi
9329
9330if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009332$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9333else
cristy8b350f62009-11-15 23:12:43 +00009334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009335$as_echo "none" >&6; }
9336fi
9337max_cmd_len=$lt_cv_sys_max_cmd_len
9338
9339
9340
9341
9342
9343
9344: ${CP="cp -f"}
9345: ${MV="mv -f"}
9346: ${RM="rm -f"}
9347
cristy8b350f62009-11-15 23:12:43 +00009348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009349$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9350# Try some XSI features
9351xsi_shell=no
9352( _lt_dummy="a/b/c"
9353 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9354 = c,a/b,, \
9355 && eval 'test $(( 1 + 1 )) -eq 2 \
9356 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9357 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009359$as_echo "$xsi_shell" >&6; }
9360
9361
cristy8b350f62009-11-15 23:12:43 +00009362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009363$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9364lt_shell_append=no
9365( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9366 >/dev/null 2>&1 \
9367 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009369$as_echo "$lt_shell_append" >&6; }
9370
9371
9372if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9373 lt_unset=unset
9374else
9375 lt_unset=false
9376fi
9377
9378
9379
9380
9381
9382# test EBCDIC or ASCII
9383case `echo X|tr X '\101'` in
9384 A) # ASCII based system
9385 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9386 lt_SP2NL='tr \040 \012'
9387 lt_NL2SP='tr \015\012 \040\040'
9388 ;;
9389 *) # EBCDIC based system
9390 lt_SP2NL='tr \100 \n'
9391 lt_NL2SP='tr \r\n \100\100'
9392 ;;
9393esac
9394
9395
9396
9397
9398
9399
9400
9401
9402
cristy8b350f62009-11-15 23:12:43 +00009403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009404$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009405if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009406 $as_echo_n "(cached) " >&6
9407else
9408 lt_cv_ld_reload_flag='-r'
9409fi
cristy8b350f62009-11-15 23:12:43 +00009410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009411$as_echo "$lt_cv_ld_reload_flag" >&6; }
9412reload_flag=$lt_cv_ld_reload_flag
9413case $reload_flag in
9414"" | " "*) ;;
9415*) reload_flag=" $reload_flag" ;;
9416esac
9417reload_cmds='$LD$reload_flag -o $output$reload_objs'
9418case $host_os in
9419 darwin*)
9420 if test "$GCC" = yes; then
9421 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9422 else
9423 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9424 fi
9425 ;;
9426esac
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436if test -n "$ac_tool_prefix"; then
9437 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9438set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009440$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009441if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009442 $as_echo_n "(cached) " >&6
9443else
9444 if test -n "$OBJDUMP"; then
9445 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9446else
9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448for as_dir in $PATH
9449do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9454 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009456 break 2
9457 fi
9458done
cristy8b350f62009-11-15 23:12:43 +00009459 done
cristy3ed852e2009-09-05 21:47:34 +00009460IFS=$as_save_IFS
9461
9462fi
9463fi
9464OBJDUMP=$ac_cv_prog_OBJDUMP
9465if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009467$as_echo "$OBJDUMP" >&6; }
9468else
cristy8b350f62009-11-15 23:12:43 +00009469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009470$as_echo "no" >&6; }
9471fi
9472
9473
9474fi
9475if test -z "$ac_cv_prog_OBJDUMP"; then
9476 ac_ct_OBJDUMP=$OBJDUMP
9477 # Extract the first word of "objdump", so it can be a program name with args.
9478set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009480$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009481if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009482 $as_echo_n "(cached) " >&6
9483else
9484 if test -n "$ac_ct_OBJDUMP"; then
9485 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9486else
9487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488for as_dir in $PATH
9489do
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9494 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009496 break 2
9497 fi
9498done
cristy8b350f62009-11-15 23:12:43 +00009499 done
cristy3ed852e2009-09-05 21:47:34 +00009500IFS=$as_save_IFS
9501
9502fi
9503fi
9504ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9505if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009507$as_echo "$ac_ct_OBJDUMP" >&6; }
9508else
cristy8b350f62009-11-15 23:12:43 +00009509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009510$as_echo "no" >&6; }
9511fi
9512
9513 if test "x$ac_ct_OBJDUMP" = x; then
9514 OBJDUMP="false"
9515 else
9516 case $cross_compiling:$ac_tool_warned in
9517yes:)
cristy8b350f62009-11-15 23:12:43 +00009518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9520ac_tool_warned=yes ;;
9521esac
9522 OBJDUMP=$ac_ct_OBJDUMP
9523 fi
9524else
9525 OBJDUMP="$ac_cv_prog_OBJDUMP"
9526fi
9527
9528test -z "$OBJDUMP" && OBJDUMP=objdump
9529
9530
9531
9532
9533
9534
cristy8b350f62009-11-15 23:12:43 +00009535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009536$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009537if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009538 $as_echo_n "(cached) " >&6
9539else
9540 lt_cv_file_magic_cmd='$MAGIC_CMD'
9541lt_cv_file_magic_test_file=
9542lt_cv_deplibs_check_method='unknown'
9543# Need to set the preceding variable on all platforms that support
9544# interlibrary dependencies.
9545# 'none' -- dependencies not supported.
9546# `unknown' -- same as none, but documents that we really don't know.
9547# 'pass_all' -- all dependencies passed with no checks.
9548# 'test_compile' -- check by making test program.
9549# 'file_magic [[regex]]' -- check by looking for files in library path
9550# which responds to the $file_magic_cmd with a given extended regex.
9551# If you have `file' or equivalent on your system and you're not sure
9552# whether `pass_all' will *always* work, you probably want this one.
9553
9554case $host_os in
9555aix[4-9]*)
9556 lt_cv_deplibs_check_method=pass_all
9557 ;;
9558
9559beos*)
9560 lt_cv_deplibs_check_method=pass_all
9561 ;;
9562
9563bsdi[45]*)
9564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9565 lt_cv_file_magic_cmd='/usr/bin/file -L'
9566 lt_cv_file_magic_test_file=/shlib/libc.so
9567 ;;
9568
9569cygwin*)
9570 # func_win32_libid is a shell function defined in ltmain.sh
9571 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9572 lt_cv_file_magic_cmd='func_win32_libid'
9573 ;;
9574
9575mingw* | pw32*)
9576 # Base MSYS/MinGW do not provide the 'file' command needed by
9577 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9578 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00009579 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00009580 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9581 lt_cv_file_magic_cmd='func_win32_libid'
9582 else
9583 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9584 lt_cv_file_magic_cmd='$OBJDUMP -f'
9585 fi
9586 ;;
9587
cristy18304f92009-11-22 15:48:26 +00009588cegcc)
cristy3ed852e2009-09-05 21:47:34 +00009589 # use the weaker test based on 'objdump'. See mingw*.
9590 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9591 lt_cv_file_magic_cmd='$OBJDUMP -f'
9592 ;;
9593
9594darwin* | rhapsody*)
9595 lt_cv_deplibs_check_method=pass_all
9596 ;;
9597
9598freebsd* | dragonfly*)
9599 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9600 case $host_cpu in
9601 i*86 )
9602 # Not sure whether the presence of OpenBSD here was a mistake.
9603 # Let's accept both of them until this is cleared up.
9604 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9605 lt_cv_file_magic_cmd=/usr/bin/file
9606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9607 ;;
9608 esac
9609 else
9610 lt_cv_deplibs_check_method=pass_all
9611 fi
9612 ;;
9613
9614gnu*)
9615 lt_cv_deplibs_check_method=pass_all
9616 ;;
9617
9618hpux10.20* | hpux11*)
9619 lt_cv_file_magic_cmd=/usr/bin/file
9620 case $host_cpu in
9621 ia64*)
9622 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9623 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9624 ;;
9625 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00009626 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 +00009627 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9628 ;;
9629 *)
cristy18304f92009-11-22 15:48:26 +00009630 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 +00009631 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9632 ;;
9633 esac
9634 ;;
9635
9636interix[3-9]*)
9637 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9639 ;;
9640
9641irix5* | irix6* | nonstopux*)
9642 case $LD in
9643 *-32|*"-32 ") libmagic=32-bit;;
9644 *-n32|*"-n32 ") libmagic=N32;;
9645 *-64|*"-64 ") libmagic=64-bit;;
9646 *) libmagic=never-match;;
9647 esac
9648 lt_cv_deplibs_check_method=pass_all
9649 ;;
9650
9651# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00009652linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00009653 lt_cv_deplibs_check_method=pass_all
9654 ;;
9655
9656netbsd*)
9657 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9659 else
9660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9661 fi
9662 ;;
9663
9664newos6*)
9665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9666 lt_cv_file_magic_cmd=/usr/bin/file
9667 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9668 ;;
9669
9670*nto* | *qnx*)
9671 lt_cv_deplibs_check_method=pass_all
9672 ;;
9673
9674openbsd*)
9675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9677 else
9678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9679 fi
9680 ;;
9681
9682osf3* | osf4* | osf5*)
9683 lt_cv_deplibs_check_method=pass_all
9684 ;;
9685
9686rdos*)
9687 lt_cv_deplibs_check_method=pass_all
9688 ;;
9689
9690solaris*)
9691 lt_cv_deplibs_check_method=pass_all
9692 ;;
9693
9694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9695 lt_cv_deplibs_check_method=pass_all
9696 ;;
9697
9698sysv4 | sysv4.3*)
9699 case $host_vendor in
9700 motorola)
9701 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]'
9702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9703 ;;
9704 ncr)
9705 lt_cv_deplibs_check_method=pass_all
9706 ;;
9707 sequent)
9708 lt_cv_file_magic_cmd='/bin/file'
9709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9710 ;;
9711 sni)
9712 lt_cv_file_magic_cmd='/bin/file'
9713 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9714 lt_cv_file_magic_test_file=/lib/libc.so
9715 ;;
9716 siemens)
9717 lt_cv_deplibs_check_method=pass_all
9718 ;;
9719 pc)
9720 lt_cv_deplibs_check_method=pass_all
9721 ;;
9722 esac
9723 ;;
9724
9725tpf*)
9726 lt_cv_deplibs_check_method=pass_all
9727 ;;
9728esac
9729
9730fi
cristy8b350f62009-11-15 23:12:43 +00009731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00009732$as_echo "$lt_cv_deplibs_check_method" >&6; }
9733file_magic_cmd=$lt_cv_file_magic_cmd
9734deplibs_check_method=$lt_cv_deplibs_check_method
9735test -z "$deplibs_check_method" && deplibs_check_method=unknown
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748if test -n "$ac_tool_prefix"; then
9749 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9750set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009752$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009753if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009754 $as_echo_n "(cached) " >&6
9755else
9756 if test -n "$AR"; then
9757 ac_cv_prog_AR="$AR" # Let the user override the test.
9758else
9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760for as_dir in $PATH
9761do
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00009767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009768 break 2
9769 fi
9770done
cristy8b350f62009-11-15 23:12:43 +00009771 done
cristy3ed852e2009-09-05 21:47:34 +00009772IFS=$as_save_IFS
9773
9774fi
9775fi
9776AR=$ac_cv_prog_AR
9777if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00009778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009779$as_echo "$AR" >&6; }
9780else
cristy8b350f62009-11-15 23:12:43 +00009781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009782$as_echo "no" >&6; }
9783fi
9784
9785
9786fi
9787if test -z "$ac_cv_prog_AR"; then
9788 ac_ct_AR=$AR
9789 # Extract the first word of "ar", so it can be a program name with args.
9790set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009792$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009793if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009794 $as_echo_n "(cached) " >&6
9795else
9796 if test -n "$ac_ct_AR"; then
9797 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9798else
9799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800for as_dir in $PATH
9801do
9802 IFS=$as_save_IFS
9803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9806 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00009807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009808 break 2
9809 fi
9810done
cristy8b350f62009-11-15 23:12:43 +00009811 done
cristy3ed852e2009-09-05 21:47:34 +00009812IFS=$as_save_IFS
9813
9814fi
9815fi
9816ac_ct_AR=$ac_cv_prog_ac_ct_AR
9817if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00009818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009819$as_echo "$ac_ct_AR" >&6; }
9820else
cristy8b350f62009-11-15 23:12:43 +00009821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009822$as_echo "no" >&6; }
9823fi
9824
9825 if test "x$ac_ct_AR" = x; then
9826 AR="false"
9827 else
9828 case $cross_compiling:$ac_tool_warned in
9829yes:)
cristy8b350f62009-11-15 23:12:43 +00009830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9832ac_tool_warned=yes ;;
9833esac
9834 AR=$ac_ct_AR
9835 fi
9836else
9837 AR="$ac_cv_prog_AR"
9838fi
9839
9840test -z "$AR" && AR=ar
9841test -z "$AR_FLAGS" && AR_FLAGS=cru
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853if test -n "$ac_tool_prefix"; then
9854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9855set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009859 $as_echo_n "(cached) " >&6
9860else
9861 if test -n "$STRIP"; then
9862 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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
9881STRIP=$ac_cv_prog_STRIP
9882if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009884$as_echo "$STRIP" >&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
9891fi
9892if test -z "$ac_cv_prog_STRIP"; then
9893 ac_ct_STRIP=$STRIP
9894 # Extract the first word of "strip", so it can be a program name with args.
9895set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009897$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009898if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009899 $as_echo_n "(cached) " >&6
9900else
9901 if test -n "$ac_ct_STRIP"; then
9902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9903else
9904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905for as_dir in $PATH
9906do
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009909 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9911 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00009912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009913 break 2
9914 fi
9915done
cristy8b350f62009-11-15 23:12:43 +00009916 done
cristy3ed852e2009-09-05 21:47:34 +00009917IFS=$as_save_IFS
9918
9919fi
9920fi
9921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9922if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009924$as_echo "$ac_ct_STRIP" >&6; }
9925else
cristy8b350f62009-11-15 23:12:43 +00009926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009927$as_echo "no" >&6; }
9928fi
9929
9930 if test "x$ac_ct_STRIP" = x; then
9931 STRIP=":"
9932 else
9933 case $cross_compiling:$ac_tool_warned in
9934yes:)
cristy8b350f62009-11-15 23:12:43 +00009935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9937ac_tool_warned=yes ;;
9938esac
9939 STRIP=$ac_ct_STRIP
9940 fi
9941else
9942 STRIP="$ac_cv_prog_STRIP"
9943fi
9944
9945test -z "$STRIP" && STRIP=:
9946
9947
9948
9949
9950
9951
9952if test -n "$ac_tool_prefix"; then
9953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9954set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009956$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009957if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009958 $as_echo_n "(cached) " >&6
9959else
9960 if test -n "$RANLIB"; then
9961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9962else
9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009972 break 2
9973 fi
9974done
cristy8b350f62009-11-15 23:12:43 +00009975 done
cristy3ed852e2009-09-05 21:47:34 +00009976IFS=$as_save_IFS
9977
9978fi
9979fi
9980RANLIB=$ac_cv_prog_RANLIB
9981if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009983$as_echo "$RANLIB" >&6; }
9984else
cristy8b350f62009-11-15 23:12:43 +00009985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009986$as_echo "no" >&6; }
9987fi
9988
9989
9990fi
9991if test -z "$ac_cv_prog_RANLIB"; then
9992 ac_ct_RANLIB=$RANLIB
9993 # Extract the first word of "ranlib", so it can be a program name with args.
9994set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009996$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009997if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009998 $as_echo_n "(cached) " >&6
9999else
10000 if test -n "$ac_ct_RANLIB"; then
10001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10002else
10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010012 break 2
10013 fi
10014done
cristy8b350f62009-11-15 23:12:43 +000010015 done
cristy3ed852e2009-09-05 21:47:34 +000010016IFS=$as_save_IFS
10017
10018fi
10019fi
10020ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10021if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010023$as_echo "$ac_ct_RANLIB" >&6; }
10024else
cristy8b350f62009-11-15 23:12:43 +000010025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010026$as_echo "no" >&6; }
10027fi
10028
10029 if test "x$ac_ct_RANLIB" = x; then
10030 RANLIB=":"
10031 else
10032 case $cross_compiling:$ac_tool_warned in
10033yes:)
cristy8b350f62009-11-15 23:12:43 +000010034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10036ac_tool_warned=yes ;;
10037esac
10038 RANLIB=$ac_ct_RANLIB
10039 fi
10040else
10041 RANLIB="$ac_cv_prog_RANLIB"
10042fi
10043
10044test -z "$RANLIB" && RANLIB=:
10045
10046
10047
10048
10049
10050
10051# Determine commands to create old-style static archives.
10052old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10053old_postinstall_cmds='chmod 644 $oldlib'
10054old_postuninstall_cmds=
10055
10056if test -n "$RANLIB"; then
10057 case $host_os in
10058 openbsd*)
10059 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10060 ;;
10061 *)
10062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10063 ;;
10064 esac
10065 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10066fi
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101# If no C compiler was specified, use CC.
10102LTCC=${LTCC-"$CC"}
10103
10104# If no C compiler flags were specified, use CFLAGS.
10105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10106
10107# Allow CC to be a program name with arguments.
10108compiler=$CC
10109
10110
10111# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010113$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010114if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010115 $as_echo_n "(cached) " >&6
10116else
10117
10118# These are sane defaults that work on at least a few old systems.
10119# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10120
10121# Character class describing NM global symbol codes.
10122symcode='[BCDEGRST]'
10123
10124# Regexp to match symbols that can be accessed directly from C.
10125sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10126
10127# Define system-specific variables.
10128case $host_os in
10129aix*)
10130 symcode='[BCDT]'
10131 ;;
10132cygwin* | mingw* | pw32* | cegcc*)
10133 symcode='[ABCDGISTW]'
10134 ;;
10135hpux*)
10136 if test "$host_cpu" = ia64; then
10137 symcode='[ABCDEGRST]'
10138 fi
10139 ;;
10140irix* | nonstopux*)
10141 symcode='[BCDEGRST]'
10142 ;;
10143osf*)
10144 symcode='[BCDEGQRST]'
10145 ;;
10146solaris*)
10147 symcode='[BDRT]'
10148 ;;
10149sco3.2v5*)
10150 symcode='[DT]'
10151 ;;
10152sysv4.2uw2*)
10153 symcode='[DT]'
10154 ;;
10155sysv5* | sco5v6* | unixware* | OpenUNIX*)
10156 symcode='[ABDT]'
10157 ;;
10158sysv4)
10159 symcode='[DFNSTU]'
10160 ;;
10161esac
10162
10163# If we're using GNU nm, then use its standard symbol codes.
10164case `$NM -V 2>&1` in
10165*GNU* | *'with BFD'*)
10166 symcode='[ABCDGIRSTW]' ;;
10167esac
10168
10169# Transform an extracted symbol line into a proper C declaration.
10170# Some systems (esp. on ia64) link data and code symbols differently,
10171# so use this general approach.
10172lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10173
10174# Transform an extracted symbol line into symbol name and symbol address
10175lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10176lt_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'"
10177
10178# Handle CRLF in mingw tool chain
10179opt_cr=
10180case $build_os in
10181mingw*)
10182 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10183 ;;
10184esac
10185
10186# Try without a prefix underscore, then with it.
10187for ac_symprfx in "" "_"; do
10188
10189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10190 symxfrm="\\1 $ac_symprfx\\2 \\2"
10191
10192 # Write the raw and C identifiers.
10193 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10194 # Fake it for dumpbin and say T for any non-static function
10195 # and D for any global variable.
10196 # Also find C++ and __fastcall symbols from MSVC++,
10197 # which start with @ or ?.
10198 lt_cv_sys_global_symbol_pipe="$AWK '"\
10199" {last_section=section; section=\$ 3};"\
10200" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10201" \$ 0!~/External *\|/{next};"\
10202" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10203" {if(hide[section]) next};"\
10204" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10205" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10206" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10207" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10208" ' prfx=^$ac_symprfx"
10209 else
10210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10211 fi
10212
10213 # Check to see that the pipe works correctly.
10214 pipe_works=no
10215
10216 rm -f conftest*
10217 cat > conftest.$ac_ext <<_LT_EOF
10218#ifdef __cplusplus
10219extern "C" {
10220#endif
10221char nm_test_var;
10222void nm_test_func(void);
10223void nm_test_func(void){}
10224#ifdef __cplusplus
10225}
10226#endif
10227int main(){nm_test_var='a';nm_test_func();return(0);}
10228_LT_EOF
10229
cristy8b350f62009-11-15 23:12:43 +000010230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010231 (eval $ac_compile) 2>&5
10232 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10234 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010235 # Now try to grab the symbols.
10236 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10238 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010239 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10241 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010242 # Try sorting and uniquifying the output.
10243 if sort "$nlist" | uniq > "$nlist"T; then
10244 mv -f "$nlist"T "$nlist"
10245 else
10246 rm -f "$nlist"T
10247 fi
10248
10249 # Make sure that we snagged all the symbols we need.
10250 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10251 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10252 cat <<_LT_EOF > conftest.$ac_ext
10253#ifdef __cplusplus
10254extern "C" {
10255#endif
10256
10257_LT_EOF
10258 # Now generate the symbol file.
10259 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10260
10261 cat <<_LT_EOF >> conftest.$ac_ext
10262
10263/* The mapping between symbol names and symbols. */
10264const struct {
10265 const char *name;
10266 void *address;
10267}
10268lt__PROGRAM__LTX_preloaded_symbols[] =
10269{
10270 { "@PROGRAM@", (void *) 0 },
10271_LT_EOF
10272 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10273 cat <<\_LT_EOF >> conftest.$ac_ext
10274 {0, (void *) 0}
10275};
10276
10277/* This works around a problem in FreeBSD linker */
10278#ifdef FREEBSD_WORKAROUND
10279static const void *lt_preloaded_setup() {
10280 return lt__PROGRAM__LTX_preloaded_symbols;
10281}
10282#endif
10283
10284#ifdef __cplusplus
10285}
10286#endif
10287_LT_EOF
10288 # Now try linking the two files.
10289 mv conftest.$ac_objext conftstm.$ac_objext
10290 lt_save_LIBS="$LIBS"
10291 lt_save_CFLAGS="$CFLAGS"
10292 LIBS="conftstm.$ac_objext"
10293 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010295 (eval $ac_link) 2>&5
10296 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10298 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010299 pipe_works=yes
10300 fi
10301 LIBS="$lt_save_LIBS"
10302 CFLAGS="$lt_save_CFLAGS"
10303 else
10304 echo "cannot find nm_test_func in $nlist" >&5
10305 fi
10306 else
10307 echo "cannot find nm_test_var in $nlist" >&5
10308 fi
10309 else
10310 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10311 fi
10312 else
10313 echo "$progname: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10315 fi
10316 rm -rf conftest* conftst*
10317
10318 # Do not use the global_symbol_pipe unless it works.
10319 if test "$pipe_works" = yes; then
10320 break
10321 else
10322 lt_cv_sys_global_symbol_pipe=
10323 fi
10324done
10325
10326fi
10327
10328if test -z "$lt_cv_sys_global_symbol_pipe"; then
10329 lt_cv_sys_global_symbol_to_cdecl=
10330fi
10331if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010333$as_echo "failed" >&6; }
10334else
cristy8b350f62009-11-15 23:12:43 +000010335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010336$as_echo "ok" >&6; }
10337fi
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010361if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010362 enableval=$enable_libtool_lock;
10363fi
10364
10365test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10366
10367# Some flags need to be propagated to the compiler or linker for good
10368# libtool support.
10369case $host in
10370ia64-*-hpux*)
10371 # Find out which ABI we are using.
10372 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010374 (eval $ac_compile) 2>&5
10375 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10377 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010378 case `/usr/bin/file conftest.$ac_objext` in
10379 *ELF-32*)
10380 HPUX_IA64_MODE="32"
10381 ;;
10382 *ELF-64*)
10383 HPUX_IA64_MODE="64"
10384 ;;
10385 esac
10386 fi
10387 rm -rf conftest*
10388 ;;
10389*-*-irix6*)
10390 # Find out which ABI we are using.
cristy735e8942010-04-02 20:32:57 +000010391 echo '#line 10391 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010393 (eval $ac_compile) 2>&5
10394 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10396 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010397 if test "$lt_cv_prog_gnu_ld" = yes; then
10398 case `/usr/bin/file conftest.$ac_objext` in
10399 *32-bit*)
10400 LD="${LD-ld} -melf32bsmip"
10401 ;;
10402 *N32*)
10403 LD="${LD-ld} -melf32bmipn32"
10404 ;;
10405 *64-bit*)
10406 LD="${LD-ld} -melf64bmip"
10407 ;;
10408 esac
10409 else
10410 case `/usr/bin/file conftest.$ac_objext` in
10411 *32-bit*)
10412 LD="${LD-ld} -32"
10413 ;;
10414 *N32*)
10415 LD="${LD-ld} -n32"
10416 ;;
10417 *64-bit*)
10418 LD="${LD-ld} -64"
10419 ;;
10420 esac
10421 fi
10422 fi
10423 rm -rf conftest*
10424 ;;
10425
10426x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10427s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10428 # Find out which ABI we are using.
10429 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010431 (eval $ac_compile) 2>&5
10432 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10434 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010435 case `/usr/bin/file conftest.o` in
10436 *32-bit*)
10437 case $host in
10438 x86_64-*kfreebsd*-gnu)
10439 LD="${LD-ld} -m elf_i386_fbsd"
10440 ;;
10441 x86_64-*linux*)
10442 LD="${LD-ld} -m elf_i386"
10443 ;;
10444 ppc64-*linux*|powerpc64-*linux*)
10445 LD="${LD-ld} -m elf32ppclinux"
10446 ;;
10447 s390x-*linux*)
10448 LD="${LD-ld} -m elf_s390"
10449 ;;
10450 sparc64-*linux*)
10451 LD="${LD-ld} -m elf32_sparc"
10452 ;;
10453 esac
10454 ;;
10455 *64-bit*)
10456 case $host in
10457 x86_64-*kfreebsd*-gnu)
10458 LD="${LD-ld} -m elf_x86_64_fbsd"
10459 ;;
10460 x86_64-*linux*)
10461 LD="${LD-ld} -m elf_x86_64"
10462 ;;
10463 ppc*-*linux*|powerpc*-*linux*)
10464 LD="${LD-ld} -m elf64ppc"
10465 ;;
10466 s390*-*linux*|s390*-*tpf*)
10467 LD="${LD-ld} -m elf64_s390"
10468 ;;
10469 sparc*-*linux*)
10470 LD="${LD-ld} -m elf64_sparc"
10471 ;;
10472 esac
10473 ;;
10474 esac
10475 fi
10476 rm -rf conftest*
10477 ;;
10478
10479*-*-sco3.2v5*)
10480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10481 SAVE_CFLAGS="$CFLAGS"
10482 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010484$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010485if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010486 $as_echo_n "(cached) " >&6
10487else
10488 ac_ext=c
10489ac_cpp='$CPP $CPPFLAGS'
10490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10492ac_compiler_gnu=$ac_cv_c_compiler_gnu
10493
cristy8b350f62009-11-15 23:12:43 +000010494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010495/* end confdefs.h. */
10496
10497int
10498main ()
10499{
10500
10501 ;
10502 return 0;
10503}
10504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010505if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010506 lt_cv_cc_needs_belf=yes
10507else
cristy8b350f62009-11-15 23:12:43 +000010508 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010509fi
cristy8b350f62009-11-15 23:12:43 +000010510rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010512 ac_ext=c
10513ac_cpp='$CPP $CPPFLAGS'
10514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10516ac_compiler_gnu=$ac_cv_c_compiler_gnu
10517
10518fi
cristy8b350f62009-11-15 23:12:43 +000010519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010520$as_echo "$lt_cv_cc_needs_belf" >&6; }
10521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10523 CFLAGS="$SAVE_CFLAGS"
10524 fi
10525 ;;
10526sparc*-*solaris*)
10527 # Find out which ABI we are using.
10528 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010530 (eval $ac_compile) 2>&5
10531 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10533 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010534 case `/usr/bin/file conftest.o` in
10535 *64-bit*)
10536 case $lt_cv_prog_gnu_ld in
10537 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10538 *)
10539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10540 LD="${LD-ld} -64"
10541 fi
10542 ;;
10543 esac
10544 ;;
10545 esac
10546 fi
10547 rm -rf conftest*
10548 ;;
10549esac
10550
10551need_locks="$enable_libtool_lock"
10552
10553
10554 case $host_os in
10555 rhapsody* | darwin*)
10556 if test -n "$ac_tool_prefix"; then
10557 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10558set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010560$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010561if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010562 $as_echo_n "(cached) " >&6
10563else
10564 if test -n "$DSYMUTIL"; then
10565 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10566else
10567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568for as_dir in $PATH
10569do
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10574 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010576 break 2
10577 fi
10578done
cristy8b350f62009-11-15 23:12:43 +000010579 done
cristy3ed852e2009-09-05 21:47:34 +000010580IFS=$as_save_IFS
10581
10582fi
10583fi
10584DSYMUTIL=$ac_cv_prog_DSYMUTIL
10585if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010587$as_echo "$DSYMUTIL" >&6; }
10588else
cristy8b350f62009-11-15 23:12:43 +000010589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010590$as_echo "no" >&6; }
10591fi
10592
10593
10594fi
10595if test -z "$ac_cv_prog_DSYMUTIL"; then
10596 ac_ct_DSYMUTIL=$DSYMUTIL
10597 # Extract the first word of "dsymutil", so it can be a program name with args.
10598set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010600$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010601if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010602 $as_echo_n "(cached) " >&6
10603else
10604 if test -n "$ac_ct_DSYMUTIL"; then
10605 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10606else
10607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608for as_dir in $PATH
10609do
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10614 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010616 break 2
10617 fi
10618done
cristy8b350f62009-11-15 23:12:43 +000010619 done
cristy3ed852e2009-09-05 21:47:34 +000010620IFS=$as_save_IFS
10621
10622fi
10623fi
10624ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10625if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010627$as_echo "$ac_ct_DSYMUTIL" >&6; }
10628else
cristy8b350f62009-11-15 23:12:43 +000010629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010630$as_echo "no" >&6; }
10631fi
10632
10633 if test "x$ac_ct_DSYMUTIL" = x; then
10634 DSYMUTIL=":"
10635 else
10636 case $cross_compiling:$ac_tool_warned in
10637yes:)
cristy8b350f62009-11-15 23:12:43 +000010638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10640ac_tool_warned=yes ;;
10641esac
10642 DSYMUTIL=$ac_ct_DSYMUTIL
10643 fi
10644else
10645 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10646fi
10647
10648 if test -n "$ac_tool_prefix"; then
10649 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10650set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010652$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010653if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010654 $as_echo_n "(cached) " >&6
10655else
10656 if test -n "$NMEDIT"; then
10657 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10658else
10659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660for as_dir in $PATH
10661do
10662 IFS=$as_save_IFS
10663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10666 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000010667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010668 break 2
10669 fi
10670done
cristy8b350f62009-11-15 23:12:43 +000010671 done
cristy3ed852e2009-09-05 21:47:34 +000010672IFS=$as_save_IFS
10673
10674fi
10675fi
10676NMEDIT=$ac_cv_prog_NMEDIT
10677if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010679$as_echo "$NMEDIT" >&6; }
10680else
cristy8b350f62009-11-15 23:12:43 +000010681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010682$as_echo "no" >&6; }
10683fi
10684
10685
10686fi
10687if test -z "$ac_cv_prog_NMEDIT"; then
10688 ac_ct_NMEDIT=$NMEDIT
10689 # Extract the first word of "nmedit", so it can be a program name with args.
10690set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010692$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010693if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010694 $as_echo_n "(cached) " >&6
10695else
10696 if test -n "$ac_ct_NMEDIT"; then
10697 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10698else
10699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700for as_dir in $PATH
10701do
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10706 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000010707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010708 break 2
10709 fi
10710done
cristy8b350f62009-11-15 23:12:43 +000010711 done
cristy3ed852e2009-09-05 21:47:34 +000010712IFS=$as_save_IFS
10713
10714fi
10715fi
10716ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10717if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010719$as_echo "$ac_ct_NMEDIT" >&6; }
10720else
cristy8b350f62009-11-15 23:12:43 +000010721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010722$as_echo "no" >&6; }
10723fi
10724
10725 if test "x$ac_ct_NMEDIT" = x; then
10726 NMEDIT=":"
10727 else
10728 case $cross_compiling:$ac_tool_warned in
10729yes:)
cristy8b350f62009-11-15 23:12:43 +000010730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10732ac_tool_warned=yes ;;
10733esac
10734 NMEDIT=$ac_ct_NMEDIT
10735 fi
10736else
10737 NMEDIT="$ac_cv_prog_NMEDIT"
10738fi
10739
10740 if test -n "$ac_tool_prefix"; then
10741 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10742set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010744$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010745if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010746 $as_echo_n "(cached) " >&6
10747else
10748 if test -n "$LIPO"; then
10749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10750else
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000010759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010760 break 2
10761 fi
10762done
cristy8b350f62009-11-15 23:12:43 +000010763 done
cristy3ed852e2009-09-05 21:47:34 +000010764IFS=$as_save_IFS
10765
10766fi
10767fi
10768LIPO=$ac_cv_prog_LIPO
10769if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010771$as_echo "$LIPO" >&6; }
10772else
cristy8b350f62009-11-15 23:12:43 +000010773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010774$as_echo "no" >&6; }
10775fi
10776
10777
10778fi
10779if test -z "$ac_cv_prog_LIPO"; then
10780 ac_ct_LIPO=$LIPO
10781 # Extract the first word of "lipo", so it can be a program name with args.
10782set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010784$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010785if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010786 $as_echo_n "(cached) " >&6
10787else
10788 if test -n "$ac_ct_LIPO"; then
10789 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10790else
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000010799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010800 break 2
10801 fi
10802done
cristy8b350f62009-11-15 23:12:43 +000010803 done
cristy3ed852e2009-09-05 21:47:34 +000010804IFS=$as_save_IFS
10805
10806fi
10807fi
10808ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10809if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010811$as_echo "$ac_ct_LIPO" >&6; }
10812else
cristy8b350f62009-11-15 23:12:43 +000010813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010814$as_echo "no" >&6; }
10815fi
10816
10817 if test "x$ac_ct_LIPO" = x; then
10818 LIPO=":"
10819 else
10820 case $cross_compiling:$ac_tool_warned in
10821yes:)
cristy8b350f62009-11-15 23:12:43 +000010822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10824ac_tool_warned=yes ;;
10825esac
10826 LIPO=$ac_ct_LIPO
10827 fi
10828else
10829 LIPO="$ac_cv_prog_LIPO"
10830fi
10831
10832 if test -n "$ac_tool_prefix"; then
10833 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10834set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010836$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010837if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010838 $as_echo_n "(cached) " >&6
10839else
10840 if test -n "$OTOOL"; then
10841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10842else
10843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844for as_dir in $PATH
10845do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000010851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010852 break 2
10853 fi
10854done
cristy8b350f62009-11-15 23:12:43 +000010855 done
cristy3ed852e2009-09-05 21:47:34 +000010856IFS=$as_save_IFS
10857
10858fi
10859fi
10860OTOOL=$ac_cv_prog_OTOOL
10861if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010863$as_echo "$OTOOL" >&6; }
10864else
cristy8b350f62009-11-15 23:12:43 +000010865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010866$as_echo "no" >&6; }
10867fi
10868
10869
10870fi
10871if test -z "$ac_cv_prog_OTOOL"; then
10872 ac_ct_OTOOL=$OTOOL
10873 # Extract the first word of "otool", so it can be a program name with args.
10874set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010876$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010877if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010878 $as_echo_n "(cached) " >&6
10879else
10880 if test -n "$ac_ct_OTOOL"; then
10881 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000010891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010892 break 2
10893 fi
10894done
cristy8b350f62009-11-15 23:12:43 +000010895 done
cristy3ed852e2009-09-05 21:47:34 +000010896IFS=$as_save_IFS
10897
10898fi
10899fi
10900ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10901if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010903$as_echo "$ac_ct_OTOOL" >&6; }
10904else
cristy8b350f62009-11-15 23:12:43 +000010905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010906$as_echo "no" >&6; }
10907fi
10908
10909 if test "x$ac_ct_OTOOL" = x; then
10910 OTOOL=":"
10911 else
10912 case $cross_compiling:$ac_tool_warned in
10913yes:)
cristy8b350f62009-11-15 23:12:43 +000010914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10916ac_tool_warned=yes ;;
10917esac
10918 OTOOL=$ac_ct_OTOOL
10919 fi
10920else
10921 OTOOL="$ac_cv_prog_OTOOL"
10922fi
10923
10924 if test -n "$ac_tool_prefix"; then
10925 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10926set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010928$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010929if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010930 $as_echo_n "(cached) " >&6
10931else
10932 if test -n "$OTOOL64"; then
10933 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10934else
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10942 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010944 break 2
10945 fi
10946done
cristy8b350f62009-11-15 23:12:43 +000010947 done
cristy3ed852e2009-09-05 21:47:34 +000010948IFS=$as_save_IFS
10949
10950fi
10951fi
10952OTOOL64=$ac_cv_prog_OTOOL64
10953if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010955$as_echo "$OTOOL64" >&6; }
10956else
cristy8b350f62009-11-15 23:12:43 +000010957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010958$as_echo "no" >&6; }
10959fi
10960
10961
10962fi
10963if test -z "$ac_cv_prog_OTOOL64"; then
10964 ac_ct_OTOOL64=$OTOOL64
10965 # Extract the first word of "otool64", so it can be a program name with args.
10966set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010968$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010969if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010970 $as_echo_n "(cached) " >&6
10971else
10972 if test -n "$ac_ct_OTOOL64"; then
10973 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10982 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010984 break 2
10985 fi
10986done
cristy8b350f62009-11-15 23:12:43 +000010987 done
cristy3ed852e2009-09-05 21:47:34 +000010988IFS=$as_save_IFS
10989
10990fi
10991fi
10992ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10993if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010995$as_echo "$ac_ct_OTOOL64" >&6; }
10996else
cristy8b350f62009-11-15 23:12:43 +000010997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010998$as_echo "no" >&6; }
10999fi
11000
11001 if test "x$ac_ct_OTOOL64" = x; then
11002 OTOOL64=":"
11003 else
11004 case $cross_compiling:$ac_tool_warned in
11005yes:)
cristy8b350f62009-11-15 23:12:43 +000011006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11008ac_tool_warned=yes ;;
11009esac
11010 OTOOL64=$ac_ct_OTOOL64
11011 fi
11012else
11013 OTOOL64="$ac_cv_prog_OTOOL64"
11014fi
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
cristy8b350f62009-11-15 23:12:43 +000011042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011043$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011044if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011045 $as_echo_n "(cached) " >&6
11046else
11047 lt_cv_apple_cc_single_mod=no
11048 if test -z "${LT_MULTI_MODULE}"; then
11049 # By default we will add the -single_module flag. You can override
11050 # by either setting the environment variable LT_MULTI_MODULE
11051 # non-empty at configure time, or by adding -multi_module to the
11052 # link flags.
11053 rm -rf libconftest.dylib*
11054 echo "int foo(void){return 1;}" > conftest.c
11055 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11056-dynamiclib -Wl,-single_module conftest.c" >&5
11057 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11058 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11059 _lt_result=$?
11060 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11061 lt_cv_apple_cc_single_mod=yes
11062 else
11063 cat conftest.err >&5
11064 fi
11065 rm -rf libconftest.dylib*
11066 rm -f conftest.*
11067 fi
11068fi
cristy8b350f62009-11-15 23:12:43 +000011069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011070$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011072$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011073if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011074 $as_echo_n "(cached) " >&6
11075else
11076 lt_cv_ld_exported_symbols_list=no
11077 save_LDFLAGS=$LDFLAGS
11078 echo "_main" > conftest.sym
11079 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011081/* end confdefs.h. */
11082
11083int
11084main ()
11085{
11086
11087 ;
11088 return 0;
11089}
11090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011091if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011092 lt_cv_ld_exported_symbols_list=yes
11093else
cristy8b350f62009-11-15 23:12:43 +000011094 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011095fi
cristy8b350f62009-11-15 23:12:43 +000011096rm -f core conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011098 LDFLAGS="$save_LDFLAGS"
11099
11100fi
cristy8b350f62009-11-15 23:12:43 +000011101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011102$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11103 case $host_os in
11104 rhapsody* | darwin1.[012])
11105 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11106 darwin1.*)
11107 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11108 darwin*) # darwin 5.x on
11109 # if running on 10.5 or later, the deployment target defaults
11110 # to the OS version, if on x86, and 10.4, the deployment
11111 # target defaults to 10.4. Don't you love it?
11112 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11113 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11114 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11115 10.[012]*)
11116 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11117 10.*)
11118 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11119 esac
11120 ;;
11121 esac
11122 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11123 _lt_dar_single_mod='$single_module'
11124 fi
11125 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11126 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11127 else
11128 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11129 fi
cristy18304f92009-11-22 15:48:26 +000011130 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011131 _lt_dsymutil='~$DSYMUTIL $lib || :'
11132 else
11133 _lt_dsymutil=
11134 fi
11135 ;;
11136 esac
11137
cristy3ed852e2009-09-05 21:47:34 +000011138for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011139do :
11140 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11141"
11142if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011143 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011144#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011145_ACEOF
11146
11147fi
11148
11149done
11150
11151
11152
cristy18304f92009-11-22 15:48:26 +000011153ac_ext=cpp
11154ac_cpp='$CXXCPP $CPPFLAGS'
11155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11158if test -z "$CXX"; then
11159 if test -n "$CCC"; then
11160 CXX=$CCC
11161 else
11162 if test -n "$ac_tool_prefix"; then
11163 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11164 do
11165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11166set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if test "${ac_cv_prog_CXX+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11171else
11172 if test -n "$CXX"; then
11173 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11174else
11175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $PATH
11177do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186done
11187 done
11188IFS=$as_save_IFS
11189
11190fi
11191fi
11192CXX=$ac_cv_prog_CXX
11193if test -n "$CXX"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11195$as_echo "$CXX" >&6; }
11196else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198$as_echo "no" >&6; }
11199fi
11200
11201
11202 test -n "$CXX" && break
11203 done
11204fi
11205if test -z "$CXX"; then
11206 ac_ct_CXX=$CXX
11207 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11208do
11209 # Extract the first word of "$ac_prog", so it can be a program name with args.
11210set dummy $ac_prog; ac_word=$2
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212$as_echo_n "checking for $ac_word... " >&6; }
11213if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215else
11216 if test -n "$ac_ct_CXX"; then
11217 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11218else
11219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220for as_dir in $PATH
11221do
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11226 ac_cv_prog_ac_ct_CXX="$ac_prog"
11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 break 2
11229 fi
11230done
11231 done
11232IFS=$as_save_IFS
11233
11234fi
11235fi
11236ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11237if test -n "$ac_ct_CXX"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11239$as_echo "$ac_ct_CXX" >&6; }
11240else
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242$as_echo "no" >&6; }
11243fi
11244
11245
11246 test -n "$ac_ct_CXX" && break
11247done
11248
11249 if test "x$ac_ct_CXX" = x; then
11250 CXX="g++"
11251 else
11252 case $cross_compiling:$ac_tool_warned in
11253yes:)
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11256ac_tool_warned=yes ;;
11257esac
11258 CXX=$ac_ct_CXX
11259 fi
11260fi
11261
11262 fi
11263fi
11264# Provide some information about the compiler.
11265$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11266set X $ac_compile
11267ac_compiler=$2
11268for ac_option in --version -v -V -qversion; do
11269 { { ac_try="$ac_compiler $ac_option >&5"
11270case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273esac
11274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11275$as_echo "$ac_try_echo"; } >&5
11276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11277 ac_status=$?
11278 if test -s conftest.err; then
11279 sed '10a\
11280... rest of stderr output deleted ...
11281 10q' conftest.err >conftest.er1
11282 cat conftest.er1 >&5
11283 fi
11284 rm -f conftest.er1 conftest.err
11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; }
11287done
11288
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11290$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11291if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11292 $as_echo_n "(cached) " >&6
11293else
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295/* end confdefs.h. */
11296
11297int
11298main ()
11299{
11300#ifndef __GNUC__
11301 choke me
11302#endif
11303
11304 ;
11305 return 0;
11306}
11307_ACEOF
11308if ac_fn_cxx_try_compile "$LINENO"; then :
11309 ac_compiler_gnu=yes
11310else
11311 ac_compiler_gnu=no
11312fi
11313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11315
11316fi
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11318$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11319if test $ac_compiler_gnu = yes; then
11320 GXX=yes
11321else
11322 GXX=
11323fi
11324ac_test_CXXFLAGS=${CXXFLAGS+set}
11325ac_save_CXXFLAGS=$CXXFLAGS
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11327$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11328if test "${ac_cv_prog_cxx_g+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11330else
11331 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11332 ac_cxx_werror_flag=yes
11333 ac_cv_prog_cxx_g=no
11334 CXXFLAGS="-g"
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336/* end confdefs.h. */
11337
11338int
11339main ()
11340{
11341
11342 ;
11343 return 0;
11344}
11345_ACEOF
11346if ac_fn_cxx_try_compile "$LINENO"; then :
11347 ac_cv_prog_cxx_g=yes
11348else
11349 CXXFLAGS=""
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351/* end confdefs.h. */
11352
11353int
11354main ()
11355{
11356
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361if ac_fn_cxx_try_compile "$LINENO"; then :
11362
11363else
11364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11365 CXXFLAGS="-g"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367/* end confdefs.h. */
11368
11369int
11370main ()
11371{
11372
11373 ;
11374 return 0;
11375}
11376_ACEOF
11377if ac_fn_cxx_try_compile "$LINENO"; then :
11378 ac_cv_prog_cxx_g=yes
11379fi
11380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381fi
11382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383fi
11384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11386fi
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11388$as_echo "$ac_cv_prog_cxx_g" >&6; }
11389if test "$ac_test_CXXFLAGS" = set; then
11390 CXXFLAGS=$ac_save_CXXFLAGS
11391elif test $ac_cv_prog_cxx_g = yes; then
11392 if test "$GXX" = yes; then
11393 CXXFLAGS="-g -O2"
11394 else
11395 CXXFLAGS="-g"
11396 fi
11397else
11398 if test "$GXX" = yes; then
11399 CXXFLAGS="-O2"
11400 else
11401 CXXFLAGS=
11402 fi
11403fi
11404ac_ext=c
11405ac_cpp='$CPP $CPPFLAGS'
11406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11408ac_compiler_gnu=$ac_cv_c_compiler_gnu
11409
11410depcc="$CXX" am_compiler_list=
11411
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11413$as_echo_n "checking dependency style of $depcc... " >&6; }
11414if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416else
11417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11418 # We make a subdir and do the tests there. Otherwise we can end up
11419 # making bogus files that we don't know about and never remove. For
11420 # instance it was reported that on HP-UX the gcc test will end up
11421 # making a dummy file named `D' -- because `-MD' means `put the output
11422 # in D'.
11423 mkdir conftest.dir
11424 # Copy depcomp to subdir because otherwise we won't find it if we're
11425 # using a relative directory.
11426 cp "$am_depcomp" conftest.dir
11427 cd conftest.dir
11428 # We will build objects and dependencies in a subdirectory because
11429 # it helps to detect inapplicable dependency modes. For instance
11430 # both Tru64's cc and ICC support -MD to output dependencies as a
11431 # side effect of compilation, but ICC will put the dependencies in
11432 # the current directory while Tru64 will put them in the object
11433 # directory.
11434 mkdir sub
11435
11436 am_cv_CXX_dependencies_compiler_type=none
11437 if test "$am_compiler_list" = ""; then
11438 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11439 fi
11440 am__universal=false
11441 case " $depcc " in #(
11442 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11443 esac
11444
11445 for depmode in $am_compiler_list; do
11446 # Setup a source with many dependencies, because some compilers
11447 # like to wrap large dependency lists on column 80 (with \), and
11448 # we should not choose a depcomp mode which is confused by this.
11449 #
11450 # We need to recreate these files for each test, as the compiler may
11451 # overwrite some of them when testing with obscure command lines.
11452 # This happens at least with the AIX C compiler.
11453 : > sub/conftest.c
11454 for i in 1 2 3 4 5 6; do
11455 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11456 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11457 # Solaris 8's {/usr,}/bin/sh.
11458 touch sub/conftst$i.h
11459 done
11460 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11461
11462 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11463 # mode. It turns out that the SunPro C++ compiler does not properly
11464 # handle `-M -o', and we need to detect this. Also, some Intel
11465 # versions had trouble with output in subdirs
11466 am__obj=sub/conftest.${OBJEXT-o}
11467 am__minus_obj="-o $am__obj"
11468 case $depmode in
11469 gcc)
11470 # This depmode causes a compiler race in universal mode.
11471 test "$am__universal" = false || continue
11472 ;;
11473 nosideeffect)
11474 # after this tag, mechanisms are not by side-effect, so they'll
11475 # only be used when explicitly requested
11476 if test "x$enable_dependency_tracking" = xyes; then
11477 continue
11478 else
11479 break
11480 fi
11481 ;;
11482 msvisualcpp | msvcmsys)
11483 # This compiler won't grok `-c -o', but also, the minuso test has
11484 # not run yet. These depmodes are late enough in the game, and
11485 # so weak that their functioning should not be impacted.
11486 am__obj=conftest.${OBJEXT-o}
11487 am__minus_obj=
11488 ;;
11489 none) break ;;
11490 esac
11491 if depmode=$depmode \
11492 source=sub/conftest.c object=$am__obj \
11493 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11494 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11495 >/dev/null 2>conftest.err &&
11496 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11498 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11500 # icc doesn't choke on unknown options, it will just issue warnings
11501 # or remarks (even with -Werror). So we grep stderr for any message
11502 # that says an option was ignored or not supported.
11503 # When given -MP, icc 7.0 and 7.1 complain thusly:
11504 # icc: Command line warning: ignoring option '-M'; no argument required
11505 # The diagnosis changed in icc 8.0:
11506 # icc: Command line remark: option '-MP' not supported
11507 if (grep 'ignoring option' conftest.err ||
11508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11509 am_cv_CXX_dependencies_compiler_type=$depmode
11510 break
11511 fi
11512 fi
11513 done
11514
11515 cd ..
11516 rm -rf conftest.dir
11517else
11518 am_cv_CXX_dependencies_compiler_type=none
11519fi
11520
11521fi
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11523$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11524CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11525
11526 if
11527 test "x$enable_dependency_tracking" != xno \
11528 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11529 am__fastdepCXX_TRUE=
11530 am__fastdepCXX_FALSE='#'
11531else
11532 am__fastdepCXX_TRUE='#'
11533 am__fastdepCXX_FALSE=
11534fi
11535
11536
11537if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11538 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11539 (test "X$CXX" != "Xg++"))) ; then
11540 ac_ext=cpp
11541ac_cpp='$CXXCPP $CPPFLAGS'
11542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11546$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11547if test -z "$CXXCPP"; then
11548 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550else
11551 # Double quotes because CXXCPP needs to be expanded
11552 for CXXCPP in "$CXX -E" "/lib/cpp"
11553 do
11554 ac_preproc_ok=false
11555for ac_cxx_preproc_warn_flag in '' yes
11556do
11557 # Use a header file that comes with gcc, so configuring glibc
11558 # with a fresh cross-compiler works.
11559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 # <limits.h> exists even on freestanding compilers.
11561 # On the NeXT, cc -E runs the code through the compiler's parser,
11562 # not just through cpp. "Syntax error" is here to catch this case.
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564/* end confdefs.h. */
11565#ifdef __STDC__
11566# include <limits.h>
11567#else
11568# include <assert.h>
11569#endif
11570 Syntax error
11571_ACEOF
11572if ac_fn_cxx_try_cpp "$LINENO"; then :
11573
11574else
11575 # Broken: fails on valid input.
11576continue
11577fi
11578rm -f conftest.err conftest.$ac_ext
11579
11580 # OK, works on sane cases. Now check whether nonexistent headers
11581 # can be detected and how.
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583/* end confdefs.h. */
11584#include <ac_nonexistent.h>
11585_ACEOF
11586if ac_fn_cxx_try_cpp "$LINENO"; then :
11587 # Broken: success on invalid input.
11588continue
11589else
11590 # Passes both tests.
11591ac_preproc_ok=:
11592break
11593fi
11594rm -f conftest.err conftest.$ac_ext
11595
11596done
11597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11598rm -f conftest.err conftest.$ac_ext
11599if $ac_preproc_ok; then :
11600 break
11601fi
11602
11603 done
11604 ac_cv_prog_CXXCPP=$CXXCPP
11605
11606fi
11607 CXXCPP=$ac_cv_prog_CXXCPP
11608else
11609 ac_cv_prog_CXXCPP=$CXXCPP
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11612$as_echo "$CXXCPP" >&6; }
11613ac_preproc_ok=false
11614for ac_cxx_preproc_warn_flag in '' yes
11615do
11616 # Use a header file that comes with gcc, so configuring glibc
11617 # with a fresh cross-compiler works.
11618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 # <limits.h> exists even on freestanding compilers.
11620 # On the NeXT, cc -E runs the code through the compiler's parser,
11621 # not just through cpp. "Syntax error" is here to catch this case.
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623/* end confdefs.h. */
11624#ifdef __STDC__
11625# include <limits.h>
11626#else
11627# include <assert.h>
11628#endif
11629 Syntax error
11630_ACEOF
11631if ac_fn_cxx_try_cpp "$LINENO"; then :
11632
11633else
11634 # Broken: fails on valid input.
11635continue
11636fi
11637rm -f conftest.err conftest.$ac_ext
11638
11639 # OK, works on sane cases. Now check whether nonexistent headers
11640 # can be detected and how.
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642/* end confdefs.h. */
11643#include <ac_nonexistent.h>
11644_ACEOF
11645if ac_fn_cxx_try_cpp "$LINENO"; then :
11646 # Broken: success on invalid input.
11647continue
11648else
11649 # Passes both tests.
11650ac_preproc_ok=:
11651break
11652fi
11653rm -f conftest.err conftest.$ac_ext
11654
11655done
11656# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11657rm -f conftest.err conftest.$ac_ext
11658if $ac_preproc_ok; then :
11659
11660else
11661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11663_lt_caught_CXX_error=yes; }
11664fi
11665
11666ac_ext=c
11667ac_cpp='$CPP $CPPFLAGS'
11668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11670ac_compiler_gnu=$ac_cv_c_compiler_gnu
11671
11672else
11673 _lt_caught_CXX_error=yes
11674fi
11675
11676
cristy3ed852e2009-09-05 21:47:34 +000011677
11678
11679
11680# Set options
11681enable_win32_dll=yes
11682
11683case $host in
cristy18304f92009-11-22 15:48:26 +000011684*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011685 if test -n "$ac_tool_prefix"; then
11686 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11687set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011689$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011690if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011691 $as_echo_n "(cached) " >&6
11692else
11693 if test -n "$AS"; then
11694 ac_cv_prog_AS="$AS" # Let the user override the test.
11695else
11696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11703 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011705 break 2
11706 fi
11707done
cristy8b350f62009-11-15 23:12:43 +000011708 done
cristy3ed852e2009-09-05 21:47:34 +000011709IFS=$as_save_IFS
11710
11711fi
11712fi
11713AS=$ac_cv_prog_AS
11714if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011716$as_echo "$AS" >&6; }
11717else
cristy8b350f62009-11-15 23:12:43 +000011718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011719$as_echo "no" >&6; }
11720fi
11721
11722
11723fi
11724if test -z "$ac_cv_prog_AS"; then
11725 ac_ct_AS=$AS
11726 # Extract the first word of "as", so it can be a program name with args.
11727set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011729$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011730if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011731 $as_echo_n "(cached) " >&6
11732else
11733 if test -n "$ac_ct_AS"; then
11734 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11735else
11736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011745 break 2
11746 fi
11747done
cristy8b350f62009-11-15 23:12:43 +000011748 done
cristy3ed852e2009-09-05 21:47:34 +000011749IFS=$as_save_IFS
11750
11751fi
11752fi
11753ac_ct_AS=$ac_cv_prog_ac_ct_AS
11754if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011756$as_echo "$ac_ct_AS" >&6; }
11757else
cristy8b350f62009-11-15 23:12:43 +000011758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011759$as_echo "no" >&6; }
11760fi
11761
11762 if test "x$ac_ct_AS" = x; then
11763 AS="false"
11764 else
11765 case $cross_compiling:$ac_tool_warned in
11766yes:)
cristy8b350f62009-11-15 23:12:43 +000011767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11769ac_tool_warned=yes ;;
11770esac
11771 AS=$ac_ct_AS
11772 fi
11773else
11774 AS="$ac_cv_prog_AS"
11775fi
11776
11777 if test -n "$ac_tool_prefix"; then
11778 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11779set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011781$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011782if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011783 $as_echo_n "(cached) " >&6
11784else
11785 if test -n "$DLLTOOL"; then
11786 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11787else
11788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $PATH
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011797 break 2
11798 fi
11799done
cristy8b350f62009-11-15 23:12:43 +000011800 done
cristy3ed852e2009-09-05 21:47:34 +000011801IFS=$as_save_IFS
11802
11803fi
11804fi
11805DLLTOOL=$ac_cv_prog_DLLTOOL
11806if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011808$as_echo "$DLLTOOL" >&6; }
11809else
cristy8b350f62009-11-15 23:12:43 +000011810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011811$as_echo "no" >&6; }
11812fi
11813
11814
11815fi
11816if test -z "$ac_cv_prog_DLLTOOL"; then
11817 ac_ct_DLLTOOL=$DLLTOOL
11818 # Extract the first word of "dlltool", so it can be a program name with args.
11819set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011821$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011822if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011823 $as_echo_n "(cached) " >&6
11824else
11825 if test -n "$ac_ct_DLLTOOL"; then
11826 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11827else
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011837 break 2
11838 fi
11839done
cristy8b350f62009-11-15 23:12:43 +000011840 done
cristy3ed852e2009-09-05 21:47:34 +000011841IFS=$as_save_IFS
11842
11843fi
11844fi
11845ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11846if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011848$as_echo "$ac_ct_DLLTOOL" >&6; }
11849else
cristy8b350f62009-11-15 23:12:43 +000011850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011851$as_echo "no" >&6; }
11852fi
11853
11854 if test "x$ac_ct_DLLTOOL" = x; then
11855 DLLTOOL="false"
11856 else
11857 case $cross_compiling:$ac_tool_warned in
11858yes:)
cristy8b350f62009-11-15 23:12:43 +000011859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11861ac_tool_warned=yes ;;
11862esac
11863 DLLTOOL=$ac_ct_DLLTOOL
11864 fi
11865else
11866 DLLTOOL="$ac_cv_prog_DLLTOOL"
11867fi
11868
11869 if test -n "$ac_tool_prefix"; then
11870 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11871set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011873$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011874if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011875 $as_echo_n "(cached) " >&6
11876else
11877 if test -n "$OBJDUMP"; then
11878 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11879else
11880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881for as_dir in $PATH
11882do
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011889 break 2
11890 fi
11891done
cristy8b350f62009-11-15 23:12:43 +000011892 done
cristy3ed852e2009-09-05 21:47:34 +000011893IFS=$as_save_IFS
11894
11895fi
11896fi
11897OBJDUMP=$ac_cv_prog_OBJDUMP
11898if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011900$as_echo "$OBJDUMP" >&6; }
11901else
cristy8b350f62009-11-15 23:12:43 +000011902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011903$as_echo "no" >&6; }
11904fi
11905
11906
11907fi
11908if test -z "$ac_cv_prog_OBJDUMP"; then
11909 ac_ct_OBJDUMP=$OBJDUMP
11910 # Extract the first word of "objdump", so it can be a program name with args.
11911set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011913$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011914if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011915 $as_echo_n "(cached) " >&6
11916else
11917 if test -n "$ac_ct_OBJDUMP"; then
11918 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11919else
11920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921for as_dir in $PATH
11922do
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11927 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011929 break 2
11930 fi
11931done
cristy8b350f62009-11-15 23:12:43 +000011932 done
cristy3ed852e2009-09-05 21:47:34 +000011933IFS=$as_save_IFS
11934
11935fi
11936fi
11937ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11938if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011940$as_echo "$ac_ct_OBJDUMP" >&6; }
11941else
cristy8b350f62009-11-15 23:12:43 +000011942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011943$as_echo "no" >&6; }
11944fi
11945
11946 if test "x$ac_ct_OBJDUMP" = x; then
11947 OBJDUMP="false"
11948 else
11949 case $cross_compiling:$ac_tool_warned in
11950yes:)
cristy8b350f62009-11-15 23:12:43 +000011951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11953ac_tool_warned=yes ;;
11954esac
11955 OBJDUMP=$ac_ct_OBJDUMP
11956 fi
11957else
11958 OBJDUMP="$ac_cv_prog_OBJDUMP"
11959fi
11960
11961 ;;
11962esac
11963
11964test -z "$AS" && AS=as
11965
11966
11967
11968
11969
11970test -z "$DLLTOOL" && DLLTOOL=dlltool
11971
11972
11973
11974
11975
11976test -z "$OBJDUMP" && OBJDUMP=objdump
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011987if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011988 enableval=$enable_shared; p=${PACKAGE-default}
11989 case $enableval in
11990 yes) enable_shared=yes ;;
11991 no) enable_shared=no ;;
11992 *)
11993 enable_shared=no
11994 # Look at the argument we got. We use all the common list separators.
11995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11996 for pkg in $enableval; do
11997 IFS="$lt_save_ifs"
11998 if test "X$pkg" = "X$p"; then
11999 enable_shared=yes
12000 fi
12001 done
12002 IFS="$lt_save_ifs"
12003 ;;
12004 esac
12005else
12006 enable_shared=yes
12007fi
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012018if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012019 enableval=$enable_static; p=${PACKAGE-default}
12020 case $enableval in
12021 yes) enable_static=yes ;;
12022 no) enable_static=no ;;
12023 *)
12024 enable_static=no
12025 # Look at the argument we got. We use all the common list separators.
12026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12027 for pkg in $enableval; do
12028 IFS="$lt_save_ifs"
12029 if test "X$pkg" = "X$p"; then
12030 enable_static=yes
12031 fi
12032 done
12033 IFS="$lt_save_ifs"
12034 ;;
12035 esac
12036else
12037 enable_static=yes
12038fi
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012050if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012051 withval=$with_pic; pic_mode="$withval"
12052else
12053 pic_mode=default
12054fi
12055
12056
12057test -z "$pic_mode" && pic_mode=default
12058
12059
12060
12061
12062
12063
12064
12065 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012066if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012067 enableval=$enable_fast_install; p=${PACKAGE-default}
12068 case $enableval in
12069 yes) enable_fast_install=yes ;;
12070 no) enable_fast_install=no ;;
12071 *)
12072 enable_fast_install=no
12073 # Look at the argument we got. We use all the common list separators.
12074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12075 for pkg in $enableval; do
12076 IFS="$lt_save_ifs"
12077 if test "X$pkg" = "X$p"; then
12078 enable_fast_install=yes
12079 fi
12080 done
12081 IFS="$lt_save_ifs"
12082 ;;
12083 esac
12084else
12085 enable_fast_install=yes
12086fi
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098# This can be used to rebuild libtool when needed
12099LIBTOOL_DEPS="$ltmain"
12100
12101# Always use our own libtool.
12102LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128test -z "$LN_S" && LN_S="ln -s"
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143if test -n "${ZSH_VERSION+set}" ; then
12144 setopt NO_GLOB_SUBST
12145fi
12146
cristy8b350f62009-11-15 23:12:43 +000012147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012148$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012149if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012150 $as_echo_n "(cached) " >&6
12151else
12152 rm -f .libs 2>/dev/null
12153mkdir .libs 2>/dev/null
12154if test -d .libs; then
12155 lt_cv_objdir=.libs
12156else
12157 # MS-DOS does not allow filenames that begin with a dot.
12158 lt_cv_objdir=_libs
12159fi
12160rmdir .libs 2>/dev/null
12161fi
cristy8b350f62009-11-15 23:12:43 +000012162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012163$as_echo "$lt_cv_objdir" >&6; }
12164objdir=$lt_cv_objdir
12165
12166
12167
12168
12169
12170cat >>confdefs.h <<_ACEOF
12171#define LT_OBJDIR "$lt_cv_objdir/"
12172_ACEOF
12173
12174
12175
12176
cristy18304f92009-11-22 15:48:26 +000012177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
cristy3ed852e2009-09-05 21:47:34 +000012190case $host_os in
12191aix3*)
12192 # AIX sometimes has problems with the GCC collect2 program. For some
12193 # reason, if we set the COLLECT_NAMES environment variable, the problems
12194 # vanish in a puff of smoke.
12195 if test "X${COLLECT_NAMES+set}" != Xset; then
12196 COLLECT_NAMES=
12197 export COLLECT_NAMES
12198 fi
12199 ;;
12200esac
12201
cristy18304f92009-11-22 15:48:26 +000012202# Sed substitution that helps us do robust quoting. It backslashifies
12203# metacharacters that are still active within double-quoted strings.
12204sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12205
12206# Same as above, but do not quote variable references.
12207double_quote_subst='s/\(["`\\]\)/\\\1/g'
12208
12209# Sed substitution to delay expansion of an escaped shell variable in a
12210# double_quote_subst'ed string.
12211delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12212
12213# Sed substitution to delay expansion of an escaped single quote.
12214delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12215
12216# Sed substitution to avoid accidental globbing in evaled expressions
12217no_glob_subst='s/\*/\\\*/g'
12218
cristy3ed852e2009-09-05 21:47:34 +000012219# Global variables:
12220ofile=libtool
12221can_build_shared=yes
12222
12223# All known linkers require a `.a' archive for static linking (except MSVC,
12224# which needs '.lib').
12225libext=a
12226
12227with_gnu_ld="$lt_cv_prog_gnu_ld"
12228
12229old_CC="$CC"
12230old_CFLAGS="$CFLAGS"
12231
12232# Set sane defaults for various variables
12233test -z "$CC" && CC=cc
12234test -z "$LTCC" && LTCC=$CC
12235test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12236test -z "$LD" && LD=ld
12237test -z "$ac_objext" && ac_objext=o
12238
12239for cc_temp in $compiler""; do
12240 case $cc_temp in
12241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12243 \-*) ;;
12244 *) break;;
12245 esac
12246done
cristy18304f92009-11-22 15:48:26 +000012247cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012248
12249
12250# Only perform the check for file, if the check method requires it
12251test -z "$MAGIC_CMD" && MAGIC_CMD=file
12252case $deplibs_check_method in
12253file_magic*)
12254 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012256$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012257if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012258 $as_echo_n "(cached) " >&6
12259else
12260 case $MAGIC_CMD in
12261[\\/*] | ?:[\\/]*)
12262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12263 ;;
12264*)
12265 lt_save_MAGIC_CMD="$MAGIC_CMD"
12266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12268 for ac_dir in $ac_dummy; do
12269 IFS="$lt_save_ifs"
12270 test -z "$ac_dir" && ac_dir=.
12271 if test -f $ac_dir/${ac_tool_prefix}file; then
12272 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12273 if test -n "$file_magic_test_file"; then
12274 case $deplibs_check_method in
12275 "file_magic "*)
12276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12279 $EGREP "$file_magic_regex" > /dev/null; then
12280 :
12281 else
12282 cat <<_LT_EOF 1>&2
12283
12284*** Warning: the command libtool uses to detect shared libraries,
12285*** $file_magic_cmd, produces output that libtool cannot recognize.
12286*** The result is that libtool may fail to recognize shared libraries
12287*** as such. This will affect the creation of libtool libraries that
12288*** depend on shared libraries, but programs linked with such libtool
12289*** libraries will work regardless of this problem. Nevertheless, you
12290*** may want to report the problem to your system manager and/or to
12291*** bug-libtool@gnu.org
12292
12293_LT_EOF
12294 fi ;;
12295 esac
12296 fi
12297 break
12298 fi
12299 done
12300 IFS="$lt_save_ifs"
12301 MAGIC_CMD="$lt_save_MAGIC_CMD"
12302 ;;
12303esac
12304fi
12305
12306MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12307if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012309$as_echo "$MAGIC_CMD" >&6; }
12310else
cristy8b350f62009-11-15 23:12:43 +000012311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012312$as_echo "no" >&6; }
12313fi
12314
12315
12316
12317
12318
12319if test -z "$lt_cv_path_MAGIC_CMD"; then
12320 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012322$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012323if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012324 $as_echo_n "(cached) " >&6
12325else
12326 case $MAGIC_CMD in
12327[\\/*] | ?:[\\/]*)
12328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12329 ;;
12330*)
12331 lt_save_MAGIC_CMD="$MAGIC_CMD"
12332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12333 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12334 for ac_dir in $ac_dummy; do
12335 IFS="$lt_save_ifs"
12336 test -z "$ac_dir" && ac_dir=.
12337 if test -f $ac_dir/file; then
12338 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12339 if test -n "$file_magic_test_file"; then
12340 case $deplibs_check_method in
12341 "file_magic "*)
12342 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12344 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12345 $EGREP "$file_magic_regex" > /dev/null; then
12346 :
12347 else
12348 cat <<_LT_EOF 1>&2
12349
12350*** Warning: the command libtool uses to detect shared libraries,
12351*** $file_magic_cmd, produces output that libtool cannot recognize.
12352*** The result is that libtool may fail to recognize shared libraries
12353*** as such. This will affect the creation of libtool libraries that
12354*** depend on shared libraries, but programs linked with such libtool
12355*** libraries will work regardless of this problem. Nevertheless, you
12356*** may want to report the problem to your system manager and/or to
12357*** bug-libtool@gnu.org
12358
12359_LT_EOF
12360 fi ;;
12361 esac
12362 fi
12363 break
12364 fi
12365 done
12366 IFS="$lt_save_ifs"
12367 MAGIC_CMD="$lt_save_MAGIC_CMD"
12368 ;;
12369esac
12370fi
12371
12372MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12373if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012375$as_echo "$MAGIC_CMD" >&6; }
12376else
cristy8b350f62009-11-15 23:12:43 +000012377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012378$as_echo "no" >&6; }
12379fi
12380
12381
12382 else
12383 MAGIC_CMD=:
12384 fi
12385fi
12386
12387 fi
12388 ;;
12389esac
12390
12391# Use C for the default configuration in the libtool script
12392
12393lt_save_CC="$CC"
12394ac_ext=c
12395ac_cpp='$CPP $CPPFLAGS'
12396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399
12400
12401# Source file extension for C test sources.
12402ac_ext=c
12403
12404# Object file extension for compiled C test sources.
12405objext=o
12406objext=$objext
12407
12408# Code to be used in simple compile tests
12409lt_simple_compile_test_code="int some_variable = 0;"
12410
12411# Code to be used in simple link tests
12412lt_simple_link_test_code='int main(){return(0);}'
12413
12414
12415
12416
12417
12418
12419
12420# If no C compiler was specified, use CC.
12421LTCC=${LTCC-"$CC"}
12422
12423# If no C compiler flags were specified, use CFLAGS.
12424LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12425
12426# Allow CC to be a program name with arguments.
12427compiler=$CC
12428
12429# Save the default compiler, since it gets overwritten when the other
12430# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12431compiler_DEFAULT=$CC
12432
12433# save warnings/boilerplate of simple test code
12434ac_outfile=conftest.$ac_objext
12435echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12436eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12437_lt_compiler_boilerplate=`cat conftest.err`
12438$RM conftest*
12439
12440ac_outfile=conftest.$ac_objext
12441echo "$lt_simple_link_test_code" >conftest.$ac_ext
12442eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12443_lt_linker_boilerplate=`cat conftest.err`
12444$RM -r conftest*
12445
12446
12447## CAVEAT EMPTOR:
12448## There is no encapsulation within the following macros, do not change
12449## the running order or otherwise move them around unless you know exactly
12450## what you are doing...
12451if test -n "$compiler"; then
12452
12453lt_prog_compiler_no_builtin_flag=
12454
12455if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012456 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012457
cristy8b350f62009-11-15 23:12:43 +000012458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012459$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012460if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012461 $as_echo_n "(cached) " >&6
12462else
12463 lt_cv_prog_compiler_rtti_exceptions=no
12464 ac_outfile=conftest.$ac_objext
12465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12466 lt_compiler_flag="-fno-rtti -fno-exceptions"
12467 # Insert the option either (1) after the last *FLAGS variable, or
12468 # (2) before a word containing "conftest.", or (3) at the end.
12469 # Note that $ac_compile itself does not contain backslashes and begins
12470 # with a dollar sign (not a hyphen), so the echo should work correctly.
12471 # The option is referenced via a variable to avoid confusing sed.
12472 lt_compile=`echo "$ac_compile" | $SED \
12473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12475 -e 's:$: $lt_compiler_flag:'`
cristy735e8942010-04-02 20:32:57 +000012476 (eval echo "\"\$as_me:12476: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012477 (eval "$lt_compile" 2>conftest.err)
12478 ac_status=$?
12479 cat conftest.err >&5
cristy735e8942010-04-02 20:32:57 +000012480 echo "$as_me:12480: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012481 if (exit $ac_status) && test -s "$ac_outfile"; then
12482 # The compiler can only warn and ignore the option if not recognized
12483 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012484 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12487 lt_cv_prog_compiler_rtti_exceptions=yes
12488 fi
12489 fi
12490 $RM conftest*
12491
12492fi
cristy8b350f62009-11-15 23:12:43 +000012493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012494$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12495
12496if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12497 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12498else
12499 :
12500fi
12501
12502fi
12503
12504
12505
12506
12507
12508
12509 lt_prog_compiler_wl=
12510lt_prog_compiler_pic=
12511lt_prog_compiler_static=
12512
cristy8b350f62009-11-15 23:12:43 +000012513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012514$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12515
12516 if test "$GCC" = yes; then
12517 lt_prog_compiler_wl='-Wl,'
12518 lt_prog_compiler_static='-static'
12519
12520 case $host_os in
12521 aix*)
12522 # All AIX code is PIC.
12523 if test "$host_cpu" = ia64; then
12524 # AIX 5 now supports IA64 processor
12525 lt_prog_compiler_static='-Bstatic'
12526 fi
12527 ;;
12528
12529 amigaos*)
12530 case $host_cpu in
12531 powerpc)
12532 # see comment about AmigaOS4 .so support
12533 lt_prog_compiler_pic='-fPIC'
12534 ;;
12535 m68k)
12536 # FIXME: we need at least 68020 code to build shared libraries, but
12537 # adding the `-m68020' flag to GCC prevents building anything better,
12538 # like `-m68040'.
12539 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12540 ;;
12541 esac
12542 ;;
12543
12544 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12545 # PIC is the default for these OSes.
12546 ;;
12547
12548 mingw* | cygwin* | pw32* | os2* | cegcc*)
12549 # This hack is so that the source file can tell whether it is being
12550 # built for inclusion in a dll (and should export symbols for example).
12551 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12552 # (--disable-auto-import) libraries
12553 lt_prog_compiler_pic='-DDLL_EXPORT'
12554 ;;
12555
12556 darwin* | rhapsody*)
12557 # PIC is the default on this platform
12558 # Common symbols not allowed in MH_DYLIB files
12559 lt_prog_compiler_pic='-fno-common'
12560 ;;
12561
12562 hpux*)
12563 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12564 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12565 # sets the default TLS model and affects inlining.
12566 case $host_cpu in
12567 hppa*64*)
12568 # +Z the default
12569 ;;
12570 *)
12571 lt_prog_compiler_pic='-fPIC'
12572 ;;
12573 esac
12574 ;;
12575
12576 interix[3-9]*)
12577 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12578 # Instead, we relocate shared libraries at runtime.
12579 ;;
12580
12581 msdosdjgpp*)
12582 # Just because we use GCC doesn't mean we suddenly get shared libraries
12583 # on systems that don't support them.
12584 lt_prog_compiler_can_build_shared=no
12585 enable_shared=no
12586 ;;
12587
12588 *nto* | *qnx*)
12589 # QNX uses GNU C++, but need to define -shared option too, otherwise
12590 # it will coredump.
12591 lt_prog_compiler_pic='-fPIC -shared'
12592 ;;
12593
12594 sysv4*MP*)
12595 if test -d /usr/nec; then
12596 lt_prog_compiler_pic=-Kconform_pic
12597 fi
12598 ;;
12599
12600 *)
12601 lt_prog_compiler_pic='-fPIC'
12602 ;;
12603 esac
12604 else
12605 # PORTME Check for flag to pass linker flags through the system compiler.
12606 case $host_os in
12607 aix*)
12608 lt_prog_compiler_wl='-Wl,'
12609 if test "$host_cpu" = ia64; then
12610 # AIX 5 now supports IA64 processor
12611 lt_prog_compiler_static='-Bstatic'
12612 else
12613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12614 fi
12615 ;;
12616
12617 mingw* | cygwin* | pw32* | os2* | cegcc*)
12618 # This hack is so that the source file can tell whether it is being
12619 # built for inclusion in a dll (and should export symbols for example).
12620 lt_prog_compiler_pic='-DDLL_EXPORT'
12621 ;;
12622
12623 hpux9* | hpux10* | hpux11*)
12624 lt_prog_compiler_wl='-Wl,'
12625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12626 # not for PA HP-UX.
12627 case $host_cpu in
12628 hppa*64*|ia64*)
12629 # +Z the default
12630 ;;
12631 *)
12632 lt_prog_compiler_pic='+Z'
12633 ;;
12634 esac
12635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12636 lt_prog_compiler_static='${wl}-a ${wl}archive'
12637 ;;
12638
12639 irix5* | irix6* | nonstopux*)
12640 lt_prog_compiler_wl='-Wl,'
12641 # PIC (with -KPIC) is the default.
12642 lt_prog_compiler_static='-non_shared'
12643 ;;
12644
cristy18304f92009-11-22 15:48:26 +000012645 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012646 case $cc_basename in
12647 # old Intel for x86_64 which still supported -KPIC.
12648 ecc*)
12649 lt_prog_compiler_wl='-Wl,'
12650 lt_prog_compiler_pic='-KPIC'
12651 lt_prog_compiler_static='-static'
12652 ;;
12653 # icc used to be incompatible with GCC.
12654 # ICC 10 doesn't accept -KPIC any more.
12655 icc* | ifort*)
12656 lt_prog_compiler_wl='-Wl,'
12657 lt_prog_compiler_pic='-fPIC'
12658 lt_prog_compiler_static='-static'
12659 ;;
12660 # Lahey Fortran 8.1.
12661 lf95*)
12662 lt_prog_compiler_wl='-Wl,'
12663 lt_prog_compiler_pic='--shared'
12664 lt_prog_compiler_static='--static'
12665 ;;
cristy18304f92009-11-22 15:48:26 +000012666 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000012667 # Portland Group compilers (*not* the Pentium gcc compiler,
12668 # which looks to be a dead project)
12669 lt_prog_compiler_wl='-Wl,'
12670 lt_prog_compiler_pic='-fpic'
12671 lt_prog_compiler_static='-Bstatic'
12672 ;;
12673 ccc*)
12674 lt_prog_compiler_wl='-Wl,'
12675 # All Alpha code is PIC.
12676 lt_prog_compiler_static='-non_shared'
12677 ;;
cristy18304f92009-11-22 15:48:26 +000012678 xl*)
12679 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000012680 lt_prog_compiler_wl='-Wl,'
12681 lt_prog_compiler_pic='-qpic'
12682 lt_prog_compiler_static='-qstaticlink'
12683 ;;
12684 *)
12685 case `$CC -V 2>&1 | sed 5q` in
12686 *Sun\ C*)
12687 # Sun C 5.9
12688 lt_prog_compiler_pic='-KPIC'
12689 lt_prog_compiler_static='-Bstatic'
12690 lt_prog_compiler_wl='-Wl,'
12691 ;;
cristy18304f92009-11-22 15:48:26 +000012692 *Sun\ F*)
12693 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12694 lt_prog_compiler_pic='-KPIC'
12695 lt_prog_compiler_static='-Bstatic'
12696 lt_prog_compiler_wl=''
12697 ;;
cristy3ed852e2009-09-05 21:47:34 +000012698 esac
12699 ;;
12700 esac
12701 ;;
12702
12703 newsos6)
12704 lt_prog_compiler_pic='-KPIC'
12705 lt_prog_compiler_static='-Bstatic'
12706 ;;
12707
12708 *nto* | *qnx*)
12709 # QNX uses GNU C++, but need to define -shared option too, otherwise
12710 # it will coredump.
12711 lt_prog_compiler_pic='-fPIC -shared'
12712 ;;
12713
12714 osf3* | osf4* | osf5*)
12715 lt_prog_compiler_wl='-Wl,'
12716 # All OSF/1 code is PIC.
12717 lt_prog_compiler_static='-non_shared'
12718 ;;
12719
12720 rdos*)
12721 lt_prog_compiler_static='-non_shared'
12722 ;;
12723
12724 solaris*)
12725 lt_prog_compiler_pic='-KPIC'
12726 lt_prog_compiler_static='-Bstatic'
12727 case $cc_basename in
12728 f77* | f90* | f95*)
12729 lt_prog_compiler_wl='-Qoption ld ';;
12730 *)
12731 lt_prog_compiler_wl='-Wl,';;
12732 esac
12733 ;;
12734
12735 sunos4*)
12736 lt_prog_compiler_wl='-Qoption ld '
12737 lt_prog_compiler_pic='-PIC'
12738 lt_prog_compiler_static='-Bstatic'
12739 ;;
12740
12741 sysv4 | sysv4.2uw2* | sysv4.3*)
12742 lt_prog_compiler_wl='-Wl,'
12743 lt_prog_compiler_pic='-KPIC'
12744 lt_prog_compiler_static='-Bstatic'
12745 ;;
12746
12747 sysv4*MP*)
12748 if test -d /usr/nec ;then
12749 lt_prog_compiler_pic='-Kconform_pic'
12750 lt_prog_compiler_static='-Bstatic'
12751 fi
12752 ;;
12753
12754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12755 lt_prog_compiler_wl='-Wl,'
12756 lt_prog_compiler_pic='-KPIC'
12757 lt_prog_compiler_static='-Bstatic'
12758 ;;
12759
12760 unicos*)
12761 lt_prog_compiler_wl='-Wl,'
12762 lt_prog_compiler_can_build_shared=no
12763 ;;
12764
12765 uts4*)
12766 lt_prog_compiler_pic='-pic'
12767 lt_prog_compiler_static='-Bstatic'
12768 ;;
12769
12770 *)
12771 lt_prog_compiler_can_build_shared=no
12772 ;;
12773 esac
12774 fi
12775
12776case $host_os in
12777 # For platforms which do not support PIC, -DPIC is meaningless:
12778 *djgpp*)
12779 lt_prog_compiler_pic=
12780 ;;
12781 *)
12782 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12783 ;;
12784esac
cristy8b350f62009-11-15 23:12:43 +000012785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012786$as_echo "$lt_prog_compiler_pic" >&6; }
12787
12788
12789
12790
12791
12792
12793#
12794# Check to make sure the PIC flag actually works.
12795#
12796if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012798$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012799if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012800 $as_echo_n "(cached) " >&6
12801else
12802 lt_cv_prog_compiler_pic_works=no
12803 ac_outfile=conftest.$ac_objext
12804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12806 # Insert the option either (1) after the last *FLAGS variable, or
12807 # (2) before a word containing "conftest.", or (3) at the end.
12808 # Note that $ac_compile itself does not contain backslashes and begins
12809 # with a dollar sign (not a hyphen), so the echo should work correctly.
12810 # The option is referenced via a variable to avoid confusing sed.
12811 lt_compile=`echo "$ac_compile" | $SED \
12812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12814 -e 's:$: $lt_compiler_flag:'`
cristy735e8942010-04-02 20:32:57 +000012815 (eval echo "\"\$as_me:12815: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012816 (eval "$lt_compile" 2>conftest.err)
12817 ac_status=$?
12818 cat conftest.err >&5
cristy735e8942010-04-02 20:32:57 +000012819 echo "$as_me:12819: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012820 if (exit $ac_status) && test -s "$ac_outfile"; then
12821 # The compiler can only warn and ignore the option if not recognized
12822 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012823 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12826 lt_cv_prog_compiler_pic_works=yes
12827 fi
12828 fi
12829 $RM conftest*
12830
12831fi
cristy8b350f62009-11-15 23:12:43 +000012832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012833$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12834
12835if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12836 case $lt_prog_compiler_pic in
12837 "" | " "*) ;;
12838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12839 esac
12840else
12841 lt_prog_compiler_pic=
12842 lt_prog_compiler_can_build_shared=no
12843fi
12844
12845fi
12846
12847
12848
12849
12850
12851
12852#
12853# Check to make sure the static flag actually works.
12854#
12855wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012857$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012858if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012859 $as_echo_n "(cached) " >&6
12860else
12861 lt_cv_prog_compiler_static_works=no
12862 save_LDFLAGS="$LDFLAGS"
12863 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12864 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12866 # The linker can only warn and ignore the option if not recognized
12867 # So say no if there are warnings
12868 if test -s conftest.err; then
12869 # Append any errors to the config.log.
12870 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000012871 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12873 if diff conftest.exp conftest.er2 >/dev/null; then
12874 lt_cv_prog_compiler_static_works=yes
12875 fi
12876 else
12877 lt_cv_prog_compiler_static_works=yes
12878 fi
12879 fi
12880 $RM -r conftest*
12881 LDFLAGS="$save_LDFLAGS"
12882
12883fi
cristy8b350f62009-11-15 23:12:43 +000012884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012885$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12886
12887if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12888 :
12889else
12890 lt_prog_compiler_static=
12891fi
12892
12893
12894
12895
12896
12897
12898
cristy8b350f62009-11-15 23:12:43 +000012899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012900$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012901if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012902 $as_echo_n "(cached) " >&6
12903else
12904 lt_cv_prog_compiler_c_o=no
12905 $RM -r conftest 2>/dev/null
12906 mkdir conftest
12907 cd conftest
12908 mkdir out
12909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12910
12911 lt_compiler_flag="-o out/conftest2.$ac_objext"
12912 # Insert the option either (1) after the last *FLAGS variable, or
12913 # (2) before a word containing "conftest.", or (3) at the end.
12914 # Note that $ac_compile itself does not contain backslashes and begins
12915 # with a dollar sign (not a hyphen), so the echo should work correctly.
12916 lt_compile=`echo "$ac_compile" | $SED \
12917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12919 -e 's:$: $lt_compiler_flag:'`
cristy735e8942010-04-02 20:32:57 +000012920 (eval echo "\"\$as_me:12920: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012921 (eval "$lt_compile" 2>out/conftest.err)
12922 ac_status=$?
12923 cat out/conftest.err >&5
cristy735e8942010-04-02 20:32:57 +000012924 echo "$as_me:12924: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012925 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12926 then
12927 # The compiler can only warn and ignore the option if not recognized
12928 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012929 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012930 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12931 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12932 lt_cv_prog_compiler_c_o=yes
12933 fi
12934 fi
12935 chmod u+w . 2>&5
12936 $RM conftest*
12937 # SGI C++ compiler will create directory out/ii_files/ for
12938 # template instantiation
12939 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12940 $RM out/* && rmdir out
12941 cd ..
12942 $RM -r conftest
12943 $RM conftest*
12944
12945fi
cristy8b350f62009-11-15 23:12:43 +000012946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012947$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12948
12949
12950
12951
12952
12953
cristy8b350f62009-11-15 23:12:43 +000012954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012955$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012956if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012957 $as_echo_n "(cached) " >&6
12958else
12959 lt_cv_prog_compiler_c_o=no
12960 $RM -r conftest 2>/dev/null
12961 mkdir conftest
12962 cd conftest
12963 mkdir out
12964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12965
12966 lt_compiler_flag="-o out/conftest2.$ac_objext"
12967 # Insert the option either (1) after the last *FLAGS variable, or
12968 # (2) before a word containing "conftest.", or (3) at the end.
12969 # Note that $ac_compile itself does not contain backslashes and begins
12970 # with a dollar sign (not a hyphen), so the echo should work correctly.
12971 lt_compile=`echo "$ac_compile" | $SED \
12972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12974 -e 's:$: $lt_compiler_flag:'`
cristy735e8942010-04-02 20:32:57 +000012975 (eval echo "\"\$as_me:12975: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012976 (eval "$lt_compile" 2>out/conftest.err)
12977 ac_status=$?
12978 cat out/conftest.err >&5
cristy735e8942010-04-02 20:32:57 +000012979 echo "$as_me:12979: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12981 then
12982 # The compiler can only warn and ignore the option if not recognized
12983 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012984 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12987 lt_cv_prog_compiler_c_o=yes
12988 fi
12989 fi
12990 chmod u+w . 2>&5
12991 $RM conftest*
12992 # SGI C++ compiler will create directory out/ii_files/ for
12993 # template instantiation
12994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12995 $RM out/* && rmdir out
12996 cd ..
12997 $RM -r conftest
12998 $RM conftest*
12999
13000fi
cristy8b350f62009-11-15 23:12:43 +000013001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013002$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13003
13004
13005
13006
13007hard_links="nottested"
13008if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13009 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013011$as_echo_n "checking if we can lock with hard links... " >&6; }
13012 hard_links=yes
13013 $RM conftest*
13014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13015 touch conftest.a
13016 ln conftest.a conftest.b 2>&5 || hard_links=no
13017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013019$as_echo "$hard_links" >&6; }
13020 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013021 { $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 +000013022$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13023 need_locks=warn
13024 fi
13025else
13026 need_locks=no
13027fi
13028
13029
13030
13031
13032
13033
cristy8b350f62009-11-15 23:12:43 +000013034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013035$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13036
13037 runpath_var=
13038 allow_undefined_flag=
13039 always_export_symbols=no
13040 archive_cmds=
13041 archive_expsym_cmds=
13042 compiler_needs_object=no
13043 enable_shared_with_static_runtimes=no
13044 export_dynamic_flag_spec=
13045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13046 hardcode_automatic=no
13047 hardcode_direct=no
13048 hardcode_direct_absolute=no
13049 hardcode_libdir_flag_spec=
13050 hardcode_libdir_flag_spec_ld=
13051 hardcode_libdir_separator=
13052 hardcode_minus_L=no
13053 hardcode_shlibpath_var=unsupported
13054 inherit_rpath=no
13055 link_all_deplibs=unknown
13056 module_cmds=
13057 module_expsym_cmds=
13058 old_archive_from_new_cmds=
13059 old_archive_from_expsyms_cmds=
13060 thread_safe_flag_spec=
13061 whole_archive_flag_spec=
13062 # include_expsyms should be a list of space-separated symbols to be *always*
13063 # included in the symbol list
13064 include_expsyms=
13065 # exclude_expsyms can be an extended regexp of symbols to exclude
13066 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13067 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13068 # as well as any symbol that contains `d'.
13069 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13071 # platforms (ab)use it in PIC code, but their linkers get confused if
13072 # the symbol is explicitly referenced. Since portable code cannot
13073 # rely on this symbol name, it's probably fine to never include it in
13074 # preloaded symbol tables.
13075 # Exclude shared library initialization/finalization symbols.
13076 extract_expsyms_cmds=
13077
13078 case $host_os in
13079 cygwin* | mingw* | pw32* | cegcc*)
13080 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13081 # When not using gcc, we currently assume that we are using
13082 # Microsoft Visual C++.
13083 if test "$GCC" != yes; then
13084 with_gnu_ld=no
13085 fi
13086 ;;
13087 interix*)
13088 # we just hope/assume this is gcc and not c89 (= MSVC++)
13089 with_gnu_ld=yes
13090 ;;
13091 openbsd*)
13092 with_gnu_ld=no
13093 ;;
13094 esac
13095
13096 ld_shlibs=yes
13097 if test "$with_gnu_ld" = yes; then
13098 # If archive_cmds runs LD, not CC, wlarc should be empty
13099 wlarc='${wl}'
13100
13101 # Set some defaults for GNU ld with shared library support. These
13102 # are reset later if shared libraries are not supported. Putting them
13103 # here allows them to be overridden if necessary.
13104 runpath_var=LD_RUN_PATH
13105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13106 export_dynamic_flag_spec='${wl}--export-dynamic'
13107 # ancient GNU ld didn't support --whole-archive et. al.
13108 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13109 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13110 else
13111 whole_archive_flag_spec=
13112 fi
13113 supports_anon_versioning=no
13114 case `$LD -v 2>&1` in
13115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13118 *\ 2.11.*) ;; # other 2.11 versions
13119 *) supports_anon_versioning=yes ;;
13120 esac
13121
13122 # See if GNU ld supports shared libraries.
13123 case $host_os in
13124 aix[3-9]*)
13125 # On AIX/PPC, the GNU linker is very broken
13126 if test "$host_cpu" != ia64; then
13127 ld_shlibs=no
13128 cat <<_LT_EOF 1>&2
13129
cristy18304f92009-11-22 15:48:26 +000013130*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013131*** to be unable to reliably create shared libraries on AIX.
13132*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013133*** really care for shared libraries, you may want to modify your PATH
13134*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013135
13136_LT_EOF
13137 fi
13138 ;;
13139
13140 amigaos*)
13141 case $host_cpu in
13142 powerpc)
13143 # see comment about AmigaOS4 .so support
13144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13145 archive_expsym_cmds=''
13146 ;;
13147 m68k)
13148 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)'
13149 hardcode_libdir_flag_spec='-L$libdir'
13150 hardcode_minus_L=yes
13151 ;;
13152 esac
13153 ;;
13154
13155 beos*)
13156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13157 allow_undefined_flag=unsupported
13158 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13159 # support --undefined. This deserves some investigation. FIXME
13160 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161 else
13162 ld_shlibs=no
13163 fi
13164 ;;
13165
13166 cygwin* | mingw* | pw32* | cegcc*)
13167 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13168 # as there is no search path for DLLs.
13169 hardcode_libdir_flag_spec='-L$libdir'
13170 allow_undefined_flag=unsupported
13171 always_export_symbols=no
13172 enable_shared_with_static_runtimes=yes
13173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13174
13175 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13177 # If the export-symbols file already is a .def file (1st line
13178 # is EXPORTS), use it as is; otherwise, prepend...
13179 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13180 cp $export_symbols $output_objdir/$soname.def;
13181 else
13182 echo EXPORTS > $output_objdir/$soname.def;
13183 cat $export_symbols >> $output_objdir/$soname.def;
13184 fi~
13185 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13186 else
13187 ld_shlibs=no
13188 fi
13189 ;;
13190
13191 interix[3-9]*)
13192 hardcode_direct=no
13193 hardcode_shlibpath_var=no
13194 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13195 export_dynamic_flag_spec='${wl}-E'
13196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13197 # Instead, shared libraries are loaded at an image base (0x10000000 by
13198 # default) and relocated if they conflict, which is a slow very memory
13199 # consuming and fragmenting process. To avoid this, we pick a random,
13200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13201 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13203 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'
13204 ;;
13205
cristy18304f92009-11-22 15:48:26 +000013206 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013207 tmp_diet=no
13208 if test "$host_os" = linux-dietlibc; then
13209 case $cc_basename in
13210 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13211 esac
13212 fi
13213 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13214 && test "$tmp_diet" = no
13215 then
13216 tmp_addflag=
13217 tmp_sharedflag='-shared'
13218 case $cc_basename,$host_cpu in
13219 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013220 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 +000013221 tmp_addflag=' $pic_flag'
13222 ;;
cristy18304f92009-11-22 15:48:26 +000013223 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13224 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 +000013225 tmp_addflag=' $pic_flag -Mnomain' ;;
13226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13227 tmp_addflag=' -i_dynamic' ;;
13228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13229 tmp_addflag=' -i_dynamic -nofor_main' ;;
13230 ifc* | ifort*) # Intel Fortran compiler
13231 tmp_addflag=' -nofor_main' ;;
13232 lf95*) # Lahey Fortran 8.1
13233 whole_archive_flag_spec=
13234 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013235 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013236 tmp_sharedflag='-qmkshrobj'
13237 tmp_addflag= ;;
13238 esac
13239 case `$CC -V 2>&1 | sed 5q` in
13240 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013241 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 +000013242 compiler_needs_object=yes
13243 tmp_sharedflag='-G' ;;
13244 *Sun\ F*) # Sun Fortran 8.3
13245 tmp_sharedflag='-G' ;;
13246 esac
13247 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13248
13249 if test "x$supports_anon_versioning" = xyes; then
13250 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13252 echo "local: *; };" >> $output_objdir/$libname.ver~
13253 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13254 fi
13255
13256 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013257 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013258 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13259 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13260 hardcode_libdir_flag_spec=
13261 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13262 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13263 if test "x$supports_anon_versioning" = xyes; then
13264 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13266 echo "local: *; };" >> $output_objdir/$libname.ver~
13267 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13268 fi
13269 ;;
13270 esac
13271 else
13272 ld_shlibs=no
13273 fi
13274 ;;
13275
13276 netbsd*)
13277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13278 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13279 wlarc=
13280 else
13281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13283 fi
13284 ;;
13285
13286 solaris*)
13287 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13288 ld_shlibs=no
13289 cat <<_LT_EOF 1>&2
13290
13291*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13292*** create shared libraries on Solaris systems. Therefore, libtool
13293*** is disabling shared libraries support. We urge you to upgrade GNU
13294*** binutils to release 2.9.1 or newer. Another option is to modify
13295*** your PATH or compiler configuration so that the native linker is
13296*** used, and then restart.
13297
13298_LT_EOF
13299 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13302 else
13303 ld_shlibs=no
13304 fi
13305 ;;
13306
13307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13308 case `$LD -v 2>&1` in
13309 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13310 ld_shlibs=no
13311 cat <<_LT_EOF 1>&2
13312
13313*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13314*** reliably create shared libraries on SCO systems. Therefore, libtool
13315*** is disabling shared libraries support. We urge you to upgrade GNU
13316*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13317*** your PATH or compiler configuration so that the native linker is
13318*** used, and then restart.
13319
13320_LT_EOF
13321 ;;
13322 *)
13323 # For security reasons, it is highly recommended that you always
13324 # use absolute paths for naming shared libraries, and exclude the
13325 # DT_RUNPATH tag from executables and libraries. But doing so
13326 # requires that you compile everything twice, which is a pain.
13327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13331 else
13332 ld_shlibs=no
13333 fi
13334 ;;
13335 esac
13336 ;;
13337
13338 sunos4*)
13339 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13340 wlarc=
13341 hardcode_direct=yes
13342 hardcode_shlibpath_var=no
13343 ;;
13344
13345 *)
13346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13349 else
13350 ld_shlibs=no
13351 fi
13352 ;;
13353 esac
13354
13355 if test "$ld_shlibs" = no; then
13356 runpath_var=
13357 hardcode_libdir_flag_spec=
13358 export_dynamic_flag_spec=
13359 whole_archive_flag_spec=
13360 fi
13361 else
13362 # PORTME fill in a description of your system's linker (not GNU ld)
13363 case $host_os in
13364 aix3*)
13365 allow_undefined_flag=unsupported
13366 always_export_symbols=yes
13367 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'
13368 # Note: this linker hardcodes the directories in LIBPATH if there
13369 # are no directories specified by -L.
13370 hardcode_minus_L=yes
13371 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13372 # Neither direct hardcoding nor static linking is supported with a
13373 # broken collect2.
13374 hardcode_direct=unsupported
13375 fi
13376 ;;
13377
13378 aix[4-9]*)
13379 if test "$host_cpu" = ia64; then
13380 # On IA64, the linker does run time linking by default, so we don't
13381 # have to do anything special.
13382 aix_use_runtimelinking=no
13383 exp_sym_flag='-Bexport'
13384 no_entry_flag=""
13385 else
13386 # If we're using GNU nm, then we don't want the "-C" option.
13387 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13388 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013389 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 +000013390 else
13391 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'
13392 fi
13393 aix_use_runtimelinking=no
13394
13395 # Test if we are trying to use run time linking or normal
13396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13397 # need to do runtime linking.
13398 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13399 for ld_flag in $LDFLAGS; do
13400 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13401 aix_use_runtimelinking=yes
13402 break
13403 fi
13404 done
13405 ;;
13406 esac
13407
13408 exp_sym_flag='-bexport'
13409 no_entry_flag='-bnoentry'
13410 fi
13411
13412 # When large executables or shared objects are built, AIX ld can
13413 # have problems creating the table of contents. If linking a library
13414 # or program results in "error TOC overflow" add -mminimal-toc to
13415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13417
13418 archive_cmds=''
13419 hardcode_direct=yes
13420 hardcode_direct_absolute=yes
13421 hardcode_libdir_separator=':'
13422 link_all_deplibs=yes
13423 file_list_spec='${wl}-f,'
13424
13425 if test "$GCC" = yes; then
13426 case $host_os in aix4.[012]|aix4.[012].*)
13427 # We only want to do this on AIX 4.2 and lower, the check
13428 # below for broken collect2 doesn't work under 4.3+
13429 collect2name=`${CC} -print-prog-name=collect2`
13430 if test -f "$collect2name" &&
13431 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13432 then
13433 # We have reworked collect2
13434 :
13435 else
13436 # We have old collect2
13437 hardcode_direct=unsupported
13438 # It fails to find uninstalled libraries when the uninstalled
13439 # path is not listed in the libpath. Setting hardcode_minus_L
13440 # to unsupported forces relinking
13441 hardcode_minus_L=yes
13442 hardcode_libdir_flag_spec='-L$libdir'
13443 hardcode_libdir_separator=
13444 fi
13445 ;;
13446 esac
13447 shared_flag='-shared'
13448 if test "$aix_use_runtimelinking" = yes; then
13449 shared_flag="$shared_flag "'${wl}-G'
13450 fi
13451 else
13452 # not using gcc
13453 if test "$host_cpu" = ia64; then
13454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13455 # chokes on -Wl,-G. The following line is correct:
13456 shared_flag='-G'
13457 else
13458 if test "$aix_use_runtimelinking" = yes; then
13459 shared_flag='${wl}-G'
13460 else
13461 shared_flag='${wl}-bM:SRE'
13462 fi
13463 fi
13464 fi
13465
13466 export_dynamic_flag_spec='${wl}-bexpall'
13467 # It seems that -bexpall does not export symbols beginning with
13468 # underscore (_), so it is better to generate a list of symbols to export.
13469 always_export_symbols=yes
13470 if test "$aix_use_runtimelinking" = yes; then
13471 # Warning - without using the other runtime loading flags (-brtl),
13472 # -berok will link without error, but may produce a broken library.
13473 allow_undefined_flag='-berok'
13474 # Determine the default libpath from the value encoded in an
13475 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013477/* end confdefs.h. */
13478
13479int
13480main ()
13481{
13482
13483 ;
13484 return 0;
13485}
13486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013487if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013488
13489lt_aix_libpath_sed='
13490 /Import File Strings/,/^$/ {
13491 /^0/ {
13492 s/^0 *\(.*\)$/\1/
13493 p
13494 }
13495 }'
13496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13497# Check for a 64-bit object if we didn't find anything.
13498if test -z "$aix_libpath"; then
13499 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13500fi
cristy3ed852e2009-09-05 21:47:34 +000013501fi
cristy8b350f62009-11-15 23:12:43 +000013502rm -f core conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505
13506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000013507 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 +000013508 else
13509 if test "$host_cpu" = ia64; then
13510 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13511 allow_undefined_flag="-z nodefs"
13512 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"
13513 else
13514 # Determine the default libpath from the value encoded in an
13515 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013517/* end confdefs.h. */
13518
13519int
13520main ()
13521{
13522
13523 ;
13524 return 0;
13525}
13526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013527if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013528
13529lt_aix_libpath_sed='
13530 /Import File Strings/,/^$/ {
13531 /^0/ {
13532 s/^0 *\(.*\)$/\1/
13533 p
13534 }
13535 }'
13536aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13537# Check for a 64-bit object if we didn't find anything.
13538if test -z "$aix_libpath"; then
13539 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13540fi
cristy3ed852e2009-09-05 21:47:34 +000013541fi
cristy8b350f62009-11-15 23:12:43 +000013542rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013544if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13545
13546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13547 # Warning - without using the other run time loading flags,
13548 # -berok will link without error, but may produce a broken library.
13549 no_undefined_flag=' ${wl}-bernotok'
13550 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000013551 # Exported symbols can be pulled into shared objects from archives
13552 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000013553 archive_cmds_need_lc=yes
13554 # This is similar to how AIX traditionally builds its shared libraries.
13555 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'
13556 fi
13557 fi
13558 ;;
13559
13560 amigaos*)
13561 case $host_cpu in
13562 powerpc)
13563 # see comment about AmigaOS4 .so support
13564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13565 archive_expsym_cmds=''
13566 ;;
13567 m68k)
13568 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)'
13569 hardcode_libdir_flag_spec='-L$libdir'
13570 hardcode_minus_L=yes
13571 ;;
13572 esac
13573 ;;
13574
13575 bsdi[45]*)
13576 export_dynamic_flag_spec=-rdynamic
13577 ;;
13578
13579 cygwin* | mingw* | pw32* | cegcc*)
13580 # When not using gcc, we currently assume that we are using
13581 # Microsoft Visual C++.
13582 # hardcode_libdir_flag_spec is actually meaningless, as there is
13583 # no search path for DLLs.
13584 hardcode_libdir_flag_spec=' '
13585 allow_undefined_flag=unsupported
13586 # Tell ltmain to make .lib files, not .a files.
13587 libext=lib
13588 # Tell ltmain to make .dll files, not .so files.
13589 shrext_cmds=".dll"
13590 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000013591 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013592 # The linker will automatically build a .lib file if we build a DLL.
13593 old_archive_from_new_cmds='true'
13594 # FIXME: Should let the user specify the lib program.
13595 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13596 fix_srcfile_path='`cygpath -w "$srcfile"`'
13597 enable_shared_with_static_runtimes=yes
13598 ;;
13599
13600 darwin* | rhapsody*)
13601
13602
13603 archive_cmds_need_lc=no
13604 hardcode_direct=no
13605 hardcode_automatic=yes
13606 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000013607 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000013608 link_all_deplibs=yes
13609 allow_undefined_flag="$_lt_dar_allow_undefined"
13610 case $cc_basename in
13611 ifort*) _lt_dar_can_shared=yes ;;
13612 *) _lt_dar_can_shared=$GCC ;;
13613 esac
13614 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000013615 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000013616 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13617 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13618 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}"
13619 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}"
13620
13621 else
13622 ld_shlibs=no
13623 fi
13624
13625 ;;
13626
13627 dgux*)
13628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13629 hardcode_libdir_flag_spec='-L$libdir'
13630 hardcode_shlibpath_var=no
13631 ;;
13632
13633 freebsd1*)
13634 ld_shlibs=no
13635 ;;
13636
13637 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13638 # support. Future versions do this automatically, but an explicit c++rt0.o
13639 # does not break anything, and helps significantly (at the cost of a little
13640 # extra space).
13641 freebsd2.2*)
13642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13643 hardcode_libdir_flag_spec='-R$libdir'
13644 hardcode_direct=yes
13645 hardcode_shlibpath_var=no
13646 ;;
13647
13648 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13649 freebsd2*)
13650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13651 hardcode_direct=yes
13652 hardcode_minus_L=yes
13653 hardcode_shlibpath_var=no
13654 ;;
13655
13656 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13657 freebsd* | dragonfly*)
13658 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13659 hardcode_libdir_flag_spec='-R$libdir'
13660 hardcode_direct=yes
13661 hardcode_shlibpath_var=no
13662 ;;
13663
13664 hpux9*)
13665 if test "$GCC" = yes; then
13666 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'
13667 else
13668 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'
13669 fi
13670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13671 hardcode_libdir_separator=:
13672 hardcode_direct=yes
13673
13674 # hardcode_minus_L: Not really in the search PATH,
13675 # but as the default location of the library.
13676 hardcode_minus_L=yes
13677 export_dynamic_flag_spec='${wl}-E'
13678 ;;
13679
13680 hpux10*)
cristy18304f92009-11-22 15:48:26 +000013681 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13683 else
13684 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13685 fi
13686 if test "$with_gnu_ld" = no; then
13687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13688 hardcode_libdir_flag_spec_ld='+b $libdir'
13689 hardcode_libdir_separator=:
13690 hardcode_direct=yes
13691 hardcode_direct_absolute=yes
13692 export_dynamic_flag_spec='${wl}-E'
13693 # hardcode_minus_L: Not really in the search PATH,
13694 # but as the default location of the library.
13695 hardcode_minus_L=yes
13696 fi
13697 ;;
13698
13699 hpux11*)
cristy18304f92009-11-22 15:48:26 +000013700 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013701 case $host_cpu in
13702 hppa*64*)
13703 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13704 ;;
13705 ia64*)
13706 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13707 ;;
13708 *)
13709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13710 ;;
13711 esac
13712 else
13713 case $host_cpu in
13714 hppa*64*)
13715 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 ;;
13717 ia64*)
13718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13719 ;;
13720 *)
cristy18304f92009-11-22 15:48:26 +000013721 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 +000013722 ;;
13723 esac
13724 fi
13725 if test "$with_gnu_ld" = no; then
13726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13727 hardcode_libdir_separator=:
13728
13729 case $host_cpu in
13730 hppa*64*|ia64*)
13731 hardcode_direct=no
13732 hardcode_shlibpath_var=no
13733 ;;
13734 *)
13735 hardcode_direct=yes
13736 hardcode_direct_absolute=yes
13737 export_dynamic_flag_spec='${wl}-E'
13738
13739 # hardcode_minus_L: Not really in the search PATH,
13740 # but as the default location of the library.
13741 hardcode_minus_L=yes
13742 ;;
13743 esac
13744 fi
13745 ;;
13746
13747 irix5* | irix6* | nonstopux*)
13748 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000013749 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 +000013750 # Try to use the -exported_symbol ld option, if it does not
13751 # work, assume that -exports_file does not work either and
13752 # implicitly export all symbols.
13753 save_LDFLAGS="$LDFLAGS"
13754 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013757int foo(void) {}
13758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013759if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000013760 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 +000013761
cristy3ed852e2009-09-05 21:47:34 +000013762fi
cristy8b350f62009-11-15 23:12:43 +000013763rm -f core conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013765 LDFLAGS="$save_LDFLAGS"
13766 else
cristy18304f92009-11-22 15:48:26 +000013767 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'
13768 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 +000013769 fi
13770 archive_cmds_need_lc='no'
13771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13772 hardcode_libdir_separator=:
13773 inherit_rpath=yes
13774 link_all_deplibs=yes
13775 ;;
13776
13777 netbsd*)
13778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13780 else
13781 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13782 fi
13783 hardcode_libdir_flag_spec='-R$libdir'
13784 hardcode_direct=yes
13785 hardcode_shlibpath_var=no
13786 ;;
13787
13788 newsos6)
13789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13790 hardcode_direct=yes
13791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13792 hardcode_libdir_separator=:
13793 hardcode_shlibpath_var=no
13794 ;;
13795
13796 *nto* | *qnx*)
13797 ;;
13798
13799 openbsd*)
13800 if test -f /usr/libexec/ld.so; then
13801 hardcode_direct=yes
13802 hardcode_shlibpath_var=no
13803 hardcode_direct_absolute=yes
13804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13806 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13807 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13808 export_dynamic_flag_spec='${wl}-E'
13809 else
13810 case $host_os in
13811 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13813 hardcode_libdir_flag_spec='-R$libdir'
13814 ;;
13815 *)
13816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13818 ;;
13819 esac
13820 fi
13821 else
13822 ld_shlibs=no
13823 fi
13824 ;;
13825
13826 os2*)
13827 hardcode_libdir_flag_spec='-L$libdir'
13828 hardcode_minus_L=yes
13829 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000013830 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 +000013831 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13832 ;;
13833
13834 osf3*)
13835 if test "$GCC" = yes; then
13836 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013837 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 +000013838 else
13839 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013840 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 +000013841 fi
13842 archive_cmds_need_lc='no'
13843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13844 hardcode_libdir_separator=:
13845 ;;
13846
13847 osf4* | osf5*) # as osf3* with the addition of -msym flag
13848 if test "$GCC" = yes; then
13849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013850 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 +000013851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13852 else
13853 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013854 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 +000013855 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 +000013856 $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 +000013857
13858 # Both c and cxx compiler support -rpath directly
13859 hardcode_libdir_flag_spec='-rpath $libdir'
13860 fi
13861 archive_cmds_need_lc='no'
13862 hardcode_libdir_separator=:
13863 ;;
13864
13865 solaris*)
13866 no_undefined_flag=' -z defs'
13867 if test "$GCC" = yes; then
13868 wlarc='${wl}'
13869 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13871 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13872 else
13873 case `$CC -V 2>&1` in
13874 *"Compilers 5.0"*)
13875 wlarc=''
13876 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13878 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13879 ;;
13880 *)
13881 wlarc='${wl}'
13882 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13884 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13885 ;;
13886 esac
13887 fi
13888 hardcode_libdir_flag_spec='-R$libdir'
13889 hardcode_shlibpath_var=no
13890 case $host_os in
13891 solaris2.[0-5] | solaris2.[0-5].*) ;;
13892 *)
13893 # The compiler driver will combine and reorder linker options,
13894 # but understands `-z linker_flag'. GCC discards it without `$wl',
13895 # but is careful enough not to reorder.
13896 # Supported since Solaris 2.6 (maybe 2.5.1?)
13897 if test "$GCC" = yes; then
13898 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13899 else
13900 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13901 fi
13902 ;;
13903 esac
13904 link_all_deplibs=yes
13905 ;;
13906
13907 sunos4*)
13908 if test "x$host_vendor" = xsequent; then
13909 # Use $CC to link under sequent, because it throws in some extra .o
13910 # files that make .init and .fini sections work.
13911 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13912 else
13913 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13914 fi
13915 hardcode_libdir_flag_spec='-L$libdir'
13916 hardcode_direct=yes
13917 hardcode_minus_L=yes
13918 hardcode_shlibpath_var=no
13919 ;;
13920
13921 sysv4)
13922 case $host_vendor in
13923 sni)
13924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13925 hardcode_direct=yes # is this really true???
13926 ;;
13927 siemens)
13928 ## LD is ld it makes a PLAMLIB
13929 ## CC just makes a GrossModule.
13930 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13931 reload_cmds='$CC -r -o $output$reload_objs'
13932 hardcode_direct=no
13933 ;;
13934 motorola)
13935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13936 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13937 ;;
13938 esac
13939 runpath_var='LD_RUN_PATH'
13940 hardcode_shlibpath_var=no
13941 ;;
13942
13943 sysv4.3*)
13944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13945 hardcode_shlibpath_var=no
13946 export_dynamic_flag_spec='-Bexport'
13947 ;;
13948
13949 sysv4*MP*)
13950 if test -d /usr/nec; then
13951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13952 hardcode_shlibpath_var=no
13953 runpath_var=LD_RUN_PATH
13954 hardcode_runpath_var=yes
13955 ld_shlibs=yes
13956 fi
13957 ;;
13958
13959 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13960 no_undefined_flag='${wl}-z,text'
13961 archive_cmds_need_lc=no
13962 hardcode_shlibpath_var=no
13963 runpath_var='LD_RUN_PATH'
13964
13965 if test "$GCC" = yes; then
13966 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13967 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13968 else
13969 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13970 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13971 fi
13972 ;;
13973
13974 sysv5* | sco3.2v5* | sco5v6*)
13975 # Note: We can NOT use -z defs as we might desire, because we do not
13976 # link with -lc, and that would cause any symbols used from libc to
13977 # always be unresolved, which means just about no library would
13978 # ever link correctly. If we're not using GNU ld we use -z text
13979 # though, which does catch some bad symbols but isn't as heavy-handed
13980 # as -z defs.
13981 no_undefined_flag='${wl}-z,text'
13982 allow_undefined_flag='${wl}-z,nodefs'
13983 archive_cmds_need_lc=no
13984 hardcode_shlibpath_var=no
13985 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13986 hardcode_libdir_separator=':'
13987 link_all_deplibs=yes
13988 export_dynamic_flag_spec='${wl}-Bexport'
13989 runpath_var='LD_RUN_PATH'
13990
13991 if test "$GCC" = yes; then
13992 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13993 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13994 else
13995 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13996 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13997 fi
13998 ;;
13999
14000 uts4*)
14001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14002 hardcode_libdir_flag_spec='-L$libdir'
14003 hardcode_shlibpath_var=no
14004 ;;
14005
14006 *)
14007 ld_shlibs=no
14008 ;;
14009 esac
14010
14011 if test x$host_vendor = xsni; then
14012 case $host in
14013 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14014 export_dynamic_flag_spec='${wl}-Blargedynsym'
14015 ;;
14016 esac
14017 fi
14018 fi
14019
cristy8b350f62009-11-15 23:12:43 +000014020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014021$as_echo "$ld_shlibs" >&6; }
14022test "$ld_shlibs" = no && can_build_shared=no
14023
14024with_gnu_ld=$with_gnu_ld
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040#
14041# Do we need to explicitly link libc?
14042#
14043case "x$archive_cmds_need_lc" in
14044x|xyes)
14045 # Assume -lc should be added
14046 archive_cmds_need_lc=yes
14047
14048 if test "$enable_shared" = yes && test "$GCC" = yes; then
14049 case $archive_cmds in
14050 *'~'*)
14051 # FIXME: we may have to deal with multi-command sequences.
14052 ;;
14053 '$CC '*)
14054 # Test whether the compiler implicitly links with -lc since on some
14055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14056 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014058$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014059 $RM conftest*
14060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014061
cristy18304f92009-11-22 15:48:26 +000014062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014063 (eval $ac_compile) 2>&5
14064 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014067 soname=conftest
14068 lib=conftest
14069 libobjs=conftest.$ac_objext
14070 deplibs=
14071 wl=$lt_prog_compiler_wl
14072 pic_flag=$lt_prog_compiler_pic
14073 compiler_flags=-v
14074 linker_flags=-v
14075 verstring=
14076 output_objdir=.
14077 libname=conftest
14078 lt_save_allow_undefined_flag=$allow_undefined_flag
14079 allow_undefined_flag=
14080 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 +000014081 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14082 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14084 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014085 then
14086 archive_cmds_need_lc=no
14087 else
14088 archive_cmds_need_lc=yes
14089 fi
14090 allow_undefined_flag=$lt_save_allow_undefined_flag
14091 else
14092 cat conftest.err 1>&5
14093 fi
14094 $RM conftest*
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14096$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014097 ;;
14098 esac
14099 fi
14100 ;;
14101esac
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
cristy8b350f62009-11-15 23:12:43 +000014259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014260$as_echo_n "checking dynamic linker characteristics... " >&6; }
14261
14262if test "$GCC" = yes; then
14263 case $host_os in
14264 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14265 *) lt_awk_arg="/^libraries:/" ;;
14266 esac
cristy18304f92009-11-22 15:48:26 +000014267 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14268 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014269 # if the path contains ";" then we assume it to be the separator
14270 # otherwise default to the standard path separator (i.e. ":") - it is
14271 # assumed that no part of a normal pathname contains ";" but that should
14272 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014273 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14274 else
14275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14276 fi
cristy3ed852e2009-09-05 21:47:34 +000014277 # Ok, now we have the path, separated by spaces, we can step through it
14278 # and add multilib dir if necessary.
14279 lt_tmp_lt_search_path_spec=
14280 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14281 for lt_sys_path in $lt_search_path_spec; do
14282 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14283 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14284 else
14285 test -d "$lt_sys_path" && \
14286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14287 fi
14288 done
cristy18304f92009-11-22 15:48:26 +000014289 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014290BEGIN {RS=" "; FS="/|\n";} {
14291 lt_foo="";
14292 lt_count=0;
14293 for (lt_i = NF; lt_i > 0; lt_i--) {
14294 if ($lt_i != "" && $lt_i != ".") {
14295 if ($lt_i == "..") {
14296 lt_count++;
14297 } else {
14298 if (lt_count == 0) {
14299 lt_foo="/" $lt_i lt_foo;
14300 } else {
14301 lt_count--;
14302 }
14303 }
14304 }
14305 }
14306 if (lt_foo != "") { lt_freq[lt_foo]++; }
14307 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14308}'`
cristy18304f92009-11-22 15:48:26 +000014309 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014310else
14311 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14312fi
14313library_names_spec=
14314libname_spec='lib$name'
14315soname_spec=
14316shrext_cmds=".so"
14317postinstall_cmds=
14318postuninstall_cmds=
14319finish_cmds=
14320finish_eval=
14321shlibpath_var=
14322shlibpath_overrides_runpath=unknown
14323version_type=none
14324dynamic_linker="$host_os ld.so"
14325sys_lib_dlsearch_path_spec="/lib /usr/lib"
14326need_lib_prefix=unknown
14327hardcode_into_libs=no
14328
14329# when you set need_version to no, make sure it does not cause -set_version
14330# flags to be left without arguments
14331need_version=unknown
14332
14333case $host_os in
14334aix3*)
14335 version_type=linux
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14337 shlibpath_var=LIBPATH
14338
14339 # AIX 3 has no versioning support, so we append a major version to the name.
14340 soname_spec='${libname}${release}${shared_ext}$major'
14341 ;;
14342
14343aix[4-9]*)
14344 version_type=linux
14345 need_lib_prefix=no
14346 need_version=no
14347 hardcode_into_libs=yes
14348 if test "$host_cpu" = ia64; then
14349 # AIX 5 supports IA64
14350 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 else
14353 # With GCC up to 2.95.x, collect2 would create an import file
14354 # for dependence libraries. The import file would start with
14355 # the line `#! .'. This would cause the generated library to
14356 # depend on `.', always an invalid library. This was fixed in
14357 # development snapshots of GCC prior to 3.0.
14358 case $host_os in
14359 aix4 | aix4.[01] | aix4.[01].*)
14360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14361 echo ' yes '
14362 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14363 :
14364 else
14365 can_build_shared=no
14366 fi
14367 ;;
14368 esac
14369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14370 # soname into executable. Probably we can add versioning support to
14371 # collect2, so additional links can be useful in future.
14372 if test "$aix_use_runtimelinking" = yes; then
14373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14374 # instead of lib<name>.a to let people know that these are not
14375 # typical AIX shared libraries.
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14377 else
14378 # We preserve .a as extension for shared libraries through AIX4.2
14379 # and later when we are not doing run time linking.
14380 library_names_spec='${libname}${release}.a $libname.a'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 fi
14383 shlibpath_var=LIBPATH
14384 fi
14385 ;;
14386
14387amigaos*)
14388 case $host_cpu in
14389 powerpc)
14390 # Since July 2007 AmigaOS4 officially supports .so libraries.
14391 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393 ;;
14394 m68k)
14395 library_names_spec='$libname.ixlibrary $libname.a'
14396 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014397 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 +000014398 ;;
14399 esac
14400 ;;
14401
14402beos*)
14403 library_names_spec='${libname}${shared_ext}'
14404 dynamic_linker="$host_os ld.so"
14405 shlibpath_var=LIBRARY_PATH
14406 ;;
14407
14408bsdi[45]*)
14409 version_type=linux
14410 need_version=no
14411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14412 soname_spec='${libname}${release}${shared_ext}$major'
14413 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14416 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14417 # the default ld.so.conf also contains /usr/contrib/lib and
14418 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14419 # libtool to hard-code these into programs
14420 ;;
14421
14422cygwin* | mingw* | pw32* | cegcc*)
14423 version_type=windows
14424 shrext_cmds=".dll"
14425 need_version=no
14426 need_lib_prefix=no
14427
14428 case $GCC,$host_os in
14429 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14430 library_names_spec='$libname.dll.a'
14431 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14432 postinstall_cmds='base_file=`basename \${file}`~
14433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14434 dldir=$destdir/`dirname \$dlpath`~
14435 test -d \$dldir || mkdir -p \$dldir~
14436 $install_prog $dir/$dlname \$dldir/$dlname~
14437 chmod a+x \$dldir/$dlname~
14438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14440 fi'
14441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14442 dlpath=$dir/\$dldll~
14443 $RM \$dlpath'
14444 shlibpath_overrides_runpath=yes
14445
14446 case $host_os in
14447 cygwin*)
14448 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14449 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014450 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014451 ;;
14452 mingw* | cegcc*)
14453 # MinGW DLLs use traditional 'lib' prefix
14454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014455 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14456 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14457 # It is most probably a Windows format PATH printed by
14458 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14459 # path with ; separators, and with drive letters. We can handle the
14460 # drive letters (cygwin fileutils understands them), so leave them,
14461 # especially as we might pass files found there to a mingw objdump,
14462 # which wouldn't understand a cygwinified path. Ahh.
14463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14464 else
14465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14466 fi
cristy3ed852e2009-09-05 21:47:34 +000014467 ;;
14468 pw32*)
14469 # pw32 DLLs use 'pw' prefix rather than 'lib'
14470 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14471 ;;
14472 esac
14473 ;;
14474
14475 *)
14476 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14477 ;;
14478 esac
14479 dynamic_linker='Win32 ld.exe'
14480 # FIXME: first we should search . and the directory the executable is in
14481 shlibpath_var=PATH
14482 ;;
14483
14484darwin* | rhapsody*)
14485 dynamic_linker="$host_os dyld"
14486 version_type=darwin
14487 need_lib_prefix=no
14488 need_version=no
14489 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14490 soname_spec='${libname}${release}${major}$shared_ext'
14491 shlibpath_overrides_runpath=yes
14492 shlibpath_var=DYLD_LIBRARY_PATH
14493 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14494
14495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14497 ;;
14498
14499dgux*)
14500 version_type=linux
14501 need_lib_prefix=no
14502 need_version=no
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 ;;
14507
14508freebsd1*)
14509 dynamic_linker=no
14510 ;;
14511
14512freebsd* | dragonfly*)
14513 # DragonFly does not have aout. When/if they implement a new
14514 # versioning mechanism, adjust this.
14515 if test -x /usr/bin/objformat; then
14516 objformat=`/usr/bin/objformat`
14517 else
14518 case $host_os in
14519 freebsd[123]*) objformat=aout ;;
14520 *) objformat=elf ;;
14521 esac
14522 fi
14523 version_type=freebsd-$objformat
14524 case $version_type in
14525 freebsd-elf*)
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14527 need_version=no
14528 need_lib_prefix=no
14529 ;;
14530 freebsd-*)
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14532 need_version=yes
14533 ;;
14534 esac
14535 shlibpath_var=LD_LIBRARY_PATH
14536 case $host_os in
14537 freebsd2*)
14538 shlibpath_overrides_runpath=yes
14539 ;;
14540 freebsd3.[01]* | freebsdelf3.[01]*)
14541 shlibpath_overrides_runpath=yes
14542 hardcode_into_libs=yes
14543 ;;
14544 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14545 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14546 shlibpath_overrides_runpath=no
14547 hardcode_into_libs=yes
14548 ;;
14549 *) # from 4.6 on, and DragonFly
14550 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14552 ;;
14553 esac
14554 ;;
14555
14556gnu*)
14557 version_type=linux
14558 need_lib_prefix=no
14559 need_version=no
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 hardcode_into_libs=yes
14564 ;;
14565
14566hpux9* | hpux10* | hpux11*)
14567 # Give a soname corresponding to the major version so that dld.sl refuses to
14568 # link against other versions.
14569 version_type=sunos
14570 need_lib_prefix=no
14571 need_version=no
14572 case $host_cpu in
14573 ia64*)
14574 shrext_cmds='.so'
14575 hardcode_into_libs=yes
14576 dynamic_linker="$host_os dld.so"
14577 shlibpath_var=LD_LIBRARY_PATH
14578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 if test "X$HPUX_IA64_MODE" = X32; then
14582 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14583 else
14584 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14585 fi
14586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14587 ;;
14588 hppa*64*)
14589 shrext_cmds='.sl'
14590 hardcode_into_libs=yes
14591 dynamic_linker="$host_os dld.sl"
14592 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14598 ;;
14599 *)
14600 shrext_cmds='.sl'
14601 dynamic_linker="$host_os dld.sl"
14602 shlibpath_var=SHLIB_PATH
14603 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 ;;
14607 esac
cristy18304f92009-11-22 15:48:26 +000014608 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000014609 postinstall_cmds='chmod 555 $lib'
14610 ;;
14611
14612interix[3-9]*)
14613 version_type=linux
14614 need_lib_prefix=no
14615 need_version=no
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 shlibpath_overrides_runpath=no
14621 hardcode_into_libs=yes
14622 ;;
14623
14624irix5* | irix6* | nonstopux*)
14625 case $host_os in
14626 nonstopux*) version_type=nonstopux ;;
14627 *)
14628 if test "$lt_cv_prog_gnu_ld" = yes; then
14629 version_type=linux
14630 else
14631 version_type=irix
14632 fi ;;
14633 esac
14634 need_lib_prefix=no
14635 need_version=no
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14638 case $host_os in
14639 irix5* | nonstopux*)
14640 libsuff= shlibsuff=
14641 ;;
14642 *)
14643 case $LD in # libtool.m4 will add one of these switches to LD
14644 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14645 libsuff= shlibsuff= libmagic=32-bit;;
14646 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14647 libsuff=32 shlibsuff=N32 libmagic=N32;;
14648 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14649 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14650 *) libsuff= shlibsuff= libmagic=never-match;;
14651 esac
14652 ;;
14653 esac
14654 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14655 shlibpath_overrides_runpath=no
14656 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14657 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14658 hardcode_into_libs=yes
14659 ;;
14660
14661# No shared lib support for Linux oldld, aout, or coff.
14662linux*oldld* | linux*aout* | linux*coff*)
14663 dynamic_linker=no
14664 ;;
14665
14666# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000014667linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014668 version_type=linux
14669 need_lib_prefix=no
14670 need_version=no
14671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672 soname_spec='${libname}${release}${shared_ext}$major'
14673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 shlibpath_overrides_runpath=no
14676 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000014677 save_LDFLAGS=$LDFLAGS
14678 save_libdir=$libdir
14679 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14680 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014682/* end confdefs.h. */
14683
14684int
14685main ()
14686{
14687
14688 ;
14689 return 0;
14690}
14691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014692if ac_fn_c_try_link "$LINENO"; then :
14693 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000014694 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014695fi
cristy3ed852e2009-09-05 21:47:34 +000014696fi
cristy8b350f62009-11-15 23:12:43 +000014697rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000014699 LDFLAGS=$save_LDFLAGS
14700 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000014701
14702 # This implies no fast_install, which is unacceptable.
14703 # Some rework will be needed to allow for fast_install
14704 # before this can be enabled.
14705 hardcode_into_libs=yes
14706
cristy679ed8e2009-12-05 02:37:41 +000014707 # Add ABI-specific directories to the system library path.
14708 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14709
cristy3ed852e2009-09-05 21:47:34 +000014710 # Append ld.so.conf contents to the search path
14711 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000014712 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 +000014713 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000014714 fi
14715
14716 # We used to test for /lib/ld.so.1 and disable shared libraries on
14717 # powerpc, because MkLinux only supported shared libraries with the
14718 # GNU dynamic linker. Since this was broken with cross compilers,
14719 # most powerpc-linux boxes support dynamic linking these days and
14720 # people can always --disable-shared, the test was removed, and we
14721 # assume the GNU/Linux dynamic linker is in use.
14722 dynamic_linker='GNU/Linux ld.so'
14723 ;;
14724
14725netbsd*)
14726 version_type=sunos
14727 need_lib_prefix=no
14728 need_version=no
14729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14732 dynamic_linker='NetBSD (a.out) ld.so'
14733 else
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14735 soname_spec='${libname}${release}${shared_ext}$major'
14736 dynamic_linker='NetBSD ld.elf_so'
14737 fi
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14740 hardcode_into_libs=yes
14741 ;;
14742
14743newsos6)
14744 version_type=linux
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=yes
14748 ;;
14749
14750*nto* | *qnx*)
14751 version_type=qnx
14752 need_lib_prefix=no
14753 need_version=no
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 shlibpath_overrides_runpath=no
14758 hardcode_into_libs=yes
14759 dynamic_linker='ldqnx.so'
14760 ;;
14761
14762openbsd*)
14763 version_type=sunos
14764 sys_lib_dlsearch_path_spec="/usr/lib"
14765 need_lib_prefix=no
14766 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14767 case $host_os in
14768 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14769 *) need_version=no ;;
14770 esac
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14775 case $host_os in
14776 openbsd2.[89] | openbsd2.[89].*)
14777 shlibpath_overrides_runpath=no
14778 ;;
14779 *)
14780 shlibpath_overrides_runpath=yes
14781 ;;
14782 esac
14783 else
14784 shlibpath_overrides_runpath=yes
14785 fi
14786 ;;
14787
14788os2*)
14789 libname_spec='$name'
14790 shrext_cmds=".dll"
14791 need_lib_prefix=no
14792 library_names_spec='$libname${shared_ext} $libname.a'
14793 dynamic_linker='OS/2 ld.exe'
14794 shlibpath_var=LIBPATH
14795 ;;
14796
14797osf3* | osf4* | osf5*)
14798 version_type=osf
14799 need_lib_prefix=no
14800 need_version=no
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14805 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14806 ;;
14807
14808rdos*)
14809 dynamic_linker=no
14810 ;;
14811
14812solaris*)
14813 version_type=linux
14814 need_lib_prefix=no
14815 need_version=no
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14817 soname_spec='${libname}${release}${shared_ext}$major'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=yes
14820 hardcode_into_libs=yes
14821 # ldd complains unless libraries are executable
14822 postinstall_cmds='chmod +x $lib'
14823 ;;
14824
14825sunos4*)
14826 version_type=sunos
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14828 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 shlibpath_overrides_runpath=yes
14831 if test "$with_gnu_ld" = yes; then
14832 need_lib_prefix=no
14833 fi
14834 need_version=yes
14835 ;;
14836
14837sysv4 | sysv4.3*)
14838 version_type=linux
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 case $host_vendor in
14843 sni)
14844 shlibpath_overrides_runpath=no
14845 need_lib_prefix=no
14846 runpath_var=LD_RUN_PATH
14847 ;;
14848 siemens)
14849 need_lib_prefix=no
14850 ;;
14851 motorola)
14852 need_lib_prefix=no
14853 need_version=no
14854 shlibpath_overrides_runpath=no
14855 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14856 ;;
14857 esac
14858 ;;
14859
14860sysv4*MP*)
14861 if test -d /usr/nec ;then
14862 version_type=linux
14863 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14864 soname_spec='$libname${shared_ext}.$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 fi
14867 ;;
14868
14869sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14870 version_type=freebsd-elf
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 shlibpath_overrides_runpath=yes
14877 hardcode_into_libs=yes
14878 if test "$with_gnu_ld" = yes; then
14879 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14880 else
14881 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14882 case $host_os in
14883 sco3.2v5*)
14884 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14885 ;;
14886 esac
14887 fi
14888 sys_lib_dlsearch_path_spec='/usr/lib'
14889 ;;
14890
14891tpf*)
14892 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14893 version_type=linux
14894 need_lib_prefix=no
14895 need_version=no
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=no
14899 hardcode_into_libs=yes
14900 ;;
14901
14902uts4*)
14903 version_type=linux
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 ;;
14908
14909*)
14910 dynamic_linker=no
14911 ;;
14912esac
cristy8b350f62009-11-15 23:12:43 +000014913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014914$as_echo "$dynamic_linker" >&6; }
14915test "$dynamic_linker" = no && can_build_shared=no
14916
14917variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14918if test "$GCC" = yes; then
14919 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14920fi
14921
14922if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14923 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14924fi
14925if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14926 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14927fi
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
cristy8b350f62009-11-15 23:12:43 +000015015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015016$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15017hardcode_action=
15018if test -n "$hardcode_libdir_flag_spec" ||
15019 test -n "$runpath_var" ||
15020 test "X$hardcode_automatic" = "Xyes" ; then
15021
15022 # We can hardcode non-existent directories.
15023 if test "$hardcode_direct" != no &&
15024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15025 # have to relink, otherwise we might link with an installed library
15026 # when we should be linking with a yet-to-be-installed one
15027 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15028 test "$hardcode_minus_L" != no; then
15029 # Linking always hardcodes the temporary library directory.
15030 hardcode_action=relink
15031 else
15032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15033 hardcode_action=immediate
15034 fi
15035else
15036 # We cannot hardcode anything, or else we can only hardcode existing
15037 # directories.
15038 hardcode_action=unsupported
15039fi
cristy8b350f62009-11-15 23:12:43 +000015040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015041$as_echo "$hardcode_action" >&6; }
15042
15043if test "$hardcode_action" = relink ||
15044 test "$inherit_rpath" = yes; then
15045 # Fast installation is not supported
15046 enable_fast_install=no
15047elif test "$shlibpath_overrides_runpath" = yes ||
15048 test "$enable_shared" = no; then
15049 # Fast installation is not necessary
15050 enable_fast_install=needless
15051fi
15052
15053
15054
15055
15056
15057
15058 if test "x$enable_dlopen" != xyes; then
15059 enable_dlopen=unknown
15060 enable_dlopen_self=unknown
15061 enable_dlopen_self_static=unknown
15062else
15063 lt_cv_dlopen=no
15064 lt_cv_dlopen_libs=
15065
15066 case $host_os in
15067 beos*)
15068 lt_cv_dlopen="load_add_on"
15069 lt_cv_dlopen_libs=
15070 lt_cv_dlopen_self=yes
15071 ;;
15072
15073 mingw* | pw32* | cegcc*)
15074 lt_cv_dlopen="LoadLibrary"
15075 lt_cv_dlopen_libs=
15076 ;;
15077
15078 cygwin*)
15079 lt_cv_dlopen="dlopen"
15080 lt_cv_dlopen_libs=
15081 ;;
15082
15083 darwin*)
15084 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015086$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015087if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015088 $as_echo_n "(cached) " >&6
15089else
15090 ac_check_lib_save_LIBS=$LIBS
15091LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015093/* end confdefs.h. */
15094
15095/* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15098#ifdef __cplusplus
15099extern "C"
15100#endif
15101char dlopen ();
15102int
15103main ()
15104{
15105return dlopen ();
15106 ;
15107 return 0;
15108}
15109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015110if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015111 ac_cv_lib_dl_dlopen=yes
15112else
cristy8b350f62009-11-15 23:12:43 +000015113 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015114fi
cristy8b350f62009-11-15 23:12:43 +000015115rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015117LIBS=$ac_check_lib_save_LIBS
15118fi
cristy8b350f62009-11-15 23:12:43 +000015119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015120$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015121if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15123else
15124
15125 lt_cv_dlopen="dyld"
15126 lt_cv_dlopen_libs=
15127 lt_cv_dlopen_self=yes
15128
15129fi
15130
15131 ;;
15132
15133 *)
cristy8b350f62009-11-15 23:12:43 +000015134 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15135if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015136 lt_cv_dlopen="shl_load"
15137else
cristy8b350f62009-11-15 23:12:43 +000015138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015139$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015140if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015141 $as_echo_n "(cached) " >&6
15142else
15143 ac_check_lib_save_LIBS=$LIBS
15144LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015146/* end confdefs.h. */
15147
15148/* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply. */
15151#ifdef __cplusplus
15152extern "C"
15153#endif
15154char shl_load ();
15155int
15156main ()
15157{
15158return shl_load ();
15159 ;
15160 return 0;
15161}
15162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015164 ac_cv_lib_dld_shl_load=yes
15165else
cristy8b350f62009-11-15 23:12:43 +000015166 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015167fi
cristy8b350f62009-11-15 23:12:43 +000015168rm -f core conftest.err conftest.$ac_objext \
15169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015170LIBS=$ac_check_lib_save_LIBS
15171fi
cristy8b350f62009-11-15 23:12:43 +000015172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015173$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015174if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015175 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15176else
cristy8b350f62009-11-15 23:12:43 +000015177 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15178if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015179 lt_cv_dlopen="dlopen"
15180else
cristy8b350f62009-11-15 23:12:43 +000015181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015182$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015183if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015184 $as_echo_n "(cached) " >&6
15185else
15186 ac_check_lib_save_LIBS=$LIBS
15187LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015189/* end confdefs.h. */
15190
15191/* Override any GCC internal prototype to avoid an error.
15192 Use char because int might match the return type of a GCC
15193 builtin and then its argument prototype would still apply. */
15194#ifdef __cplusplus
15195extern "C"
15196#endif
15197char dlopen ();
15198int
15199main ()
15200{
15201return dlopen ();
15202 ;
15203 return 0;
15204}
15205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015206if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015207 ac_cv_lib_dl_dlopen=yes
15208else
cristy8b350f62009-11-15 23:12:43 +000015209 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015210fi
cristy8b350f62009-11-15 23:12:43 +000015211rm -f core conftest.err conftest.$ac_objext \
15212 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015213LIBS=$ac_check_lib_save_LIBS
15214fi
cristy8b350f62009-11-15 23:12:43 +000015215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015216$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015217if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15219else
cristy8b350f62009-11-15 23:12:43 +000015220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015221$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015222if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015223 $as_echo_n "(cached) " >&6
15224else
15225 ac_check_lib_save_LIBS=$LIBS
15226LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015228/* end confdefs.h. */
15229
15230/* Override any GCC internal prototype to avoid an error.
15231 Use char because int might match the return type of a GCC
15232 builtin and then its argument prototype would still apply. */
15233#ifdef __cplusplus
15234extern "C"
15235#endif
15236char dlopen ();
15237int
15238main ()
15239{
15240return dlopen ();
15241 ;
15242 return 0;
15243}
15244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015246 ac_cv_lib_svld_dlopen=yes
15247else
cristy8b350f62009-11-15 23:12:43 +000015248 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015249fi
cristy8b350f62009-11-15 23:12:43 +000015250rm -f core conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015252LIBS=$ac_check_lib_save_LIBS
15253fi
cristy8b350f62009-11-15 23:12:43 +000015254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015255$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015256if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15258else
cristy8b350f62009-11-15 23:12:43 +000015259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015260$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015261if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015262 $as_echo_n "(cached) " >&6
15263else
15264 ac_check_lib_save_LIBS=$LIBS
15265LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015267/* end confdefs.h. */
15268
15269/* Override any GCC internal prototype to avoid an error.
15270 Use char because int might match the return type of a GCC
15271 builtin and then its argument prototype would still apply. */
15272#ifdef __cplusplus
15273extern "C"
15274#endif
15275char dld_link ();
15276int
15277main ()
15278{
15279return dld_link ();
15280 ;
15281 return 0;
15282}
15283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015285 ac_cv_lib_dld_dld_link=yes
15286else
cristy8b350f62009-11-15 23:12:43 +000015287 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015288fi
cristy8b350f62009-11-15 23:12:43 +000015289rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015291LIBS=$ac_check_lib_save_LIBS
15292fi
cristy8b350f62009-11-15 23:12:43 +000015293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015294$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015295if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015296 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15297fi
15298
15299
15300fi
15301
15302
15303fi
15304
15305
15306fi
15307
15308
15309fi
15310
15311
15312fi
15313
15314 ;;
15315 esac
15316
15317 if test "x$lt_cv_dlopen" != xno; then
15318 enable_dlopen=yes
15319 else
15320 enable_dlopen=no
15321 fi
15322
15323 case $lt_cv_dlopen in
15324 dlopen)
15325 save_CPPFLAGS="$CPPFLAGS"
15326 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15327
15328 save_LDFLAGS="$LDFLAGS"
15329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15330
15331 save_LIBS="$LIBS"
15332 LIBS="$lt_cv_dlopen_libs $LIBS"
15333
cristy8b350f62009-11-15 23:12:43 +000015334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015335$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015336if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015337 $as_echo_n "(cached) " >&6
15338else
15339 if test "$cross_compiling" = yes; then :
15340 lt_cv_dlopen_self=cross
15341else
15342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15343 lt_status=$lt_dlunknown
15344 cat > conftest.$ac_ext <<_LT_EOF
cristy735e8942010-04-02 20:32:57 +000015345#line 15345 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015346#include "confdefs.h"
15347
15348#if HAVE_DLFCN_H
15349#include <dlfcn.h>
15350#endif
15351
15352#include <stdio.h>
15353
15354#ifdef RTLD_GLOBAL
15355# define LT_DLGLOBAL RTLD_GLOBAL
15356#else
15357# ifdef DL_GLOBAL
15358# define LT_DLGLOBAL DL_GLOBAL
15359# else
15360# define LT_DLGLOBAL 0
15361# endif
15362#endif
15363
15364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15365 find out it does not work in some platform. */
15366#ifndef LT_DLLAZY_OR_NOW
15367# ifdef RTLD_LAZY
15368# define LT_DLLAZY_OR_NOW RTLD_LAZY
15369# else
15370# ifdef DL_LAZY
15371# define LT_DLLAZY_OR_NOW DL_LAZY
15372# else
15373# ifdef RTLD_NOW
15374# define LT_DLLAZY_OR_NOW RTLD_NOW
15375# else
15376# ifdef DL_NOW
15377# define LT_DLLAZY_OR_NOW DL_NOW
15378# else
15379# define LT_DLLAZY_OR_NOW 0
15380# endif
15381# endif
15382# endif
15383# endif
15384#endif
15385
cristy18304f92009-11-22 15:48:26 +000015386void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015387int main ()
15388{
15389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15390 int status = $lt_dlunknown;
15391
15392 if (self)
15393 {
15394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015396 /* dlclose (self); */
15397 }
15398 else
15399 puts (dlerror ());
15400
15401 return status;
15402}
15403_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015405 (eval $ac_link) 2>&5
15406 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15408 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015409 (./conftest; exit; ) >&5 2>/dev/null
15410 lt_status=$?
15411 case x$lt_status in
15412 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15413 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15414 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15415 esac
15416 else :
15417 # compilation failed
15418 lt_cv_dlopen_self=no
15419 fi
15420fi
15421rm -fr conftest*
15422
15423
15424fi
cristy8b350f62009-11-15 23:12:43 +000015425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015426$as_echo "$lt_cv_dlopen_self" >&6; }
15427
15428 if test "x$lt_cv_dlopen_self" = xyes; then
15429 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015431$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015432if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015433 $as_echo_n "(cached) " >&6
15434else
15435 if test "$cross_compiling" = yes; then :
15436 lt_cv_dlopen_self_static=cross
15437else
15438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15439 lt_status=$lt_dlunknown
15440 cat > conftest.$ac_ext <<_LT_EOF
cristy735e8942010-04-02 20:32:57 +000015441#line 15441 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015442#include "confdefs.h"
15443
15444#if HAVE_DLFCN_H
15445#include <dlfcn.h>
15446#endif
15447
15448#include <stdio.h>
15449
15450#ifdef RTLD_GLOBAL
15451# define LT_DLGLOBAL RTLD_GLOBAL
15452#else
15453# ifdef DL_GLOBAL
15454# define LT_DLGLOBAL DL_GLOBAL
15455# else
15456# define LT_DLGLOBAL 0
15457# endif
15458#endif
15459
15460/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15461 find out it does not work in some platform. */
15462#ifndef LT_DLLAZY_OR_NOW
15463# ifdef RTLD_LAZY
15464# define LT_DLLAZY_OR_NOW RTLD_LAZY
15465# else
15466# ifdef DL_LAZY
15467# define LT_DLLAZY_OR_NOW DL_LAZY
15468# else
15469# ifdef RTLD_NOW
15470# define LT_DLLAZY_OR_NOW RTLD_NOW
15471# else
15472# ifdef DL_NOW
15473# define LT_DLLAZY_OR_NOW DL_NOW
15474# else
15475# define LT_DLLAZY_OR_NOW 0
15476# endif
15477# endif
15478# endif
15479# endif
15480#endif
15481
cristy18304f92009-11-22 15:48:26 +000015482void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015483int main ()
15484{
15485 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15486 int status = $lt_dlunknown;
15487
15488 if (self)
15489 {
15490 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015491 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015492 /* dlclose (self); */
15493 }
15494 else
15495 puts (dlerror ());
15496
15497 return status;
15498}
15499_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015501 (eval $ac_link) 2>&5
15502 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15504 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015505 (./conftest; exit; ) >&5 2>/dev/null
15506 lt_status=$?
15507 case x$lt_status in
15508 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15509 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15510 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15511 esac
15512 else :
15513 # compilation failed
15514 lt_cv_dlopen_self_static=no
15515 fi
15516fi
15517rm -fr conftest*
15518
15519
15520fi
cristy8b350f62009-11-15 23:12:43 +000015521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015522$as_echo "$lt_cv_dlopen_self_static" >&6; }
15523 fi
15524
15525 CPPFLAGS="$save_CPPFLAGS"
15526 LDFLAGS="$save_LDFLAGS"
15527 LIBS="$save_LIBS"
15528 ;;
15529 esac
15530
15531 case $lt_cv_dlopen_self in
15532 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15533 *) enable_dlopen_self=unknown ;;
15534 esac
15535
15536 case $lt_cv_dlopen_self_static in
15537 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15538 *) enable_dlopen_self_static=unknown ;;
15539 esac
15540fi
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558striplib=
15559old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015561$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15562if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15563 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15564 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015566$as_echo "yes" >&6; }
15567else
15568# FIXME - insert some real tests, host_os isn't really good enough
15569 case $host_os in
15570 darwin*)
15571 if test -n "$STRIP" ; then
15572 striplib="$STRIP -x"
15573 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015575$as_echo "yes" >&6; }
15576 else
cristy8b350f62009-11-15 23:12:43 +000015577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015578$as_echo "no" >&6; }
15579 fi
15580 ;;
15581 *)
cristy8b350f62009-11-15 23:12:43 +000015582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015583$as_echo "no" >&6; }
15584 ;;
15585 esac
15586fi
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015601$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015603$as_echo "$can_build_shared" >&6; }
15604
cristy8b350f62009-11-15 23:12:43 +000015605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015606$as_echo_n "checking whether to build shared libraries... " >&6; }
15607 test "$can_build_shared" = "no" && enable_shared=no
15608
15609 # On AIX, shared libraries and static libraries use the same namespace, and
15610 # are all built from PIC.
15611 case $host_os in
15612 aix3*)
15613 test "$enable_shared" = yes && enable_static=no
15614 if test -n "$RANLIB"; then
15615 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15616 postinstall_cmds='$RANLIB $lib'
15617 fi
15618 ;;
15619
15620 aix[4-9]*)
15621 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15622 test "$enable_shared" = yes && enable_static=no
15623 fi
15624 ;;
15625 esac
cristy8b350f62009-11-15 23:12:43 +000015626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015627$as_echo "$enable_shared" >&6; }
15628
cristy8b350f62009-11-15 23:12:43 +000015629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015630$as_echo_n "checking whether to build static libraries... " >&6; }
15631 # Make sure either enable_shared or enable_static is yes.
15632 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015634$as_echo "$enable_static" >&6; }
15635
15636
15637
15638
15639fi
15640ac_ext=c
15641ac_cpp='$CPP $CPPFLAGS'
15642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15644ac_compiler_gnu=$ac_cv_c_compiler_gnu
15645
15646CC="$lt_save_CC"
15647
15648
15649ac_ext=cpp
15650ac_cpp='$CXXCPP $CPPFLAGS'
15651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15654
15655archive_cmds_need_lc_CXX=no
15656allow_undefined_flag_CXX=
15657always_export_symbols_CXX=no
15658archive_expsym_cmds_CXX=
15659compiler_needs_object_CXX=no
15660export_dynamic_flag_spec_CXX=
15661hardcode_direct_CXX=no
15662hardcode_direct_absolute_CXX=no
15663hardcode_libdir_flag_spec_CXX=
15664hardcode_libdir_flag_spec_ld_CXX=
15665hardcode_libdir_separator_CXX=
15666hardcode_minus_L_CXX=no
15667hardcode_shlibpath_var_CXX=unsupported
15668hardcode_automatic_CXX=no
15669inherit_rpath_CXX=no
15670module_cmds_CXX=
15671module_expsym_cmds_CXX=
15672link_all_deplibs_CXX=unknown
15673old_archive_cmds_CXX=$old_archive_cmds
15674no_undefined_flag_CXX=
15675whole_archive_flag_spec_CXX=
15676enable_shared_with_static_runtimes_CXX=no
15677
15678# Source file extension for C++ test sources.
15679ac_ext=cpp
15680
15681# Object file extension for compiled C++ test sources.
15682objext=o
15683objext_CXX=$objext
15684
15685# No sense in running all these tests if we already determined that
15686# the CXX compiler isn't working. Some variables (like enable_shared)
15687# are currently assumed to apply to all compilers on this platform,
15688# and will be corrupted by setting them based on a non-working compiler.
15689if test "$_lt_caught_CXX_error" != yes; then
15690 # Code to be used in simple compile tests
15691 lt_simple_compile_test_code="int some_variable = 0;"
15692
15693 # Code to be used in simple link tests
15694 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15695
15696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15697
15698
15699
15700
15701
15702
15703# If no C compiler was specified, use CC.
15704LTCC=${LTCC-"$CC"}
15705
15706# If no C compiler flags were specified, use CFLAGS.
15707LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15708
15709# Allow CC to be a program name with arguments.
15710compiler=$CC
15711
15712
15713 # save warnings/boilerplate of simple test code
15714 ac_outfile=conftest.$ac_objext
15715echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15716eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15717_lt_compiler_boilerplate=`cat conftest.err`
15718$RM conftest*
15719
15720 ac_outfile=conftest.$ac_objext
15721echo "$lt_simple_link_test_code" >conftest.$ac_ext
15722eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15723_lt_linker_boilerplate=`cat conftest.err`
15724$RM -r conftest*
15725
15726
15727 # Allow CC to be a program name with arguments.
15728 lt_save_CC=$CC
15729 lt_save_LD=$LD
15730 lt_save_GCC=$GCC
15731 GCC=$GXX
15732 lt_save_with_gnu_ld=$with_gnu_ld
15733 lt_save_path_LD=$lt_cv_path_LD
15734 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15735 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15736 else
15737 $as_unset lt_cv_prog_gnu_ld
15738 fi
15739 if test -n "${lt_cv_path_LDCXX+set}"; then
15740 lt_cv_path_LD=$lt_cv_path_LDCXX
15741 else
15742 $as_unset lt_cv_path_LD
15743 fi
15744 test -z "${LDCXX+set}" || LD=$LDCXX
15745 CC=${CXX-"c++"}
15746 compiler=$CC
15747 compiler_CXX=$CC
15748 for cc_temp in $compiler""; do
15749 case $cc_temp in
15750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15752 \-*) ;;
15753 *) break;;
15754 esac
15755done
cristy18304f92009-11-22 15:48:26 +000015756cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000015757
15758
15759 if test -n "$compiler"; then
15760 # We don't want -fno-exception when compiling C++ code, so set the
15761 # no_builtin_flag separately
15762 if test "$GXX" = yes; then
15763 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15764 else
15765 lt_prog_compiler_no_builtin_flag_CXX=
15766 fi
15767
15768 if test "$GXX" = yes; then
15769 # Set up default GNU C++ configuration
15770
15771
15772
15773# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000015774if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015775 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15776else
15777 with_gnu_ld=no
15778fi
15779
15780ac_prog=ld
15781if test "$GCC" = yes; then
15782 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000015783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015784$as_echo_n "checking for ld used by $CC... " >&6; }
15785 case $host in
15786 *-*-mingw*)
15787 # gcc leaves a trailing carriage return which upsets mingw
15788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15789 *)
15790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15791 esac
15792 case $ac_prog in
15793 # Accept absolute paths.
15794 [\\/]* | ?:[\\/]*)
15795 re_direlt='/[^/][^/]*/\.\./'
15796 # Canonicalize the pathname of ld
15797 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15798 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15799 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15800 done
15801 test -z "$LD" && LD="$ac_prog"
15802 ;;
15803 "")
15804 # If it fails, then pretend we aren't using GCC.
15805 ac_prog=ld
15806 ;;
15807 *)
15808 # If it is relative, then search for the first ld in PATH.
15809 with_gnu_ld=unknown
15810 ;;
15811 esac
15812elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000015813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015814$as_echo_n "checking for GNU ld... " >&6; }
15815else
cristy8b350f62009-11-15 23:12:43 +000015816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015817$as_echo_n "checking for non-GNU ld... " >&6; }
15818fi
cristy8b350f62009-11-15 23:12:43 +000015819if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015820 $as_echo_n "(cached) " >&6
15821else
15822 if test -z "$LD"; then
15823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15824 for ac_dir in $PATH; do
15825 IFS="$lt_save_ifs"
15826 test -z "$ac_dir" && ac_dir=.
15827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15828 lt_cv_path_LD="$ac_dir/$ac_prog"
15829 # Check to see if the program is GNU ld. I'd rather use --version,
15830 # but apparently some variants of GNU ld only accept -v.
15831 # Break only if it was the GNU/non-GNU ld that we prefer.
15832 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15833 *GNU* | *'with BFD'*)
15834 test "$with_gnu_ld" != no && break
15835 ;;
15836 *)
15837 test "$with_gnu_ld" != yes && break
15838 ;;
15839 esac
15840 fi
15841 done
15842 IFS="$lt_save_ifs"
15843else
15844 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15845fi
15846fi
15847
15848LD="$lt_cv_path_LD"
15849if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000015850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000015851$as_echo "$LD" >&6; }
15852else
cristy8b350f62009-11-15 23:12:43 +000015853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015854$as_echo "no" >&6; }
15855fi
cristy8b350f62009-11-15 23:12:43 +000015856test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015858$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015859if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015860 $as_echo_n "(cached) " >&6
15861else
15862 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15863case `$LD -v 2>&1 </dev/null` in
15864*GNU* | *'with BFD'*)
15865 lt_cv_prog_gnu_ld=yes
15866 ;;
15867*)
15868 lt_cv_prog_gnu_ld=no
15869 ;;
15870esac
15871fi
cristy8b350f62009-11-15 23:12:43 +000015872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015873$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15874with_gnu_ld=$lt_cv_prog_gnu_ld
15875
15876
15877
15878
15879
15880
15881
15882 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15883 # archiving commands below assume that GNU ld is being used.
15884 if test "$with_gnu_ld" = yes; then
15885 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15886 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'
15887
15888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15890
15891 # If archive_cmds runs LD, not CC, wlarc should be empty
15892 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15893 # investigate it a little bit more. (MM)
15894 wlarc='${wl}'
15895
15896 # ancient GNU ld didn't support --whole-archive et. al.
15897 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15898 $GREP 'no-whole-archive' > /dev/null; then
15899 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15900 else
15901 whole_archive_flag_spec_CXX=
15902 fi
15903 else
15904 with_gnu_ld=no
15905 wlarc=
15906
15907 # A generic and very simple default shared library creation
15908 # command for GNU C++ for the case where it uses the native
15909 # linker, instead of GNU ld. If possible, this setting should
15910 # overridden to take advantage of the native linker features on
15911 # the platform it is being used on.
15912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15913 fi
15914
15915 # Commands to make compiler produce verbose output that lists
15916 # what "hidden" libraries, object files and flags are used when
15917 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015919
15920 else
15921 GXX=no
15922 with_gnu_ld=no
15923 wlarc=
15924 fi
15925
15926 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015928$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15929 ld_shlibs_CXX=yes
15930 case $host_os in
15931 aix3*)
15932 # FIXME: insert proper C++ library support
15933 ld_shlibs_CXX=no
15934 ;;
15935 aix[4-9]*)
15936 if test "$host_cpu" = ia64; then
15937 # On IA64, the linker does run time linking by default, so we don't
15938 # have to do anything special.
15939 aix_use_runtimelinking=no
15940 exp_sym_flag='-Bexport'
15941 no_entry_flag=""
15942 else
15943 aix_use_runtimelinking=no
15944
15945 # Test if we are trying to use run time linking or normal
15946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15947 # need to do runtime linking.
15948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15949 for ld_flag in $LDFLAGS; do
15950 case $ld_flag in
15951 *-brtl*)
15952 aix_use_runtimelinking=yes
15953 break
15954 ;;
15955 esac
15956 done
15957 ;;
15958 esac
15959
15960 exp_sym_flag='-bexport'
15961 no_entry_flag='-bnoentry'
15962 fi
15963
15964 # When large executables or shared objects are built, AIX ld can
15965 # have problems creating the table of contents. If linking a library
15966 # or program results in "error TOC overflow" add -mminimal-toc to
15967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15969
15970 archive_cmds_CXX=''
15971 hardcode_direct_CXX=yes
15972 hardcode_direct_absolute_CXX=yes
15973 hardcode_libdir_separator_CXX=':'
15974 link_all_deplibs_CXX=yes
15975 file_list_spec_CXX='${wl}-f,'
15976
15977 if test "$GXX" = yes; then
15978 case $host_os in aix4.[012]|aix4.[012].*)
15979 # We only want to do this on AIX 4.2 and lower, the check
15980 # below for broken collect2 doesn't work under 4.3+
15981 collect2name=`${CC} -print-prog-name=collect2`
15982 if test -f "$collect2name" &&
15983 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15984 then
15985 # We have reworked collect2
15986 :
15987 else
15988 # We have old collect2
15989 hardcode_direct_CXX=unsupported
15990 # It fails to find uninstalled libraries when the uninstalled
15991 # path is not listed in the libpath. Setting hardcode_minus_L
15992 # to unsupported forces relinking
15993 hardcode_minus_L_CXX=yes
15994 hardcode_libdir_flag_spec_CXX='-L$libdir'
15995 hardcode_libdir_separator_CXX=
15996 fi
15997 esac
15998 shared_flag='-shared'
15999 if test "$aix_use_runtimelinking" = yes; then
16000 shared_flag="$shared_flag "'${wl}-G'
16001 fi
16002 else
16003 # not using gcc
16004 if test "$host_cpu" = ia64; then
16005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16006 # chokes on -Wl,-G. The following line is correct:
16007 shared_flag='-G'
16008 else
16009 if test "$aix_use_runtimelinking" = yes; then
16010 shared_flag='${wl}-G'
16011 else
16012 shared_flag='${wl}-bM:SRE'
16013 fi
16014 fi
16015 fi
16016
16017 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16018 # It seems that -bexpall does not export symbols beginning with
16019 # underscore (_), so it is better to generate a list of symbols to
16020 # export.
16021 always_export_symbols_CXX=yes
16022 if test "$aix_use_runtimelinking" = yes; then
16023 # Warning - without using the other runtime loading flags (-brtl),
16024 # -berok will link without error, but may produce a broken library.
16025 allow_undefined_flag_CXX='-berok'
16026 # Determine the default libpath from the value encoded in an empty
16027 # executable.
cristy8b350f62009-11-15 23:12:43 +000016028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016029/* end confdefs.h. */
16030
16031int
16032main ()
16033{
16034
16035 ;
16036 return 0;
16037}
16038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016039if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016040
16041lt_aix_libpath_sed='
16042 /Import File Strings/,/^$/ {
16043 /^0/ {
16044 s/^0 *\(.*\)$/\1/
16045 p
16046 }
16047 }'
16048aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16049# Check for a 64-bit object if we didn't find anything.
16050if test -z "$aix_libpath"; then
16051 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16052fi
cristy3ed852e2009-09-05 21:47:34 +000016053fi
cristy8b350f62009-11-15 23:12:43 +000016054rm -f core conftest.err conftest.$ac_objext \
16055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016056if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16057
16058 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16059
cristy18304f92009-11-22 15:48:26 +000016060 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 +000016061 else
16062 if test "$host_cpu" = ia64; then
16063 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16064 allow_undefined_flag_CXX="-z nodefs"
16065 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"
16066 else
16067 # Determine the default libpath from the value encoded in an
16068 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016070/* end confdefs.h. */
16071
16072int
16073main ()
16074{
16075
16076 ;
16077 return 0;
16078}
16079_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016080if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016081
16082lt_aix_libpath_sed='
16083 /Import File Strings/,/^$/ {
16084 /^0/ {
16085 s/^0 *\(.*\)$/\1/
16086 p
16087 }
16088 }'
16089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16090# Check for a 64-bit object if we didn't find anything.
16091if test -z "$aix_libpath"; then
16092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16093fi
cristy3ed852e2009-09-05 21:47:34 +000016094fi
cristy8b350f62009-11-15 23:12:43 +000016095rm -f core conftest.err conftest.$ac_objext \
16096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16098
16099 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16100 # Warning - without using the other run time loading flags,
16101 # -berok will link without error, but may produce a broken library.
16102 no_undefined_flag_CXX=' ${wl}-bernotok'
16103 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016104 # Exported symbols can be pulled into shared objects from archives
16105 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016106 archive_cmds_need_lc_CXX=yes
16107 # This is similar to how AIX traditionally builds its shared
16108 # libraries.
16109 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'
16110 fi
16111 fi
16112 ;;
16113
16114 beos*)
16115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16116 allow_undefined_flag_CXX=unsupported
16117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16118 # support --undefined. This deserves some investigation. FIXME
16119 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16120 else
16121 ld_shlibs_CXX=no
16122 fi
16123 ;;
16124
16125 chorus*)
16126 case $cc_basename in
16127 *)
16128 # FIXME: insert proper C++ library support
16129 ld_shlibs_CXX=no
16130 ;;
16131 esac
16132 ;;
16133
16134 cygwin* | mingw* | pw32* | cegcc*)
16135 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16136 # as there is no search path for DLLs.
16137 hardcode_libdir_flag_spec_CXX='-L$libdir'
16138 allow_undefined_flag_CXX=unsupported
16139 always_export_symbols_CXX=no
16140 enable_shared_with_static_runtimes_CXX=yes
16141
16142 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16143 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'
16144 # If the export-symbols file already is a .def file (1st line
16145 # is EXPORTS), use it as is; otherwise, prepend...
16146 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16147 cp $export_symbols $output_objdir/$soname.def;
16148 else
16149 echo EXPORTS > $output_objdir/$soname.def;
16150 cat $export_symbols >> $output_objdir/$soname.def;
16151 fi~
16152 $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'
16153 else
16154 ld_shlibs_CXX=no
16155 fi
16156 ;;
16157 darwin* | rhapsody*)
16158
16159
16160 archive_cmds_need_lc_CXX=no
16161 hardcode_direct_CXX=no
16162 hardcode_automatic_CXX=yes
16163 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016164 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016165 link_all_deplibs_CXX=yes
16166 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16167 case $cc_basename in
16168 ifort*) _lt_dar_can_shared=yes ;;
16169 *) _lt_dar_can_shared=$GCC ;;
16170 esac
16171 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016172 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016173 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}"
16174 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16175 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}"
16176 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}"
16177 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16178 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}"
16179 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}"
16180 fi
16181
16182 else
16183 ld_shlibs_CXX=no
16184 fi
16185
16186 ;;
16187
16188 dgux*)
16189 case $cc_basename in
16190 ec++*)
16191 # FIXME: insert proper C++ library support
16192 ld_shlibs_CXX=no
16193 ;;
16194 ghcx*)
16195 # Green Hills C++ Compiler
16196 # FIXME: insert proper C++ library support
16197 ld_shlibs_CXX=no
16198 ;;
16199 *)
16200 # FIXME: insert proper C++ library support
16201 ld_shlibs_CXX=no
16202 ;;
16203 esac
16204 ;;
16205
16206 freebsd[12]*)
16207 # C++ shared libraries reported to be fairly broken before
16208 # switch to ELF
16209 ld_shlibs_CXX=no
16210 ;;
16211
16212 freebsd-elf*)
16213 archive_cmds_need_lc_CXX=no
16214 ;;
16215
16216 freebsd* | dragonfly*)
16217 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16218 # conventions
16219 ld_shlibs_CXX=yes
16220 ;;
16221
16222 gnu*)
16223 ;;
16224
16225 hpux9*)
16226 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16227 hardcode_libdir_separator_CXX=:
16228 export_dynamic_flag_spec_CXX='${wl}-E'
16229 hardcode_direct_CXX=yes
16230 hardcode_minus_L_CXX=yes # Not in the search PATH,
16231 # but as the default
16232 # location of the library.
16233
16234 case $cc_basename in
16235 CC*)
16236 # FIXME: insert proper C++ library support
16237 ld_shlibs_CXX=no
16238 ;;
16239 aCC*)
16240 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'
16241 # Commands to make compiler produce verbose output that lists
16242 # what "hidden" libraries, object files and flags are used when
16243 # linking a shared library.
16244 #
16245 # There doesn't appear to be a way to prevent this compiler from
16246 # explicitly linking system object files so we need to strip them
16247 # from the output so that they don't get included in the library
16248 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016249 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 +000016250 ;;
16251 *)
16252 if test "$GXX" = yes; then
16253 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'
16254 else
16255 # FIXME: insert proper C++ library support
16256 ld_shlibs_CXX=no
16257 fi
16258 ;;
16259 esac
16260 ;;
16261
16262 hpux10*|hpux11*)
16263 if test $with_gnu_ld = no; then
16264 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16265 hardcode_libdir_separator_CXX=:
16266
16267 case $host_cpu in
16268 hppa*64*|ia64*)
16269 ;;
16270 *)
16271 export_dynamic_flag_spec_CXX='${wl}-E'
16272 ;;
16273 esac
16274 fi
16275 case $host_cpu in
16276 hppa*64*|ia64*)
16277 hardcode_direct_CXX=no
16278 hardcode_shlibpath_var_CXX=no
16279 ;;
16280 *)
16281 hardcode_direct_CXX=yes
16282 hardcode_direct_absolute_CXX=yes
16283 hardcode_minus_L_CXX=yes # Not in the search PATH,
16284 # but as the default
16285 # location of the library.
16286 ;;
16287 esac
16288
16289 case $cc_basename in
16290 CC*)
16291 # FIXME: insert proper C++ library support
16292 ld_shlibs_CXX=no
16293 ;;
16294 aCC*)
16295 case $host_cpu in
16296 hppa*64*)
16297 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16298 ;;
16299 ia64*)
16300 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16301 ;;
16302 *)
16303 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16304 ;;
16305 esac
16306 # Commands to make compiler produce verbose output that lists
16307 # what "hidden" libraries, object files and flags are used when
16308 # linking a shared library.
16309 #
16310 # There doesn't appear to be a way to prevent this compiler from
16311 # explicitly linking system object files so we need to strip them
16312 # from the output so that they don't get included in the library
16313 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016314 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 +000016315 ;;
16316 *)
16317 if test "$GXX" = yes; then
16318 if test $with_gnu_ld = no; then
16319 case $host_cpu in
16320 hppa*64*)
16321 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16322 ;;
16323 ia64*)
16324 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16325 ;;
16326 *)
16327 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'
16328 ;;
16329 esac
16330 fi
16331 else
16332 # FIXME: insert proper C++ library support
16333 ld_shlibs_CXX=no
16334 fi
16335 ;;
16336 esac
16337 ;;
16338
16339 interix[3-9]*)
16340 hardcode_direct_CXX=no
16341 hardcode_shlibpath_var_CXX=no
16342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16343 export_dynamic_flag_spec_CXX='${wl}-E'
16344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16345 # Instead, shared libraries are loaded at an image base (0x10000000 by
16346 # default) and relocated if they conflict, which is a slow very memory
16347 # consuming and fragmenting process. To avoid this, we pick a random,
16348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16349 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16350 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'
16351 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'
16352 ;;
16353 irix5* | irix6*)
16354 case $cc_basename in
16355 CC*)
16356 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016357 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 +000016358
16359 # Archives containing C++ object files must be created using
16360 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16361 # necessary to make sure instantiated templates are included
16362 # in the archive.
16363 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16364 ;;
16365 *)
16366 if test "$GXX" = yes; then
16367 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016368 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 +000016369 else
cristy18304f92009-11-22 15:48:26 +000016370 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 +000016371 fi
16372 fi
16373 link_all_deplibs_CXX=yes
16374 ;;
16375 esac
16376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16377 hardcode_libdir_separator_CXX=:
16378 inherit_rpath_CXX=yes
16379 ;;
16380
cristy18304f92009-11-22 15:48:26 +000016381 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016382 case $cc_basename in
16383 KCC*)
16384 # Kuck and Associates, Inc. (KAI) C++ Compiler
16385
16386 # KCC will only create a shared library if the output file
16387 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16388 # to its proper name (with version) after linking.
16389 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'
16390 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'
16391 # Commands to make compiler produce verbose output that lists
16392 # what "hidden" libraries, object files and flags are used when
16393 # linking a shared library.
16394 #
16395 # There doesn't appear to be a way to prevent this compiler from
16396 # explicitly linking system object files so we need to strip them
16397 # from the output so that they don't get included in the library
16398 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016399 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 +000016400
16401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16403
16404 # Archives containing C++ object files must be created using
16405 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16406 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16407 ;;
16408 icpc* | ecpc* )
16409 # Intel C++
16410 with_gnu_ld=yes
16411 # version 8.0 and above of icpc choke on multiply defined symbols
16412 # if we add $predep_objects and $postdep_objects, however 7.1 and
16413 # earlier do not add the objects themselves.
16414 case `$CC -V 2>&1` in
16415 *"Version 7."*)
16416 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16417 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'
16418 ;;
16419 *) # Version 8.0 or newer
16420 tmp_idyn=
16421 case $host_cpu in
16422 ia64*) tmp_idyn=' -i_dynamic';;
16423 esac
16424 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16425 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'
16426 ;;
16427 esac
16428 archive_cmds_need_lc_CXX=no
16429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16431 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16432 ;;
16433 pgCC* | pgcpp*)
16434 # Portland Group C++ compiler
16435 case `$CC -V` in
16436 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16437 prelink_cmds_CXX='tpldir=Template.dir~
16438 rm -rf $tpldir~
16439 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16440 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16441 old_archive_cmds_CXX='tpldir=Template.dir~
16442 rm -rf $tpldir~
16443 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16444 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16445 $RANLIB $oldlib'
16446 archive_cmds_CXX='tpldir=Template.dir~
16447 rm -rf $tpldir~
16448 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16449 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16450 archive_expsym_cmds_CXX='tpldir=Template.dir~
16451 rm -rf $tpldir~
16452 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16453 $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'
16454 ;;
16455 *) # Version 6 will use weak symbols
16456 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16457 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'
16458 ;;
16459 esac
16460
16461 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016463 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 +000016464 ;;
16465 cxx*)
16466 # Compaq C++
16467 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16468 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'
16469
16470 runpath_var=LD_RUN_PATH
16471 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16472 hardcode_libdir_separator_CXX=:
16473
16474 # Commands to make compiler produce verbose output that lists
16475 # what "hidden" libraries, object files and flags are used when
16476 # linking a shared library.
16477 #
16478 # There doesn't appear to be a way to prevent this compiler from
16479 # explicitly linking system object files so we need to strip them
16480 # from the output so that they don't get included in the library
16481 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016482 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 +000016483 ;;
cristy18304f92009-11-22 15:48:26 +000016484 xl*)
cristy3ed852e2009-09-05 21:47:34 +000016485 # IBM XL 8.0 on PPC, with GNU ld
16486 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16487 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16488 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16489 if test "x$supports_anon_versioning" = xyes; then
16490 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16492 echo "local: *; };" >> $output_objdir/$libname.ver~
16493 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16494 fi
16495 ;;
16496 *)
16497 case `$CC -V 2>&1 | sed 5q` in
16498 *Sun\ C*)
16499 # Sun C++ 5.9
16500 no_undefined_flag_CXX=' -zdefs'
16501 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16502 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'
16503 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000016504 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 +000016505 compiler_needs_object_CXX=yes
16506
16507 # Not sure whether something based on
16508 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16509 # would be better.
cristy18304f92009-11-22 15:48:26 +000016510 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016511
16512 # Archives containing C++ object files must be created using
16513 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16514 # necessary to make sure instantiated templates are included
16515 # in the archive.
16516 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16517 ;;
16518 esac
16519 ;;
16520 esac
16521 ;;
16522
16523 lynxos*)
16524 # FIXME: insert proper C++ library support
16525 ld_shlibs_CXX=no
16526 ;;
16527
16528 m88k*)
16529 # FIXME: insert proper C++ library support
16530 ld_shlibs_CXX=no
16531 ;;
16532
16533 mvs*)
16534 case $cc_basename in
16535 cxx*)
16536 # FIXME: insert proper C++ library support
16537 ld_shlibs_CXX=no
16538 ;;
16539 *)
16540 # FIXME: insert proper C++ library support
16541 ld_shlibs_CXX=no
16542 ;;
16543 esac
16544 ;;
16545
16546 netbsd*)
16547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16548 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16549 wlarc=
16550 hardcode_libdir_flag_spec_CXX='-R$libdir'
16551 hardcode_direct_CXX=yes
16552 hardcode_shlibpath_var_CXX=no
16553 fi
16554 # Workaround some broken pre-1.5 toolchains
16555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16556 ;;
16557
16558 *nto* | *qnx*)
16559 ld_shlibs_CXX=yes
16560 ;;
16561
16562 openbsd2*)
16563 # C++ shared libraries are fairly broken
16564 ld_shlibs_CXX=no
16565 ;;
16566
16567 openbsd*)
16568 if test -f /usr/libexec/ld.so; then
16569 hardcode_direct_CXX=yes
16570 hardcode_shlibpath_var_CXX=no
16571 hardcode_direct_absolute_CXX=yes
16572 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16573 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16575 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16576 export_dynamic_flag_spec_CXX='${wl}-E'
16577 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16578 fi
cristy18304f92009-11-22 15:48:26 +000016579 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016580 else
16581 ld_shlibs_CXX=no
16582 fi
16583 ;;
16584
16585 osf3* | osf4* | osf5*)
16586 case $cc_basename in
16587 KCC*)
16588 # Kuck and Associates, Inc. (KAI) C++ Compiler
16589
16590 # KCC will only create a shared library if the output file
16591 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16592 # to its proper name (with version) after linking.
16593 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'
16594
16595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16596 hardcode_libdir_separator_CXX=:
16597
16598 # Archives containing C++ object files must be created using
16599 # the KAI C++ compiler.
16600 case $host in
16601 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16602 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16603 esac
16604 ;;
16605 RCC*)
16606 # Rational C++ 2.4.1
16607 # FIXME: insert proper C++ library support
16608 ld_shlibs_CXX=no
16609 ;;
16610 cxx*)
16611 case $host in
16612 osf3*)
16613 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000016614 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 +000016615 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16616 ;;
16617 *)
16618 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000016619 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 +000016620 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16621 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000016622 $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 +000016623 $RM $lib.exp'
16624 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16625 ;;
16626 esac
16627
16628 hardcode_libdir_separator_CXX=:
16629
16630 # Commands to make compiler produce verbose output that lists
16631 # what "hidden" libraries, object files and flags are used when
16632 # linking a shared library.
16633 #
16634 # There doesn't appear to be a way to prevent this compiler from
16635 # explicitly linking system object files so we need to strip them
16636 # from the output so that they don't get included in the library
16637 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016638 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 +000016639 ;;
16640 *)
16641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16642 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16643 case $host in
16644 osf3*)
cristy18304f92009-11-22 15:48:26 +000016645 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 +000016646 ;;
16647 *)
cristy18304f92009-11-22 15:48:26 +000016648 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 +000016649 ;;
16650 esac
16651
16652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16653 hardcode_libdir_separator_CXX=:
16654
16655 # Commands to make compiler produce verbose output that lists
16656 # what "hidden" libraries, object files and flags are used when
16657 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016658 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016659
16660 else
16661 # FIXME: insert proper C++ library support
16662 ld_shlibs_CXX=no
16663 fi
16664 ;;
16665 esac
16666 ;;
16667
16668 psos*)
16669 # FIXME: insert proper C++ library support
16670 ld_shlibs_CXX=no
16671 ;;
16672
16673 sunos4*)
16674 case $cc_basename in
16675 CC*)
16676 # Sun C++ 4.x
16677 # FIXME: insert proper C++ library support
16678 ld_shlibs_CXX=no
16679 ;;
16680 lcc*)
16681 # Lucid
16682 # FIXME: insert proper C++ library support
16683 ld_shlibs_CXX=no
16684 ;;
16685 *)
16686 # FIXME: insert proper C++ library support
16687 ld_shlibs_CXX=no
16688 ;;
16689 esac
16690 ;;
16691
16692 solaris*)
16693 case $cc_basename in
16694 CC*)
16695 # Sun C++ 4.2, 5.x and Centerline C++
16696 archive_cmds_need_lc_CXX=yes
16697 no_undefined_flag_CXX=' -zdefs'
16698 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16699 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16700 $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'
16701
16702 hardcode_libdir_flag_spec_CXX='-R$libdir'
16703 hardcode_shlibpath_var_CXX=no
16704 case $host_os in
16705 solaris2.[0-5] | solaris2.[0-5].*) ;;
16706 *)
16707 # The compiler driver will combine and reorder linker options,
16708 # but understands `-z linker_flag'.
16709 # Supported since Solaris 2.6 (maybe 2.5.1?)
16710 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16711 ;;
16712 esac
16713 link_all_deplibs_CXX=yes
16714
cristy18304f92009-11-22 15:48:26 +000016715 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016716
16717 # Archives containing C++ object files must be created using
16718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16719 # necessary to make sure instantiated templates are included
16720 # in the archive.
16721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16722 ;;
16723 gcx*)
16724 # Green Hills C++ Compiler
16725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16726
16727 # The C++ compiler must be used to create the archive.
16728 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16729 ;;
16730 *)
16731 # GNU C++ compiler with Solaris linker
16732 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16733 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16734 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16735 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16736 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16737 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16738
16739 # Commands to make compiler produce verbose output that lists
16740 # what "hidden" libraries, object files and flags are used when
16741 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016743 else
16744 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16745 # platform.
16746 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16747 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16748 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16749
16750 # Commands to make compiler produce verbose output that lists
16751 # what "hidden" libraries, object files and flags are used when
16752 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016753 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016754 fi
16755
16756 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16757 case $host_os in
16758 solaris2.[0-5] | solaris2.[0-5].*) ;;
16759 *)
16760 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16761 ;;
16762 esac
16763 fi
16764 ;;
16765 esac
16766 ;;
16767
16768 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16769 no_undefined_flag_CXX='${wl}-z,text'
16770 archive_cmds_need_lc_CXX=no
16771 hardcode_shlibpath_var_CXX=no
16772 runpath_var='LD_RUN_PATH'
16773
16774 case $cc_basename in
16775 CC*)
16776 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16778 ;;
16779 *)
16780 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16781 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16782 ;;
16783 esac
16784 ;;
16785
16786 sysv5* | sco3.2v5* | sco5v6*)
16787 # Note: We can NOT use -z defs as we might desire, because we do not
16788 # link with -lc, and that would cause any symbols used from libc to
16789 # always be unresolved, which means just about no library would
16790 # ever link correctly. If we're not using GNU ld we use -z text
16791 # though, which does catch some bad symbols but isn't as heavy-handed
16792 # as -z defs.
16793 no_undefined_flag_CXX='${wl}-z,text'
16794 allow_undefined_flag_CXX='${wl}-z,nodefs'
16795 archive_cmds_need_lc_CXX=no
16796 hardcode_shlibpath_var_CXX=no
16797 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16798 hardcode_libdir_separator_CXX=':'
16799 link_all_deplibs_CXX=yes
16800 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16801 runpath_var='LD_RUN_PATH'
16802
16803 case $cc_basename in
16804 CC*)
16805 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16806 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16807 ;;
16808 *)
16809 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16810 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16811 ;;
16812 esac
16813 ;;
16814
16815 tandem*)
16816 case $cc_basename in
16817 NCC*)
16818 # NonStop-UX NCC 3.20
16819 # FIXME: insert proper C++ library support
16820 ld_shlibs_CXX=no
16821 ;;
16822 *)
16823 # FIXME: insert proper C++ library support
16824 ld_shlibs_CXX=no
16825 ;;
16826 esac
16827 ;;
16828
16829 vxworks*)
16830 # FIXME: insert proper C++ library support
16831 ld_shlibs_CXX=no
16832 ;;
16833
16834 *)
16835 # FIXME: insert proper C++ library support
16836 ld_shlibs_CXX=no
16837 ;;
16838 esac
16839
cristy8b350f62009-11-15 23:12:43 +000016840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016841$as_echo "$ld_shlibs_CXX" >&6; }
16842 test "$ld_shlibs_CXX" = no && can_build_shared=no
16843
16844 GCC_CXX="$GXX"
16845 LD_CXX="$LD"
16846
16847 ## CAVEAT EMPTOR:
16848 ## There is no encapsulation within the following macros, do not change
16849 ## the running order or otherwise move them around unless you know exactly
16850 ## what you are doing...
16851 # Dependencies to place before and after the object being linked:
16852predep_objects_CXX=
16853postdep_objects_CXX=
16854predeps_CXX=
16855postdeps_CXX=
16856compiler_lib_search_path_CXX=
16857
16858cat > conftest.$ac_ext <<_LT_EOF
16859class Foo
16860{
16861public:
16862 Foo (void) { a = 0; }
16863private:
16864 int a;
16865};
16866_LT_EOF
16867
cristy8b350f62009-11-15 23:12:43 +000016868if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016869 (eval $ac_compile) 2>&5
16870 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16872 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000016873 # Parse the compiler output and extract the necessary
16874 # objects, libraries and library flags.
16875
16876 # Sentinel used to keep track of whether or not we are before
16877 # the conftest object file.
16878 pre_test_object_deps_done=no
16879
16880 for p in `eval "$output_verbose_link_cmd"`; do
16881 case $p in
16882
16883 -L* | -R* | -l*)
16884 # Some compilers place space between "-{L,R}" and the path.
16885 # Remove the space.
16886 if test $p = "-L" ||
16887 test $p = "-R"; then
16888 prev=$p
16889 continue
16890 else
16891 prev=
16892 fi
16893
16894 if test "$pre_test_object_deps_done" = no; then
16895 case $p in
16896 -L* | -R*)
16897 # Internal compiler library paths should come after those
16898 # provided the user. The postdeps already come after the
16899 # user supplied libs so there is no need to process them.
16900 if test -z "$compiler_lib_search_path_CXX"; then
16901 compiler_lib_search_path_CXX="${prev}${p}"
16902 else
16903 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16904 fi
16905 ;;
16906 # The "-l" case would never come before the object being
16907 # linked, so don't bother handling this case.
16908 esac
16909 else
16910 if test -z "$postdeps_CXX"; then
16911 postdeps_CXX="${prev}${p}"
16912 else
16913 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16914 fi
16915 fi
16916 ;;
16917
16918 *.$objext)
16919 # This assumes that the test object file only shows up
16920 # once in the compiler output.
16921 if test "$p" = "conftest.$objext"; then
16922 pre_test_object_deps_done=yes
16923 continue
16924 fi
16925
16926 if test "$pre_test_object_deps_done" = no; then
16927 if test -z "$predep_objects_CXX"; then
16928 predep_objects_CXX="$p"
16929 else
16930 predep_objects_CXX="$predep_objects_CXX $p"
16931 fi
16932 else
16933 if test -z "$postdep_objects_CXX"; then
16934 postdep_objects_CXX="$p"
16935 else
16936 postdep_objects_CXX="$postdep_objects_CXX $p"
16937 fi
16938 fi
16939 ;;
16940
16941 *) ;; # Ignore the rest.
16942
16943 esac
16944 done
16945
16946 # Clean up.
16947 rm -f a.out a.exe
16948else
16949 echo "libtool.m4: error: problem compiling CXX test program"
16950fi
16951
16952$RM -f confest.$objext
16953
16954# PORTME: override above test on systems where it is broken
16955case $host_os in
16956interix[3-9]*)
16957 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16958 # hack all around it, let's just trust "g++" to DTRT.
16959 predep_objects_CXX=
16960 postdep_objects_CXX=
16961 postdeps_CXX=
16962 ;;
16963
16964linux*)
16965 case `$CC -V 2>&1 | sed 5q` in
16966 *Sun\ C*)
16967 # Sun C++ 5.9
16968
16969 # The more standards-conforming stlport4 library is
16970 # incompatible with the Cstd library. Avoid specifying
16971 # it if it's in CXXFLAGS. Ignore libCrun as
16972 # -library=stlport4 depends on it.
16973 case " $CXX $CXXFLAGS " in
16974 *" -library=stlport4 "*)
16975 solaris_use_stlport4=yes
16976 ;;
16977 esac
16978
16979 if test "$solaris_use_stlport4" != yes; then
16980 postdeps_CXX='-library=Cstd -library=Crun'
16981 fi
16982 ;;
16983 esac
16984 ;;
16985
16986solaris*)
16987 case $cc_basename in
16988 CC*)
16989 # The more standards-conforming stlport4 library is
16990 # incompatible with the Cstd library. Avoid specifying
16991 # it if it's in CXXFLAGS. Ignore libCrun as
16992 # -library=stlport4 depends on it.
16993 case " $CXX $CXXFLAGS " in
16994 *" -library=stlport4 "*)
16995 solaris_use_stlport4=yes
16996 ;;
16997 esac
16998
16999 # Adding this requires a known-good setup of shared libraries for
17000 # Sun compiler versions before 5.6, else PIC objects from an old
17001 # archive will be linked into the output, leading to subtle bugs.
17002 if test "$solaris_use_stlport4" != yes; then
17003 postdeps_CXX='-library=Cstd -library=Crun'
17004 fi
17005 ;;
17006 esac
17007 ;;
17008esac
17009
17010
17011case " $postdeps_CXX " in
17012*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17013esac
17014 compiler_lib_search_dirs_CXX=
17015if test -n "${compiler_lib_search_path_CXX}"; then
17016 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17017fi
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049 lt_prog_compiler_wl_CXX=
17050lt_prog_compiler_pic_CXX=
17051lt_prog_compiler_static_CXX=
17052
cristy8b350f62009-11-15 23:12:43 +000017053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017054$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17055
17056 # C++ specific cases for pic, static, wl, etc.
17057 if test "$GXX" = yes; then
17058 lt_prog_compiler_wl_CXX='-Wl,'
17059 lt_prog_compiler_static_CXX='-static'
17060
17061 case $host_os in
17062 aix*)
17063 # All AIX code is PIC.
17064 if test "$host_cpu" = ia64; then
17065 # AIX 5 now supports IA64 processor
17066 lt_prog_compiler_static_CXX='-Bstatic'
17067 fi
17068 ;;
17069
17070 amigaos*)
17071 case $host_cpu in
17072 powerpc)
17073 # see comment about AmigaOS4 .so support
17074 lt_prog_compiler_pic_CXX='-fPIC'
17075 ;;
17076 m68k)
17077 # FIXME: we need at least 68020 code to build shared libraries, but
17078 # adding the `-m68020' flag to GCC prevents building anything better,
17079 # like `-m68040'.
17080 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17081 ;;
17082 esac
17083 ;;
17084
17085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17086 # PIC is the default for these OSes.
17087 ;;
17088 mingw* | cygwin* | os2* | pw32* | cegcc*)
17089 # This hack is so that the source file can tell whether it is being
17090 # built for inclusion in a dll (and should export symbols for example).
17091 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17092 # (--disable-auto-import) libraries
17093 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17094 ;;
17095 darwin* | rhapsody*)
17096 # PIC is the default on this platform
17097 # Common symbols not allowed in MH_DYLIB files
17098 lt_prog_compiler_pic_CXX='-fno-common'
17099 ;;
17100 *djgpp*)
17101 # DJGPP does not support shared libraries at all
17102 lt_prog_compiler_pic_CXX=
17103 ;;
17104 interix[3-9]*)
17105 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17106 # Instead, we relocate shared libraries at runtime.
17107 ;;
17108 sysv4*MP*)
17109 if test -d /usr/nec; then
17110 lt_prog_compiler_pic_CXX=-Kconform_pic
17111 fi
17112 ;;
17113 hpux*)
17114 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17115 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17116 # sets the default TLS model and affects inlining.
17117 case $host_cpu in
17118 hppa*64*)
17119 ;;
17120 *)
17121 lt_prog_compiler_pic_CXX='-fPIC'
17122 ;;
17123 esac
17124 ;;
17125 *qnx* | *nto*)
17126 # QNX uses GNU C++, but need to define -shared option too, otherwise
17127 # it will coredump.
17128 lt_prog_compiler_pic_CXX='-fPIC -shared'
17129 ;;
17130 *)
17131 lt_prog_compiler_pic_CXX='-fPIC'
17132 ;;
17133 esac
17134 else
17135 case $host_os in
17136 aix[4-9]*)
17137 # All AIX code is PIC.
17138 if test "$host_cpu" = ia64; then
17139 # AIX 5 now supports IA64 processor
17140 lt_prog_compiler_static_CXX='-Bstatic'
17141 else
17142 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17143 fi
17144 ;;
17145 chorus*)
17146 case $cc_basename in
17147 cxch68*)
17148 # Green Hills C++ Compiler
17149 # _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"
17150 ;;
17151 esac
17152 ;;
17153 dgux*)
17154 case $cc_basename in
17155 ec++*)
17156 lt_prog_compiler_pic_CXX='-KPIC'
17157 ;;
17158 ghcx*)
17159 # Green Hills C++ Compiler
17160 lt_prog_compiler_pic_CXX='-pic'
17161 ;;
17162 *)
17163 ;;
17164 esac
17165 ;;
17166 freebsd* | dragonfly*)
17167 # FreeBSD uses GNU C++
17168 ;;
17169 hpux9* | hpux10* | hpux11*)
17170 case $cc_basename in
17171 CC*)
17172 lt_prog_compiler_wl_CXX='-Wl,'
17173 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17174 if test "$host_cpu" != ia64; then
17175 lt_prog_compiler_pic_CXX='+Z'
17176 fi
17177 ;;
17178 aCC*)
17179 lt_prog_compiler_wl_CXX='-Wl,'
17180 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17181 case $host_cpu in
17182 hppa*64*|ia64*)
17183 # +Z the default
17184 ;;
17185 *)
17186 lt_prog_compiler_pic_CXX='+Z'
17187 ;;
17188 esac
17189 ;;
17190 *)
17191 ;;
17192 esac
17193 ;;
17194 interix*)
17195 # This is c89, which is MS Visual C++ (no shared libs)
17196 # Anyone wants to do a port?
17197 ;;
17198 irix5* | irix6* | nonstopux*)
17199 case $cc_basename in
17200 CC*)
17201 lt_prog_compiler_wl_CXX='-Wl,'
17202 lt_prog_compiler_static_CXX='-non_shared'
17203 # CC pic flag -KPIC is the default.
17204 ;;
17205 *)
17206 ;;
17207 esac
17208 ;;
cristy18304f92009-11-22 15:48:26 +000017209 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017210 case $cc_basename in
17211 KCC*)
17212 # KAI C++ Compiler
17213 lt_prog_compiler_wl_CXX='--backend -Wl,'
17214 lt_prog_compiler_pic_CXX='-fPIC'
17215 ;;
17216 ecpc* )
17217 # old Intel C++ for x86_64 which still supported -KPIC.
17218 lt_prog_compiler_wl_CXX='-Wl,'
17219 lt_prog_compiler_pic_CXX='-KPIC'
17220 lt_prog_compiler_static_CXX='-static'
17221 ;;
17222 icpc* )
17223 # Intel C++, used to be incompatible with GCC.
17224 # ICC 10 doesn't accept -KPIC any more.
17225 lt_prog_compiler_wl_CXX='-Wl,'
17226 lt_prog_compiler_pic_CXX='-fPIC'
17227 lt_prog_compiler_static_CXX='-static'
17228 ;;
17229 pgCC* | pgcpp*)
17230 # Portland Group C++ compiler
17231 lt_prog_compiler_wl_CXX='-Wl,'
17232 lt_prog_compiler_pic_CXX='-fpic'
17233 lt_prog_compiler_static_CXX='-Bstatic'
17234 ;;
17235 cxx*)
17236 # Compaq C++
17237 # Make sure the PIC flag is empty. It appears that all Alpha
17238 # Linux and Compaq Tru64 Unix objects are PIC.
17239 lt_prog_compiler_pic_CXX=
17240 lt_prog_compiler_static_CXX='-non_shared'
17241 ;;
cristy18304f92009-11-22 15:48:26 +000017242 xlc* | xlC*)
17243 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017244 lt_prog_compiler_wl_CXX='-Wl,'
17245 lt_prog_compiler_pic_CXX='-qpic'
17246 lt_prog_compiler_static_CXX='-qstaticlink'
17247 ;;
17248 *)
17249 case `$CC -V 2>&1 | sed 5q` in
17250 *Sun\ C*)
17251 # Sun C++ 5.9
17252 lt_prog_compiler_pic_CXX='-KPIC'
17253 lt_prog_compiler_static_CXX='-Bstatic'
17254 lt_prog_compiler_wl_CXX='-Qoption ld '
17255 ;;
17256 esac
17257 ;;
17258 esac
17259 ;;
17260 lynxos*)
17261 ;;
17262 m88k*)
17263 ;;
17264 mvs*)
17265 case $cc_basename in
17266 cxx*)
17267 lt_prog_compiler_pic_CXX='-W c,exportall'
17268 ;;
17269 *)
17270 ;;
17271 esac
17272 ;;
17273 netbsd*)
17274 ;;
17275 *qnx* | *nto*)
17276 # QNX uses GNU C++, but need to define -shared option too, otherwise
17277 # it will coredump.
17278 lt_prog_compiler_pic_CXX='-fPIC -shared'
17279 ;;
17280 osf3* | osf4* | osf5*)
17281 case $cc_basename in
17282 KCC*)
17283 lt_prog_compiler_wl_CXX='--backend -Wl,'
17284 ;;
17285 RCC*)
17286 # Rational C++ 2.4.1
17287 lt_prog_compiler_pic_CXX='-pic'
17288 ;;
17289 cxx*)
17290 # Digital/Compaq C++
17291 lt_prog_compiler_wl_CXX='-Wl,'
17292 # Make sure the PIC flag is empty. It appears that all Alpha
17293 # Linux and Compaq Tru64 Unix objects are PIC.
17294 lt_prog_compiler_pic_CXX=
17295 lt_prog_compiler_static_CXX='-non_shared'
17296 ;;
17297 *)
17298 ;;
17299 esac
17300 ;;
17301 psos*)
17302 ;;
17303 solaris*)
17304 case $cc_basename in
17305 CC*)
17306 # Sun C++ 4.2, 5.x and Centerline C++
17307 lt_prog_compiler_pic_CXX='-KPIC'
17308 lt_prog_compiler_static_CXX='-Bstatic'
17309 lt_prog_compiler_wl_CXX='-Qoption ld '
17310 ;;
17311 gcx*)
17312 # Green Hills C++ Compiler
17313 lt_prog_compiler_pic_CXX='-PIC'
17314 ;;
17315 *)
17316 ;;
17317 esac
17318 ;;
17319 sunos4*)
17320 case $cc_basename in
17321 CC*)
17322 # Sun C++ 4.x
17323 lt_prog_compiler_pic_CXX='-pic'
17324 lt_prog_compiler_static_CXX='-Bstatic'
17325 ;;
17326 lcc*)
17327 # Lucid
17328 lt_prog_compiler_pic_CXX='-pic'
17329 ;;
17330 *)
17331 ;;
17332 esac
17333 ;;
17334 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17335 case $cc_basename in
17336 CC*)
17337 lt_prog_compiler_wl_CXX='-Wl,'
17338 lt_prog_compiler_pic_CXX='-KPIC'
17339 lt_prog_compiler_static_CXX='-Bstatic'
17340 ;;
17341 esac
17342 ;;
17343 tandem*)
17344 case $cc_basename in
17345 NCC*)
17346 # NonStop-UX NCC 3.20
17347 lt_prog_compiler_pic_CXX='-KPIC'
17348 ;;
17349 *)
17350 ;;
17351 esac
17352 ;;
17353 vxworks*)
17354 ;;
17355 *)
17356 lt_prog_compiler_can_build_shared_CXX=no
17357 ;;
17358 esac
17359 fi
17360
17361case $host_os in
17362 # For platforms which do not support PIC, -DPIC is meaningless:
17363 *djgpp*)
17364 lt_prog_compiler_pic_CXX=
17365 ;;
17366 *)
17367 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17368 ;;
17369esac
cristy8b350f62009-11-15 23:12:43 +000017370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017371$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17372
17373
17374
17375#
17376# Check to make sure the PIC flag actually works.
17377#
17378if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017379 { $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 +000017380$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017381if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017382 $as_echo_n "(cached) " >&6
17383else
17384 lt_cv_prog_compiler_pic_works_CXX=no
17385 ac_outfile=conftest.$ac_objext
17386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17387 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17388 # Insert the option either (1) after the last *FLAGS variable, or
17389 # (2) before a word containing "conftest.", or (3) at the end.
17390 # Note that $ac_compile itself does not contain backslashes and begins
17391 # with a dollar sign (not a hyphen), so the echo should work correctly.
17392 # The option is referenced via a variable to avoid confusing sed.
17393 lt_compile=`echo "$ac_compile" | $SED \
17394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17396 -e 's:$: $lt_compiler_flag:'`
cristy735e8942010-04-02 20:32:57 +000017397 (eval echo "\"\$as_me:17397: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017398 (eval "$lt_compile" 2>conftest.err)
17399 ac_status=$?
17400 cat conftest.err >&5
cristy735e8942010-04-02 20:32:57 +000017401 echo "$as_me:17401: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017402 if (exit $ac_status) && test -s "$ac_outfile"; then
17403 # The compiler can only warn and ignore the option if not recognized
17404 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017405 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17408 lt_cv_prog_compiler_pic_works_CXX=yes
17409 fi
17410 fi
17411 $RM conftest*
17412
17413fi
cristy8b350f62009-11-15 23:12:43 +000017414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017415$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17416
17417if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17418 case $lt_prog_compiler_pic_CXX in
17419 "" | " "*) ;;
17420 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17421 esac
17422else
17423 lt_prog_compiler_pic_CXX=
17424 lt_prog_compiler_can_build_shared_CXX=no
17425fi
17426
17427fi
17428
17429
17430
17431#
17432# Check to make sure the static flag actually works.
17433#
17434wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017436$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017437if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017438 $as_echo_n "(cached) " >&6
17439else
17440 lt_cv_prog_compiler_static_works_CXX=no
17441 save_LDFLAGS="$LDFLAGS"
17442 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17443 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17445 # The linker can only warn and ignore the option if not recognized
17446 # So say no if there are warnings
17447 if test -s conftest.err; then
17448 # Append any errors to the config.log.
17449 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017450 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17452 if diff conftest.exp conftest.er2 >/dev/null; then
17453 lt_cv_prog_compiler_static_works_CXX=yes
17454 fi
17455 else
17456 lt_cv_prog_compiler_static_works_CXX=yes
17457 fi
17458 fi
17459 $RM -r conftest*
17460 LDFLAGS="$save_LDFLAGS"
17461
17462fi
cristy8b350f62009-11-15 23:12:43 +000017463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017464$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17465
17466if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17467 :
17468else
17469 lt_prog_compiler_static_CXX=
17470fi
17471
17472
17473
17474
cristy8b350f62009-11-15 23:12:43 +000017475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017477if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017478 $as_echo_n "(cached) " >&6
17479else
17480 lt_cv_prog_compiler_c_o_CXX=no
17481 $RM -r conftest 2>/dev/null
17482 mkdir conftest
17483 cd conftest
17484 mkdir out
17485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17486
17487 lt_compiler_flag="-o out/conftest2.$ac_objext"
17488 # Insert the option either (1) after the last *FLAGS variable, or
17489 # (2) before a word containing "conftest.", or (3) at the end.
17490 # Note that $ac_compile itself does not contain backslashes and begins
17491 # with a dollar sign (not a hyphen), so the echo should work correctly.
17492 lt_compile=`echo "$ac_compile" | $SED \
17493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17495 -e 's:$: $lt_compiler_flag:'`
cristy735e8942010-04-02 20:32:57 +000017496 (eval echo "\"\$as_me:17496: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017497 (eval "$lt_compile" 2>out/conftest.err)
17498 ac_status=$?
17499 cat out/conftest.err >&5
cristy735e8942010-04-02 20:32:57 +000017500 echo "$as_me:17500: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17502 then
17503 # The compiler can only warn and ignore the option if not recognized
17504 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017505 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17508 lt_cv_prog_compiler_c_o_CXX=yes
17509 fi
17510 fi
17511 chmod u+w . 2>&5
17512 $RM conftest*
17513 # SGI C++ compiler will create directory out/ii_files/ for
17514 # template instantiation
17515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17516 $RM out/* && rmdir out
17517 cd ..
17518 $RM -r conftest
17519 $RM conftest*
17520
17521fi
cristy8b350f62009-11-15 23:12:43 +000017522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017523$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17524
17525
17526
cristy8b350f62009-11-15 23:12:43 +000017527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017529if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017530 $as_echo_n "(cached) " >&6
17531else
17532 lt_cv_prog_compiler_c_o_CXX=no
17533 $RM -r conftest 2>/dev/null
17534 mkdir conftest
17535 cd conftest
17536 mkdir out
17537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17538
17539 lt_compiler_flag="-o out/conftest2.$ac_objext"
17540 # Insert the option either (1) after the last *FLAGS variable, or
17541 # (2) before a word containing "conftest.", or (3) at the end.
17542 # Note that $ac_compile itself does not contain backslashes and begins
17543 # with a dollar sign (not a hyphen), so the echo should work correctly.
17544 lt_compile=`echo "$ac_compile" | $SED \
17545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17547 -e 's:$: $lt_compiler_flag:'`
cristy735e8942010-04-02 20:32:57 +000017548 (eval echo "\"\$as_me:17548: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017549 (eval "$lt_compile" 2>out/conftest.err)
17550 ac_status=$?
17551 cat out/conftest.err >&5
cristy735e8942010-04-02 20:32:57 +000017552 echo "$as_me:17552: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17554 then
17555 # The compiler can only warn and ignore the option if not recognized
17556 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017557 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17560 lt_cv_prog_compiler_c_o_CXX=yes
17561 fi
17562 fi
17563 chmod u+w . 2>&5
17564 $RM conftest*
17565 # SGI C++ compiler will create directory out/ii_files/ for
17566 # template instantiation
17567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17568 $RM out/* && rmdir out
17569 cd ..
17570 $RM -r conftest
17571 $RM conftest*
17572
17573fi
cristy8b350f62009-11-15 23:12:43 +000017574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017575$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17576
17577
17578
17579
17580hard_links="nottested"
17581if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17582 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017584$as_echo_n "checking if we can lock with hard links... " >&6; }
17585 hard_links=yes
17586 $RM conftest*
17587 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17588 touch conftest.a
17589 ln conftest.a conftest.b 2>&5 || hard_links=no
17590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017592$as_echo "$hard_links" >&6; }
17593 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017594 { $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 +000017595$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17596 need_locks=warn
17597 fi
17598else
17599 need_locks=no
17600fi
17601
17602
17603
cristy8b350f62009-11-15 23:12:43 +000017604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017605$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17606
17607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17608 case $host_os in
17609 aix[4-9]*)
17610 # If we're using GNU nm, then we don't want the "-C" option.
17611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17612 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000017613 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 +000017614 else
17615 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'
17616 fi
17617 ;;
17618 pw32*)
17619 export_symbols_cmds_CXX="$ltdll_cmds"
17620 ;;
17621 cygwin* | mingw* | cegcc*)
17622 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'
17623 ;;
17624 *)
17625 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17626 ;;
17627 esac
17628 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17629
cristy8b350f62009-11-15 23:12:43 +000017630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017631$as_echo "$ld_shlibs_CXX" >&6; }
17632test "$ld_shlibs_CXX" = no && can_build_shared=no
17633
17634with_gnu_ld_CXX=$with_gnu_ld
17635
17636
17637
17638
17639
17640
17641#
17642# Do we need to explicitly link libc?
17643#
17644case "x$archive_cmds_need_lc_CXX" in
17645x|xyes)
17646 # Assume -lc should be added
17647 archive_cmds_need_lc_CXX=yes
17648
17649 if test "$enable_shared" = yes && test "$GCC" = yes; then
17650 case $archive_cmds_CXX in
17651 *'~'*)
17652 # FIXME: we may have to deal with multi-command sequences.
17653 ;;
17654 '$CC '*)
17655 # Test whether the compiler implicitly links with -lc since on some
17656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17657 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017659$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000017660 $RM conftest*
17661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017662
cristy18304f92009-11-22 15:48:26 +000017663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017664 (eval $ac_compile) 2>&5
17665 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17667 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000017668 soname=conftest
17669 lib=conftest
17670 libobjs=conftest.$ac_objext
17671 deplibs=
17672 wl=$lt_prog_compiler_wl_CXX
17673 pic_flag=$lt_prog_compiler_pic_CXX
17674 compiler_flags=-v
17675 linker_flags=-v
17676 verstring=
17677 output_objdir=.
17678 libname=conftest
17679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17680 allow_undefined_flag_CXX=
17681 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 +000017682 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17683 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17685 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000017686 then
17687 archive_cmds_need_lc_CXX=no
17688 else
17689 archive_cmds_need_lc_CXX=yes
17690 fi
17691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17692 else
17693 cat conftest.err 1>&5
17694 fi
17695 $RM conftest*
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17697$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000017698 ;;
17699 esac
17700 fi
17701 ;;
17702esac
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
cristy8b350f62009-11-15 23:12:43 +000017767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000017768$as_echo_n "checking dynamic linker characteristics... " >&6; }
17769
17770library_names_spec=
17771libname_spec='lib$name'
17772soname_spec=
17773shrext_cmds=".so"
17774postinstall_cmds=
17775postuninstall_cmds=
17776finish_cmds=
17777finish_eval=
17778shlibpath_var=
17779shlibpath_overrides_runpath=unknown
17780version_type=none
17781dynamic_linker="$host_os ld.so"
17782sys_lib_dlsearch_path_spec="/lib /usr/lib"
17783need_lib_prefix=unknown
17784hardcode_into_libs=no
17785
17786# when you set need_version to no, make sure it does not cause -set_version
17787# flags to be left without arguments
17788need_version=unknown
17789
17790case $host_os in
17791aix3*)
17792 version_type=linux
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17794 shlibpath_var=LIBPATH
17795
17796 # AIX 3 has no versioning support, so we append a major version to the name.
17797 soname_spec='${libname}${release}${shared_ext}$major'
17798 ;;
17799
17800aix[4-9]*)
17801 version_type=linux
17802 need_lib_prefix=no
17803 need_version=no
17804 hardcode_into_libs=yes
17805 if test "$host_cpu" = ia64; then
17806 # AIX 5 supports IA64
17807 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 else
17810 # With GCC up to 2.95.x, collect2 would create an import file
17811 # for dependence libraries. The import file would start with
17812 # the line `#! .'. This would cause the generated library to
17813 # depend on `.', always an invalid library. This was fixed in
17814 # development snapshots of GCC prior to 3.0.
17815 case $host_os in
17816 aix4 | aix4.[01] | aix4.[01].*)
17817 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17818 echo ' yes '
17819 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17820 :
17821 else
17822 can_build_shared=no
17823 fi
17824 ;;
17825 esac
17826 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17827 # soname into executable. Probably we can add versioning support to
17828 # collect2, so additional links can be useful in future.
17829 if test "$aix_use_runtimelinking" = yes; then
17830 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17831 # instead of lib<name>.a to let people know that these are not
17832 # typical AIX shared libraries.
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 else
17835 # We preserve .a as extension for shared libraries through AIX4.2
17836 # and later when we are not doing run time linking.
17837 library_names_spec='${libname}${release}.a $libname.a'
17838 soname_spec='${libname}${release}${shared_ext}$major'
17839 fi
17840 shlibpath_var=LIBPATH
17841 fi
17842 ;;
17843
17844amigaos*)
17845 case $host_cpu in
17846 powerpc)
17847 # Since July 2007 AmigaOS4 officially supports .so libraries.
17848 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850 ;;
17851 m68k)
17852 library_names_spec='$libname.ixlibrary $libname.a'
17853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000017854 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 +000017855 ;;
17856 esac
17857 ;;
17858
17859beos*)
17860 library_names_spec='${libname}${shared_ext}'
17861 dynamic_linker="$host_os ld.so"
17862 shlibpath_var=LIBRARY_PATH
17863 ;;
17864
17865bsdi[45]*)
17866 version_type=linux
17867 need_version=no
17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869 soname_spec='${libname}${release}${shared_ext}$major'
17870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17871 shlibpath_var=LD_LIBRARY_PATH
17872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17874 # the default ld.so.conf also contains /usr/contrib/lib and
17875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17876 # libtool to hard-code these into programs
17877 ;;
17878
17879cygwin* | mingw* | pw32* | cegcc*)
17880 version_type=windows
17881 shrext_cmds=".dll"
17882 need_version=no
17883 need_lib_prefix=no
17884
17885 case $GCC,$host_os in
17886 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17887 library_names_spec='$libname.dll.a'
17888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17889 postinstall_cmds='base_file=`basename \${file}`~
17890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17891 dldir=$destdir/`dirname \$dlpath`~
17892 test -d \$dldir || mkdir -p \$dldir~
17893 $install_prog $dir/$dlname \$dldir/$dlname~
17894 chmod a+x \$dldir/$dlname~
17895 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17896 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17897 fi'
17898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17899 dlpath=$dir/\$dldll~
17900 $RM \$dlpath'
17901 shlibpath_overrides_runpath=yes
17902
17903 case $host_os in
17904 cygwin*)
17905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017907 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000017908 ;;
17909 mingw* | cegcc*)
17910 # MinGW DLLs use traditional 'lib' prefix
17911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017912 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17913 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17914 # It is most probably a Windows format PATH printed by
17915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17916 # path with ; separators, and with drive letters. We can handle the
17917 # drive letters (cygwin fileutils understands them), so leave them,
17918 # especially as we might pass files found there to a mingw objdump,
17919 # which wouldn't understand a cygwinified path. Ahh.
17920 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17921 else
17922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17923 fi
cristy3ed852e2009-09-05 21:47:34 +000017924 ;;
17925 pw32*)
17926 # pw32 DLLs use 'pw' prefix rather than 'lib'
17927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17928 ;;
17929 esac
17930 ;;
17931
17932 *)
17933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17934 ;;
17935 esac
17936 dynamic_linker='Win32 ld.exe'
17937 # FIXME: first we should search . and the directory the executable is in
17938 shlibpath_var=PATH
17939 ;;
17940
17941darwin* | rhapsody*)
17942 dynamic_linker="$host_os dyld"
17943 version_type=darwin
17944 need_lib_prefix=no
17945 need_version=no
17946 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17947 soname_spec='${libname}${release}${major}$shared_ext'
17948 shlibpath_overrides_runpath=yes
17949 shlibpath_var=DYLD_LIBRARY_PATH
17950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17951
17952 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17953 ;;
17954
17955dgux*)
17956 version_type=linux
17957 need_lib_prefix=no
17958 need_version=no
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 ;;
17963
17964freebsd1*)
17965 dynamic_linker=no
17966 ;;
17967
17968freebsd* | dragonfly*)
17969 # DragonFly does not have aout. When/if they implement a new
17970 # versioning mechanism, adjust this.
17971 if test -x /usr/bin/objformat; then
17972 objformat=`/usr/bin/objformat`
17973 else
17974 case $host_os in
17975 freebsd[123]*) objformat=aout ;;
17976 *) objformat=elf ;;
17977 esac
17978 fi
17979 version_type=freebsd-$objformat
17980 case $version_type in
17981 freebsd-elf*)
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17983 need_version=no
17984 need_lib_prefix=no
17985 ;;
17986 freebsd-*)
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17988 need_version=yes
17989 ;;
17990 esac
17991 shlibpath_var=LD_LIBRARY_PATH
17992 case $host_os in
17993 freebsd2*)
17994 shlibpath_overrides_runpath=yes
17995 ;;
17996 freebsd3.[01]* | freebsdelf3.[01]*)
17997 shlibpath_overrides_runpath=yes
17998 hardcode_into_libs=yes
17999 ;;
18000 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18001 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18002 shlibpath_overrides_runpath=no
18003 hardcode_into_libs=yes
18004 ;;
18005 *) # from 4.6 on, and DragonFly
18006 shlibpath_overrides_runpath=yes
18007 hardcode_into_libs=yes
18008 ;;
18009 esac
18010 ;;
18011
18012gnu*)
18013 version_type=linux
18014 need_lib_prefix=no
18015 need_version=no
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18017 soname_spec='${libname}${release}${shared_ext}$major'
18018 shlibpath_var=LD_LIBRARY_PATH
18019 hardcode_into_libs=yes
18020 ;;
18021
18022hpux9* | hpux10* | hpux11*)
18023 # Give a soname corresponding to the major version so that dld.sl refuses to
18024 # link against other versions.
18025 version_type=sunos
18026 need_lib_prefix=no
18027 need_version=no
18028 case $host_cpu in
18029 ia64*)
18030 shrext_cmds='.so'
18031 hardcode_into_libs=yes
18032 dynamic_linker="$host_os dld.so"
18033 shlibpath_var=LD_LIBRARY_PATH
18034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18036 soname_spec='${libname}${release}${shared_ext}$major'
18037 if test "X$HPUX_IA64_MODE" = X32; then
18038 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18039 else
18040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18041 fi
18042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18043 ;;
18044 hppa*64*)
18045 shrext_cmds='.sl'
18046 hardcode_into_libs=yes
18047 dynamic_linker="$host_os dld.sl"
18048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18051 soname_spec='${libname}${release}${shared_ext}$major'
18052 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18054 ;;
18055 *)
18056 shrext_cmds='.sl'
18057 dynamic_linker="$host_os dld.sl"
18058 shlibpath_var=SHLIB_PATH
18059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18061 soname_spec='${libname}${release}${shared_ext}$major'
18062 ;;
18063 esac
cristy18304f92009-11-22 15:48:26 +000018064 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018065 postinstall_cmds='chmod 555 $lib'
18066 ;;
18067
18068interix[3-9]*)
18069 version_type=linux
18070 need_lib_prefix=no
18071 need_version=no
18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18073 soname_spec='${libname}${release}${shared_ext}$major'
18074 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18075 shlibpath_var=LD_LIBRARY_PATH
18076 shlibpath_overrides_runpath=no
18077 hardcode_into_libs=yes
18078 ;;
18079
18080irix5* | irix6* | nonstopux*)
18081 case $host_os in
18082 nonstopux*) version_type=nonstopux ;;
18083 *)
18084 if test "$lt_cv_prog_gnu_ld" = yes; then
18085 version_type=linux
18086 else
18087 version_type=irix
18088 fi ;;
18089 esac
18090 need_lib_prefix=no
18091 need_version=no
18092 soname_spec='${libname}${release}${shared_ext}$major'
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18094 case $host_os in
18095 irix5* | nonstopux*)
18096 libsuff= shlibsuff=
18097 ;;
18098 *)
18099 case $LD in # libtool.m4 will add one of these switches to LD
18100 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18101 libsuff= shlibsuff= libmagic=32-bit;;
18102 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18103 libsuff=32 shlibsuff=N32 libmagic=N32;;
18104 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18105 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18106 *) libsuff= shlibsuff= libmagic=never-match;;
18107 esac
18108 ;;
18109 esac
18110 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18111 shlibpath_overrides_runpath=no
18112 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18113 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18114 hardcode_into_libs=yes
18115 ;;
18116
18117# No shared lib support for Linux oldld, aout, or coff.
18118linux*oldld* | linux*aout* | linux*coff*)
18119 dynamic_linker=no
18120 ;;
18121
18122# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018123linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018124 version_type=linux
18125 need_lib_prefix=no
18126 need_version=no
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18130 shlibpath_var=LD_LIBRARY_PATH
18131 shlibpath_overrides_runpath=no
18132 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018133 save_LDFLAGS=$LDFLAGS
18134 save_libdir=$libdir
18135 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18136 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018138/* end confdefs.h. */
18139
18140int
18141main ()
18142{
18143
18144 ;
18145 return 0;
18146}
18147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018148if ac_fn_cxx_try_link "$LINENO"; then :
18149 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018150 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018151fi
cristy3ed852e2009-09-05 21:47:34 +000018152fi
cristy8b350f62009-11-15 23:12:43 +000018153rm -f core conftest.err conftest.$ac_objext \
18154 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018155 LDFLAGS=$save_LDFLAGS
18156 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018157
18158 # This implies no fast_install, which is unacceptable.
18159 # Some rework will be needed to allow for fast_install
18160 # before this can be enabled.
18161 hardcode_into_libs=yes
18162
cristy679ed8e2009-12-05 02:37:41 +000018163 # Add ABI-specific directories to the system library path.
18164 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18165
cristy3ed852e2009-09-05 21:47:34 +000018166 # Append ld.so.conf contents to the search path
18167 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018168 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 +000018169 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018170 fi
18171
18172 # We used to test for /lib/ld.so.1 and disable shared libraries on
18173 # powerpc, because MkLinux only supported shared libraries with the
18174 # GNU dynamic linker. Since this was broken with cross compilers,
18175 # most powerpc-linux boxes support dynamic linking these days and
18176 # people can always --disable-shared, the test was removed, and we
18177 # assume the GNU/Linux dynamic linker is in use.
18178 dynamic_linker='GNU/Linux ld.so'
18179 ;;
18180
18181netbsd*)
18182 version_type=sunos
18183 need_lib_prefix=no
18184 need_version=no
18185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18188 dynamic_linker='NetBSD (a.out) ld.so'
18189 else
18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18191 soname_spec='${libname}${release}${shared_ext}$major'
18192 dynamic_linker='NetBSD ld.elf_so'
18193 fi
18194 shlibpath_var=LD_LIBRARY_PATH
18195 shlibpath_overrides_runpath=yes
18196 hardcode_into_libs=yes
18197 ;;
18198
18199newsos6)
18200 version_type=linux
18201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18202 shlibpath_var=LD_LIBRARY_PATH
18203 shlibpath_overrides_runpath=yes
18204 ;;
18205
18206*nto* | *qnx*)
18207 version_type=qnx
18208 need_lib_prefix=no
18209 need_version=no
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18211 soname_spec='${libname}${release}${shared_ext}$major'
18212 shlibpath_var=LD_LIBRARY_PATH
18213 shlibpath_overrides_runpath=no
18214 hardcode_into_libs=yes
18215 dynamic_linker='ldqnx.so'
18216 ;;
18217
18218openbsd*)
18219 version_type=sunos
18220 sys_lib_dlsearch_path_spec="/usr/lib"
18221 need_lib_prefix=no
18222 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18223 case $host_os in
18224 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18225 *) need_version=no ;;
18226 esac
18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18229 shlibpath_var=LD_LIBRARY_PATH
18230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18231 case $host_os in
18232 openbsd2.[89] | openbsd2.[89].*)
18233 shlibpath_overrides_runpath=no
18234 ;;
18235 *)
18236 shlibpath_overrides_runpath=yes
18237 ;;
18238 esac
18239 else
18240 shlibpath_overrides_runpath=yes
18241 fi
18242 ;;
18243
18244os2*)
18245 libname_spec='$name'
18246 shrext_cmds=".dll"
18247 need_lib_prefix=no
18248 library_names_spec='$libname${shared_ext} $libname.a'
18249 dynamic_linker='OS/2 ld.exe'
18250 shlibpath_var=LIBPATH
18251 ;;
18252
18253osf3* | osf4* | osf5*)
18254 version_type=osf
18255 need_lib_prefix=no
18256 need_version=no
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18259 shlibpath_var=LD_LIBRARY_PATH
18260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18261 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18262 ;;
18263
18264rdos*)
18265 dynamic_linker=no
18266 ;;
18267
18268solaris*)
18269 version_type=linux
18270 need_lib_prefix=no
18271 need_version=no
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 shlibpath_var=LD_LIBRARY_PATH
18275 shlibpath_overrides_runpath=yes
18276 hardcode_into_libs=yes
18277 # ldd complains unless libraries are executable
18278 postinstall_cmds='chmod +x $lib'
18279 ;;
18280
18281sunos4*)
18282 version_type=sunos
18283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18285 shlibpath_var=LD_LIBRARY_PATH
18286 shlibpath_overrides_runpath=yes
18287 if test "$with_gnu_ld" = yes; then
18288 need_lib_prefix=no
18289 fi
18290 need_version=yes
18291 ;;
18292
18293sysv4 | sysv4.3*)
18294 version_type=linux
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18296 soname_spec='${libname}${release}${shared_ext}$major'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 case $host_vendor in
18299 sni)
18300 shlibpath_overrides_runpath=no
18301 need_lib_prefix=no
18302 runpath_var=LD_RUN_PATH
18303 ;;
18304 siemens)
18305 need_lib_prefix=no
18306 ;;
18307 motorola)
18308 need_lib_prefix=no
18309 need_version=no
18310 shlibpath_overrides_runpath=no
18311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18312 ;;
18313 esac
18314 ;;
18315
18316sysv4*MP*)
18317 if test -d /usr/nec ;then
18318 version_type=linux
18319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18320 soname_spec='$libname${shared_ext}.$major'
18321 shlibpath_var=LD_LIBRARY_PATH
18322 fi
18323 ;;
18324
18325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18326 version_type=freebsd-elf
18327 need_lib_prefix=no
18328 need_version=no
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 shlibpath_overrides_runpath=yes
18333 hardcode_into_libs=yes
18334 if test "$with_gnu_ld" = yes; then
18335 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18336 else
18337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18338 case $host_os in
18339 sco3.2v5*)
18340 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18341 ;;
18342 esac
18343 fi
18344 sys_lib_dlsearch_path_spec='/usr/lib'
18345 ;;
18346
18347tpf*)
18348 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18349 version_type=linux
18350 need_lib_prefix=no
18351 need_version=no
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353 shlibpath_var=LD_LIBRARY_PATH
18354 shlibpath_overrides_runpath=no
18355 hardcode_into_libs=yes
18356 ;;
18357
18358uts4*)
18359 version_type=linux
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361 soname_spec='${libname}${release}${shared_ext}$major'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 ;;
18364
18365*)
18366 dynamic_linker=no
18367 ;;
18368esac
cristy8b350f62009-11-15 23:12:43 +000018369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018370$as_echo "$dynamic_linker" >&6; }
18371test "$dynamic_linker" = no && can_build_shared=no
18372
18373variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18374if test "$GCC" = yes; then
18375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18376fi
18377
18378if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18379 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18380fi
18381if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18382 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18383fi
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
cristy8b350f62009-11-15 23:12:43 +000018420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018421$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18422hardcode_action_CXX=
18423if test -n "$hardcode_libdir_flag_spec_CXX" ||
18424 test -n "$runpath_var_CXX" ||
18425 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18426
18427 # We can hardcode non-existent directories.
18428 if test "$hardcode_direct_CXX" != no &&
18429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18430 # have to relink, otherwise we might link with an installed library
18431 # when we should be linking with a yet-to-be-installed one
18432 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18433 test "$hardcode_minus_L_CXX" != no; then
18434 # Linking always hardcodes the temporary library directory.
18435 hardcode_action_CXX=relink
18436 else
18437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18438 hardcode_action_CXX=immediate
18439 fi
18440else
18441 # We cannot hardcode anything, or else we can only hardcode existing
18442 # directories.
18443 hardcode_action_CXX=unsupported
18444fi
cristy8b350f62009-11-15 23:12:43 +000018445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018446$as_echo "$hardcode_action_CXX" >&6; }
18447
18448if test "$hardcode_action_CXX" = relink ||
18449 test "$inherit_rpath_CXX" = yes; then
18450 # Fast installation is not supported
18451 enable_fast_install=no
18452elif test "$shlibpath_overrides_runpath" = yes ||
18453 test "$enable_shared" = no; then
18454 # Fast installation is not necessary
18455 enable_fast_install=needless
18456fi
18457
18458
18459
18460
18461
18462
18463
18464 fi # test -n "$compiler"
18465
18466 CC=$lt_save_CC
18467 LDCXX=$LD
18468 LD=$lt_save_LD
18469 GCC=$lt_save_GCC
18470 with_gnu_ld=$lt_save_with_gnu_ld
18471 lt_cv_path_LDCXX=$lt_cv_path_LD
18472 lt_cv_path_LD=$lt_save_path_LD
18473 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18474 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18475fi # test "$_lt_caught_CXX_error" != yes
18476
18477ac_ext=c
18478ac_cpp='$CPP $CPPFLAGS'
18479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481ac_compiler_gnu=$ac_cv_c_compiler_gnu
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495 ac_config_commands="$ac_config_commands libtool"
18496
18497
18498
18499
18500# Only expand once:
18501
18502
18503
18504
18505
18506# Configure libltdl
18507
18508
18509
18510
18511
18512
18513
cristy18304f92009-11-22 15:48:26 +000018514
cristy8b350f62009-11-15 23:12:43 +000018515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018516$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018517if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018518 $as_echo_n "(cached) " >&6
18519else
18520
18521module=yes
18522eval libltdl_cv_shlibext=$shrext_cmds
18523
18524fi
cristy8b350f62009-11-15 23:12:43 +000018525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018526$as_echo "$libltdl_cv_shlibext" >&6; }
18527if test -n "$libltdl_cv_shlibext"; then
18528
18529cat >>confdefs.h <<_ACEOF
18530#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18531_ACEOF
18532
18533fi
18534
cristy8b350f62009-11-15 23:12:43 +000018535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018536$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018537if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018538 $as_echo_n "(cached) " >&6
18539else
18540 lt_cv_module_path_var="$shlibpath_var"
18541fi
cristy8b350f62009-11-15 23:12:43 +000018542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018543$as_echo "$lt_cv_module_path_var" >&6; }
18544if test -n "$lt_cv_module_path_var"; then
18545
18546cat >>confdefs.h <<_ACEOF
18547#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18548_ACEOF
18549
18550fi
18551
cristy8b350f62009-11-15 23:12:43 +000018552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018553$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018554if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018555 $as_echo_n "(cached) " >&6
18556else
18557 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18558fi
cristy8b350f62009-11-15 23:12:43 +000018559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018560$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18561if test -n "$lt_cv_sys_dlsearch_path"; then
18562 sys_dlsearch_path=
18563 for dir in $lt_cv_sys_dlsearch_path; do
18564 if test -z "$sys_dlsearch_path"; then
18565 sys_dlsearch_path="$dir"
18566 else
18567 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18568 fi
18569 done
18570
18571cat >>confdefs.h <<_ACEOF
18572#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18573_ACEOF
18574
18575fi
18576
18577
18578LT_DLLOADERS=
18579
18580
18581ac_ext=c
18582ac_cpp='$CPP $CPPFLAGS'
18583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585ac_compiler_gnu=$ac_cv_c_compiler_gnu
18586
18587
18588LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018590$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018591if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018592 $as_echo_n "(cached) " >&6
18593else
18594 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018596/* end confdefs.h. */
18597
18598/* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18601#ifdef __cplusplus
18602extern "C"
18603#endif
18604char dlopen ();
18605int
18606main ()
18607{
18608return dlopen ();
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613for ac_lib in '' dl; do
18614 if test -z "$ac_lib"; then
18615 ac_res="none required"
18616 else
18617 ac_res=-l$ac_lib
18618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18619 fi
cristy8b350f62009-11-15 23:12:43 +000018620 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018621 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018622fi
cristy8b350f62009-11-15 23:12:43 +000018623rm -f core conftest.err conftest.$ac_objext \
18624 conftest$ac_exeext
18625 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018626 break
18627fi
18628done
cristy8b350f62009-11-15 23:12:43 +000018629if test "${ac_cv_search_dlopen+set}" = set; then :
18630
cristy3ed852e2009-09-05 21:47:34 +000018631else
18632 ac_cv_search_dlopen=no
18633fi
18634rm conftest.$ac_ext
18635LIBS=$ac_func_search_save_LIBS
18636fi
cristy8b350f62009-11-15 23:12:43 +000018637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018638$as_echo "$ac_cv_search_dlopen" >&6; }
18639ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018640if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18642
cristy8b350f62009-11-15 23:12:43 +000018643$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018644
18645 if test "$ac_cv_search_dlopen" != "none required" ; then
18646 LIBADD_DLOPEN="-ldl"
18647 fi
18648 libltdl_cv_lib_dl_dlopen="yes"
18649 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18650else
cristy8b350f62009-11-15 23:12:43 +000018651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018652/* end confdefs.h. */
18653#if HAVE_DLFCN_H
18654# include <dlfcn.h>
18655#endif
18656
18657int
18658main ()
18659{
18660dlopen(0, 0);
18661 ;
18662 return 0;
18663}
18664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018665if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018666
cristy8b350f62009-11-15 23:12:43 +000018667$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018668
18669 libltdl_cv_func_dlopen="yes"
18670 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18671else
cristy8b350f62009-11-15 23:12:43 +000018672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018673$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018674if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018675 $as_echo_n "(cached) " >&6
18676else
18677 ac_check_lib_save_LIBS=$LIBS
18678LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018680/* end confdefs.h. */
18681
18682/* Override any GCC internal prototype to avoid an error.
18683 Use char because int might match the return type of a GCC
18684 builtin and then its argument prototype would still apply. */
18685#ifdef __cplusplus
18686extern "C"
18687#endif
18688char dlopen ();
18689int
18690main ()
18691{
18692return dlopen ();
18693 ;
18694 return 0;
18695}
18696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018698 ac_cv_lib_svld_dlopen=yes
18699else
cristy8b350f62009-11-15 23:12:43 +000018700 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000018701fi
cristy8b350f62009-11-15 23:12:43 +000018702rm -f core conftest.err conftest.$ac_objext \
18703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018704LIBS=$ac_check_lib_save_LIBS
18705fi
cristy8b350f62009-11-15 23:12:43 +000018706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018707$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018708if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018709
cristy8b350f62009-11-15 23:12:43 +000018710$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018711
18712 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18713 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18714fi
18715
18716fi
cristy8b350f62009-11-15 23:12:43 +000018717rm -f core conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018719fi
18720
18721if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18722then
18723 lt_save_LIBS="$LIBS"
18724 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000018725 for ac_func in dlerror
18726do :
18727 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18728if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018729 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018730#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000018731_ACEOF
18732
18733fi
18734done
18735
18736 LIBS="$lt_save_LIBS"
18737fi
18738
18739
18740LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000018741ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18742if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018743
cristy8b350f62009-11-15 23:12:43 +000018744$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018745
18746 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18747else
cristy8b350f62009-11-15 23:12:43 +000018748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018749$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018750if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018751 $as_echo_n "(cached) " >&6
18752else
18753 ac_check_lib_save_LIBS=$LIBS
18754LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018756/* end confdefs.h. */
18757
18758/* Override any GCC internal prototype to avoid an error.
18759 Use char because int might match the return type of a GCC
18760 builtin and then its argument prototype would still apply. */
18761#ifdef __cplusplus
18762extern "C"
18763#endif
18764char shl_load ();
18765int
18766main ()
18767{
18768return shl_load ();
18769 ;
18770 return 0;
18771}
18772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018773if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018774 ac_cv_lib_dld_shl_load=yes
18775else
cristy8b350f62009-11-15 23:12:43 +000018776 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000018777fi
cristy8b350f62009-11-15 23:12:43 +000018778rm -f core conftest.err conftest.$ac_objext \
18779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018780LIBS=$ac_check_lib_save_LIBS
18781fi
cristy8b350f62009-11-15 23:12:43 +000018782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000018783$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018784if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018785
cristy8b350f62009-11-15 23:12:43 +000018786$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018787
18788 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18789 LIBADD_SHL_LOAD="-ldld"
18790fi
18791
18792fi
18793
18794
18795
18796case $host_os in
18797darwin[1567].*)
18798# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000018799 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18800if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018801
cristy8b350f62009-11-15 23:12:43 +000018802$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018803
18804 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18805fi
18806
18807 ;;
18808beos*)
18809 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18810 ;;
18811cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000018812 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18813"
18814if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18815 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000018816else
cristy8b350f62009-11-15 23:12:43 +000018817 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000018818fi
18819
cristy3ed852e2009-09-05 21:47:34 +000018820cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018821#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000018822_ACEOF
18823
cristy3ed852e2009-09-05 21:47:34 +000018824 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18825 ;;
18826esac
18827
cristy8b350f62009-11-15 23:12:43 +000018828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018829$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018830if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018831 $as_echo_n "(cached) " >&6
18832else
18833 ac_check_lib_save_LIBS=$LIBS
18834LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018836/* end confdefs.h. */
18837
18838/* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18841#ifdef __cplusplus
18842extern "C"
18843#endif
18844char dld_link ();
18845int
18846main ()
18847{
18848return dld_link ();
18849 ;
18850 return 0;
18851}
18852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018854 ac_cv_lib_dld_dld_link=yes
18855else
cristy8b350f62009-11-15 23:12:43 +000018856 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000018857fi
cristy8b350f62009-11-15 23:12:43 +000018858rm -f core conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018860LIBS=$ac_check_lib_save_LIBS
18861fi
cristy8b350f62009-11-15 23:12:43 +000018862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000018863$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018864if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018865
cristy8b350f62009-11-15 23:12:43 +000018866$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018867
18868 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18869fi
18870
18871
18872
18873
18874LT_DLPREOPEN=
18875if test -n "$LT_DLLOADERS"
18876then
18877 for lt_loader in $LT_DLLOADERS; do
18878 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18879 done
18880
cristy8b350f62009-11-15 23:12:43 +000018881$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018882
18883fi
18884
18885
18886LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18887
18888
18889ac_ext=c
18890ac_cpp='$CPP $CPPFLAGS'
18891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893ac_compiler_gnu=$ac_cv_c_compiler_gnu
18894
18895
cristy8b350f62009-11-15 23:12:43 +000018896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018897$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018898if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018899 $as_echo_n "(cached) " >&6
18900else
18901 lt_cv_sys_symbol_underscore=no
18902 cat > conftest.$ac_ext <<_LT_EOF
18903void nm_test_func(){}
18904int main(){nm_test_func;return 0;}
18905_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018907 (eval $ac_compile) 2>&5
18908 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18910 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018911 # Now try to grab the symbols.
18912 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018913 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 +000018914 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18915 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18917 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018918 # See whether the symbols have a leading underscore.
18919 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18920 lt_cv_sys_symbol_underscore=yes
18921 else
18922 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18923 :
18924 else
18925 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18926 fi
18927 fi
18928 else
18929 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18930 fi
18931 else
18932 echo "configure: failed program was:" >&5
18933 cat conftest.c >&5
18934 fi
18935 rm -rf conftest*
18936
18937fi
cristy8b350f62009-11-15 23:12:43 +000018938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018939$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18940 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18941
18942
18943if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18944 if test x"$libltdl_cv_func_dlopen" = xyes ||
18945 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018947$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018948if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018949 $as_echo_n "(cached) " >&6
18950else
18951 libltdl_cv_need_uscore=unknown
18952 save_LIBS="$LIBS"
18953 LIBS="$LIBS $LIBADD_DLOPEN"
18954 if test "$cross_compiling" = yes; then :
18955 libltdl_cv_need_uscore=cross
18956else
18957 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18958 lt_status=$lt_dlunknown
18959 cat > conftest.$ac_ext <<_LT_EOF
cristy735e8942010-04-02 20:32:57 +000018960#line 18960 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018961#include "confdefs.h"
18962
18963#if HAVE_DLFCN_H
18964#include <dlfcn.h>
18965#endif
18966
18967#include <stdio.h>
18968
18969#ifdef RTLD_GLOBAL
18970# define LT_DLGLOBAL RTLD_GLOBAL
18971#else
18972# ifdef DL_GLOBAL
18973# define LT_DLGLOBAL DL_GLOBAL
18974# else
18975# define LT_DLGLOBAL 0
18976# endif
18977#endif
18978
18979/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18980 find out it does not work in some platform. */
18981#ifndef LT_DLLAZY_OR_NOW
18982# ifdef RTLD_LAZY
18983# define LT_DLLAZY_OR_NOW RTLD_LAZY
18984# else
18985# ifdef DL_LAZY
18986# define LT_DLLAZY_OR_NOW DL_LAZY
18987# else
18988# ifdef RTLD_NOW
18989# define LT_DLLAZY_OR_NOW RTLD_NOW
18990# else
18991# ifdef DL_NOW
18992# define LT_DLLAZY_OR_NOW DL_NOW
18993# else
18994# define LT_DLLAZY_OR_NOW 0
18995# endif
18996# endif
18997# endif
18998# endif
18999#endif
19000
cristy18304f92009-11-22 15:48:26 +000019001void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019002int main ()
19003{
19004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19005 int status = $lt_dlunknown;
19006
19007 if (self)
19008 {
19009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019010 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019011 /* dlclose (self); */
19012 }
19013 else
19014 puts (dlerror ());
19015
19016 return status;
19017}
19018_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019020 (eval $ac_link) 2>&5
19021 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19023 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019024 (./conftest; exit; ) >&5 2>/dev/null
19025 lt_status=$?
19026 case x$lt_status in
19027 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19028 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19029 x$lt_dlunknown|x*) ;;
19030 esac
19031 else :
19032 # compilation failed
19033
19034 fi
19035fi
19036rm -fr conftest*
19037
19038 LIBS="$save_LIBS"
19039
19040fi
cristy8b350f62009-11-15 23:12:43 +000019041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019042$as_echo "$libltdl_cv_need_uscore" >&6; }
19043 fi
19044fi
19045
19046if test x"$libltdl_cv_need_uscore" = xyes; then
19047
cristy8b350f62009-11-15 23:12:43 +000019048$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019049
19050fi
19051
cristy8b350f62009-11-15 23:12:43 +000019052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019053$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019054if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019055 $as_echo_n "(cached) " >&6
19056else
19057 # PORTME does your system automatically load deplibs for dlopen?
19058 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19059 # For now, we just catch OSes we know something about -- in the
19060 # future, we'll try test this programmatically.
19061 lt_cv_sys_dlopen_deplibs=unknown
19062 case $host_os in
19063 aix3*|aix4.1.*|aix4.2.*)
19064 # Unknown whether this is true for these versions of AIX, but
19065 # we want this `case' here to explicitly catch those versions.
19066 lt_cv_sys_dlopen_deplibs=unknown
19067 ;;
19068 aix[4-9]*)
19069 lt_cv_sys_dlopen_deplibs=yes
19070 ;;
19071 amigaos*)
19072 case $host_cpu in
19073 powerpc)
19074 lt_cv_sys_dlopen_deplibs=no
19075 ;;
19076 esac
19077 ;;
19078 darwin*)
19079 # Assuming the user has installed a libdl from somewhere, this is true
19080 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19081 lt_cv_sys_dlopen_deplibs=yes
19082 ;;
19083 freebsd* | dragonfly*)
19084 lt_cv_sys_dlopen_deplibs=yes
19085 ;;
cristy18304f92009-11-22 15:48:26 +000019086 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019087 # GNU and its variants, using gnu ld.so (Glibc)
19088 lt_cv_sys_dlopen_deplibs=yes
19089 ;;
19090 hpux10*|hpux11*)
19091 lt_cv_sys_dlopen_deplibs=yes
19092 ;;
19093 interix*)
19094 lt_cv_sys_dlopen_deplibs=yes
19095 ;;
19096 irix[12345]*|irix6.[01]*)
19097 # Catch all versions of IRIX before 6.2, and indicate that we don't
19098 # know how it worked for any of those versions.
19099 lt_cv_sys_dlopen_deplibs=unknown
19100 ;;
19101 irix*)
19102 # The case above catches anything before 6.2, and it's known that
19103 # at 6.2 and later dlopen does load deplibs.
19104 lt_cv_sys_dlopen_deplibs=yes
19105 ;;
19106 netbsd*)
19107 lt_cv_sys_dlopen_deplibs=yes
19108 ;;
19109 openbsd*)
19110 lt_cv_sys_dlopen_deplibs=yes
19111 ;;
19112 osf[1234]*)
19113 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19114 # it did *not* use an RPATH in a shared library to find objects the
19115 # library depends on, so we explicitly say `no'.
19116 lt_cv_sys_dlopen_deplibs=no
19117 ;;
19118 osf5.0|osf5.0a|osf5.1)
19119 # dlopen *does* load deplibs and with the right loader patch applied
19120 # it even uses RPATH in a shared library to search for shared objects
19121 # that the library depends on, but there's no easy way to know if that
19122 # patch is installed. Since this is the case, all we can really
19123 # say is unknown -- it depends on the patch being installed. If
19124 # it is, this changes to `yes'. Without it, it would be `no'.
19125 lt_cv_sys_dlopen_deplibs=unknown
19126 ;;
19127 osf*)
19128 # the two cases above should catch all versions of osf <= 5.1. Read
19129 # the comments above for what we know about them.
19130 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19131 # is used to find them so we can finally say `yes'.
19132 lt_cv_sys_dlopen_deplibs=yes
19133 ;;
19134 qnx*)
19135 lt_cv_sys_dlopen_deplibs=yes
19136 ;;
19137 solaris*)
19138 lt_cv_sys_dlopen_deplibs=yes
19139 ;;
19140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19141 libltdl_cv_sys_dlopen_deplibs=yes
19142 ;;
19143 esac
19144
19145fi
cristy8b350f62009-11-15 23:12:43 +000019146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019147$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19148if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19149
cristy8b350f62009-11-15 23:12:43 +000019150$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019151
19152fi
19153
19154:
19155
cristy3ed852e2009-09-05 21:47:34 +000019156for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019157do :
19158 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19159"
19160if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019161 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019162#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019163_ACEOF
19164
19165fi
19166
19167done
19168
19169
cristy8b350f62009-11-15 23:12:43 +000019170ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019171# include <argz.h>
19172#endif
cristy8b350f62009-11-15 23:12:43 +000019173"
19174if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019175
19176cat >>confdefs.h <<_ACEOF
19177#define HAVE_ERROR_T 1
19178_ACEOF
19179
19180
19181else
19182
cristy8b350f62009-11-15 23:12:43 +000019183$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019184
19185
cristy8b350f62009-11-15 23:12:43 +000019186$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019187
19188fi
19189
19190
19191ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019192for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19193 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019194do :
19195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19196ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19197eval as_val=\$$as_ac_var
19198 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019199 cat >>confdefs.h <<_ACEOF
19200#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19201_ACEOF
19202
19203else
19204 ARGZ_H=argz.h;
19205
19206 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19207
19208fi
19209done
19210
19211
cristy8b350f62009-11-15 23:12:43 +000019212if test -z "$ARGZ_H"; then :
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019214$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019215if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019216 $as_echo_n "(cached) " >&6
19217else
19218 case $host_os in #(
19219 *cygwin*)
19220 lt_cv_sys_argz_works=no
19221 if test "$cross_compiling" != no; then
19222 lt_cv_sys_argz_works="guessing no"
19223 else
19224 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19225 save_IFS=$IFS
19226 IFS=-.
19227 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19228 IFS=$save_IFS
19229 lt_os_major=${2-0}
19230 lt_os_minor=${3-0}
19231 lt_os_micro=${4-0}
19232 if test "$lt_os_major" -gt 1 \
19233 || { test "$lt_os_major" -eq 1 \
19234 && { test "$lt_os_minor" -gt 5 \
19235 || { test "$lt_os_minor" -eq 5 \
19236 && test "$lt_os_micro" -gt 24; }; }; }; then
19237 lt_cv_sys_argz_works=yes
19238 fi
19239 fi
19240 ;; #(
19241 *) lt_cv_sys_argz_works=yes ;;
19242 esac
19243fi
cristy8b350f62009-11-15 23:12:43 +000019244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019245$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019246 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019247
cristy8b350f62009-11-15 23:12:43 +000019248$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019249
19250else
19251 ARGZ_H=argz.h
19252
19253
19254 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19255
19256fi
cristy3ed852e2009-09-05 21:47:34 +000019257fi
19258
19259
19260
cristy8b350f62009-11-15 23:12:43 +000019261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019262$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019263if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019264 $as_echo_n "(cached) " >&6
19265else
19266 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19267 libltdl_cv_preloaded_symbols=yes
19268 else
19269 libltdl_cv_preloaded_symbols=no
19270 fi
19271
19272fi
cristy8b350f62009-11-15 23:12:43 +000019273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019274$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19275if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19276
cristy8b350f62009-11-15 23:12:43 +000019277$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019278
19279fi
19280
19281# Set options
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019294if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019295 withval=$with_included_ltdl;
19296fi
19297
19298
19299if test "x$with_included_ltdl" != xyes; then
19300 # We are not being forced to use the included libltdl sources, so
19301 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019302 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019303
cristy8b350f62009-11-15 23:12:43 +000019304"
19305if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19306 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 +000019307 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019308"
19309if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019311$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019312if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019313 $as_echo_n "(cached) " >&6
19314else
19315 ac_check_lib_save_LIBS=$LIBS
19316LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019318/* end confdefs.h. */
19319
19320/* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
19323#ifdef __cplusplus
19324extern "C"
19325#endif
19326char lt_dladvise_preload ();
19327int
19328main ()
19329{
19330return lt_dladvise_preload ();
19331 ;
19332 return 0;
19333}
19334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019336 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19337else
cristy8b350f62009-11-15 23:12:43 +000019338 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019339fi
cristy8b350f62009-11-15 23:12:43 +000019340rm -f core conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019342LIBS=$ac_check_lib_save_LIBS
19343fi
cristy8b350f62009-11-15 23:12:43 +000019344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019345$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019346if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019347 with_included_ltdl=no
19348else
19349 with_included_ltdl=yes
19350fi
19351
19352else
19353 with_included_ltdl=yes
19354fi
19355
19356else
19357 with_included_ltdl=yes
19358fi
19359
19360
19361fi
19362
19363
19364
19365
19366# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019367if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019368 withval=$with_ltdl_include;
19369fi
19370
19371
19372if test -n "$with_ltdl_include"; then
19373 if test -f "$with_ltdl_include/ltdl.h"; then :
19374 else
cristy8b350f62009-11-15 23:12:43 +000019375 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019376 fi
19377else
19378 with_ltdl_include=no
19379fi
19380
19381
19382# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019383if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019384 withval=$with_ltdl_lib;
19385fi
19386
19387
19388if test -n "$with_ltdl_lib"; then
19389 if test -f "$with_ltdl_lib/libltdl.la"; then :
19390 else
cristy8b350f62009-11-15 23:12:43 +000019391 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019392 fi
19393else
19394 with_ltdl_lib=no
19395fi
19396
19397case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19398 ,yes,no,no,)
19399 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019400 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019401 "") enable_ltdl_convenience=yes
19402 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19403esac
19404LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19405LTDLDEPS=$LIBLTDL
19406LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19407
19408
19409
19410
19411
19412# For backwards non-gettext consistent compatibility...
19413INCLTDL="$LTDLINCL"
19414
19415
19416 ;;
19417 ,no,no,no,)
19418 # If the included ltdl is not to be used, then use the
19419 # preinstalled libltdl we found.
19420
cristy8b350f62009-11-15 23:12:43 +000019421$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019422
19423 LIBLTDL=-lltdl
19424 LTDLDEPS=
19425 LTDLINCL=
19426 ;;
19427 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019428 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019429 ;;
19430 *) with_included_ltdl=no
19431 LIBLTDL="-L$with_ltdl_lib -lltdl"
19432 LTDLDEPS=
19433 LTDLINCL="-I$with_ltdl_include"
19434 ;;
19435esac
19436INCLTDL="$LTDLINCL"
19437
19438# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019440$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019442$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019444$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019446$as_echo "$LIBLTDL" >&6; }
19447
19448
19449
19450# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019451if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019452 enableval=$enable_ltdl_install;
19453fi
19454
19455
19456case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19457 *yes*) ;;
19458 *) enable_ltdl_convenience=yes ;;
19459esac
19460
19461 if test x"${enable_ltdl_install-no}" != xno; then
19462 INSTALL_LTDL_TRUE=
19463 INSTALL_LTDL_FALSE='#'
19464else
19465 INSTALL_LTDL_TRUE='#'
19466 INSTALL_LTDL_FALSE=
19467fi
19468
19469 if test x"${enable_ltdl_convenience-no}" != xno; then
19470 CONVENIENCE_LTDL_TRUE=
19471 CONVENIENCE_LTDL_FALSE='#'
19472else
19473 CONVENIENCE_LTDL_TRUE='#'
19474 CONVENIENCE_LTDL_FALSE=
19475fi
19476
19477
19478
19479
19480
19481
cristy18304f92009-11-22 15:48:26 +000019482
cristy3ed852e2009-09-05 21:47:34 +000019483# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19484# the user used. This is so that ltdl.h can pick up the parent projects
19485# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19486# definitions required by ltdl.c.
19487# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19488
19489
19490
cristy3ed852e2009-09-05 21:47:34 +000019491for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019492do :
19493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19494ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19495"
19496eval as_val=\$$as_ac_Header
19497 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019498 cat >>confdefs.h <<_ACEOF
19499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19500_ACEOF
19501
19502fi
19503
19504done
19505
19506
cristy3ed852e2009-09-05 21:47:34 +000019507for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019508do :
19509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19510ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19511eval as_val=\$$as_ac_var
19512 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019513 cat >>confdefs.h <<_ACEOF
19514#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19515_ACEOF
19516
19517else
19518
19519
19520 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19521
19522fi
19523done
19524
cristy3ed852e2009-09-05 21:47:34 +000019525for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019526do :
19527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19528ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19529eval as_val=\$$as_ac_var
19530 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019531 cat >>confdefs.h <<_ACEOF
19532#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19533_ACEOF
19534
19535else
19536
19537
19538 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19539
19540fi
19541done
19542
19543
19544
19545cat >>confdefs.h <<_ACEOF
19546#define LT_LIBEXT "$libext"
19547_ACEOF
19548
19549
19550name=ltdl
19551LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19552
19553
19554
19555
19556
19557
19558
19559
19560# Only expand once:
19561
19562
19563
19564# Check to see if building shared libraries
19565libtool_build_shared_libs='no'
19566if test "$enable_shared" = 'yes'; then
19567 libtool_build_shared_libs='yes'
19568fi
19569
19570# Check to see if building static libraries
19571libtool_build_static_libs='no'
19572if test "$enable_static" = 'yes'; then
19573 libtool_build_static_libs='yes'
19574fi
19575
cristyfa112112010-01-04 17:48:07 +000019576 if test "${libtool_build_shared_libs}" = 'yes'; then
19577 WITH_SHARED_LIBS_TRUE=
19578 WITH_SHARED_LIBS_FALSE='#'
19579else
19580 WITH_SHARED_LIBS_TRUE='#'
19581 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019582fi
19583
19584#
19585# Enable support for building loadable modules
19586#
19587
19588# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019589if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019590 withval=$with_modules; with_modules=$withval
19591else
cristy5a1cefd2010-01-06 20:42:35 +000019592 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019593fi
19594
19595
19596# Only allow building loadable modules if we are building shared libraries
19597if test "$with_modules" != 'no' ; then
19598 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019599 { $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 +000019600$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19601 with_modules='no'
19602 fi
19603fi
19604if test "$with_modules" != 'no'; then
19605
cristy8b350f62009-11-15 23:12:43 +000019606$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019607
19608fi
19609 if test "$with_modules" != 'no'; then
19610 WITH_MODULES_TRUE=
19611 WITH_MODULES_FALSE='#'
19612else
19613 WITH_MODULES_TRUE='#'
19614 WITH_MODULES_FALSE=
19615fi
19616
19617
19618# Enable building/use of libltdl if we are building shared libraries regardless
19619# of whether modules are built or not.
19620with_ltdl='no'
19621if test "$libtool_build_shared_libs" != 'no'; then
19622 with_ltdl='yes'
19623fi
19624
19625 if test "$with_ltdl" != 'no'; then
19626 WITH_LTDL_TRUE=
19627 WITH_LTDL_FALSE='#'
19628else
19629 WITH_LTDL_TRUE='#'
19630 WITH_LTDL_FALSE=
19631fi
19632
19633if test "$with_ltdl" != 'no'; then
19634
cristy8b350f62009-11-15 23:12:43 +000019635$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019636
19637
19638 # Set DLLDFLAGS
19639 if test X"$enable_shared" = Xyes; then
19640 DLLDFLAGS=-export-dynamic
19641
19642 fi
19643fi
19644
19645# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019646# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019647# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019648if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019649 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19650else
19651 enable_delegate_build='no'
19652fi
19653
19654
19655# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019656if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019657 enableval=$enable_deprecated; enable_deprecated=$enableval
19658else
19659 enable_deprecated='no'
19660fi
19661
19662
19663if test "$enable_deprecated" = 'yes'; then
19664
cristy8b350f62009-11-15 23:12:43 +000019665$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019666
19667else
19668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19669fi
19670
19671# Build a version of ImageMagick which operates uninstalled.
19672# Used to build distributions located via MAGICK_HOME / executable path
19673# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019674if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019675 enableval=$enable_installed; enable_installed=$enableval
19676else
19677 enable_installed='yes'
19678fi
19679
19680
19681if test "$enable_installed" = 'yes'; then
19682
cristy8b350f62009-11-15 23:12:43 +000019683$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019684
19685else
19686 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19687fi
19688
19689# Permit enciphering and deciphering image pixels.
19690# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000019691if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019692 enableval=$enable_cipher; enable_cipher=$enableval
19693else
19694 enable_cipher='yes'
19695fi
19696
19697
19698if test "$enable_cipher" = 'yes'; then
19699
cristy8b350f62009-11-15 23:12:43 +000019700$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019701
19702fi
19703
19704# Build an embeddable version of ImageMagick.
19705# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000019706if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019707 enableval=$enable_embeddable; enable_embeddable=$enableval
19708else
19709 enable_embeddable='no'
19710fi
19711
19712
19713if test "$enable_embeddable" = 'yes'; then
19714
cristy8b350f62009-11-15 23:12:43 +000019715$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019716
19717fi
19718
19719# Build a high dynamic range version of ImageMagick.
19720# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000019721if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019722 enableval=$enable_hdri; enable_hdri=$enableval
19723else
19724 enable_hdri='no'
19725fi
19726
19727
19728MAGICK_HDRI=""
19729if test "$enable_hdri" = 'yes'; then
19730 MAGICK_HDRI="HDRI"
19731
cristy8b350f62009-11-15 23:12:43 +000019732$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019733
19734fi
19735
cristy3ed852e2009-09-05 21:47:34 +000019736# Build a version of ImageMagick with assert statements.
19737# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000019738if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019739 enableval=$enable_assert; enable_assert=$enableval
19740else
19741 enable_assert='yes'
19742fi
19743
19744
19745if test "$enable_assert" = 'no'; then
19746
cristy8b350f62009-11-15 23:12:43 +000019747$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019748
19749fi
19750
19751# Add configure option --enable-maintainer-mode which enables dependency
19752# checking and generation useful to package maintainers. This is made an
19753# option to avoid confusing end users.
19754
cristy8b350f62009-11-15 23:12:43 +000019755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000019756$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19757 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000019758if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019759 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19760else
19761 USE_MAINTAINER_MODE=no
19762fi
19763
cristy8b350f62009-11-15 23:12:43 +000019764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000019765$as_echo "$USE_MAINTAINER_MODE" >&6; }
19766 if test $USE_MAINTAINER_MODE = yes; then
19767 MAINTAINER_MODE_TRUE=
19768 MAINTAINER_MODE_FALSE='#'
19769else
19770 MAINTAINER_MODE_TRUE='#'
19771 MAINTAINER_MODE_FALSE=
19772fi
19773
19774 MAINT=$MAINTAINER_MODE_TRUE
19775
19776
19777
19778
19779# Enable ccmalloc memory debugging support
19780# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000019781if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019782 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19783else
19784 enable_ccmalloc='no'
19785fi
19786
19787
19788# Enable Electric Fence memory debugging support
19789# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000019790if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019791 enableval=$enable_efence; enable_efence=$enableval
19792else
19793 enable_efence='no'
19794fi
19795
19796
19797# Enable prof-based profiling support
19798# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000019799if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019800 enableval=$enable_prof; enable_prof=$enableval
19801else
19802 enable_prof='no'
19803fi
19804
19805
19806# Enable gprof-based profiling support
19807# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000019808if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019809 enableval=$enable_gprof; enable_gprof=$enableval
19810else
19811 enable_gprof='no'
19812fi
19813
19814
19815# Enable gcov-based profiling support
19816# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000019817if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019818 enableval=$enable_gcov; enable_gcov=$enableval
19819else
19820 enable_gcov='no'
19821fi
19822
19823
19824enable_profiling='no'
19825if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19826 enable_profiling='yes'
19827 if test "$libtool_build_shared_libs" = 'yes'; then
19828 echo "Warning: Can not profile code using shared libraries"
19829 fi
19830fi
19831
19832# Magick API method prefix
19833
19834# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000019835if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019836 withval=$with_method_prefix; with_method_prefix=$enableval
19837else
19838 with_method_prefix=''
19839fi
19840
19841
19842if test "$with_method_prefix" != ''; then
19843
19844cat >>confdefs.h <<_ACEOF
19845#define NAMESPACE_PREFIX $with_method_prefix
19846_ACEOF
19847
19848fi
19849
19850# Number of bits in a Quantum
19851
19852# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000019853if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019854 withval=$with_quantum_depth; with_quantum_depth=$withval
19855else
19856 with_quantum_depth=16
19857fi
19858
19859
19860if test "$with_quantum_depth" != '8'; then
19861 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19862fi
19863
19864case "${with_quantum_depth}" in
19865 8 ) ;;
19866 16 ) ;;
19867 32 ) ;;
19868 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000019869 * ) { as_fn_set_status 16
19870as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000019871esac
19872QUANTUM_DEPTH="$with_quantum_depth"
19873
19874cat >>confdefs.h <<_ACEOF
19875#define QUANTUM_DEPTH $QUANTUM_DEPTH
19876_ACEOF
19877
19878
19879# Set pixel cache threshold
19880
19881# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000019882if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019883 withval=$with_cache; with_cache=$withval
19884else
19885 with_cache=''
19886fi
19887
19888
19889if test "$with_cache" != ''; then
19890
19891cat >>confdefs.h <<_ACEOF
19892#define PixelCacheThreshold $with_cache
19893_ACEOF
19894
19895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19896fi
19897
19898# Disable/Enable support for full delegate paths
19899
19900# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000019901if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019902 withval=$with_frozenpaths; with_frozenpaths=$withval
19903else
19904 with_frozenpaths='no'
19905fi
19906
19907
19908# Enable build/install of Magick++
19909
19910# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019911if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019912 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19913else
19914 with_magick_plus_plus='yes'
19915fi
19916
19917
19918# Disable build/install of PerlMagick.
19919
19920# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019921if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019922 withval=$with_perl; with_perl=$withval
19923else
19924 with_perl=$libtool_build_shared_libs
19925fi
19926
19927
19928# Options to pass when configuring PerlMagick
19929
19930# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019931if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000019932 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000019933fi
19934
19935
cristy3ed852e2009-09-05 21:47:34 +000019936
19937# Enable umem, object-caching memory allocation library.
19938
19939# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019940if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019941 withval=$with_umem; with_umem=$withval
19942else
19943 with_umem='no'
19944fi
19945
19946if test "$with_umem" != 'yes' ; then
19947 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19948fi
19949
19950#
19951# Specify path to shared libstdc++ if not in normal location
19952#
19953
19954# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019955if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019956 withval=$with_libstdc; with_libstdc=$withval
19957else
19958 with_libstdc=''
19959fi
19960
19961
19962if test "$with_libstdc" != ''; then
19963 if test -d "$with_libstdc"; then
19964 LIBSTDCLDFLAGS="-L$with_libstdc"
19965 fi
19966fi
19967
19968
19969# Does gcc required -traditional?
19970if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019972$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019973if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019974 $as_echo_n "(cached) " >&6
19975else
19976 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019978/* end confdefs.h. */
19979#include <sgtty.h>
19980Autoconf TIOCGETP
19981_ACEOF
19982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019983 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019984 ac_cv_prog_gcc_traditional=yes
19985else
19986 ac_cv_prog_gcc_traditional=no
19987fi
19988rm -f conftest*
19989
19990
19991 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019993/* end confdefs.h. */
19994#include <termio.h>
19995Autoconf TCGETA
19996_ACEOF
19997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019998 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019999 ac_cv_prog_gcc_traditional=yes
20000fi
20001rm -f conftest*
20002
20003 fi
20004fi
cristy8b350f62009-11-15 23:12:43 +000020005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020006$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20007 if test $ac_cv_prog_gcc_traditional = yes; then
20008 CC="$CC -traditional"
20009 fi
20010fi
20011
20012
20013########
20014#
20015# Set defines required to build DLLs and modules using MinGW
20016#
20017########
20018# These options are set for multi-thread DLL module build
20019# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20020# module: _DLL
20021# executable/Magick++: _DLL _MAGICKMOD_
20022MODULE_EXTRA_CPPFLAGS=''
20023LIBRARY_EXTRA_CPPFLAGS=''
20024if test "${native_win32_build}" = 'yes'; then
20025 if test "${libtool_build_shared_libs}" = 'yes'; then
20026 CPPFLAGS="$CPPFLAGS -D_DLL"
20027 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20028 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20029 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20030 if test "$with_modules" = 'yes'; then
20031 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20032 else
20033 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20034 fi
20035 else
20036 CPPFLAGS="$CPPFLAGS -D_LIB"
20037 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20038 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20039 fi
20040 if test "$with_threads" = 'yes'; then
20041 CPPFLAGS="$CPPFLAGS -D_MT"
20042 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20043 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20044 fi
20045fi
20046
20047
20048
20049# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020051$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020052if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020053 $as_echo_n "(cached) " >&6
20054else
cristy8b350f62009-11-15 23:12:43 +000020055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020056/* end confdefs.h. */
20057#include <stdlib.h>
20058#include <stdarg.h>
20059#include <string.h>
20060#include <float.h>
20061
20062int
20063main ()
20064{
20065
20066 ;
20067 return 0;
20068}
20069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020070if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020071 ac_cv_header_stdc=yes
20072else
cristy8b350f62009-11-15 23:12:43 +000020073 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020074fi
cristy3ed852e2009-09-05 21:47:34 +000020075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20076
20077if test $ac_cv_header_stdc = yes; then
20078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020080/* end confdefs.h. */
20081#include <string.h>
20082
20083_ACEOF
20084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020085 $EGREP "memchr" >/dev/null 2>&1; then :
20086
cristy3ed852e2009-09-05 21:47:34 +000020087else
20088 ac_cv_header_stdc=no
20089fi
20090rm -f conftest*
20091
20092fi
20093
20094if test $ac_cv_header_stdc = yes; then
20095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020097/* end confdefs.h. */
20098#include <stdlib.h>
20099
20100_ACEOF
20101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020102 $EGREP "free" >/dev/null 2>&1; then :
20103
cristy3ed852e2009-09-05 21:47:34 +000020104else
20105 ac_cv_header_stdc=no
20106fi
20107rm -f conftest*
20108
20109fi
20110
20111if test $ac_cv_header_stdc = yes; then
20112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020113 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020114 :
20115else
cristy8b350f62009-11-15 23:12:43 +000020116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020117/* end confdefs.h. */
20118#include <ctype.h>
20119#include <stdlib.h>
20120#if ((' ' & 0x0FF) == 0x020)
20121# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20122# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20123#else
20124# define ISLOWER(c) \
20125 (('a' <= (c) && (c) <= 'i') \
20126 || ('j' <= (c) && (c) <= 'r') \
20127 || ('s' <= (c) && (c) <= 'z'))
20128# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20129#endif
20130
20131#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20132int
20133main ()
20134{
20135 int i;
20136 for (i = 0; i < 256; i++)
20137 if (XOR (islower (i), ISLOWER (i))
20138 || toupper (i) != TOUPPER (i))
20139 return 2;
20140 return 0;
20141}
20142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020143if ac_fn_c_try_run "$LINENO"; then :
20144
cristy3ed852e2009-09-05 21:47:34 +000020145else
cristy8b350f62009-11-15 23:12:43 +000020146 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020147fi
cristy8b350f62009-11-15 23:12:43 +000020148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20149 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020150fi
20151
cristy3ed852e2009-09-05 21:47:34 +000020152fi
20153fi
cristy8b350f62009-11-15 23:12:43 +000020154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020155$as_echo "$ac_cv_header_stdc" >&6; }
20156if test $ac_cv_header_stdc = yes; then
20157
cristy8b350f62009-11-15 23:12:43 +000020158$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020159
20160fi
20161
20162if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020163 { $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 +000020164 header files. Compilation cannot proceed. Please install the ANSI C
20165 headers and rerun this script." >&5
20166$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20167 header files. Compilation cannot proceed. Please install the ANSI C
20168 headers and rerun this script." >&2;};
20169fi
cristya0b81c32010-01-22 02:54:33 +000020170
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20172$as_echo_n "checking whether to enable assertions... " >&6; }
20173 # Check whether --enable-assert was given.
20174if test "${enable_assert+set}" = set; then :
20175 enableval=$enable_assert; ac_enable_assert=$enableval
20176 if test "x$enableval" = xno; then :
20177
20178$as_echo "#define NDEBUG 1" >>confdefs.h
20179
20180elif test "x$enableval" != xyes; then :
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20182$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20183 ac_enable_assert=yes
20184fi
20185else
20186 ac_enable_assert=yes
20187fi
20188
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20190$as_echo "$ac_enable_assert" >&6; }
20191
cristy3ed852e2009-09-05 21:47:34 +000020192ac_header_dirent=no
20193for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20194 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020196$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020198 $as_echo_n "(cached) " >&6
20199else
cristy8b350f62009-11-15 23:12:43 +000020200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020201/* end confdefs.h. */
20202#include <sys/types.h>
20203#include <$ac_hdr>
20204
20205int
20206main ()
20207{
20208if ((DIR *) 0)
20209return 0;
20210 ;
20211 return 0;
20212}
20213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020214if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020215 eval "$as_ac_Header=yes"
20216else
cristy8b350f62009-11-15 23:12:43 +000020217 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020218fi
cristy3ed852e2009-09-05 21:47:34 +000020219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220fi
cristy8b350f62009-11-15 23:12:43 +000020221eval ac_res=\$$as_ac_Header
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020223$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020224eval as_val=\$$as_ac_Header
20225 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020226 cat >>confdefs.h <<_ACEOF
20227#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20228_ACEOF
20229
20230ac_header_dirent=$ac_hdr; break
20231fi
20232
20233done
20234# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20235if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020237$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020238if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020239 $as_echo_n "(cached) " >&6
20240else
20241 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020243/* end confdefs.h. */
20244
20245/* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248#ifdef __cplusplus
20249extern "C"
20250#endif
20251char opendir ();
20252int
20253main ()
20254{
20255return opendir ();
20256 ;
20257 return 0;
20258}
20259_ACEOF
20260for ac_lib in '' dir; do
20261 if test -z "$ac_lib"; then
20262 ac_res="none required"
20263 else
20264 ac_res=-l$ac_lib
20265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20266 fi
cristy8b350f62009-11-15 23:12:43 +000020267 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020268 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020269fi
cristy8b350f62009-11-15 23:12:43 +000020270rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext
20272 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020273 break
20274fi
20275done
cristy8b350f62009-11-15 23:12:43 +000020276if test "${ac_cv_search_opendir+set}" = set; then :
20277
cristy3ed852e2009-09-05 21:47:34 +000020278else
20279 ac_cv_search_opendir=no
20280fi
20281rm conftest.$ac_ext
20282LIBS=$ac_func_search_save_LIBS
20283fi
cristy8b350f62009-11-15 23:12:43 +000020284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020285$as_echo "$ac_cv_search_opendir" >&6; }
20286ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020287if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20289
20290fi
20291
20292else
cristy8b350f62009-11-15 23:12:43 +000020293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020294$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020295if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020296 $as_echo_n "(cached) " >&6
20297else
20298 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020300/* end confdefs.h. */
20301
20302/* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20305#ifdef __cplusplus
20306extern "C"
20307#endif
20308char opendir ();
20309int
20310main ()
20311{
20312return opendir ();
20313 ;
20314 return 0;
20315}
20316_ACEOF
20317for ac_lib in '' x; do
20318 if test -z "$ac_lib"; then
20319 ac_res="none required"
20320 else
20321 ac_res=-l$ac_lib
20322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20323 fi
cristy8b350f62009-11-15 23:12:43 +000020324 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020325 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020326fi
cristy8b350f62009-11-15 23:12:43 +000020327rm -f core conftest.err conftest.$ac_objext \
20328 conftest$ac_exeext
20329 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020330 break
20331fi
20332done
cristy8b350f62009-11-15 23:12:43 +000020333if test "${ac_cv_search_opendir+set}" = set; then :
20334
cristy3ed852e2009-09-05 21:47:34 +000020335else
20336 ac_cv_search_opendir=no
20337fi
20338rm conftest.$ac_ext
20339LIBS=$ac_func_search_save_LIBS
20340fi
cristy8b350f62009-11-15 23:12:43 +000020341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020342$as_echo "$ac_cv_search_opendir" >&6; }
20343ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020344if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20346
20347fi
20348
20349fi
20350
20351
20352# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020353for 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 +000020354do :
20355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20356ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20357eval as_val=\$$as_ac_Header
20358 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020359 cat >>confdefs.h <<_ACEOF
20360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20361_ACEOF
20362
20363fi
20364
20365done
20366
20367
20368########
20369#
20370# Checks for typedefs, structures, and compiler characteristics.
20371#
20372########
20373
cristy8b350f62009-11-15 23:12:43 +000020374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020375$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020376if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020377 $as_echo_n "(cached) " >&6
20378else
cristy8b350f62009-11-15 23:12:43 +000020379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020380/* end confdefs.h. */
20381
20382#include <stdbool.h>
20383#ifndef bool
20384 "error: bool is not defined"
20385#endif
20386#ifndef false
20387 "error: false is not defined"
20388#endif
20389#if false
20390 "error: false is not 0"
20391#endif
20392#ifndef true
20393 "error: true is not defined"
20394#endif
20395#if true != 1
20396 "error: true is not 1"
20397#endif
20398#ifndef __bool_true_false_are_defined
20399 "error: __bool_true_false_are_defined is not defined"
20400#endif
20401
20402 struct s { _Bool s: 1; _Bool t; } s;
20403
20404 char a[true == 1 ? 1 : -1];
20405 char b[false == 0 ? 1 : -1];
20406 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20407 char d[(bool) 0.5 == true ? 1 : -1];
20408 bool e = &s;
20409 char f[(_Bool) 0.0 == false ? 1 : -1];
20410 char g[true];
20411 char h[sizeof (_Bool)];
20412 char i[sizeof s.t];
20413 enum { j = false, k = true, l = false * true, m = true * 256 };
20414 /* The following fails for
20415 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20416 _Bool n[m];
20417 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20418 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20419# if defined __xlc__ || defined __GNUC__
20420 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20421 reported by James Lemley on 2005-10-05; see
20422 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20423 This test is not quite right, since xlc is allowed to
20424 reject this program, as the initializer for xlcbug is
20425 not one of the forms that C requires support for.
20426 However, doing the test right would require a runtime
20427 test, and that would make cross-compilation harder.
20428 Let us hope that IBM fixes the xlc bug, and also adds
20429 support for this kind of constant expression. In the
20430 meantime, this test will reject xlc, which is OK, since
20431 our stdbool.h substitute should suffice. We also test
20432 this with GCC, where it should work, to detect more
20433 quickly whether someone messes up the test in the
20434 future. */
20435 char digs[] = "0123456789";
20436 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20437# endif
20438 /* Catch a bug in an HP-UX C compiler. See
20439 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20440 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20441 */
20442 _Bool q = true;
20443 _Bool *pq = &q;
20444
20445int
20446main ()
20447{
20448
20449 *pq |= q;
20450 *pq |= ! q;
20451 /* Refer to every declared value, to avoid compiler optimizations. */
20452 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20453 + !m + !n + !o + !p + !q + !pq);
20454
20455 ;
20456 return 0;
20457}
20458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020459if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020460 ac_cv_header_stdbool_h=yes
20461else
cristy8b350f62009-11-15 23:12:43 +000020462 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020463fi
cristy3ed852e2009-09-05 21:47:34 +000020464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465fi
cristy8b350f62009-11-15 23:12:43 +000020466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020467$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020468ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20469if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020470
20471cat >>confdefs.h <<_ACEOF
20472#define HAVE__BOOL 1
20473_ACEOF
20474
20475
20476fi
20477
20478if test $ac_cv_header_stdbool_h = yes; then
20479
cristy8b350f62009-11-15 23:12:43 +000020480$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020481
20482fi
20483
cristy8b350f62009-11-15 23:12:43 +000020484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020485$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020486if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020487 $as_echo_n "(cached) " >&6
20488else
cristy8b350f62009-11-15 23:12:43 +000020489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020490/* end confdefs.h. */
20491
20492int
20493main ()
20494{
20495
20496volatile int x;
20497int * volatile y = (int *) 0;
20498return !x && !y;
20499 ;
20500 return 0;
20501}
20502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020503if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020504 ac_cv_c_volatile=yes
20505else
cristy8b350f62009-11-15 23:12:43 +000020506 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020507fi
cristy3ed852e2009-09-05 21:47:34 +000020508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509fi
cristy8b350f62009-11-15 23:12:43 +000020510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020511$as_echo "$ac_cv_c_volatile" >&6; }
20512if test $ac_cv_c_volatile = no; then
20513
cristy8b350f62009-11-15 23:12:43 +000020514$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020515
20516fi
20517
cristy8b350f62009-11-15 23:12:43 +000020518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020519$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020520if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020521 $as_echo_n "(cached) " >&6
20522else
cristy8b350f62009-11-15 23:12:43 +000020523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020524/* end confdefs.h. */
20525#define x(y) #y
20526
20527char *s = x(teststring);
20528_ACEOF
20529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020530 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020531 ac_cv_c_stringize=no
20532else
20533 ac_cv_c_stringize=yes
20534fi
20535rm -f conftest*
20536
20537fi
cristy8b350f62009-11-15 23:12:43 +000020538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020539$as_echo "$ac_cv_c_stringize" >&6; }
20540if test $ac_cv_c_stringize = yes; then
20541
cristy8b350f62009-11-15 23:12:43 +000020542$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020543
20544fi
20545
cristy8b350f62009-11-15 23:12:43 +000020546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020547$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020548if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020549 $as_echo_n "(cached) " >&6
20550else
cristy8b350f62009-11-15 23:12:43 +000020551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020552/* end confdefs.h. */
20553#include <sys/types.h>
20554#include <sys/stat.h>
20555
20556#if defined S_ISBLK && defined S_IFDIR
20557extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20558#endif
20559
20560#if defined S_ISBLK && defined S_IFCHR
20561extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20562#endif
20563
20564#if defined S_ISLNK && defined S_IFREG
20565extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20566#endif
20567
20568#if defined S_ISSOCK && defined S_IFREG
20569extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20570#endif
20571
20572_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020573if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020574 ac_cv_header_stat_broken=no
20575else
cristy8b350f62009-11-15 23:12:43 +000020576 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020577fi
cristy3ed852e2009-09-05 21:47:34 +000020578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20579fi
cristy8b350f62009-11-15 23:12:43 +000020580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020581$as_echo "$ac_cv_header_stat_broken" >&6; }
20582if test $ac_cv_header_stat_broken = yes; then
20583
cristy8b350f62009-11-15 23:12:43 +000020584$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020585
20586fi
20587
cristy8b350f62009-11-15 23:12:43 +000020588{ $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 +000020589$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020590if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020591 $as_echo_n "(cached) " >&6
20592else
cristy8b350f62009-11-15 23:12:43 +000020593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020594/* end confdefs.h. */
20595#include <sys/types.h>
20596#include <sys/time.h>
20597#include <time.h>
20598
20599int
20600main ()
20601{
20602if ((struct tm *) 0)
20603return 0;
20604 ;
20605 return 0;
20606}
20607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020608if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020609 ac_cv_header_time=yes
20610else
cristy8b350f62009-11-15 23:12:43 +000020611 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020612fi
cristy3ed852e2009-09-05 21:47:34 +000020613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614fi
cristy8b350f62009-11-15 23:12:43 +000020615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020616$as_echo "$ac_cv_header_time" >&6; }
20617if test $ac_cv_header_time = yes; then
20618
cristy8b350f62009-11-15 23:12:43 +000020619$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020620
20621fi
20622
cristy8b350f62009-11-15 23:12:43 +000020623{ $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 +000020624$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020625if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020626 $as_echo_n "(cached) " >&6
20627else
cristy8b350f62009-11-15 23:12:43 +000020628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020629/* end confdefs.h. */
20630#include <sys/types.h>
20631#include <time.h>
20632
20633int
20634main ()
20635{
20636struct tm tm;
20637 int *p = &tm.tm_sec;
20638 return !p;
20639 ;
20640 return 0;
20641}
20642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020643if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020644 ac_cv_struct_tm=time.h
20645else
cristy8b350f62009-11-15 23:12:43 +000020646 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020647fi
cristy3ed852e2009-09-05 21:47:34 +000020648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649fi
cristy8b350f62009-11-15 23:12:43 +000020650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020651$as_echo "$ac_cv_struct_tm" >&6; }
20652if test $ac_cv_struct_tm = sys/time.h; then
20653
cristy8b350f62009-11-15 23:12:43 +000020654$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020655
20656fi
20657
cristy8b350f62009-11-15 23:12:43 +000020658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000020659$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020660if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020661 $as_echo_n "(cached) " >&6
20662else
20663 echo '#! /bin/cat
20664exit 69
20665' >conftest
20666chmod u+x conftest
20667(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20668if test $? -ne 69; then
20669 ac_cv_sys_interpreter=yes
20670else
20671 ac_cv_sys_interpreter=no
20672fi
20673rm -f conftest
20674fi
cristy8b350f62009-11-15 23:12:43 +000020675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000020676$as_echo "$ac_cv_sys_interpreter" >&6; }
20677interpval=$ac_cv_sys_interpreter
20678
20679
cristy3ed852e2009-09-05 21:47:34 +000020680# If the C compiler supports the keyword inline, do nothing. Otherwise
20681# define inline to __inline__ or __inline if it accepts one of those,
20682# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000020683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020684$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020685if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020686 $as_echo_n "(cached) " >&6
20687else
20688 ac_cv_c_inline=no
20689for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000020690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020691/* end confdefs.h. */
20692#ifndef __cplusplus
20693typedef int foo_t;
20694static $ac_kw foo_t static_foo () {return 0; }
20695$ac_kw foo_t foo () {return 0; }
20696#endif
20697
20698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020699if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020700 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020701fi
cristy3ed852e2009-09-05 21:47:34 +000020702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20703 test "$ac_cv_c_inline" != no && break
20704done
20705
20706fi
cristy8b350f62009-11-15 23:12:43 +000020707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020708$as_echo "$ac_cv_c_inline" >&6; }
20709
cristy3ed852e2009-09-05 21:47:34 +000020710case $ac_cv_c_inline in
20711 inline | yes) ;;
20712 *)
20713 case $ac_cv_c_inline in
20714 no) ac_val=;;
20715 *) ac_val=$ac_cv_c_inline;;
20716 esac
20717 cat >>confdefs.h <<_ACEOF
20718#ifndef __cplusplus
20719#define inline $ac_val
20720#endif
20721_ACEOF
20722 ;;
20723esac
20724
20725
20726# If the C compiler supports the keyword restrict, do nothing. Otherwise
20727# define restrict to __restrict__ or __restrict if it accepts one of those,
20728# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000020729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000020730$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020731if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020732 $as_echo_n "(cached) " >&6
20733else
20734 ac_cv_c_restrict=no
20735 # The order here caters to the fact that C++ does not require restrict.
20736 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000020737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020738/* end confdefs.h. */
20739typedef int * int_ptr;
20740 int foo (int_ptr $ac_kw ip) {
20741 return ip[0];
20742 }
20743int
20744main ()
20745{
20746int s[1];
20747 int * $ac_kw t = s;
20748 t[0] = 0;
20749 return foo(t)
20750 ;
20751 return 0;
20752}
20753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020754if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020755 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020756fi
cristy3ed852e2009-09-05 21:47:34 +000020757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758 test "$ac_cv_c_restrict" != no && break
20759 done
20760
20761fi
cristy8b350f62009-11-15 23:12:43 +000020762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000020763$as_echo "$ac_cv_c_restrict" >&6; }
20764
cristy3ed852e2009-09-05 21:47:34 +000020765 case $ac_cv_c_restrict in
20766 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000020767 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020768 ;;
20769 *) cat >>confdefs.h <<_ACEOF
20770#define restrict $ac_cv_c_restrict
20771_ACEOF
20772 ;;
20773 esac
20774
20775
20776# If words are stored with the most significant byte first (like
20777# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000020778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020779$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020780if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020781 $as_echo_n "(cached) " >&6
20782else
20783 ac_cv_c_bigendian=unknown
20784 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000020785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020786/* end confdefs.h. */
20787#ifndef __APPLE_CC__
20788 not a universal capable compiler
20789 #endif
20790 typedef int dummy;
20791
20792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020793if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020794
20795 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000020796 # there are at least two -arch flags with different values.
20797 ac_arch=
20798 ac_prev=
20799 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20800 if test -n "$ac_prev"; then
20801 case $ac_word in
20802 i?86 | x86_64 | ppc | ppc64)
20803 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20804 ac_arch=$ac_word
20805 else
20806 ac_cv_c_bigendian=universal
20807 break
20808 fi
20809 ;;
20810 esac
20811 ac_prev=
20812 elif test "x$ac_word" = "x-arch"; then
20813 ac_prev=arch
20814 fi
20815 done
cristy3ed852e2009-09-05 21:47:34 +000020816fi
cristy3ed852e2009-09-05 21:47:34 +000020817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 if test $ac_cv_c_bigendian = unknown; then
20819 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000020820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020821/* end confdefs.h. */
20822#include <sys/types.h>
20823 #include <sys/param.h>
20824
20825int
20826main ()
20827{
20828#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20829 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20830 && LITTLE_ENDIAN)
20831 bogus endian macros
20832 #endif
20833
20834 ;
20835 return 0;
20836}
20837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020838if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020839 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020841/* end confdefs.h. */
20842#include <sys/types.h>
20843 #include <sys/param.h>
20844
20845int
20846main ()
20847{
20848#if BYTE_ORDER != BIG_ENDIAN
20849 not big endian
20850 #endif
20851
20852 ;
20853 return 0;
20854}
20855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020856if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020857 ac_cv_c_bigendian=yes
20858else
cristy8b350f62009-11-15 23:12:43 +000020859 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020860fi
cristy3ed852e2009-09-05 21:47:34 +000020861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020862fi
cristy3ed852e2009-09-05 21:47:34 +000020863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20864 fi
20865 if test $ac_cv_c_bigendian = unknown; then
20866 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020868/* end confdefs.h. */
20869#include <limits.h>
20870
20871int
20872main ()
20873{
20874#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20875 bogus endian macros
20876 #endif
20877
20878 ;
20879 return 0;
20880}
20881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020883 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020885/* end confdefs.h. */
20886#include <limits.h>
20887
20888int
20889main ()
20890{
20891#ifndef _BIG_ENDIAN
20892 not big endian
20893 #endif
20894
20895 ;
20896 return 0;
20897}
20898_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020899if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020900 ac_cv_c_bigendian=yes
20901else
cristy8b350f62009-11-15 23:12:43 +000020902 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020903fi
cristy3ed852e2009-09-05 21:47:34 +000020904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020905fi
cristy3ed852e2009-09-05 21:47:34 +000020906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 fi
20908 if test $ac_cv_c_bigendian = unknown; then
20909 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020910 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020911 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020913/* end confdefs.h. */
20914short int ascii_mm[] =
20915 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20916 short int ascii_ii[] =
20917 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20918 int use_ascii (int i) {
20919 return ascii_mm[i] + ascii_ii[i];
20920 }
20921 short int ebcdic_ii[] =
20922 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20923 short int ebcdic_mm[] =
20924 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20925 int use_ebcdic (int i) {
20926 return ebcdic_mm[i] + ebcdic_ii[i];
20927 }
20928 extern int foo;
20929
20930int
20931main ()
20932{
20933return use_ascii (foo) == use_ebcdic (foo);
20934 ;
20935 return 0;
20936}
20937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020938if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020939 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20940 ac_cv_c_bigendian=yes
20941 fi
20942 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20943 if test "$ac_cv_c_bigendian" = unknown; then
20944 ac_cv_c_bigendian=no
20945 else
20946 # finding both strings is unlikely to happen, but who knows?
20947 ac_cv_c_bigendian=unknown
20948 fi
20949 fi
cristy3ed852e2009-09-05 21:47:34 +000020950fi
cristy3ed852e2009-09-05 21:47:34 +000020951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952else
cristy8b350f62009-11-15 23:12:43 +000020953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020954/* end confdefs.h. */
20955$ac_includes_default
20956int
20957main ()
20958{
20959
20960 /* Are we little or big endian? From Harbison&Steele. */
20961 union
20962 {
20963 long int l;
20964 char c[sizeof (long int)];
20965 } u;
20966 u.l = 1;
20967 return u.c[sizeof (long int) - 1] == 1;
20968
20969 ;
20970 return 0;
20971}
20972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020973if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020974 ac_cv_c_bigendian=no
20975else
cristy8b350f62009-11-15 23:12:43 +000020976 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020977fi
cristy8b350f62009-11-15 23:12:43 +000020978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20979 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020980fi
20981
cristy3ed852e2009-09-05 21:47:34 +000020982 fi
20983fi
cristy8b350f62009-11-15 23:12:43 +000020984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020985$as_echo "$ac_cv_c_bigendian" >&6; }
20986 case $ac_cv_c_bigendian in #(
20987 yes)
cristy8b350f62009-11-15 23:12:43 +000020988 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020989;; #(
20990 no)
20991 ;; #(
20992 universal)
20993
cristy8b350f62009-11-15 23:12:43 +000020994$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020995
20996 ;; #(
20997 *)
cristy8b350f62009-11-15 23:12:43 +000020998 as_fn_error "unknown endianness
20999 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021000 esac
21001
21002
21003# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021004ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21005if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021006
cristy3ed852e2009-09-05 21:47:34 +000021007else
21008
21009cat >>confdefs.h <<_ACEOF
21010#define mode_t int
21011_ACEOF
21012
21013fi
21014
21015
21016# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021017ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21018if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021019
cristy3ed852e2009-09-05 21:47:34 +000021020else
21021
21022cat >>confdefs.h <<_ACEOF
21023#define off_t long int
21024_ACEOF
21025
21026fi
21027
21028
21029# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021030ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21031if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021032
cristy3ed852e2009-09-05 21:47:34 +000021033else
21034
21035cat >>confdefs.h <<_ACEOF
21036#define pid_t int
21037_ACEOF
21038
21039fi
21040
21041
21042# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021043ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21044if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021045
cristy3ed852e2009-09-05 21:47:34 +000021046else
21047
21048cat >>confdefs.h <<_ACEOF
21049#define size_t unsigned int
21050_ACEOF
21051
21052fi
21053
21054
21055# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021056ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21057if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021058
cristy3ed852e2009-09-05 21:47:34 +000021059else
21060
21061cat >>confdefs.h <<_ACEOF
21062#define ssize_t int
21063_ACEOF
21064
21065fi
21066
21067
21068# If the C compiler supports a working long double type with more range
21069# or precision than the double type, define HAVE_LONG_DOUBLE.
21070
cristy8b350f62009-11-15 23:12:43 +000021071 { $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 +000021072$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021073if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021074 $as_echo_n "(cached) " >&6
21075else
cristy8b350f62009-11-15 23:12:43 +000021076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021077/* end confdefs.h. */
21078#include <float.h>
21079 long double const a[] =
21080 {
21081 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21082 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21083 };
21084 long double
21085 f (long double x)
21086 {
21087 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21088 + (x ? f (x) : 'c'));
21089 }
21090
21091int
21092main ()
21093{
21094static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21095 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21096 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21097 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21098 && (int) LDBL_EPSILON == 0
21099 )];
21100test_array [0] = 0
21101
21102 ;
21103 return 0;
21104}
21105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021106if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021107 ac_cv_type_long_double_wider=yes
21108else
cristy8b350f62009-11-15 23:12:43 +000021109 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021110fi
cristy3ed852e2009-09-05 21:47:34 +000021111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112fi
cristy8b350f62009-11-15 23:12:43 +000021113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021114$as_echo "$ac_cv_type_long_double_wider" >&6; }
21115 if test $ac_cv_type_long_double_wider = yes; then
21116
cristy8b350f62009-11-15 23:12:43 +000021117$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021118
21119 fi
21120
21121
21122# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21123# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021125$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021126if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021127 $as_echo_n "(cached) " >&6
21128else
cristy8b350f62009-11-15 23:12:43 +000021129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021130/* end confdefs.h. */
21131$ac_includes_default
21132int
21133main ()
21134{
21135static int test_array [1 - 2 * !(((char) -1) < 0)];
21136test_array [0] = 0
21137
21138 ;
21139 return 0;
21140}
21141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021143 ac_cv_c_char_unsigned=no
21144else
cristy8b350f62009-11-15 23:12:43 +000021145 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021146fi
cristy3ed852e2009-09-05 21:47:34 +000021147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148fi
cristy8b350f62009-11-15 23:12:43 +000021149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021150$as_echo "$ac_cv_c_char_unsigned" >&6; }
21151if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021152 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021153
21154fi
21155
21156
21157# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21158# The cast to long int works around a bug in the HP C Compiler
21159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21161# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021163$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021164if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021165 $as_echo_n "(cached) " >&6
21166else
cristy8b350f62009-11-15 23:12:43 +000021167 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 +000021168
cristy3ed852e2009-09-05 21:47:34 +000021169else
cristy8b350f62009-11-15 23:12:43 +000021170 if test "$ac_cv_type_signed_short" = yes; then
21171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021173{ as_fn_set_status 77
21174as_fn_error "cannot compute sizeof (signed short)
21175See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021176 else
21177 ac_cv_sizeof_signed_short=0
21178 fi
21179fi
cristy8b350f62009-11-15 23:12:43 +000021180
cristy3ed852e2009-09-05 21:47:34 +000021181fi
cristy8b350f62009-11-15 23:12:43 +000021182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021183$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21184
21185
21186
21187cat >>confdefs.h <<_ACEOF
21188#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21189_ACEOF
21190
21191
21192
21193# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21194# The cast to long int works around a bug in the HP C Compiler
21195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21197# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021199$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021200if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021201 $as_echo_n "(cached) " >&6
21202else
cristy8b350f62009-11-15 23:12:43 +000021203 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000021204
cristy3ed852e2009-09-05 21:47:34 +000021205else
cristy8b350f62009-11-15 23:12:43 +000021206 if test "$ac_cv_type_unsigned_short" = yes; then
21207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021209{ as_fn_set_status 77
21210as_fn_error "cannot compute sizeof (unsigned short)
21211See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021212 else
21213 ac_cv_sizeof_unsigned_short=0
21214 fi
21215fi
cristy8b350f62009-11-15 23:12:43 +000021216
cristy3ed852e2009-09-05 21:47:34 +000021217fi
cristy8b350f62009-11-15 23:12:43 +000021218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021219$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21220
21221
21222
21223cat >>confdefs.h <<_ACEOF
21224#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21225_ACEOF
21226
21227
21228
21229# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21230# The cast to long int works around a bug in the HP C Compiler
21231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21233# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021235$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021236if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021237 $as_echo_n "(cached) " >&6
21238else
cristy8b350f62009-11-15 23:12:43 +000021239 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 +000021240
cristy3ed852e2009-09-05 21:47:34 +000021241else
cristy8b350f62009-11-15 23:12:43 +000021242 if test "$ac_cv_type_signed_int" = yes; then
21243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021245{ as_fn_set_status 77
21246as_fn_error "cannot compute sizeof (signed int)
21247See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021248 else
21249 ac_cv_sizeof_signed_int=0
21250 fi
21251fi
cristy8b350f62009-11-15 23:12:43 +000021252
cristy3ed852e2009-09-05 21:47:34 +000021253fi
cristy8b350f62009-11-15 23:12:43 +000021254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021255$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21256
21257
21258
21259cat >>confdefs.h <<_ACEOF
21260#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21261_ACEOF
21262
21263
21264
21265# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21266# The cast to long int works around a bug in the HP C Compiler
21267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21269# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021271$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021272if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021273 $as_echo_n "(cached) " >&6
21274else
cristy8b350f62009-11-15 23:12:43 +000021275 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 +000021276
cristy3ed852e2009-09-05 21:47:34 +000021277else
cristy8b350f62009-11-15 23:12:43 +000021278 if test "$ac_cv_type_unsigned_int" = yes; then
21279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021281{ as_fn_set_status 77
21282as_fn_error "cannot compute sizeof (unsigned int)
21283See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021284 else
21285 ac_cv_sizeof_unsigned_int=0
21286 fi
21287fi
cristy8b350f62009-11-15 23:12:43 +000021288
cristy3ed852e2009-09-05 21:47:34 +000021289fi
cristy8b350f62009-11-15 23:12:43 +000021290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021291$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21292
21293
21294
21295cat >>confdefs.h <<_ACEOF
21296#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21297_ACEOF
21298
21299
21300
21301# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21302# The cast to long int works around a bug in the HP C Compiler
21303# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21304# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21305# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021307$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021308if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021309 $as_echo_n "(cached) " >&6
21310else
cristy8b350f62009-11-15 23:12:43 +000021311 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 +000021312
cristy3ed852e2009-09-05 21:47:34 +000021313else
cristy8b350f62009-11-15 23:12:43 +000021314 if test "$ac_cv_type_signed_long" = yes; then
21315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021317{ as_fn_set_status 77
21318as_fn_error "cannot compute sizeof (signed long)
21319See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021320 else
21321 ac_cv_sizeof_signed_long=0
21322 fi
21323fi
cristy8b350f62009-11-15 23:12:43 +000021324
cristy3ed852e2009-09-05 21:47:34 +000021325fi
cristy8b350f62009-11-15 23:12:43 +000021326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021327$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21328
21329
21330
21331cat >>confdefs.h <<_ACEOF
21332#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21333_ACEOF
21334
21335
21336
21337# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21338# The cast to long int works around a bug in the HP C Compiler
21339# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21340# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21341# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021343$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021344if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 $as_echo_n "(cached) " >&6
21346else
cristy8b350f62009-11-15 23:12:43 +000021347 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 +000021348
cristy3ed852e2009-09-05 21:47:34 +000021349else
cristy8b350f62009-11-15 23:12:43 +000021350 if test "$ac_cv_type_unsigned_long" = yes; then
21351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021353{ as_fn_set_status 77
21354as_fn_error "cannot compute sizeof (unsigned long)
21355See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021356 else
21357 ac_cv_sizeof_unsigned_long=0
21358 fi
21359fi
cristy8b350f62009-11-15 23:12:43 +000021360
cristy3ed852e2009-09-05 21:47:34 +000021361fi
cristy8b350f62009-11-15 23:12:43 +000021362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021363$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21364
21365
21366
21367cat >>confdefs.h <<_ACEOF
21368#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21369_ACEOF
21370
21371
21372
21373# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21374# 'signed long long' is not supported then the value defined is zero.
21375# The cast to long int works around a bug in the HP C Compiler
21376# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21377# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21378# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021380$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021381if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021382 $as_echo_n "(cached) " >&6
21383else
cristy8b350f62009-11-15 23:12:43 +000021384 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 +000021385
cristy3ed852e2009-09-05 21:47:34 +000021386else
cristy8b350f62009-11-15 23:12:43 +000021387 if test "$ac_cv_type_signed_long_long" = yes; then
21388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021390{ as_fn_set_status 77
21391as_fn_error "cannot compute sizeof (signed long long)
21392See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021393 else
21394 ac_cv_sizeof_signed_long_long=0
21395 fi
21396fi
cristy8b350f62009-11-15 23:12:43 +000021397
cristy3ed852e2009-09-05 21:47:34 +000021398fi
cristy8b350f62009-11-15 23:12:43 +000021399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021400$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21401
21402
21403
21404cat >>confdefs.h <<_ACEOF
21405#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21406_ACEOF
21407
21408
21409
21410# Obtain size of a 'unsigned long long' and define as
21411# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21412# supported then the value defined is zero.
21413# The cast to long int works around a bug in the HP C Compiler
21414# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21415# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21416# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021418$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021419if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021420 $as_echo_n "(cached) " >&6
21421else
cristy8b350f62009-11-15 23:12:43 +000021422 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 +000021423
cristy3ed852e2009-09-05 21:47:34 +000021424else
cristy8b350f62009-11-15 23:12:43 +000021425 if test "$ac_cv_type_unsigned_long_long" = yes; then
21426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021428{ as_fn_set_status 77
21429as_fn_error "cannot compute sizeof (unsigned long long)
21430See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021431 else
21432 ac_cv_sizeof_unsigned_long_long=0
21433 fi
21434fi
cristy8b350f62009-11-15 23:12:43 +000021435
cristy3ed852e2009-09-05 21:47:34 +000021436fi
cristy8b350f62009-11-15 23:12:43 +000021437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021438$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21439
21440
21441
21442cat >>confdefs.h <<_ACEOF
21443#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21444_ACEOF
21445
21446
21447
21448# Obtain size of off_t and define as SIZEOF_OFF_T
21449# The cast to long int works around a bug in the HP C Compiler
21450# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21451# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21452# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021454$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021455if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021456 $as_echo_n "(cached) " >&6
21457else
cristy8b350f62009-11-15 23:12:43 +000021458 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 +000021459
cristy3ed852e2009-09-05 21:47:34 +000021460else
cristy8b350f62009-11-15 23:12:43 +000021461 if test "$ac_cv_type_off_t" = yes; then
21462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021464{ as_fn_set_status 77
21465as_fn_error "cannot compute sizeof (off_t)
21466See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021467 else
21468 ac_cv_sizeof_off_t=0
21469 fi
21470fi
cristy8b350f62009-11-15 23:12:43 +000021471
cristy3ed852e2009-09-05 21:47:34 +000021472fi
cristy8b350f62009-11-15 23:12:43 +000021473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021474$as_echo "$ac_cv_sizeof_off_t" >&6; }
21475
21476
21477
21478cat >>confdefs.h <<_ACEOF
21479#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21480_ACEOF
21481
21482
21483
21484# Obtain size of size_t and define as SIZEOF_SIZE_T
21485# The cast to long int works around a bug in the HP C Compiler
21486# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21487# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21488# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021490$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021491if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021492 $as_echo_n "(cached) " >&6
21493else
cristy8b350f62009-11-15 23:12:43 +000021494 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 +000021495
cristy3ed852e2009-09-05 21:47:34 +000021496else
cristy8b350f62009-11-15 23:12:43 +000021497 if test "$ac_cv_type_size_t" = yes; then
21498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021500{ as_fn_set_status 77
21501as_fn_error "cannot compute sizeof (size_t)
21502See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021503 else
21504 ac_cv_sizeof_size_t=0
21505 fi
21506fi
cristy8b350f62009-11-15 23:12:43 +000021507
cristy3ed852e2009-09-05 21:47:34 +000021508fi
cristy8b350f62009-11-15 23:12:43 +000021509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021510$as_echo "$ac_cv_sizeof_size_t" >&6; }
21511
21512
21513
21514cat >>confdefs.h <<_ACEOF
21515#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21516_ACEOF
21517
21518
21519
21520# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21521# The cast to long int works around a bug in the HP C Compiler
21522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21524# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021526$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021527if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021528 $as_echo_n "(cached) " >&6
21529else
cristy8b350f62009-11-15 23:12:43 +000021530 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 +000021531
cristy3ed852e2009-09-05 21:47:34 +000021532else
cristy8b350f62009-11-15 23:12:43 +000021533 if test "$ac_cv_type_unsigned_intp" = yes; then
21534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021536{ as_fn_set_status 77
21537as_fn_error "cannot compute sizeof (unsigned int*)
21538See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021539 else
21540 ac_cv_sizeof_unsigned_intp=0
21541 fi
21542fi
cristy8b350f62009-11-15 23:12:43 +000021543
cristy3ed852e2009-09-05 21:47:34 +000021544fi
cristy8b350f62009-11-15 23:12:43 +000021545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021546$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21547
21548
21549
21550cat >>confdefs.h <<_ACEOF
21551#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21552_ACEOF
21553
21554
21555
21556#
21557# Compute sized types for current CPU and compiler options.
21558#
21559
cristy8b350f62009-11-15 23:12:43 +000021560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021561$as_echo_n "checking for signed 8-bit type... " >&6; }
21562INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021564$as_echo "$INT8_T" >&6; }
21565
21566
cristy8b350f62009-11-15 23:12:43 +000021567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021568$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21569UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021571$as_echo "$UINT8_T" >&6; }
21572
21573
cristy8b350f62009-11-15 23:12:43 +000021574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021575$as_echo_n "checking for signed 16-bit type... " >&6; }
21576INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021578$as_echo "$INT16_T" >&6; }
21579
21580
cristy8b350f62009-11-15 23:12:43 +000021581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021582$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21583UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021585$as_echo "$UINT16_T" >&6; }
21586
21587
cristy8b350f62009-11-15 23:12:43 +000021588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021589$as_echo_n "checking for signed 32-bit type... " >&6; }
21590INT32_T='none'
21591if test $ac_cv_sizeof_signed_int -eq 4; then
21592 INT32_T='signed int'
21593elif test $ac_cv_sizeof_signed_long -eq 4; then
21594 INT32_T='signed long'
21595fi
cristy8b350f62009-11-15 23:12:43 +000021596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021597$as_echo "$INT32_T" >&6; }
21598
21599
cristy8b350f62009-11-15 23:12:43 +000021600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021601$as_echo_n "checking for unsigned 32-bit type... " >&6; }
21602UINT32_T='none'
21603if test $ac_cv_sizeof_unsigned_int -eq 4; then
21604 UINT32_T='unsigned int'
21605elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21606 UINT32_T='unsigned long'
21607fi
cristy8b350f62009-11-15 23:12:43 +000021608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021609$as_echo "$UINT32_T" >&6; }
21610
21611
cristy8b350f62009-11-15 23:12:43 +000021612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021613$as_echo_n "checking for signed 64-bit type... " >&6; }
21614INT64_T='none'
21615if test $ac_cv_sizeof_signed_long -eq 8; then
21616 INT64_T='signed long'
21617elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21618 INT64_T='signed long long'
21619fi
cristy8b350f62009-11-15 23:12:43 +000021620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021621$as_echo "$INT64_T" >&6; }
21622
21623
cristy8b350f62009-11-15 23:12:43 +000021624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021625$as_echo_n "checking for unsigned 64-bit type... " >&6; }
21626UINT64_T='none'
21627if test $ac_cv_sizeof_unsigned_long -eq 8; then
21628 UINT64_T='unsigned long'
21629elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21630 UINT64_T='unsigned long long'
21631fi
cristy8b350f62009-11-15 23:12:43 +000021632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021633$as_echo "$UINT64_T" >&6; }
21634
21635
cristy8b350f62009-11-15 23:12:43 +000021636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021637$as_echo_n "checking for unsigned maximum type... " >&6; }
21638UINTMAX_T='none'
21639if test "$UINT64_T" != 'none'; then
21640 UINTMAX_T=$UINT64_T
21641elif test "$UINT32_T" != 'none'; then
21642 UINTMAX_T=$UINT32_T
21643fi
cristy8b350f62009-11-15 23:12:43 +000021644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021645$as_echo "$UINTMAX_T" >&6; }
21646
21647
cristy8b350f62009-11-15 23:12:43 +000021648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021649$as_echo_n "checking for pointer difference type... " >&6; }
21650UINTPTR_T='none'
21651if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21652 UINTPTR_T='unsigned long'
21653elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21654 UINTPTR_T='unsigned long long'
21655fi
cristy8b350f62009-11-15 23:12:43 +000021656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021657$as_echo "$UINTPTR_T" >&6; }
21658
21659
cristy8b350f62009-11-15 23:12:43 +000021660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021661$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021663/* end confdefs.h. */
21664
21665int
21666main ()
21667{
21668{ const char *func = __func__; return(func != 0 ? 0 : 1); }
21669 ;
21670 return 0;
21671}
21672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021673if ac_fn_c_try_compile "$LINENO"; then :
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021675$as_echo "yes" >&6; }
21676else
cristy8b350f62009-11-15 23:12:43 +000021677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021678$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021680$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021682/* end confdefs.h. */
21683
21684int
21685main ()
21686{
21687{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21688 ;
21689 return 0;
21690}
21691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021692if ac_fn_c_try_compile "$LINENO"; then :
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021694$as_echo "yes" >&6; }
21695
cristy8b350f62009-11-15 23:12:43 +000021696$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021697
21698else
cristy8b350f62009-11-15 23:12:43 +000021699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021700$as_echo "no" >&6; }
21701
cristy8b350f62009-11-15 23:12:43 +000021702$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021703
21704fi
cristy3ed852e2009-09-05 21:47:34 +000021705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706fi
cristy3ed852e2009-09-05 21:47:34 +000021707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21708
21709########
21710#
21711# Check for functions
21712#
21713########
cristy3ed852e2009-09-05 21:47:34 +000021714for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000021715do :
21716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21717ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21718eval as_val=\$$as_ac_Header
21719 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021720 cat >>confdefs.h <<_ACEOF
21721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21722_ACEOF
21723
21724fi
21725
21726done
21727
cristy3ed852e2009-09-05 21:47:34 +000021728for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021729do :
21730 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21731if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021732 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021733#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021734_ACEOF
21735
21736fi
21737done
21738
cristy8b350f62009-11-15 23:12:43 +000021739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000021740$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021741if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021742 $as_echo_n "(cached) " >&6
21743else
cristy8b350f62009-11-15 23:12:43 +000021744 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021745 magick_cv_func_mmap_fileio=no
21746else
cristy8b350f62009-11-15 23:12:43 +000021747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021748/* end confdefs.h. */
21749$ac_includes_default
21750/* malloc might have been renamed as rpl_malloc. */
21751#undef malloc
21752
21753/*
21754 This test is derived from GNU Autoconf's similar macro.
21755 The purpose of this test is to verify that files may be memory
21756 mapped, and that memory mapping and file I/O are coherent.
21757
21758 The test creates a test file, memory maps the file, updates
21759 the file using the memory map, and then reads the file using
21760 file I/O to verify that the file contains the updates.
21761*/
21762
21763#include <fcntl.h>
21764#include <sys/mman.h>
21765
21766#if !STDC_HEADERS && !HAVE_STDLIB_H
21767char *malloc ();
21768#endif
21769
21770/* This mess was copied from the GNU getpagesize.h. */
21771#if !HAVE_GETPAGESIZE
21772/* Assume that all systems that can run configure have sys/param.h. */
21773# if !HAVE_SYS_PARAM_H
21774# define HAVE_SYS_PARAM_H 1
21775# endif
21776
21777# ifdef _SC_PAGESIZE
21778# define getpagesize() sysconf(_SC_PAGESIZE)
21779# else /* no _SC_PAGESIZE */
21780# if HAVE_SYS_PARAM_H
21781# include <sys/param.h>
21782# ifdef EXEC_PAGESIZE
21783# define getpagesize() EXEC_PAGESIZE
21784# else /* no EXEC_PAGESIZE */
21785# ifdef NBPG
21786# define getpagesize() NBPG * CLSIZE
21787# ifndef CLSIZE
21788# define CLSIZE 1
21789# endif /* no CLSIZE */
21790# else /* no NBPG */
21791# ifdef NBPC
21792# define getpagesize() NBPC
21793# else /* no NBPC */
21794# ifdef PAGESIZE
21795# define getpagesize() PAGESIZE
21796# endif /* PAGESIZE */
21797# endif /* no NBPC */
21798# endif /* no NBPG */
21799# endif /* no EXEC_PAGESIZE */
21800# else /* no HAVE_SYS_PARAM_H */
21801# define getpagesize() 8192 /* punt totally */
21802# endif /* no HAVE_SYS_PARAM_H */
21803# endif /* no _SC_PAGESIZE */
21804
21805#endif /* no HAVE_GETPAGESIZE */
21806
21807int
21808main ()
21809{
21810 char *data, *data2, *data3;
21811 int i, pagesize;
21812 int fd;
21813
21814 pagesize = getpagesize ();
21815
21816 /* First, make a file with some known garbage in it. */
21817 data = (char *) malloc (pagesize);
21818 if (!data)
21819 exit (1);
21820 for (i = 0; i < pagesize; ++i)
21821 *(data + i) = rand ();
21822 umask (0);
21823 fd = creat ("conftest.mmap", 0600);
21824 if (fd < 0)
21825 exit (1);
21826 if (write (fd, data, pagesize) != pagesize)
21827 exit (1);
21828 close (fd);
21829
21830 /* Mmap the file as read/write/shared and verify that we see the
21831 same garbage. */
21832 fd = open ("conftest.mmap", O_RDWR);
21833 if (fd < 0)
21834 exit (1);
21835 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21836 if (data2 == 0)
21837 exit (1);
21838 for (i = 0; i < pagesize; ++i)
21839 if (*(data + i) != *(data2 + i))
21840 exit (1);
21841
21842 /* Finally, make sure that changes to the mapped area
21843 percolate back to the file as seen by read(). */
21844 for (i = 0; i < pagesize; ++i)
21845 *(data2 + i) = *(data2 + i) + 1;
21846 data3 = (char *) malloc (pagesize);
21847 if (!data3)
21848 exit (1);
21849 if (read (fd, data3, pagesize) != pagesize)
21850 exit (1);
21851 for (i = 0; i < pagesize; ++i)
21852 if (*(data2 + i) != *(data3 + i))
21853 exit (1);
21854 close (fd);
21855 exit (0);
21856}
21857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021858if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021859 magick_cv_func_mmap_fileio=yes
21860else
cristy8b350f62009-11-15 23:12:43 +000021861 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021862fi
cristy8b350f62009-11-15 23:12:43 +000021863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21864 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021865fi
21866
cristy3ed852e2009-09-05 21:47:34 +000021867fi
cristy8b350f62009-11-15 23:12:43 +000021868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021869$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21870if test $magick_cv_func_mmap_fileio = yes; then
21871
cristy8b350f62009-11-15 23:12:43 +000021872$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021873
21874fi
21875rm -f conftest.mmap
21876
cristy8b350f62009-11-15 23:12:43 +000021877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021878$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021879if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021880 $as_echo_n "(cached) " >&6
21881else
cristy8b350f62009-11-15 23:12:43 +000021882 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 ac_cv_func_closedir_void=yes
21884else
cristy8b350f62009-11-15 23:12:43 +000021885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021886/* end confdefs.h. */
21887$ac_includes_default
21888#include <$ac_header_dirent>
21889#ifndef __cplusplus
21890int closedir ();
21891#endif
21892
21893int
21894main ()
21895{
21896return closedir (opendir (".")) != 0;
21897 ;
21898 return 0;
21899}
21900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021901if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021902 ac_cv_func_closedir_void=no
21903else
cristy8b350f62009-11-15 23:12:43 +000021904 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021905fi
cristy8b350f62009-11-15 23:12:43 +000021906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21907 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021908fi
21909
cristy3ed852e2009-09-05 21:47:34 +000021910fi
cristy8b350f62009-11-15 23:12:43 +000021911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021912$as_echo "$ac_cv_func_closedir_void" >&6; }
21913if test $ac_cv_func_closedir_void = yes; then
21914
cristy8b350f62009-11-15 23:12:43 +000021915$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021916
21917fi
21918
cristycd4c5312009-11-22 01:19:08 +000021919
21920
21921
21922 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021923do :
21924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021925ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21926"
cristy8b350f62009-11-15 23:12:43 +000021927eval as_val=\$$as_ac_Header
21928 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021929 cat >>confdefs.h <<_ACEOF
21930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21931_ACEOF
21932
21933fi
21934
21935done
21936
cristycd4c5312009-11-22 01:19:08 +000021937
21938
21939
21940
21941
21942
21943
cristy3ed852e2009-09-05 21:47:34 +000021944for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021945do :
21946 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21947if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021948 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021949#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021950_ACEOF
21951
21952fi
21953done
21954
cristy8b350f62009-11-15 23:12:43 +000021955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021956$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021957if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021958 $as_echo_n "(cached) " >&6
21959else
cristy8b350f62009-11-15 23:12:43 +000021960 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021961 ac_cv_func_mmap_fixed_mapped=no
21962else
cristy8b350f62009-11-15 23:12:43 +000021963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021964/* end confdefs.h. */
21965$ac_includes_default
21966/* malloc might have been renamed as rpl_malloc. */
21967#undef malloc
21968
21969/* Thanks to Mike Haertel and Jim Avera for this test.
21970 Here is a matrix of mmap possibilities:
21971 mmap private not fixed
21972 mmap private fixed at somewhere currently unmapped
21973 mmap private fixed at somewhere already mapped
21974 mmap shared not fixed
21975 mmap shared fixed at somewhere currently unmapped
21976 mmap shared fixed at somewhere already mapped
21977 For private mappings, we should verify that changes cannot be read()
21978 back from the file, nor mmap's back from the file at a different
21979 address. (There have been systems where private was not correctly
21980 implemented like the infamous i386 svr4.0, and systems where the
21981 VM page cache was not coherent with the file system buffer cache
21982 like early versions of FreeBSD and possibly contemporary NetBSD.)
21983 For shared mappings, we should conversely verify that changes get
21984 propagated back to all the places they're supposed to be.
21985
21986 Grep wants private fixed already mapped.
21987 The main things grep needs to know about mmap are:
21988 * does it exist and is it safe to write into the mmap'd area
21989 * how to use it (BSD variants) */
21990
21991#include <fcntl.h>
21992#include <sys/mman.h>
21993
21994#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21995char *malloc ();
21996#endif
21997
21998/* This mess was copied from the GNU getpagesize.h. */
21999#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022000# ifdef _SC_PAGESIZE
22001# define getpagesize() sysconf(_SC_PAGESIZE)
22002# else /* no _SC_PAGESIZE */
22003# ifdef HAVE_SYS_PARAM_H
22004# include <sys/param.h>
22005# ifdef EXEC_PAGESIZE
22006# define getpagesize() EXEC_PAGESIZE
22007# else /* no EXEC_PAGESIZE */
22008# ifdef NBPG
22009# define getpagesize() NBPG * CLSIZE
22010# ifndef CLSIZE
22011# define CLSIZE 1
22012# endif /* no CLSIZE */
22013# else /* no NBPG */
22014# ifdef NBPC
22015# define getpagesize() NBPC
22016# else /* no NBPC */
22017# ifdef PAGESIZE
22018# define getpagesize() PAGESIZE
22019# endif /* PAGESIZE */
22020# endif /* no NBPC */
22021# endif /* no NBPG */
22022# endif /* no EXEC_PAGESIZE */
22023# else /* no HAVE_SYS_PARAM_H */
22024# define getpagesize() 8192 /* punt totally */
22025# endif /* no HAVE_SYS_PARAM_H */
22026# endif /* no _SC_PAGESIZE */
22027
22028#endif /* no HAVE_GETPAGESIZE */
22029
22030int
22031main ()
22032{
22033 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022034 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022035 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022036 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022037
22038 pagesize = getpagesize ();
22039
22040 /* First, make a file with some known garbage in it. */
22041 data = (char *) malloc (pagesize);
22042 if (!data)
22043 return 1;
22044 for (i = 0; i < pagesize; ++i)
22045 *(data + i) = rand ();
22046 umask (0);
22047 fd = creat ("conftest.mmap", 0600);
22048 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022049 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022050 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022051 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022052 close (fd);
22053
cristycd4c5312009-11-22 01:19:08 +000022054 /* Next, check that the tail of a page is zero-filled. File must have
22055 non-zero length, otherwise we risk SIGBUS for entire page. */
22056 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22057 if (fd2 < 0)
22058 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022059 cdata2 = "";
22060 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022061 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022062 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022063 if (data2 == MAP_FAILED)
22064 return 6;
22065 for (i = 0; i < pagesize; ++i)
22066 if (*(data2 + i))
22067 return 7;
22068 close (fd2);
22069 if (munmap (data2, pagesize))
22070 return 8;
22071
cristy3ed852e2009-09-05 21:47:34 +000022072 /* Next, try to mmap the file at a fixed address which already has
22073 something else allocated at it. If we can, also make sure that
22074 we see the same garbage. */
22075 fd = open ("conftest.mmap", O_RDWR);
22076 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022077 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022078 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22079 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022080 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022081 for (i = 0; i < pagesize; ++i)
22082 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022083 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022084
22085 /* Finally, make sure that changes to the mapped area do not
22086 percolate back to the file as seen by read(). (This is a bug on
22087 some variants of i386 svr4.0.) */
22088 for (i = 0; i < pagesize; ++i)
22089 *(data2 + i) = *(data2 + i) + 1;
22090 data3 = (char *) malloc (pagesize);
22091 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022092 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022093 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022094 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022095 for (i = 0; i < pagesize; ++i)
22096 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022097 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022098 close (fd);
22099 return 0;
22100}
22101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022102if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022103 ac_cv_func_mmap_fixed_mapped=yes
22104else
cristy8b350f62009-11-15 23:12:43 +000022105 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022106fi
cristy8b350f62009-11-15 23:12:43 +000022107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22108 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022109fi
22110
cristy3ed852e2009-09-05 21:47:34 +000022111fi
cristy8b350f62009-11-15 23:12:43 +000022112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022113$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22114if test $ac_cv_func_mmap_fixed_mapped = yes; then
22115
cristy8b350f62009-11-15 23:12:43 +000022116$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022117
22118fi
cristycd4c5312009-11-22 01:19:08 +000022119rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022120
cristy3ed852e2009-09-05 21:47:34 +000022121for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022122do :
22123 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22124if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022125 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022126#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022127_ACEOF
22128
22129fi
22130
22131done
22132
cristy3ed852e2009-09-05 21:47:34 +000022133for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022134do :
22135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22136ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22137eval as_val=\$$as_ac_var
22138 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022139 cat >>confdefs.h <<_ACEOF
22140#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22141_ACEOF
22142
22143fi
22144done
22145
22146if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022148$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022149if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022150 $as_echo_n "(cached) " >&6
22151else
cristy8b350f62009-11-15 23:12:43 +000022152 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022153 ac_cv_func_fork_works=cross
22154else
cristy8b350f62009-11-15 23:12:43 +000022155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022156/* end confdefs.h. */
22157$ac_includes_default
22158int
22159main ()
22160{
22161
22162 /* By Ruediger Kuhlmann. */
22163 return fork () < 0;
22164
22165 ;
22166 return 0;
22167}
22168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022169if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022170 ac_cv_func_fork_works=yes
22171else
cristy8b350f62009-11-15 23:12:43 +000022172 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022173fi
cristy8b350f62009-11-15 23:12:43 +000022174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22175 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022176fi
22177
cristy3ed852e2009-09-05 21:47:34 +000022178fi
cristy8b350f62009-11-15 23:12:43 +000022179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022180$as_echo "$ac_cv_func_fork_works" >&6; }
22181
22182else
22183 ac_cv_func_fork_works=$ac_cv_func_fork
22184fi
22185if test "x$ac_cv_func_fork_works" = xcross; then
22186 case $host in
22187 *-*-amigaos* | *-*-msdosdjgpp*)
22188 # Override, as these systems have only a dummy fork() stub
22189 ac_cv_func_fork_works=no
22190 ;;
22191 *)
22192 ac_cv_func_fork_works=yes
22193 ;;
22194 esac
cristy8b350f62009-11-15 23:12:43 +000022195 { $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 +000022196$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22197fi
22198ac_cv_func_vfork_works=$ac_cv_func_vfork
22199if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022201$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022202if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022203 $as_echo_n "(cached) " >&6
22204else
cristy8b350f62009-11-15 23:12:43 +000022205 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022206 ac_cv_func_vfork_works=cross
22207else
cristy8b350f62009-11-15 23:12:43 +000022208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022209/* end confdefs.h. */
22210/* Thanks to Paul Eggert for this test. */
22211$ac_includes_default
22212#include <sys/wait.h>
22213#ifdef HAVE_VFORK_H
22214# include <vfork.h>
22215#endif
22216/* On some sparc systems, changes by the child to local and incoming
22217 argument registers are propagated back to the parent. The compiler
22218 is told about this with #include <vfork.h>, but some compilers
22219 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22220 static variable whose address is put into a register that is
22221 clobbered by the vfork. */
22222static void
22223#ifdef __cplusplus
22224sparc_address_test (int arg)
22225# else
22226sparc_address_test (arg) int arg;
22227#endif
22228{
22229 static pid_t child;
22230 if (!child) {
22231 child = vfork ();
22232 if (child < 0) {
22233 perror ("vfork");
22234 _exit(2);
22235 }
22236 if (!child) {
22237 arg = getpid();
22238 write(-1, "", 0);
22239 _exit (arg);
22240 }
22241 }
22242}
22243
22244int
22245main ()
22246{
22247 pid_t parent = getpid ();
22248 pid_t child;
22249
22250 sparc_address_test (0);
22251
22252 child = vfork ();
22253
22254 if (child == 0) {
22255 /* Here is another test for sparc vfork register problems. This
22256 test uses lots of local variables, at least as many local
22257 variables as main has allocated so far including compiler
22258 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22259 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22260 reuse the register of parent for one of the local variables,
22261 since it will think that parent can't possibly be used any more
22262 in this routine. Assigning to the local variable will thus
22263 munge parent in the parent process. */
22264 pid_t
22265 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22266 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22267 /* Convince the compiler that p..p7 are live; otherwise, it might
22268 use the same hardware register for all 8 local variables. */
22269 if (p != p1 || p != p2 || p != p3 || p != p4
22270 || p != p5 || p != p6 || p != p7)
22271 _exit(1);
22272
22273 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22274 from child file descriptors. If the child closes a descriptor
22275 before it execs or exits, this munges the parent's descriptor
22276 as well. Test for this by closing stdout in the child. */
22277 _exit(close(fileno(stdout)) != 0);
22278 } else {
22279 int status;
22280 struct stat st;
22281
22282 while (wait(&status) != child)
22283 ;
22284 return (
22285 /* Was there some problem with vforking? */
22286 child < 0
22287
22288 /* Did the child fail? (This shouldn't happen.) */
22289 || status
22290
22291 /* Did the vfork/compiler bug occur? */
22292 || parent != getpid()
22293
22294 /* Did the file descriptor bug occur? */
22295 || fstat(fileno(stdout), &st) != 0
22296 );
22297 }
22298}
22299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022300if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022301 ac_cv_func_vfork_works=yes
22302else
cristy8b350f62009-11-15 23:12:43 +000022303 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022304fi
cristy8b350f62009-11-15 23:12:43 +000022305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22306 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022307fi
22308
cristy3ed852e2009-09-05 21:47:34 +000022309fi
cristy8b350f62009-11-15 23:12:43 +000022310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022311$as_echo "$ac_cv_func_vfork_works" >&6; }
22312
22313fi;
22314if test "x$ac_cv_func_fork_works" = xcross; then
22315 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022316 { $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 +000022317$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22318fi
22319
22320if test "x$ac_cv_func_vfork_works" = xyes; then
22321
cristy8b350f62009-11-15 23:12:43 +000022322$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022323
22324else
22325
cristy8b350f62009-11-15 23:12:43 +000022326$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022327
22328fi
22329if test "x$ac_cv_func_fork_works" = xyes; then
22330
cristy8b350f62009-11-15 23:12:43 +000022331$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022332
22333fi
22334
cristy8b350f62009-11-15 23:12:43 +000022335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022336$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022337if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022338 $as_echo_n "(cached) " >&6
22339else
cristy8b350f62009-11-15 23:12:43 +000022340 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022341 ac_cv_func_memcmp_working=no
22342else
cristy8b350f62009-11-15 23:12:43 +000022343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022344/* end confdefs.h. */
22345$ac_includes_default
22346int
22347main ()
22348{
22349
22350 /* Some versions of memcmp are not 8-bit clean. */
22351 char c0 = '\100', c1 = '\200', c2 = '\201';
22352 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22353 return 1;
22354
22355 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22356 or more and with at least one buffer not starting on a 4-byte boundary.
22357 William Lewis provided this test program. */
22358 {
22359 char foo[21];
22360 char bar[21];
22361 int i;
22362 for (i = 0; i < 4; i++)
22363 {
22364 char *a = foo + i;
22365 char *b = bar + i;
22366 strcpy (a, "--------01111111");
22367 strcpy (b, "--------10000000");
22368 if (memcmp (a, b, 16) >= 0)
22369 return 1;
22370 }
22371 return 0;
22372 }
22373
22374 ;
22375 return 0;
22376}
22377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022378if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022379 ac_cv_func_memcmp_working=yes
22380else
cristy8b350f62009-11-15 23:12:43 +000022381 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022382fi
cristy8b350f62009-11-15 23:12:43 +000022383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22384 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022385fi
22386
cristy3ed852e2009-09-05 21:47:34 +000022387fi
cristy8b350f62009-11-15 23:12:43 +000022388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022389$as_echo "$ac_cv_func_memcmp_working" >&6; }
22390test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22391 *" memcmp.$ac_objext "* ) ;;
22392 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22393 ;;
22394esac
22395
22396
cristy3ed852e2009-09-05 21:47:34 +000022397for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022398do :
22399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22400ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22401eval as_val=\$$as_ac_Header
22402 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022403 cat >>confdefs.h <<_ACEOF
22404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22405_ACEOF
22406
22407fi
22408
22409done
22410
cristy8b350f62009-11-15 23:12:43 +000022411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022412$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022413if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022414 $as_echo_n "(cached) " >&6
22415else
22416 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22417 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22418 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022420/* end confdefs.h. */
22421$ac_includes_default
22422#ifdef HAVE_SYS_SELECT_H
22423# include <sys/select.h>
22424#endif
22425#ifdef HAVE_SYS_SOCKET_H
22426# include <sys/socket.h>
22427#endif
22428
22429int
22430main ()
22431{
22432extern int select ($ac_arg1,
22433 $ac_arg234, $ac_arg234, $ac_arg234,
22434 $ac_arg5);
22435 ;
22436 return 0;
22437}
22438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022439if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022440 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022441fi
cristy3ed852e2009-09-05 21:47:34 +000022442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 done
22444 done
22445done
22446# Provide a safe default value.
22447: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22448
22449fi
cristy8b350f62009-11-15 23:12:43 +000022450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022451$as_echo "$ac_cv_func_select_args" >&6; }
22452ac_save_IFS=$IFS; IFS=','
22453set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22454IFS=$ac_save_IFS
22455shift
22456
22457cat >>confdefs.h <<_ACEOF
22458#define SELECT_TYPE_ARG1 $1
22459_ACEOF
22460
22461
22462cat >>confdefs.h <<_ACEOF
22463#define SELECT_TYPE_ARG234 ($2)
22464_ACEOF
22465
22466
22467cat >>confdefs.h <<_ACEOF
22468#define SELECT_TYPE_ARG5 ($3)
22469_ACEOF
22470
22471rm -f conftest*
22472
cristy8b350f62009-11-15 23:12:43 +000022473if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022474 $as_echo_n "(cached) " >&6
22475else
22476 ac_cv_func_setvbuf_reversed=no
22477fi
22478
22479
cristy8b350f62009-11-15 23:12:43 +000022480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022481$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022482if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022483 $as_echo_n "(cached) " >&6
22484else
cristy8b350f62009-11-15 23:12:43 +000022485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022486/* end confdefs.h. */
22487#include <sys/types.h>
22488#include <signal.h>
22489
22490int
22491main ()
22492{
22493return *(signal (0, 0)) (0) == 1;
22494 ;
22495 return 0;
22496}
22497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022498if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022499 ac_cv_type_signal=int
22500else
cristy8b350f62009-11-15 23:12:43 +000022501 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022502fi
cristy3ed852e2009-09-05 21:47:34 +000022503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22504fi
cristy8b350f62009-11-15 23:12:43 +000022505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022506$as_echo "$ac_cv_type_signal" >&6; }
22507
22508cat >>confdefs.h <<_ACEOF
22509#define RETSIGTYPE $ac_cv_type_signal
22510_ACEOF
22511
22512
cristy8b350f62009-11-15 23:12:43 +000022513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022514$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022515if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022516 $as_echo_n "(cached) " >&6
22517else
cristy8b350f62009-11-15 23:12:43 +000022518 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022519 ac_cv_func_strtod=no
22520else
cristy8b350f62009-11-15 23:12:43 +000022521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022522/* end confdefs.h. */
22523
22524$ac_includes_default
22525#ifndef strtod
22526double strtod ();
22527#endif
22528int
22529main()
22530{
22531 {
22532 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22533 char *string = " +69";
22534 char *term;
22535 double value;
22536 value = strtod (string, &term);
22537 if (value != 69 || term != (string + 4))
22538 return 1;
22539 }
22540
22541 {
22542 /* Under Solaris 2.4, strtod returns the wrong value for the
22543 terminating character under some conditions. */
22544 char *string = "NaN";
22545 char *term;
22546 strtod (string, &term);
22547 if (term != string && *(term - 1) == 0)
22548 return 1;
22549 }
22550 return 0;
22551}
22552
22553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022554if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022555 ac_cv_func_strtod=yes
22556else
cristy8b350f62009-11-15 23:12:43 +000022557 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022558fi
cristy8b350f62009-11-15 23:12:43 +000022559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22560 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022561fi
22562
cristy3ed852e2009-09-05 21:47:34 +000022563fi
cristy8b350f62009-11-15 23:12:43 +000022564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022565$as_echo "$ac_cv_func_strtod" >&6; }
22566if test $ac_cv_func_strtod = no; then
22567 case " $LIBOBJS " in
22568 *" strtod.$ac_objext "* ) ;;
22569 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22570 ;;
22571esac
22572
cristy8b350f62009-11-15 23:12:43 +000022573ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22574if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022575
cristy3ed852e2009-09-05 21:47:34 +000022576fi
22577
cristy3ed852e2009-09-05 21:47:34 +000022578if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022580$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022581if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022582 $as_echo_n "(cached) " >&6
22583else
22584 ac_check_lib_save_LIBS=$LIBS
22585LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022587/* end confdefs.h. */
22588
22589/* Override any GCC internal prototype to avoid an error.
22590 Use char because int might match the return type of a GCC
22591 builtin and then its argument prototype would still apply. */
22592#ifdef __cplusplus
22593extern "C"
22594#endif
22595char pow ();
22596int
22597main ()
22598{
22599return pow ();
22600 ;
22601 return 0;
22602}
22603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022605 ac_cv_lib_m_pow=yes
22606else
cristy8b350f62009-11-15 23:12:43 +000022607 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000022608fi
cristy8b350f62009-11-15 23:12:43 +000022609rm -f core conftest.err conftest.$ac_objext \
22610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022611LIBS=$ac_check_lib_save_LIBS
22612fi
cristy8b350f62009-11-15 23:12:43 +000022613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022614$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022615if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022616 POW_LIB=-lm
22617else
cristy8b350f62009-11-15 23:12:43 +000022618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022619$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22620fi
22621
22622fi
22623
22624fi
22625
cristy3ed852e2009-09-05 21:47:34 +000022626for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000022627do :
22628 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22629if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022630 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022631#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000022632_ACEOF
22633
cristy8b350f62009-11-15 23:12:43 +000022634ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22635if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022636
cristy8b350f62009-11-15 23:12:43 +000022637$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022638
22639fi
22640
22641fi
22642done
22643
22644
22645
cristy161b9262010-03-20 19:34:32 +000022646#
22647# Find math library
22648#
22649MATH_LIBS=''
22650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22651$as_echo_n "checking for sqrt in -lm... " >&6; }
22652if test "${ac_cv_lib_m_sqrt+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22654else
22655 ac_check_lib_save_LIBS=$LIBS
22656LIBS="-lm $LIBS"
22657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658/* end confdefs.h. */
22659
22660/* Override any GCC internal prototype to avoid an error.
22661 Use char because int might match the return type of a GCC
22662 builtin and then its argument prototype would still apply. */
22663#ifdef __cplusplus
22664extern "C"
22665#endif
22666char sqrt ();
22667int
22668main ()
22669{
22670return sqrt ();
22671 ;
22672 return 0;
22673}
22674_ACEOF
22675if ac_fn_c_try_link "$LINENO"; then :
22676 ac_cv_lib_m_sqrt=yes
22677else
22678 ac_cv_lib_m_sqrt=no
22679fi
22680rm -f core conftest.err conftest.$ac_objext \
22681 conftest$ac_exeext conftest.$ac_ext
22682LIBS=$ac_check_lib_save_LIBS
22683fi
22684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22685$as_echo "$ac_cv_lib_m_sqrt" >&6; }
22686if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
22687 MATH_LIBS="-lm"
22688fi
22689
22690LIBS="$MATH_LIBS $LIBS"
22691
22692
cristy56ed31c2010-03-22 00:46:21 +000022693for 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 +000022694do :
22695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22696ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22697eval as_val=\$$as_ac_var
22698 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022699 cat >>confdefs.h <<_ACEOF
22700#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22701_ACEOF
22702
22703fi
22704done
22705
22706
cristye43a45e2009-09-28 14:49:00 +000022707#
22708# Check for clock_gettime().
22709#
cristy8b350f62009-11-15 23:12:43 +000022710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022711$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022712if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022713 $as_echo_n "(cached) " >&6
22714else
22715 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022717/* end confdefs.h. */
22718
22719/* Override any GCC internal prototype to avoid an error.
22720 Use char because int might match the return type of a GCC
22721 builtin and then its argument prototype would still apply. */
22722#ifdef __cplusplus
22723extern "C"
22724#endif
22725char clock_gettime ();
22726int
22727main ()
22728{
22729return clock_gettime ();
22730 ;
22731 return 0;
22732}
22733_ACEOF
22734for ac_lib in '' rt; do
22735 if test -z "$ac_lib"; then
22736 ac_res="none required"
22737 else
22738 ac_res=-l$ac_lib
22739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22740 fi
cristy8b350f62009-11-15 23:12:43 +000022741 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022742 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000022743fi
cristy8b350f62009-11-15 23:12:43 +000022744rm -f core conftest.err conftest.$ac_objext \
22745 conftest$ac_exeext
22746 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022747 break
22748fi
22749done
cristy8b350f62009-11-15 23:12:43 +000022750if test "${ac_cv_search_clock_gettime+set}" = set; then :
22751
cristye43a45e2009-09-28 14:49:00 +000022752else
22753 ac_cv_search_clock_gettime=no
22754fi
22755rm conftest.$ac_ext
22756LIBS=$ac_func_search_save_LIBS
22757fi
cristy8b350f62009-11-15 23:12:43 +000022758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022759$as_echo "$ac_cv_search_clock_gettime" >&6; }
22760ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000022761if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000022762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22763
22764
cristy8b350f62009-11-15 23:12:43 +000022765$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022766
cristy8b350f62009-11-15 23:12:43 +000022767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000022768$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022770/* end confdefs.h. */
22771#include <time.h>
22772int
22773main ()
22774{
22775clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000022776 ;
22777 return 0;
22778}
22779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022780if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022781
cristy8b350f62009-11-15 23:12:43 +000022782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000022783$as_echo "yes" >&6; }
22784
cristy8b350f62009-11-15 23:12:43 +000022785$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022786
22787
22788else
cristy8b350f62009-11-15 23:12:43 +000022789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000022790$as_echo "no" >&6; }
22791
22792fi
cristye43a45e2009-09-28 14:49:00 +000022793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794
22795else
22796
cristy8b350f62009-11-15 23:12:43 +000022797 for ac_func in gettimeofday ftime
22798do :
22799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22800ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22801eval as_val=\$$as_ac_var
22802 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000022803 cat >>confdefs.h <<_ACEOF
22804#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22805_ACEOF
22806 break
22807fi
22808done
22809
22810
22811
22812fi
22813
22814
cristy3ed852e2009-09-05 21:47:34 +000022815########
22816#
22817# Check for function prototypes
22818#
22819########
22820
cristy8b350f62009-11-15 23:12:43 +000022821ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000022822#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022823"
22824if test "x$ac_cv_have_decl_pread" = x""yes; then :
22825 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022826else
cristy8b350f62009-11-15 23:12:43 +000022827 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022828fi
22829
cristy3ed852e2009-09-05 21:47:34 +000022830cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022831#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022833ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000022834#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022835"
22836if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22837 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022838else
cristy8b350f62009-11-15 23:12:43 +000022839 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022840fi
22841
cristy3ed852e2009-09-05 21:47:34 +000022842cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022843#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022844_ACEOF
22845
22846
cristy8b350f62009-11-15 23:12:43 +000022847ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000022848#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000022849"
22850if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22851 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022852else
cristy8b350f62009-11-15 23:12:43 +000022853 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022854fi
22855
cristy3ed852e2009-09-05 21:47:34 +000022856cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022857#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022858_ACEOF
22859
22860
cristy8b350f62009-11-15 23:12:43 +000022861ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000022862#include <stdio.h>
22863#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000022864"
22865if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22866 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022867else
cristy8b350f62009-11-15 23:12:43 +000022868 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022869fi
22870
cristy3ed852e2009-09-05 21:47:34 +000022871cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022872#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022873_ACEOF
22874
22875
cristy3ed852e2009-09-05 21:47:34 +000022876########
22877#
22878# C++ Support Tests (For Magick++)
22879#
22880########
22881have_magick_plus_plus='no'
22882if test "$with_magick_plus_plus" = 'yes'; then
22883 OLIBS="$LIBS"
22884 LIBS=''
22885 ac_ext=cpp
22886ac_cpp='$CXXCPP $CPPFLAGS'
22887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22890
22891
22892 # Full set of headers used...
22893 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22894 # functional iomanip iosfwd iostream iterator list string strstream utility
22895 ac_ext=cpp
22896ac_cpp='$CXXCPP $CPPFLAGS'
22897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22900
22901 ac_ext=cpp
22902ac_cpp='$CXXCPP $CPPFLAGS'
22903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22906if test -z "$CXX"; then
22907 if test -n "$CCC"; then
22908 CXX=$CCC
22909 else
22910 if test -n "$ac_tool_prefix"; then
22911 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22912 do
22913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22914set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022916$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022917if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022918 $as_echo_n "(cached) " >&6
22919else
22920 if test -n "$CXX"; then
22921 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22922else
22923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22924for as_dir in $PATH
22925do
22926 IFS=$as_save_IFS
22927 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22930 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022932 break 2
22933 fi
22934done
cristy8b350f62009-11-15 23:12:43 +000022935 done
cristy3ed852e2009-09-05 21:47:34 +000022936IFS=$as_save_IFS
22937
22938fi
22939fi
22940CXX=$ac_cv_prog_CXX
22941if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022943$as_echo "$CXX" >&6; }
22944else
cristy8b350f62009-11-15 23:12:43 +000022945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022946$as_echo "no" >&6; }
22947fi
22948
22949
22950 test -n "$CXX" && break
22951 done
22952fi
22953if test -z "$CXX"; then
22954 ac_ct_CXX=$CXX
22955 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22956do
22957 # Extract the first word of "$ac_prog", so it can be a program name with args.
22958set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022960$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022961if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022962 $as_echo_n "(cached) " >&6
22963else
22964 if test -n "$ac_ct_CXX"; then
22965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22966else
22967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968for as_dir in $PATH
22969do
22970 IFS=$as_save_IFS
22971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22974 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022976 break 2
22977 fi
22978done
cristy8b350f62009-11-15 23:12:43 +000022979 done
cristy3ed852e2009-09-05 21:47:34 +000022980IFS=$as_save_IFS
22981
22982fi
22983fi
22984ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22985if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022987$as_echo "$ac_ct_CXX" >&6; }
22988else
cristy8b350f62009-11-15 23:12:43 +000022989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022990$as_echo "no" >&6; }
22991fi
22992
22993
22994 test -n "$ac_ct_CXX" && break
22995done
22996
22997 if test "x$ac_ct_CXX" = x; then
22998 CXX="g++"
22999 else
23000 case $cross_compiling:$ac_tool_warned in
23001yes:)
cristy8b350f62009-11-15 23:12:43 +000023002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23004ac_tool_warned=yes ;;
23005esac
23006 CXX=$ac_ct_CXX
23007 fi
23008fi
23009
23010 fi
23011fi
23012# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023013$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023014set X $ac_compile
23015ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023016for ac_option in --version -v -V -qversion; do
23017 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023018case "(($ac_try" in
23019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020 *) ac_try_echo=$ac_try;;
23021esac
cristy8b350f62009-11-15 23:12:43 +000023022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23023$as_echo "$ac_try_echo"; } >&5
23024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023025 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023026 if test -s conftest.err; then
23027 sed '10a\
23028... rest of stderr output deleted ...
23029 10q' conftest.err >conftest.er1
23030 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023031 fi
cristycd4c5312009-11-22 01:19:08 +000023032 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23034 test $ac_status = 0; }
23035done
cristy3ed852e2009-09-05 21:47:34 +000023036
cristy8b350f62009-11-15 23:12:43 +000023037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023038$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023039if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023040 $as_echo_n "(cached) " >&6
23041else
cristy8b350f62009-11-15 23:12:43 +000023042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023043/* end confdefs.h. */
23044
23045int
23046main ()
23047{
23048#ifndef __GNUC__
23049 choke me
23050#endif
23051
23052 ;
23053 return 0;
23054}
23055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023056if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023057 ac_compiler_gnu=yes
23058else
cristy8b350f62009-11-15 23:12:43 +000023059 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023060fi
cristy3ed852e2009-09-05 21:47:34 +000023061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23063
23064fi
cristy8b350f62009-11-15 23:12:43 +000023065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023066$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23067if test $ac_compiler_gnu = yes; then
23068 GXX=yes
23069else
23070 GXX=
23071fi
23072ac_test_CXXFLAGS=${CXXFLAGS+set}
23073ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023075$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023076if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023077 $as_echo_n "(cached) " >&6
23078else
23079 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23080 ac_cxx_werror_flag=yes
23081 ac_cv_prog_cxx_g=no
23082 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023084/* end confdefs.h. */
23085
23086int
23087main ()
23088{
23089
23090 ;
23091 return 0;
23092}
23093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023094if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023095 ac_cv_prog_cxx_g=yes
23096else
cristy8b350f62009-11-15 23:12:43 +000023097 CXXFLAGS=""
23098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023099/* end confdefs.h. */
23100
23101int
23102main ()
23103{
23104
23105 ;
23106 return 0;
23107}
23108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023109if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023110
cristy8b350f62009-11-15 23:12:43 +000023111else
23112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023113 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023115/* end confdefs.h. */
23116
23117int
23118main ()
23119{
23120
23121 ;
23122 return 0;
23123}
23124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023125if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023126 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023127fi
cristy3ed852e2009-09-05 21:47:34 +000023128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129fi
cristy3ed852e2009-09-05 21:47:34 +000023130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131fi
cristy3ed852e2009-09-05 21:47:34 +000023132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23134fi
cristy8b350f62009-11-15 23:12:43 +000023135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023136$as_echo "$ac_cv_prog_cxx_g" >&6; }
23137if test "$ac_test_CXXFLAGS" = set; then
23138 CXXFLAGS=$ac_save_CXXFLAGS
23139elif test $ac_cv_prog_cxx_g = yes; then
23140 if test "$GXX" = yes; then
23141 CXXFLAGS="-g -O2"
23142 else
23143 CXXFLAGS="-g"
23144 fi
23145else
23146 if test "$GXX" = yes; then
23147 CXXFLAGS="-O2"
23148 else
23149 CXXFLAGS=
23150 fi
23151fi
23152ac_ext=cpp
23153ac_cpp='$CXXCPP $CPPFLAGS'
23154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23157
23158depcc="$CXX" am_compiler_list=
23159
cristy8b350f62009-11-15 23:12:43 +000023160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023161$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023162if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023163 $as_echo_n "(cached) " >&6
23164else
23165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23166 # We make a subdir and do the tests there. Otherwise we can end up
23167 # making bogus files that we don't know about and never remove. For
23168 # instance it was reported that on HP-UX the gcc test will end up
23169 # making a dummy file named `D' -- because `-MD' means `put the output
23170 # in D'.
23171 mkdir conftest.dir
23172 # Copy depcomp to subdir because otherwise we won't find it if we're
23173 # using a relative directory.
23174 cp "$am_depcomp" conftest.dir
23175 cd conftest.dir
23176 # We will build objects and dependencies in a subdirectory because
23177 # it helps to detect inapplicable dependency modes. For instance
23178 # both Tru64's cc and ICC support -MD to output dependencies as a
23179 # side effect of compilation, but ICC will put the dependencies in
23180 # the current directory while Tru64 will put them in the object
23181 # directory.
23182 mkdir sub
23183
23184 am_cv_CXX_dependencies_compiler_type=none
23185 if test "$am_compiler_list" = ""; then
23186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23187 fi
23188 am__universal=false
23189 case " $depcc " in #(
23190 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23191 esac
23192
23193 for depmode in $am_compiler_list; do
23194 # Setup a source with many dependencies, because some compilers
23195 # like to wrap large dependency lists on column 80 (with \), and
23196 # we should not choose a depcomp mode which is confused by this.
23197 #
23198 # We need to recreate these files for each test, as the compiler may
23199 # overwrite some of them when testing with obscure command lines.
23200 # This happens at least with the AIX C compiler.
23201 : > sub/conftest.c
23202 for i in 1 2 3 4 5 6; do
23203 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23204 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23205 # Solaris 8's {/usr,}/bin/sh.
23206 touch sub/conftst$i.h
23207 done
23208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23209
23210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23211 # mode. It turns out that the SunPro C++ compiler does not properly
23212 # handle `-M -o', and we need to detect this. Also, some Intel
23213 # versions had trouble with output in subdirs
23214 am__obj=sub/conftest.${OBJEXT-o}
23215 am__minus_obj="-o $am__obj"
23216 case $depmode in
23217 gcc)
23218 # This depmode causes a compiler race in universal mode.
23219 test "$am__universal" = false || continue
23220 ;;
23221 nosideeffect)
23222 # after this tag, mechanisms are not by side-effect, so they'll
23223 # only be used when explicitly requested
23224 if test "x$enable_dependency_tracking" = xyes; then
23225 continue
23226 else
23227 break
23228 fi
23229 ;;
23230 msvisualcpp | msvcmsys)
23231 # This compiler won't grok `-c -o', but also, the minuso test has
23232 # not run yet. These depmodes are late enough in the game, and
23233 # so weak that their functioning should not be impacted.
23234 am__obj=conftest.${OBJEXT-o}
23235 am__minus_obj=
23236 ;;
23237 none) break ;;
23238 esac
23239 if depmode=$depmode \
23240 source=sub/conftest.c object=$am__obj \
23241 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23242 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23243 >/dev/null 2>conftest.err &&
23244 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23246 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23248 # icc doesn't choke on unknown options, it will just issue warnings
23249 # or remarks (even with -Werror). So we grep stderr for any message
23250 # that says an option was ignored or not supported.
23251 # When given -MP, icc 7.0 and 7.1 complain thusly:
23252 # icc: Command line warning: ignoring option '-M'; no argument required
23253 # The diagnosis changed in icc 8.0:
23254 # icc: Command line remark: option '-MP' not supported
23255 if (grep 'ignoring option' conftest.err ||
23256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23257 am_cv_CXX_dependencies_compiler_type=$depmode
23258 break
23259 fi
23260 fi
23261 done
23262
23263 cd ..
23264 rm -rf conftest.dir
23265else
23266 am_cv_CXX_dependencies_compiler_type=none
23267fi
23268
23269fi
cristy8b350f62009-11-15 23:12:43 +000023270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023271$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23272CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23273
23274 if
23275 test "x$enable_dependency_tracking" != xno \
23276 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23277 am__fastdepCXX_TRUE=
23278 am__fastdepCXX_FALSE='#'
23279else
23280 am__fastdepCXX_TRUE='#'
23281 am__fastdepCXX_FALSE=
23282fi
23283
23284
cristy8b350f62009-11-15 23:12:43 +000023285 { $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 +000023286$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023287if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023288 $as_echo_n "(cached) " >&6
23289else
23290
23291 ac_ext=cpp
23292ac_cpp='$CXXCPP $CPPFLAGS'
23293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23296
cristy8b350f62009-11-15 23:12:43 +000023297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023298/* end confdefs.h. */
23299
23300int f(int x){return 1;}
23301int f(char x){return 1;}
23302int f(bool x){return 1;}
23303
23304int
23305main ()
23306{
23307bool b = true; return f(b);
23308 ;
23309 return 0;
23310}
23311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023312if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023313 ac_cv_cxx_have_bool=yes
23314else
cristy8b350f62009-11-15 23:12:43 +000023315 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023316fi
cristy3ed852e2009-09-05 21:47:34 +000023317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23318 ac_ext=cpp
23319ac_cpp='$CXXCPP $CPPFLAGS'
23320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23323
23324
23325fi
cristy8b350f62009-11-15 23:12:43 +000023326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000023327$as_echo "$ac_cv_cxx_have_bool" >&6; }
23328if test "$ac_cv_cxx_have_bool" = yes; then
23329
cristy8b350f62009-11-15 23:12:43 +000023330$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023331
23332fi
23333
cristy8b350f62009-11-15 23:12:43 +000023334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023335$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023336if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023337 $as_echo_n "(cached) " >&6
23338else
23339
23340 ac_ext=cpp
23341ac_cpp='$CXXCPP $CPPFLAGS'
23342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23345
cristy8b350f62009-11-15 23:12:43 +000023346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023347/* end confdefs.h. */
23348namespace Outer { namespace Inner { int i = 0; }}
23349int
23350main ()
23351{
23352using namespace Outer::Inner; return i;
23353 ;
23354 return 0;
23355}
23356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023357if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023358 ac_cv_cxx_have_namespaces=yes
23359else
cristy8b350f62009-11-15 23:12:43 +000023360 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023361fi
cristy3ed852e2009-09-05 21:47:34 +000023362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 ac_ext=cpp
23364ac_cpp='$CXXCPP $CPPFLAGS'
23365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23368
23369
23370fi
cristy8b350f62009-11-15 23:12:43 +000023371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023372$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
23373if test "$ac_cv_cxx_have_namespaces" = yes; then
23374
cristy8b350f62009-11-15 23:12:43 +000023375$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023376
23377fi
23378
cristy8b350f62009-11-15 23:12:43 +000023379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023380$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023381if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023382 $as_echo_n "(cached) " >&6
23383else
23384
23385 ac_ext=cpp
23386ac_cpp='$CXXCPP $CPPFLAGS'
23387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23390
cristy8b350f62009-11-15 23:12:43 +000023391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023392/* end confdefs.h. */
23393#include <iostream>
23394 std::istream& is = std::cin;
23395
23396int
23397main ()
23398{
23399return 0;
23400 ;
23401 return 0;
23402}
23403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023404if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023405 ac_cv_cxx_have_std_namespace=yes
23406else
cristy8b350f62009-11-15 23:12:43 +000023407 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023408fi
cristy3ed852e2009-09-05 21:47:34 +000023409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23410 ac_ext=cpp
23411ac_cpp='$CXXCPP $CPPFLAGS'
23412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23415
23416
23417fi
cristy8b350f62009-11-15 23:12:43 +000023418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023419$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
23420if test "$ac_cv_cxx_have_std_namespace" = yes; then
23421
cristy8b350f62009-11-15 23:12:43 +000023422$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023423
23424fi
23425
cristy8b350f62009-11-15 23:12:43 +000023426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023427$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023428if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023429 $as_echo_n "(cached) " >&6
23430else
23431
23432
23433 ac_ext=cpp
23434ac_cpp='$CXXCPP $CPPFLAGS'
23435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23438
cristy8b350f62009-11-15 23:12:43 +000023439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023440/* end confdefs.h. */
23441#include <iostream>
23442#include <map>
23443#include <iomanip>
23444#include <cmath>
23445#ifdef HAVE_NAMESPACES
23446using namespace std;
23447#endif
23448int
23449main ()
23450{
23451return 0;
23452 ;
23453 return 0;
23454}
23455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023456if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023457 ac_cv_cxx_have_std_libs=yes
23458else
cristy8b350f62009-11-15 23:12:43 +000023459 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023460fi
cristy3ed852e2009-09-05 21:47:34 +000023461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23462 ac_ext=cpp
23463ac_cpp='$CXXCPP $CPPFLAGS'
23464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23467
23468
23469fi
cristy8b350f62009-11-15 23:12:43 +000023470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023471$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23472if test "$ac_cv_cxx_have_std_libs" = yes; then
23473
cristy8b350f62009-11-15 23:12:43 +000023474$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023475
23476fi
23477
cristy8b350f62009-11-15 23:12:43 +000023478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023479$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023480if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023481 $as_echo_n "(cached) " >&6
23482else
23483
23484 ac_ext=cpp
23485ac_cpp='$CXXCPP $CPPFLAGS'
23486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23489
cristy8b350f62009-11-15 23:12:43 +000023490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023491/* end confdefs.h. */
23492const wchar_t* s=L"wide string";
23493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023494if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023495 ac_cv_cxx_have_lstring=yes
23496else
cristy8b350f62009-11-15 23:12:43 +000023497 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023498fi
cristy3ed852e2009-09-05 21:47:34 +000023499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23500 ac_ext=cpp
23501ac_cpp='$CXXCPP $CPPFLAGS'
23502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23505
23506
23507fi
cristy8b350f62009-11-15 23:12:43 +000023508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023509$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23510if test "$ac_cv_cxx_have_lstring" = yes; then
23511
cristy8b350f62009-11-15 23:12:43 +000023512$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023513
23514fi
23515
23516
23517 OPENMP_CXXFLAGS=
23518 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023519if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023520 enableval=$enable_openmp;
23521fi
23522
23523 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23525$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023526if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023527 $as_echo_n "(cached) " >&6
23528else
cristy8b350f62009-11-15 23:12:43 +000023529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23530/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023531
23532#ifndef _OPENMP
23533 choke me
23534#endif
23535#include <omp.h>
23536int main () { return omp_get_num_threads (); }
23537
23538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023539if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023540 ac_cv_prog_cxx_openmp='none needed'
23541else
cristy8b350f62009-11-15 23:12:43 +000023542 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023543 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23544 ac_save_CXXFLAGS=$CXXFLAGS
23545 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23547/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023548
23549#ifndef _OPENMP
23550 choke me
23551#endif
23552#include <omp.h>
23553int main () { return omp_get_num_threads (); }
23554
23555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023556if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023557 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023558fi
cristy8b350f62009-11-15 23:12:43 +000023559rm -f core conftest.err conftest.$ac_objext \
23560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023561 CXXFLAGS=$ac_save_CXXFLAGS
23562 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23563 break
23564 fi
23565 done
23566fi
cristy8b350f62009-11-15 23:12:43 +000023567rm -f core conftest.err conftest.$ac_objext \
23568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023569fi
cristy8b350f62009-11-15 23:12:43 +000023570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023571$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23572 case $ac_cv_prog_cxx_openmp in #(
23573 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023574 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023575 *)
cristy8b350f62009-11-15 23:12:43 +000023576 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023577 esac
23578 fi
23579
23580
23581 ac_ext=c
23582ac_cpp='$CPP $CPPFLAGS'
23583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23585ac_compiler_gnu=$ac_cv_c_compiler_gnu
23586
23587
cristy8b350f62009-11-15 23:12:43 +000023588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023589$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23590 if \
23591 test $ac_cv_cxx_have_bool = 'yes' && \
23592 test $ac_cv_cxx_have_lstring = 'yes' && \
23593 test $ac_cv_cxx_have_namespaces = 'yes' && \
23594 test $ac_cv_cxx_have_std_libs = 'yes' && \
23595 test $ac_cv_cxx_have_std_namespace = 'yes'; then
23596 have_magick_plus_plus='yes'
23597 else
23598 have_magick_plus_plus='no (failed tests)'
23599 fi
cristy8b350f62009-11-15 23:12:43 +000023600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000023601$as_echo "$have_magick_plus_plus" >&6; }
23602 LIBS="$OLIBS"
23603fi
23604 if test "$have_magick_plus_plus" = 'yes'; then
23605 WITH_MAGICK_PLUS_PLUS_TRUE=
23606 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23607else
23608 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23609 WITH_MAGICK_PLUS_PLUS_FALSE=
23610fi
23611
23612
23613# Only check for delegate libraries in subdirectories if requested.
23614if test "$enable_delegate_build" != 'no'; then
23615 # Check for delegate sub-directories and add -I & -L options as required.
23616 # This presumes that delegates are installed as detailed in the ImageMagick
23617 # README. If delegates are installed in a standard location where the
23618 # compiler will automatically find them then these options should not be
23619 # required.
23620
23621 #
23622 # Most delegates have includes in the same directory as the library, but not all...
23623 #
23624 # Includes
cristy5850e4b2010-01-08 14:28:24 +000023625 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 +000023626 if test -d "$builddir/$dir"; then
23627 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23628 else
23629 if test -d "$srcdirfull/$dir"; then
23630 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23631 fi
23632 fi
23633 done
23634
23635 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000023636 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 +000023637 if test -d "$builddir/$dir/.libs"; then
23638 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23639 else
23640 if test -d "$srcdirfull/$dir/.libs"; then
23641 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23642 fi
23643 fi
23644 if test -d "$builddir/$dir"; then
23645 LDFLAGS="$LDFLAGS -L$builddir/$dir"
23646 else
23647 if test -d "$srcdirfull/$dir"; then
23648 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23649 fi
23650 fi
23651 done
23652fi
23653
23654# Assume that delegate headers reside under same directory as ImageMagick
23655# installation prefix.
23656MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23657
23658#
23659# Find the X11 RGB database
23660#
cristy8b350f62009-11-15 23:12:43 +000023661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000023662$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023663if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023664 $as_echo_n "(cached) " >&6
23665else
23666 # Look for the header file in a standard set of common directories.
23667# Check X11 before X11Rn because it is often a symlink to the current release.
23668 for ac_dir in \
23669 /lib/usr/lib/X11 \
23670 /usr/X11/lib \
23671 /usr/X11R4/lib \
23672 /usr/X11R5/lib \
23673 /usr/X11R6/lib \
23674 /usr/X11R7/lib \
23675 /usr/X386/lib \
23676 /usr/XFree86/lib/X11 \
23677 /usr/athena/lib \
23678 /usr/lib \
23679 /usr/lib/X11 \
23680 /usr/lib/X11R4 \
23681 /usr/lib/X11R5 \
23682 /usr/lib/X11R6 \
23683 /usr/lib/X11R7 \
23684 /usr/local/X11/lib \
23685 /usr/local/X11R4/lib \
23686 /usr/local/X11R5/lib \
23687 /usr/local/X11R6/lib \
23688 /usr/local/lib \
23689 /usr/local/lib/X11 \
23690 /usr/local/lib/X11R4 \
23691 /usr/local/lib/X11R5 \
23692 /usr/local/lib/X11R6 \
23693 /usr/local/lib/X11R7 \
23694 /usr/local/x11r5/lib \
23695 /usr/lpp/Xamples/lib \
23696 /usr/openwin/lib \
23697 /usr/openwin/share/lib \
23698 /usr/unsupported/lib \
23699 /usr/x386/lib \
23700 ; do
23701 if test -f "$ac_dir/X11/rgb.txt"; then
23702 im_cv_x_configure="$ac_dir/X11/"
23703 break
23704 elif test -f "$ac_dir/rgb.txt"; then
23705 im_cv_x_configure="$ac_dir/"
23706 break
23707 fi
23708
23709 done
23710fi
cristy8b350f62009-11-15 23:12:43 +000023711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000023712$as_echo "$im_cv_x_configure" >&6; }
23713X11_CONFIGURE_PATH="$im_cv_x_configure"
23714case "${build_os}" in
23715 mingw* )
23716 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23717 ;;
23718esac
23719
23720cat >>confdefs.h <<_ACEOF
23721#define X11_CONFIGURE_PATH "$X11ConfigurePath"
23722_ACEOF
23723
23724
23725#
23726# Find OpenMP library
23727#
23728GOMP_LIBS=''
23729if test "$enable_openmp" != 'no'; then
23730 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000023731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023732$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023733if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023734 $as_echo_n "(cached) " >&6
23735else
23736 ac_check_lib_save_LIBS=$LIBS
23737LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023739/* end confdefs.h. */
23740
23741/* Override any GCC internal prototype to avoid an error.
23742 Use char because int might match the return type of a GCC
23743 builtin and then its argument prototype would still apply. */
23744#ifdef __cplusplus
23745extern "C"
23746#endif
23747char GOMP_parallel_start ();
23748int
23749main ()
23750{
23751return GOMP_parallel_start ();
23752 ;
23753 return 0;
23754}
23755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023757 ac_cv_lib_gomp_GOMP_parallel_start=yes
23758else
cristy8b350f62009-11-15 23:12:43 +000023759 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000023760fi
cristy8b350f62009-11-15 23:12:43 +000023761rm -f core conftest.err conftest.$ac_objext \
23762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023763LIBS=$ac_check_lib_save_LIBS
23764fi
cristy8b350f62009-11-15 23:12:43 +000023765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000023766$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023767if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023768 GOMP_LIBS="-lgomp"
23769fi
23770 # gcc
23771 else
cristy8b350f62009-11-15 23:12:43 +000023772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000023773$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023774if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023775 $as_echo_n "(cached) " >&6
23776else
23777 ac_check_lib_save_LIBS=$LIBS
23778LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023780/* end confdefs.h. */
23781
23782/* Override any GCC internal prototype to avoid an error.
23783 Use char because int might match the return type of a GCC
23784 builtin and then its argument prototype would still apply. */
23785#ifdef __cplusplus
23786extern "C"
23787#endif
23788char sunw_mp_register_warn ();
23789int
23790main ()
23791{
23792return sunw_mp_register_warn ();
23793 ;
23794 return 0;
23795}
23796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023798 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23799else
cristy8b350f62009-11-15 23:12:43 +000023800 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000023801fi
cristy8b350f62009-11-15 23:12:43 +000023802rm -f core conftest.err conftest.$ac_objext \
23803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023804LIBS=$ac_check_lib_save_LIBS
23805fi
cristy8b350f62009-11-15 23:12:43 +000023806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000023807$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023808if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023809 GOMP_LIBS="-lmtsk"
23810fi
23811 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000023812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023813$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023814if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023815 $as_echo_n "(cached) " >&6
23816else
23817 ac_check_lib_save_LIBS=$LIBS
23818LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023820/* end confdefs.h. */
23821
23822/* Override any GCC internal prototype to avoid an error.
23823 Use char because int might match the return type of a GCC
23824 builtin and then its argument prototype would still apply. */
23825#ifdef __cplusplus
23826extern "C"
23827#endif
23828char _xlsmpFlush ();
23829int
23830main ()
23831{
23832return _xlsmpFlush ();
23833 ;
23834 return 0;
23835}
23836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023837if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023838 ac_cv_lib_xlsmp__xlsmpFlush=yes
23839else
cristy8b350f62009-11-15 23:12:43 +000023840 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000023841fi
cristy8b350f62009-11-15 23:12:43 +000023842rm -f core conftest.err conftest.$ac_objext \
23843 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023844LIBS=$ac_check_lib_save_LIBS
23845fi
cristy8b350f62009-11-15 23:12:43 +000023846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000023847$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023848if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023849 GOMP_LIBS="-lxlsmp"
23850fi
23851 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000023852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023853$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023854if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023855 $as_echo_n "(cached) " >&6
23856else
23857 ac_check_lib_save_LIBS=$LIBS
23858LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023860/* end confdefs.h. */
23861
23862/* Override any GCC internal prototype to avoid an error.
23863 Use char because int might match the return type of a GCC
23864 builtin and then its argument prototype would still apply. */
23865#ifdef __cplusplus
23866extern "C"
23867#endif
23868char mp_destroy ();
23869int
23870main ()
23871{
23872return mp_destroy ();
23873 ;
23874 return 0;
23875}
23876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023878 ac_cv_lib_mp_mp_destroy=yes
23879else
cristy8b350f62009-11-15 23:12:43 +000023880 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000023881fi
cristy8b350f62009-11-15 23:12:43 +000023882rm -f core conftest.err conftest.$ac_objext \
23883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023884LIBS=$ac_check_lib_save_LIBS
23885fi
cristy8b350f62009-11-15 23:12:43 +000023886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000023887$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023888if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023889 GOMP_LIBS="-lmp"
23890fi
23891 # SGI IRIX 6.5 MIPSpro C/C++
23892 fi
23893 LIBS="$GOMP_LIBS $LIBS"
23894fi
23895
23896
23897#
23898# Find Posix threads library
23899#
23900THREAD_LIBS=''
23901if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23902
23903 if test "x$PTHREAD_LIBS" = "x"; then
23904 case "${host_cpu}-${host_os}" in
23905 *-freebsd*)
23906
23907
23908
23909ac_ext=c
23910ac_cpp='$CPP $CPPFLAGS'
23911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23913ac_compiler_gnu=$ac_cv_c_compiler_gnu
23914
23915magick_pthread_lib_ok=no
23916
23917LIB=-lc_r
23918save_LIBS="$LIBS"
23919LIBS="$LIBS $LIB"
23920
cristy8b350f62009-11-15 23:12:43 +000023921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023922$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023924/* end confdefs.h. */
23925#include <pthread.h>
23926int
23927main ()
23928{
23929 pthread_t th;
23930 pthread_join(th, 0);
23931 pthread_attr_init(0);
23932 pthread_cleanup_push(0, 0);
23933 pthread_create(0,0,0,0);
23934 pthread_cleanup_pop(0);
23935 ;
23936 return 0;
23937}
23938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023940 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023941fi
cristy8b350f62009-11-15 23:12:43 +000023942rm -f core conftest.err conftest.$ac_objext \
23943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023944
cristy8b350f62009-11-15 23:12:43 +000023945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023946$as_echo "${magick_pthread_lib_ok}" >&6; }
23947if test "$magick_pthread_lib_ok" = yes
23948then
23949 PTHREAD_LIBS=-lc_r
23950 :
23951else
23952
23953 :
23954fi
23955
23956LIBS="$save_LIBS"
23957
23958ac_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 ;;
23965 esac
23966 fi
23967
23968 for lib in pthread pthreads; do
23969 if test "x$PTHREAD_LIBS" = "x"; then
23970
23971
23972
23973ac_ext=c
23974ac_cpp='$CPP $CPPFLAGS'
23975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23977ac_compiler_gnu=$ac_cv_c_compiler_gnu
23978
23979magick_pthread_lib_ok=no
23980
23981LIB=-l$lib
23982save_LIBS="$LIBS"
23983LIBS="$LIBS $LIB"
23984
cristy8b350f62009-11-15 23:12:43 +000023985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023986$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023988/* end confdefs.h. */
23989#include <pthread.h>
23990int
23991main ()
23992{
23993 pthread_t th;
23994 pthread_join(th, 0);
23995 pthread_attr_init(0);
23996 pthread_cleanup_push(0, 0);
23997 pthread_create(0,0,0,0);
23998 pthread_cleanup_pop(0);
23999 ;
24000 return 0;
24001}
24002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024003if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024004 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024005fi
cristy8b350f62009-11-15 23:12:43 +000024006rm -f core conftest.err conftest.$ac_objext \
24007 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024008
cristy8b350f62009-11-15 23:12:43 +000024009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024010$as_echo "${magick_pthread_lib_ok}" >&6; }
24011if test "$magick_pthread_lib_ok" = yes
24012then
24013 PTHREAD_LIBS=-l$lib
24014 :
24015else
24016
24017 :
24018fi
24019
24020LIBS="$save_LIBS"
24021
24022ac_ext=c
24023ac_cpp='$CPP $CPPFLAGS'
24024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24026ac_compiler_gnu=$ac_cv_c_compiler_gnu
24027
24028
24029 fi
24030 done
24031
24032 THREAD_LIBS="$PTHREAD_LIBS"
24033 LIBS="$LIBS $THREAD_LIBS"
24034fi
24035
24036
24037#
24038# Check for umem.
24039#
24040have_umem='no'
24041UMEM_LIBS=''
24042if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024044$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024046$as_echo "" >&6; }
24047 failed=0
24048 passed=0
cristy8b350f62009-11-15 23:12:43 +000024049 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24050if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024051 passed=`expr $passed + 1`
24052else
24053 failed=`expr $failed + 1`
24054fi
24055
24056
cristy8b350f62009-11-15 23:12:43 +000024057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024059if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 $as_echo_n "(cached) " >&6
24061else
24062 ac_check_lib_save_LIBS=$LIBS
24063LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024065/* end confdefs.h. */
24066
24067/* Override any GCC internal prototype to avoid an error.
24068 Use char because int might match the return type of a GCC
24069 builtin and then its argument prototype would still apply. */
24070#ifdef __cplusplus
24071extern "C"
24072#endif
24073char umem_alloc ();
24074int
24075main ()
24076{
24077return umem_alloc ();
24078 ;
24079 return 0;
24080}
24081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024082if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024083 ac_cv_lib_umem_umem_alloc=yes
24084else
cristy8b350f62009-11-15 23:12:43 +000024085 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024086fi
cristy8b350f62009-11-15 23:12:43 +000024087rm -f core conftest.err conftest.$ac_objext \
24088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024089LIBS=$ac_check_lib_save_LIBS
24090fi
cristy8b350f62009-11-15 23:12:43 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024092$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024093if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024094 passed=`expr $passed + 1`
24095else
24096 failed=`expr $failed + 1`
24097fi
24098
cristy8b350f62009-11-15 23:12:43 +000024099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024100$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024101if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024102 $as_echo_n "(cached) " >&6
24103else
24104 ac_check_lib_save_LIBS=$LIBS
24105LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024107/* end confdefs.h. */
24108
24109/* Override any GCC internal prototype to avoid an error.
24110 Use char because int might match the return type of a GCC
24111 builtin and then its argument prototype would still apply. */
24112#ifdef __cplusplus
24113extern "C"
24114#endif
24115char umem_free ();
24116int
24117main ()
24118{
24119return umem_free ();
24120 ;
24121 return 0;
24122}
24123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024124if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 ac_cv_lib_umem_umem_free=yes
24126else
cristy8b350f62009-11-15 23:12:43 +000024127 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024128fi
cristy8b350f62009-11-15 23:12:43 +000024129rm -f core conftest.err conftest.$ac_objext \
24130 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024131LIBS=$ac_check_lib_save_LIBS
24132fi
cristy8b350f62009-11-15 23:12:43 +000024133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024134$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024135if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024136 passed=`expr $passed + 1`
24137else
24138 failed=`expr $failed + 1`
24139fi
24140
cristy8b350f62009-11-15 23:12:43 +000024141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024142$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24143 if test $passed -gt 0; then
24144 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo "no -- some components failed test" >&6; }
24147 have_umem='no (failed tests)'
24148 else
24149 UMEM_LIBS='-lumem'
24150 LIBS="$UMEM_LIBS $LIBS"
24151
cristy8b350f62009-11-15 23:12:43 +000024152$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024153
cristy8b350f62009-11-15 23:12:43 +000024154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024155$as_echo "yes" >&6; }
24156 have_umem='yes'
24157 fi
24158 else
cristy8b350f62009-11-15 23:12:43 +000024159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024160$as_echo "no" >&6; }
24161 fi
24162fi
24163 if test "$have_umem" = 'yes'; then
24164 HasUMEM_TRUE=
24165 HasUMEM_FALSE='#'
24166else
24167 HasUMEM_TRUE='#'
24168 HasUMEM_FALSE=
24169fi
24170
24171
24172
24173#
24174# Add support for ccmalloc memory debugging library if requested
24175#
24176have_ccmalloc='no'
24177CCMALLOC_LIBS=''
24178if test "$enable_ccmalloc" = 'yes'; then
24179 # Extract the first word of "ccmalloc", so it can be a program name with args.
24180set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024182$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024183if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024184 $as_echo_n "(cached) " >&6
24185else
24186 case $CCMALLOCDelegate in
24187 [\\/]* | ?:[\\/]*)
24188 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24189 ;;
24190 *)
24191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24192for as_dir in $PATH
24193do
24194 IFS=$as_save_IFS
24195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24198 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200 break 2
24201 fi
24202done
cristy8b350f62009-11-15 23:12:43 +000024203 done
cristy3ed852e2009-09-05 21:47:34 +000024204IFS=$as_save_IFS
24205
24206 ;;
24207esac
24208fi
24209CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24210if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo "$CCMALLOCDelegate" >&6; }
24213else
cristy8b350f62009-11-15 23:12:43 +000024214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo "no" >&6; }
24216fi
24217
24218
24219 if test -n "$CCMALLOCDelegate"; then
24220 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24221 OLIBS="$LIBS"
24222 # Assume that gcc is used with ccmalloc.
24223 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024226if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024227 $as_echo_n "(cached) " >&6
24228else
24229 ac_check_lib_save_LIBS=$LIBS
24230LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024232/* end confdefs.h. */
24233
24234/* Override any GCC internal prototype to avoid an error.
24235 Use char because int might match the return type of a GCC
24236 builtin and then its argument prototype would still apply. */
24237#ifdef __cplusplus
24238extern "C"
24239#endif
24240char ccmalloc_malloc ();
24241int
24242main ()
24243{
24244return ccmalloc_malloc ();
24245 ;
24246 return 0;
24247}
24248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024250 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24251else
cristy8b350f62009-11-15 23:12:43 +000024252 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024253fi
cristy8b350f62009-11-15 23:12:43 +000024254rm -f core conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024256LIBS=$ac_check_lib_save_LIBS
24257fi
cristy8b350f62009-11-15 23:12:43 +000024258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024259$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024260if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024261 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24262fi
24263
24264 if test -n "$CCMALLOC_LIBS"; then
24265 LIBS="$OLIBS"
24266 LIBS="$LIBS $CCMALLOC_LIBS"
24267 have_ccmalloc='yes'
24268 else
24269 LIBS="$OLIBS"
24270 fi
24271 fi
24272fi
24273
24274#
24275# Add support for efence memory debugging library if requested
24276#
24277if test "$enable_efence" = 'yes'; then
24278 EFENCE_LIBS='-lefence'
24279 LIBS="$EFENCE_LIBS $LIBS"
24280fi
24281
cristy3ed852e2009-09-05 21:47:34 +000024282
24283#
24284# Check for BZLIB
24285#
24286
24287
24288# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024289if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024290 withval=$with_bzlib; with_bzlib=$withval
24291else
24292 with_bzlib='yes'
24293fi
24294
24295
24296if test "$with_bzlib" != 'yes'; then
24297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24298fi
24299
24300have_bzlib='no'
24301if test "$with_bzlib" != 'no'; then
24302 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024304$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024308$as_echo "" >&6; }
24309 failed=0
24310 passed=0
24311 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024312 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24313if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024314 passed=`expr $passed + 1`
24315else
24316 failed=`expr $failed + 1`
24317fi
24318
24319
cristy8b350f62009-11-15 23:12:43 +000024320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024321$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024322if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024323 $as_echo_n "(cached) " >&6
24324else
24325 ac_check_lib_save_LIBS=$LIBS
24326LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024328/* end confdefs.h. */
24329
24330/* Override any GCC internal prototype to avoid an error.
24331 Use char because int might match the return type of a GCC
24332 builtin and then its argument prototype would still apply. */
24333#ifdef __cplusplus
24334extern "C"
24335#endif
24336char BZ2_bzDecompress ();
24337int
24338main ()
24339{
24340return BZ2_bzDecompress ();
24341 ;
24342 return 0;
24343}
24344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024345if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024346 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24347else
cristy8b350f62009-11-15 23:12:43 +000024348 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024349fi
cristy8b350f62009-11-15 23:12:43 +000024350rm -f core conftest.err conftest.$ac_objext \
24351 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024352LIBS=$ac_check_lib_save_LIBS
24353fi
cristy8b350f62009-11-15 23:12:43 +000024354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024355$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024356if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024357 found_libbz=`expr $found_libbz + 1`
24358fi
24359
24360 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024362$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024363if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024364 $as_echo_n "(cached) " >&6
24365else
24366 ac_check_lib_save_LIBS=$LIBS
24367LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024369/* end confdefs.h. */
24370
24371/* Override any GCC internal prototype to avoid an error.
24372 Use char because int might match the return type of a GCC
24373 builtin and then its argument prototype would still apply. */
24374#ifdef __cplusplus
24375extern "C"
24376#endif
24377char _imp__BZ2_decompress ();
24378int
24379main ()
24380{
24381return _imp__BZ2_decompress ();
24382 ;
24383 return 0;
24384}
24385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024386if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024387 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24388else
cristy8b350f62009-11-15 23:12:43 +000024389 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024390fi
cristy8b350f62009-11-15 23:12:43 +000024391rm -f core conftest.err conftest.$ac_objext \
24392 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024393LIBS=$ac_check_lib_save_LIBS
24394fi
cristy8b350f62009-11-15 23:12:43 +000024395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024396$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024397if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024398 found_libbz=`expr $found_libbz + 1`
24399fi
24400
24401 fi
24402 if test $found_libbz -gt 0; then
24403 passed=`expr $passed + 1`
24404 else
24405 failed=`expr $failed + 1`
24406 fi
cristy8b350f62009-11-15 23:12:43 +000024407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024408$as_echo_n "checking if BZLIB package is complete... " >&6; }
24409 if test $passed -gt 0; then
24410 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024412$as_echo "no -- some components failed test" >&6; }
24413 have_bzlib='no (failed tests)'
24414 else
24415 BZLIB_LIBS='-lbz2'
24416 LIBS="$BZLIB_LIBS $LIBS"
24417
cristy8b350f62009-11-15 23:12:43 +000024418$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024419
cristy8b350f62009-11-15 23:12:43 +000024420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024421$as_echo "yes" >&6; }
24422 have_bzlib='yes'
24423 fi
24424 else
cristy8b350f62009-11-15 23:12:43 +000024425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024426$as_echo "no" >&6; }
24427 fi
24428fi
24429 if test "$have_bzlib" = 'yes'; then
24430 BZLIB_DELEGATE_TRUE=
24431 BZLIB_DELEGATE_FALSE='#'
24432else
24433 BZLIB_DELEGATE_TRUE='#'
24434 BZLIB_DELEGATE_FALSE=
24435fi
24436
24437
24438
24439#
24440# Find the X11 include and library directories.
24441#
24442IPC_LIBS=''
24443X11_LIBS=''
24444XEXT_LIBS=''
24445XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024447$as_echo_n "checking for X... " >&6; }
24448
24449
24450# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024451if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024452 withval=$with_x;
24453fi
24454
24455# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24456if test "x$with_x" = xno; then
24457 # The user explicitly disabled X.
24458 have_x=disabled
24459else
24460 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000024461 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24462 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024463 $as_echo_n "(cached) " >&6
24464else
24465 # One or both of the vars are not set, and there is no cached value.
24466ac_x_includes=no ac_x_libraries=no
24467rm -f -r conftest.dir
24468if mkdir conftest.dir; then
24469 cd conftest.dir
24470 cat >Imakefile <<'_ACEOF'
24471incroot:
24472 @echo incroot='${INCROOT}'
24473usrlibdir:
24474 @echo usrlibdir='${USRLIBDIR}'
24475libdir:
24476 @echo libdir='${LIBDIR}'
24477_ACEOF
24478 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24480 for ac_var in incroot usrlibdir libdir; do
24481 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24482 done
24483 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24484 for ac_extension in a so sl dylib la dll; do
24485 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24486 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24487 ac_im_usrlibdir=$ac_im_libdir; break
24488 fi
24489 done
24490 # Screen out bogus values from the imake configuration. They are
24491 # bogus both because they are the default anyway, and because
24492 # using them would break gcc on systems where it needs fixed includes.
24493 case $ac_im_incroot in
24494 /usr/include) ac_x_includes= ;;
24495 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24496 esac
24497 case $ac_im_usrlibdir in
24498 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24499 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24500 esac
24501 fi
24502 cd ..
24503 rm -f -r conftest.dir
24504fi
24505
24506# Standard set of common directories for X headers.
24507# Check X11 before X11Rn because it is often a symlink to the current release.
24508ac_x_header_dirs='
24509/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024510/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024511/usr/X11R6/include
24512/usr/X11R5/include
24513/usr/X11R4/include
24514
24515/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024516/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024517/usr/include/X11R6
24518/usr/include/X11R5
24519/usr/include/X11R4
24520
24521/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024522/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024523/usr/local/X11R6/include
24524/usr/local/X11R5/include
24525/usr/local/X11R4/include
24526
24527/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024528/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024529/usr/local/include/X11R6
24530/usr/local/include/X11R5
24531/usr/local/include/X11R4
24532
24533/usr/X386/include
24534/usr/x386/include
24535/usr/XFree86/include/X11
24536
24537/usr/include
24538/usr/local/include
24539/usr/unsupported/include
24540/usr/athena/include
24541/usr/local/x11r5/include
24542/usr/lpp/Xamples/include
24543
24544/usr/openwin/include
24545/usr/openwin/share/include'
24546
24547if test "$ac_x_includes" = no; then
24548 # Guess where to find include files, by looking for Xlib.h.
24549 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024551/* end confdefs.h. */
24552#include <X11/Xlib.h>
24553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024554if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024555 # We can compile using X headers with no special include directory.
24556ac_x_includes=
24557else
cristyc7083c12009-10-14 03:16:55 +000024558 for ac_dir in $ac_x_header_dirs; do
24559 if test -r "$ac_dir/X11/Xlib.h"; then
24560 ac_x_includes=$ac_dir
24561 break
24562 fi
24563done
24564fi
cristyc7083c12009-10-14 03:16:55 +000024565rm -f conftest.err conftest.$ac_ext
24566fi # $ac_x_includes = no
24567
24568if test "$ac_x_libraries" = no; then
24569 # Check for the libraries.
24570 # See if we find them without any special options.
24571 # Don't add to $LIBS permanently.
24572 ac_save_LIBS=$LIBS
24573 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024575/* end confdefs.h. */
24576#include <X11/Xlib.h>
24577int
24578main ()
24579{
24580XrmInitialize ()
24581 ;
24582 return 0;
24583}
24584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024585if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024586 LIBS=$ac_save_LIBS
24587# We can link X programs with no special library path.
24588ac_x_libraries=
24589else
cristy8b350f62009-11-15 23:12:43 +000024590 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024591for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24592do
24593 # Don't even attempt the hair of trying to link an X program!
24594 for ac_extension in a so sl dylib la dll; do
24595 if test -r "$ac_dir/libX11.$ac_extension"; then
24596 ac_x_libraries=$ac_dir
24597 break 2
24598 fi
24599 done
24600done
24601fi
cristy8b350f62009-11-15 23:12:43 +000024602rm -f core conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024604fi # $ac_x_libraries = no
24605
24606case $ac_x_includes,$ac_x_libraries in #(
24607 no,* | *,no | *\'*)
24608 # Didn't find X, or a directory has "'" in its name.
24609 ac_cv_have_x="have_x=no";; #(
24610 *)
24611 # Record where we found X for the cache.
24612 ac_cv_have_x="have_x=yes\
24613 ac_x_includes='$ac_x_includes'\
24614 ac_x_libraries='$ac_x_libraries'"
24615esac
24616fi
24617;; #(
24618 *) have_x=yes;;
24619 esac
24620 eval "$ac_cv_have_x"
24621fi # $with_x != no
24622
24623if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000024625$as_echo "$have_x" >&6; }
24626 no_x=yes
24627else
24628 # If each of the values was on the command line, it overrides each guess.
24629 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24630 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24631 # Update the cache value to reflect the command line values.
24632 ac_cv_have_x="have_x=yes\
24633 ac_x_includes='$x_includes'\
24634 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000024635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000024636$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24637fi
24638
cristy3ed852e2009-09-05 21:47:34 +000024639if test "$no_x" = yes; then
24640 # Not all programs may use this symbol, but it does not hurt to define it.
24641
cristy8b350f62009-11-15 23:12:43 +000024642$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024643
24644 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24645else
24646 if test -n "$x_includes"; then
24647 X_CFLAGS="$X_CFLAGS -I$x_includes"
24648 fi
24649
24650 # It would also be nice to do this for all -L options, not just this one.
24651 if test -n "$x_libraries"; then
24652 X_LIBS="$X_LIBS -L$x_libraries"
24653 # For Solaris; some versions of Sun CC require a space after -R and
24654 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000024655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000024656$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24657 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24658 ac_xsave_c_werror_flag=$ac_c_werror_flag
24659 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000024660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024661/* end confdefs.h. */
24662
24663int
24664main ()
24665{
24666
24667 ;
24668 return 0;
24669}
24670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024671if ac_fn_c_try_link "$LINENO"; then :
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024673$as_echo "no" >&6; }
24674 X_LIBS="$X_LIBS -R$x_libraries"
24675else
cristy8b350f62009-11-15 23:12:43 +000024676 LIBS="$ac_xsave_LIBS -R $x_libraries"
24677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024678/* end confdefs.h. */
24679
24680int
24681main ()
24682{
24683
24684 ;
24685 return 0;
24686}
24687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024688if ac_fn_c_try_link "$LINENO"; then :
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024690$as_echo "yes" >&6; }
24691 X_LIBS="$X_LIBS -R $x_libraries"
24692else
cristy8b350f62009-11-15 23:12:43 +000024693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024694$as_echo "neither works" >&6; }
24695fi
cristy8b350f62009-11-15 23:12:43 +000024696rm -f core conftest.err conftest.$ac_objext \
24697 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024698fi
cristy8b350f62009-11-15 23:12:43 +000024699rm -f core conftest.err conftest.$ac_objext \
24700 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024701 ac_c_werror_flag=$ac_xsave_c_werror_flag
24702 LIBS=$ac_xsave_LIBS
24703 fi
24704
24705 # Check for system-dependent libraries X programs must link with.
24706 # Do this before checking for the system-independent R6 libraries
24707 # (-lICE), since we may need -lsocket or whatever for X linking.
24708
24709 if test "$ISC" = yes; then
24710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24711 else
24712 # Martyn Johnson says this is needed for Ultrix, if the X
24713 # libraries were built with DECnet support. And Karl Berry says
24714 # the Alpha needs dnet_stub (dnet does not exist).
24715 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000024716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024717/* end confdefs.h. */
24718
24719/* Override any GCC internal prototype to avoid an error.
24720 Use char because int might match the return type of a GCC
24721 builtin and then its argument prototype would still apply. */
24722#ifdef __cplusplus
24723extern "C"
24724#endif
24725char XOpenDisplay ();
24726int
24727main ()
24728{
24729return XOpenDisplay ();
24730 ;
24731 return 0;
24732}
24733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024734if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024735
cristy8b350f62009-11-15 23:12:43 +000024736else
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024738$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024739if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024740 $as_echo_n "(cached) " >&6
24741else
24742 ac_check_lib_save_LIBS=$LIBS
24743LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024745/* end confdefs.h. */
24746
24747/* Override any GCC internal prototype to avoid an error.
24748 Use char because int might match the return type of a GCC
24749 builtin and then its argument prototype would still apply. */
24750#ifdef __cplusplus
24751extern "C"
24752#endif
24753char dnet_ntoa ();
24754int
24755main ()
24756{
24757return dnet_ntoa ();
24758 ;
24759 return 0;
24760}
24761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024763 ac_cv_lib_dnet_dnet_ntoa=yes
24764else
cristy8b350f62009-11-15 23:12:43 +000024765 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024766fi
cristy8b350f62009-11-15 23:12:43 +000024767rm -f core conftest.err conftest.$ac_objext \
24768 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024769LIBS=$ac_check_lib_save_LIBS
24770fi
cristy8b350f62009-11-15 23:12:43 +000024771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024772$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024773if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024774 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24775fi
24776
24777 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000024778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000024779$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024780if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024781 $as_echo_n "(cached) " >&6
24782else
24783 ac_check_lib_save_LIBS=$LIBS
24784LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024786/* end confdefs.h. */
24787
24788/* Override any GCC internal prototype to avoid an error.
24789 Use char because int might match the return type of a GCC
24790 builtin and then its argument prototype would still apply. */
24791#ifdef __cplusplus
24792extern "C"
24793#endif
24794char dnet_ntoa ();
24795int
24796main ()
24797{
24798return dnet_ntoa ();
24799 ;
24800 return 0;
24801}
24802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024803if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024804 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24805else
cristy8b350f62009-11-15 23:12:43 +000024806 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024807fi
cristy8b350f62009-11-15 23:12:43 +000024808rm -f core conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024810LIBS=$ac_check_lib_save_LIBS
24811fi
cristy8b350f62009-11-15 23:12:43 +000024812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024813$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024814if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024815 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24816fi
24817
24818 fi
24819fi
cristy8b350f62009-11-15 23:12:43 +000024820rm -f core conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024822 LIBS="$ac_xsave_LIBS"
24823
24824 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24825 # to get the SysV transport functions.
24826 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24827 # needs -lnsl.
24828 # The nsl library prevents programs from opening the X display
24829 # on Irix 5.2, according to T.E. Dickey.
24830 # The functions gethostbyname, getservbyname, and inet_addr are
24831 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000024832 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24833if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024834
cristy3ed852e2009-09-05 21:47:34 +000024835fi
24836
cristy3ed852e2009-09-05 21:47:34 +000024837 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024839$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024840if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024841 $as_echo_n "(cached) " >&6
24842else
24843 ac_check_lib_save_LIBS=$LIBS
24844LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024846/* end confdefs.h. */
24847
24848/* Override any GCC internal prototype to avoid an error.
24849 Use char because int might match the return type of a GCC
24850 builtin and then its argument prototype would still apply. */
24851#ifdef __cplusplus
24852extern "C"
24853#endif
24854char gethostbyname ();
24855int
24856main ()
24857{
24858return gethostbyname ();
24859 ;
24860 return 0;
24861}
24862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024863if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024864 ac_cv_lib_nsl_gethostbyname=yes
24865else
cristy8b350f62009-11-15 23:12:43 +000024866 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024867fi
cristy8b350f62009-11-15 23:12:43 +000024868rm -f core conftest.err conftest.$ac_objext \
24869 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024870LIBS=$ac_check_lib_save_LIBS
24871fi
cristy8b350f62009-11-15 23:12:43 +000024872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024873$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024874if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024875 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24876fi
24877
24878 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024880$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024881if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024882 $as_echo_n "(cached) " >&6
24883else
24884 ac_check_lib_save_LIBS=$LIBS
24885LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024887/* end confdefs.h. */
24888
24889/* Override any GCC internal prototype to avoid an error.
24890 Use char because int might match the return type of a GCC
24891 builtin and then its argument prototype would still apply. */
24892#ifdef __cplusplus
24893extern "C"
24894#endif
24895char gethostbyname ();
24896int
24897main ()
24898{
24899return gethostbyname ();
24900 ;
24901 return 0;
24902}
24903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024905 ac_cv_lib_bsd_gethostbyname=yes
24906else
cristy8b350f62009-11-15 23:12:43 +000024907 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024908fi
cristy8b350f62009-11-15 23:12:43 +000024909rm -f core conftest.err conftest.$ac_objext \
24910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024911LIBS=$ac_check_lib_save_LIBS
24912fi
cristy8b350f62009-11-15 23:12:43 +000024913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024914$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024915if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024916 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24917fi
24918
24919 fi
24920 fi
24921
24922 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24923 # socket/setsockopt and other routines are undefined under SCO ODT
24924 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24925 # on later versions), says Simon Leinen: it contains gethostby*
24926 # variants that don't use the name server (or something). -lsocket
24927 # must be given before -lnsl if both are needed. We assume that
24928 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024929 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24930if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024931
cristy3ed852e2009-09-05 21:47:34 +000024932fi
24933
cristy3ed852e2009-09-05 21:47:34 +000024934 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024936$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024937if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024938 $as_echo_n "(cached) " >&6
24939else
24940 ac_check_lib_save_LIBS=$LIBS
24941LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024943/* end confdefs.h. */
24944
24945/* Override any GCC internal prototype to avoid an error.
24946 Use char because int might match the return type of a GCC
24947 builtin and then its argument prototype would still apply. */
24948#ifdef __cplusplus
24949extern "C"
24950#endif
24951char connect ();
24952int
24953main ()
24954{
24955return connect ();
24956 ;
24957 return 0;
24958}
24959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024960if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024961 ac_cv_lib_socket_connect=yes
24962else
cristy8b350f62009-11-15 23:12:43 +000024963 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024964fi
cristy8b350f62009-11-15 23:12:43 +000024965rm -f core conftest.err conftest.$ac_objext \
24966 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024967LIBS=$ac_check_lib_save_LIBS
24968fi
cristy8b350f62009-11-15 23:12:43 +000024969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024970$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024971if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024972 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24973fi
24974
24975 fi
24976
24977 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024978 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24979if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024980
cristy3ed852e2009-09-05 21:47:34 +000024981fi
24982
cristy3ed852e2009-09-05 21:47:34 +000024983 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024985$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024986if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024987 $as_echo_n "(cached) " >&6
24988else
24989 ac_check_lib_save_LIBS=$LIBS
24990LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024992/* end confdefs.h. */
24993
24994/* Override any GCC internal prototype to avoid an error.
24995 Use char because int might match the return type of a GCC
24996 builtin and then its argument prototype would still apply. */
24997#ifdef __cplusplus
24998extern "C"
24999#endif
25000char remove ();
25001int
25002main ()
25003{
25004return remove ();
25005 ;
25006 return 0;
25007}
25008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025010 ac_cv_lib_posix_remove=yes
25011else
cristy8b350f62009-11-15 23:12:43 +000025012 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025013fi
cristy8b350f62009-11-15 23:12:43 +000025014rm -f core conftest.err conftest.$ac_objext \
25015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025016LIBS=$ac_check_lib_save_LIBS
25017fi
cristy8b350f62009-11-15 23:12:43 +000025018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025019$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025020if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025021 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25022fi
25023
25024 fi
25025
25026 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025027 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25028if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025029
cristy3ed852e2009-09-05 21:47:34 +000025030fi
25031
cristy3ed852e2009-09-05 21:47:34 +000025032 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025034$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025035if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025036 $as_echo_n "(cached) " >&6
25037else
25038 ac_check_lib_save_LIBS=$LIBS
25039LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025041/* end confdefs.h. */
25042
25043/* Override any GCC internal prototype to avoid an error.
25044 Use char because int might match the return type of a GCC
25045 builtin and then its argument prototype would still apply. */
25046#ifdef __cplusplus
25047extern "C"
25048#endif
25049char shmat ();
25050int
25051main ()
25052{
25053return shmat ();
25054 ;
25055 return 0;
25056}
25057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025058if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025059 ac_cv_lib_ipc_shmat=yes
25060else
cristy8b350f62009-11-15 23:12:43 +000025061 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025062fi
cristy8b350f62009-11-15 23:12:43 +000025063rm -f core conftest.err conftest.$ac_objext \
25064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025065LIBS=$ac_check_lib_save_LIBS
25066fi
cristy8b350f62009-11-15 23:12:43 +000025067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025068$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025069if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025070 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25071fi
25072
25073 fi
25074 fi
25075
25076 # Check for libraries that X11R6 Xt/Xaw programs need.
25077 ac_save_LDFLAGS=$LDFLAGS
25078 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25079 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25080 # check for ICE first), but we must link in the order -lSM -lICE or
25081 # we get undefined symbols. So assume we have SM if we have ICE.
25082 # These have to be linked with before -lX11, unlike the other
25083 # libraries we check for below, so use a different variable.
25084 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025086$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025087if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025088 $as_echo_n "(cached) " >&6
25089else
25090 ac_check_lib_save_LIBS=$LIBS
25091LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025093/* end confdefs.h. */
25094
25095/* Override any GCC internal prototype to avoid an error.
25096 Use char because int might match the return type of a GCC
25097 builtin and then its argument prototype would still apply. */
25098#ifdef __cplusplus
25099extern "C"
25100#endif
25101char IceConnectionNumber ();
25102int
25103main ()
25104{
25105return IceConnectionNumber ();
25106 ;
25107 return 0;
25108}
25109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025110if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025111 ac_cv_lib_ICE_IceConnectionNumber=yes
25112else
cristy8b350f62009-11-15 23:12:43 +000025113 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025114fi
cristy8b350f62009-11-15 23:12:43 +000025115rm -f core conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025117LIBS=$ac_check_lib_save_LIBS
25118fi
cristy8b350f62009-11-15 23:12:43 +000025119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025121if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025122 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25123fi
25124
25125 LDFLAGS=$ac_save_LDFLAGS
25126
25127fi
25128
25129if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025131$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025133$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025135$as_echo "" >&6; }
25136 LDFLAGS="$LDFLAGS $X_LIBS"
25137 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25138 LIBS="$X11_LIBS $LIBS"
25139 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25140
25141
cristy8b350f62009-11-15 23:12:43 +000025142$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025143
25144 #
25145 # Check for X11 shared memory extension
25146 #
25147 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025148 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25149if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025150 have_shmctl='yes'
25151fi
25152
25153 if test "$have_shmctl" != 'yes'; then
25154 PERSIST_LIBS=$LIBS
25155 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025157/* end confdefs.h. */
25158
25159/* Override any GCC internal prototype to avoid an error.
25160 Use char because int might match the return type of a GCC
25161 builtin and then its argument prototype would still apply. */
25162#ifdef __cplusplus
25163extern "C"
25164#endif
25165char shmctl ();
25166int
25167main ()
25168{
25169return shmctl ();
25170 ;
25171 return 0;
25172}
25173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025175 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025176fi
cristy8b350f62009-11-15 23:12:43 +000025177rm -f core conftest.err conftest.$ac_objext \
25178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025179 LIBS=$PERSIST_LIBS
25180 fi
25181
25182 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025184$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025185if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025186 $as_echo_n "(cached) " >&6
25187else
25188 ac_check_lib_save_LIBS=$LIBS
25189LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025191/* end confdefs.h. */
25192
25193/* Override any GCC internal prototype to avoid an error.
25194 Use char because int might match the return type of a GCC
25195 builtin and then its argument prototype would still apply. */
25196#ifdef __cplusplus
25197extern "C"
25198#endif
25199char XShmAttach ();
25200int
25201main ()
25202{
25203return XShmAttach ();
25204 ;
25205 return 0;
25206}
25207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025208if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025209 ac_cv_lib_Xext_XShmAttach=yes
25210else
cristy8b350f62009-11-15 23:12:43 +000025211 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025212fi
cristy8b350f62009-11-15 23:12:43 +000025213rm -f core conftest.err conftest.$ac_objext \
25214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025215LIBS=$ac_check_lib_save_LIBS
25216fi
cristy8b350f62009-11-15 23:12:43 +000025217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025218$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025219if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025220 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025221$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025222
25223fi
25224
25225 fi
25226
25227 #
25228 # Check for X11 shape extension
25229 #
cristy8b350f62009-11-15 23:12:43 +000025230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025231$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025232if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025233 $as_echo_n "(cached) " >&6
25234else
25235 ac_check_lib_save_LIBS=$LIBS
25236LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025238/* end confdefs.h. */
25239
25240/* Override any GCC internal prototype to avoid an error.
25241 Use char because int might match the return type of a GCC
25242 builtin and then its argument prototype would still apply. */
25243#ifdef __cplusplus
25244extern "C"
25245#endif
25246char XShapeCombineMask ();
25247int
25248main ()
25249{
25250return XShapeCombineMask ();
25251 ;
25252 return 0;
25253}
25254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025256 ac_cv_lib_Xext_XShapeCombineMask=yes
25257else
cristy8b350f62009-11-15 23:12:43 +000025258 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025259fi
cristy8b350f62009-11-15 23:12:43 +000025260rm -f core conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025262LIBS=$ac_check_lib_save_LIBS
25263fi
cristy8b350f62009-11-15 23:12:43 +000025264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025265$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025266if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025267 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025268$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025269
25270fi
25271
cristy8b350f62009-11-15 23:12:43 +000025272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025273$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025274if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025275 $as_echo_n "(cached) " >&6
25276else
25277 ac_check_lib_save_LIBS=$LIBS
25278LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025280/* end confdefs.h. */
25281
25282/* Override any GCC internal prototype to avoid an error.
25283 Use char because int might match the return type of a GCC
25284 builtin and then its argument prototype would still apply. */
25285#ifdef __cplusplus
25286extern "C"
25287#endif
25288char XtSetEventDispatcher ();
25289int
25290main ()
25291{
25292return XtSetEventDispatcher ();
25293 ;
25294 return 0;
25295}
25296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025298 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25299else
cristy8b350f62009-11-15 23:12:43 +000025300 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025301fi
cristy8b350f62009-11-15 23:12:43 +000025302rm -f core conftest.err conftest.$ac_objext \
25303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025304LIBS=$ac_check_lib_save_LIBS
25305fi
cristy8b350f62009-11-15 23:12:43 +000025306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025307$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025308if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025309 XT_LIBS='-lXt'
25310fi
25311
25312 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25313fi
25314if test "$no_x" != 'yes'; then
25315 have_x='yes'
25316else
25317 have_x='no'
25318fi
25319 if test "$have_x" = 'yes'; then
25320 X11_DELEGATE_TRUE=
25321 X11_DELEGATE_FALSE='#'
25322else
25323 X11_DELEGATE_TRUE='#'
25324 X11_DELEGATE_FALSE=
25325fi
25326
25327
25328
25329
25330
25331#
25332# Check for ZLIB
25333#
25334
25335# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025336if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025337 withval=$with_zlib; with_zlib=$withval
25338else
25339 with_zlib='yes'
25340fi
25341
25342
25343if test "$with_zlib" != 'yes'; then
25344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25345fi
25346
25347have_zlib='no'
25348ZLIB_LIBS=''
25349if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025351$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025353$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025355$as_echo "" >&6; }
25356 ZLIB_LIBS=''
25357 failed=0
25358 passed=0
cristy8b350f62009-11-15 23:12:43 +000025359 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25360if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 passed=`expr $passed + 1`
25362else
25363 failed=`expr $failed + 1`
25364fi
25365
25366
cristy8b350f62009-11-15 23:12:43 +000025367 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25368if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025369 passed=`expr $passed + 1`
25370else
25371 failed=`expr $failed + 1`
25372fi
25373
25374
cristy8b350f62009-11-15 23:12:43 +000025375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025376$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025377if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025378 $as_echo_n "(cached) " >&6
25379else
25380 ac_check_lib_save_LIBS=$LIBS
25381LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025383/* end confdefs.h. */
25384
25385/* Override any GCC internal prototype to avoid an error.
25386 Use char because int might match the return type of a GCC
25387 builtin and then its argument prototype would still apply. */
25388#ifdef __cplusplus
25389extern "C"
25390#endif
25391char compress ();
25392int
25393main ()
25394{
25395return compress ();
25396 ;
25397 return 0;
25398}
25399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025401 ac_cv_lib_z_compress=yes
25402else
cristy8b350f62009-11-15 23:12:43 +000025403 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025404fi
cristy8b350f62009-11-15 23:12:43 +000025405rm -f core conftest.err conftest.$ac_objext \
25406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025407LIBS=$ac_check_lib_save_LIBS
25408fi
cristy8b350f62009-11-15 23:12:43 +000025409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025410$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025411if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025412 passed=`expr $passed + 1`
25413else
25414 failed=`expr $failed + 1`
25415fi
25416
cristy8b350f62009-11-15 23:12:43 +000025417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025418$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025419if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025420 $as_echo_n "(cached) " >&6
25421else
25422 ac_check_lib_save_LIBS=$LIBS
25423LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025425/* end confdefs.h. */
25426
25427/* Override any GCC internal prototype to avoid an error.
25428 Use char because int might match the return type of a GCC
25429 builtin and then its argument prototype would still apply. */
25430#ifdef __cplusplus
25431extern "C"
25432#endif
25433char uncompress ();
25434int
25435main ()
25436{
25437return uncompress ();
25438 ;
25439 return 0;
25440}
25441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025442if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025443 ac_cv_lib_z_uncompress=yes
25444else
cristy8b350f62009-11-15 23:12:43 +000025445 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025446fi
cristy8b350f62009-11-15 23:12:43 +000025447rm -f core conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025449LIBS=$ac_check_lib_save_LIBS
25450fi
cristy8b350f62009-11-15 23:12:43 +000025451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025452$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025453if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025454 passed=`expr $passed + 1`
25455else
25456 failed=`expr $failed + 1`
25457fi
25458
cristy8b350f62009-11-15 23:12:43 +000025459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025461if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025462 $as_echo_n "(cached) " >&6
25463else
25464 ac_check_lib_save_LIBS=$LIBS
25465LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025467/* end confdefs.h. */
25468
25469/* Override any GCC internal prototype to avoid an error.
25470 Use char because int might match the return type of a GCC
25471 builtin and then its argument prototype would still apply. */
25472#ifdef __cplusplus
25473extern "C"
25474#endif
25475char deflate ();
25476int
25477main ()
25478{
25479return deflate ();
25480 ;
25481 return 0;
25482}
25483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025485 ac_cv_lib_z_deflate=yes
25486else
cristy8b350f62009-11-15 23:12:43 +000025487 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025488fi
cristy8b350f62009-11-15 23:12:43 +000025489rm -f core conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025491LIBS=$ac_check_lib_save_LIBS
25492fi
cristy8b350f62009-11-15 23:12:43 +000025493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025494$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025495if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025496 passed=`expr $passed + 1`
25497else
25498 failed=`expr $failed + 1`
25499fi
25500
cristy8b350f62009-11-15 23:12:43 +000025501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025502$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025503if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025504 $as_echo_n "(cached) " >&6
25505else
25506 ac_check_lib_save_LIBS=$LIBS
25507LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025509/* end confdefs.h. */
25510
25511/* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply. */
25514#ifdef __cplusplus
25515extern "C"
25516#endif
25517char inflate ();
25518int
25519main ()
25520{
25521return inflate ();
25522 ;
25523 return 0;
25524}
25525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025527 ac_cv_lib_z_inflate=yes
25528else
cristy8b350f62009-11-15 23:12:43 +000025529 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025530fi
cristy8b350f62009-11-15 23:12:43 +000025531rm -f core conftest.err conftest.$ac_objext \
25532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025533LIBS=$ac_check_lib_save_LIBS
25534fi
cristy8b350f62009-11-15 23:12:43 +000025535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025536$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025537if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025538 passed=`expr $passed + 1`
25539else
25540 failed=`expr $failed + 1`
25541fi
25542
cristy8b350f62009-11-15 23:12:43 +000025543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025544$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025545if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025546 $as_echo_n "(cached) " >&6
25547else
25548 ac_check_lib_save_LIBS=$LIBS
25549LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025551/* end confdefs.h. */
25552
25553/* Override any GCC internal prototype to avoid an error.
25554 Use char because int might match the return type of a GCC
25555 builtin and then its argument prototype would still apply. */
25556#ifdef __cplusplus
25557extern "C"
25558#endif
25559char gzseek ();
25560int
25561main ()
25562{
25563return gzseek ();
25564 ;
25565 return 0;
25566}
25567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025568if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025569 ac_cv_lib_z_gzseek=yes
25570else
cristy8b350f62009-11-15 23:12:43 +000025571 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025572fi
cristy8b350f62009-11-15 23:12:43 +000025573rm -f core conftest.err conftest.$ac_objext \
25574 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025575LIBS=$ac_check_lib_save_LIBS
25576fi
cristy8b350f62009-11-15 23:12:43 +000025577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025578$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025579if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025580 passed=`expr $passed + 1`
25581else
25582 failed=`expr $failed + 1`
25583fi
25584
cristy8b350f62009-11-15 23:12:43 +000025585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025586$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025587if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025588 $as_echo_n "(cached) " >&6
25589else
25590 ac_check_lib_save_LIBS=$LIBS
25591LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025593/* end confdefs.h. */
25594
25595/* Override any GCC internal prototype to avoid an error.
25596 Use char because int might match the return type of a GCC
25597 builtin and then its argument prototype would still apply. */
25598#ifdef __cplusplus
25599extern "C"
25600#endif
25601char gztell ();
25602int
25603main ()
25604{
25605return gztell ();
25606 ;
25607 return 0;
25608}
25609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025611 ac_cv_lib_z_gztell=yes
25612else
cristy8b350f62009-11-15 23:12:43 +000025613 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000025614fi
cristy8b350f62009-11-15 23:12:43 +000025615rm -f core conftest.err conftest.$ac_objext \
25616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025617LIBS=$ac_check_lib_save_LIBS
25618fi
cristy8b350f62009-11-15 23:12:43 +000025619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000025620$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025621if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025622 passed=`expr $passed + 1`
25623else
25624 failed=`expr $failed + 1`
25625fi
25626
cristy8b350f62009-11-15 23:12:43 +000025627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025628$as_echo_n "checking if ZLIB package is complete... " >&6; }
25629 if test $passed -gt 0; then
25630 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025632$as_echo "no -- some components failed test" >&6; }
25633 have_zlib='no (failed tests)'
25634 else
25635 ZLIB_LIBS='-lz'
25636 LIBS="$ZLIB_LIBS $LIBS"
25637
cristy8b350f62009-11-15 23:12:43 +000025638$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025639
cristy8b350f62009-11-15 23:12:43 +000025640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025641$as_echo "yes" >&6; }
25642 have_zlib='yes'
25643 fi
25644 else
cristy8b350f62009-11-15 23:12:43 +000025645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025646$as_echo "no" >&6; }
25647 fi
25648fi
25649 if test "$have_zlib" = 'yes'; then
25650 ZLIB_DELEGATE_TRUE=
25651 ZLIB_DELEGATE_FALSE='#'
25652else
25653 ZLIB_DELEGATE_TRUE='#'
25654 ZLIB_DELEGATE_FALSE=
25655fi
25656
25657
25658
25659#
25660# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25661#
25662LIB_DL=''
25663if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025665$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025666if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025667 $as_echo_n "(cached) " >&6
25668else
25669 ac_check_lib_save_LIBS=$LIBS
25670LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025672/* end confdefs.h. */
25673
25674/* Override any GCC internal prototype to avoid an error.
25675 Use char because int might match the return type of a GCC
25676 builtin and then its argument prototype would still apply. */
25677#ifdef __cplusplus
25678extern "C"
25679#endif
25680char dlopen ();
25681int
25682main ()
25683{
25684return dlopen ();
25685 ;
25686 return 0;
25687}
25688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025689if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025690 ac_cv_lib_dl_dlopen=yes
25691else
cristy8b350f62009-11-15 23:12:43 +000025692 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000025693fi
cristy8b350f62009-11-15 23:12:43 +000025694rm -f core conftest.err conftest.$ac_objext \
25695 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025696LIBS=$ac_check_lib_save_LIBS
25697fi
cristy8b350f62009-11-15 23:12:43 +000025698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000025699$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025700if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025701 LIB_DL='-ldl'
25702fi
25703
25704 LIBS="$LIB_DL $LIBS"
25705fi
25706
25707
25708
25709#
25710# Check for Autotrace delegate library.
25711#
25712
25713# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000025714if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025715 withval=$with_autotrace; with_autotrace=$withval
25716else
25717 with_autotrace='no'
25718fi
25719
25720
25721if test "$with_autotrace" != 'yes'; then
25722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25723fi
25724
25725have_autotrace='no'
25726AUTOTRACE_CFLAGS=""
25727AUTOTRACE_LIBS=""
25728AUTOTRACE_PKG=""
25729if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025731$as_echo "-------------------------------------------------------------" >&6; }
25732
25733pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025735$as_echo_n "checking for AUTOTRACE... " >&6; }
25736
25737if test -n "$AUTOTRACE_CFLAGS"; then
25738 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25739 elif test -n "$PKG_CONFIG"; then
25740 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025742 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25743 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25745 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025746 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25747else
25748 pkg_failed=yes
25749fi
25750 else
25751 pkg_failed=untried
25752fi
25753if test -n "$AUTOTRACE_LIBS"; then
25754 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25755 elif test -n "$PKG_CONFIG"; then
25756 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025758 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25759 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025762 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25763else
25764 pkg_failed=yes
25765fi
25766 else
25767 pkg_failed=untried
25768fi
25769
25770
25771
25772if test $pkg_failed = yes; then
25773
25774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25775 _pkg_short_errors_supported=yes
25776else
25777 _pkg_short_errors_supported=no
25778fi
25779 if test $_pkg_short_errors_supported = yes; then
25780 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25781 else
25782 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25783 fi
25784 # Put the nasty error message in config.log where it belongs
25785 echo "$AUTOTRACE_PKG_ERRORS" >&5
25786
cristy8b350f62009-11-15 23:12:43 +000025787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025788$as_echo "no" >&6; }
25789 have_autotrace=no
25790elif test $pkg_failed = untried; then
25791 have_autotrace=no
25792else
25793 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25794 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000025795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025796$as_echo "yes" >&6; }
25797 have_autotrace=yes
25798fi
cristy8b350f62009-11-15 23:12:43 +000025799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025800$as_echo "" >&6; }
25801fi
25802
25803if test "$have_autotrace" = 'yes'; then
25804 failed=0
25805
cristy8b350f62009-11-15 23:12:43 +000025806$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025807
25808 if test "$with_modules" = 'no'; then
25809 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25810 fi
25811fi
25812
25813 if test "$have_autotrace" = 'yes'; then
25814 AUTOTRACE_DELEGATE_TRUE=
25815 AUTOTRACE_DELEGATE_FALSE='#'
25816else
25817 AUTOTRACE_DELEGATE_TRUE='#'
25818 AUTOTRACE_DELEGATE_FALSE=
25819fi
25820
25821
25822
25823
25824
25825#
25826# Check for Display Postscript delegate library.
25827#
25828
25829# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000025830if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 withval=$with_dps; with_dps=$withval
25832else
25833 with_dps='yes'
25834fi
25835
25836
25837if test "$with_dps" != 'yes'; then
25838 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25839fi
25840
25841have_dps='no'
25842DPS_LIBS=''
25843if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025845$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025847$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025849$as_echo "" >&6; }
25850 failed=0
25851 passed=0
25852 PERSIST_CPPFLAGS="$CPPFLAGS"
25853 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025854 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25855if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025856 passed=`expr $passed + 1`
25857else
25858 failed=`expr $failed + 1`
25859fi
25860
25861
25862 # DPS issues:
25863 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25864 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25865 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25866 # ImageMagick itself doesn't use -lXt.
25867 have_libdps='no'
25868 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025870$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025871if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025872 $as_echo_n "(cached) " >&6
25873else
25874 ac_check_lib_save_LIBS=$LIBS
25875LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025877/* end confdefs.h. */
25878
25879/* Override any GCC internal prototype to avoid an error.
25880 Use char because int might match the return type of a GCC
25881 builtin and then its argument prototype would still apply. */
25882#ifdef __cplusplus
25883extern "C"
25884#endif
25885char DPSInitialize ();
25886int
25887main ()
25888{
25889return DPSInitialize ();
25890 ;
25891 return 0;
25892}
25893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025895 ac_cv_lib_dps_DPSInitialize=yes
25896else
cristy8b350f62009-11-15 23:12:43 +000025897 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025898fi
cristy8b350f62009-11-15 23:12:43 +000025899rm -f core conftest.err conftest.$ac_objext \
25900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025901LIBS=$ac_check_lib_save_LIBS
25902fi
cristy8b350f62009-11-15 23:12:43 +000025903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025904$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025905if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025906 have_libdps='yes'
25907else
25908 have_libdps='no'
25909fi
25910
25911 if test "$have_libdps" != 'yes'; then
25912 # Unset cache variable so we can try again.
25913 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025915$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025916if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025917 $as_echo_n "(cached) " >&6
25918else
25919 ac_check_lib_save_LIBS=$LIBS
25920LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025922/* end confdefs.h. */
25923
25924/* Override any GCC internal prototype to avoid an error.
25925 Use char because int might match the return type of a GCC
25926 builtin and then its argument prototype would still apply. */
25927#ifdef __cplusplus
25928extern "C"
25929#endif
25930char DPSInitialize ();
25931int
25932main ()
25933{
25934return DPSInitialize ();
25935 ;
25936 return 0;
25937}
25938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025940 ac_cv_lib_dps_DPSInitialize=yes
25941else
cristy8b350f62009-11-15 23:12:43 +000025942 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025943fi
cristy8b350f62009-11-15 23:12:43 +000025944rm -f core conftest.err conftest.$ac_objext \
25945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025946LIBS=$ac_check_lib_save_LIBS
25947fi
cristy8b350f62009-11-15 23:12:43 +000025948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025949$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025950if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025951 have_libdps='yes'
25952else
25953 have_libdps='no'
25954fi
25955
25956 if test "$have_libdps" = 'yes'; then
25957 LIBDPS_XT='-lXt'
25958 fi
25959 fi
25960 if test "$have_libdps" = 'yes'; then
25961 passed=`expr $passed + 1`
25962 else
25963 failed=`expr $failed + 1`
25964 fi
cristy8b350f62009-11-15 23:12:43 +000025965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025966$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025967if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025968 $as_echo_n "(cached) " >&6
25969else
25970 ac_check_lib_save_LIBS=$LIBS
25971LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025973/* end confdefs.h. */
25974
25975/* Override any GCC internal prototype to avoid an error.
25976 Use char because int might match the return type of a GCC
25977 builtin and then its argument prototype would still apply. */
25978#ifdef __cplusplus
25979extern "C"
25980#endif
25981char XDPSPixelsPerPoint ();
25982int
25983main ()
25984{
25985return XDPSPixelsPerPoint ();
25986 ;
25987 return 0;
25988}
25989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025990if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025991 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25992else
cristy8b350f62009-11-15 23:12:43 +000025993 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025994fi
cristy8b350f62009-11-15 23:12:43 +000025995rm -f core conftest.err conftest.$ac_objext \
25996 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025997LIBS=$ac_check_lib_save_LIBS
25998fi
cristy8b350f62009-11-15 23:12:43 +000025999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026000$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026001if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026002 passed=`expr $passed + 1`
26003else
26004 failed=`expr $failed + 1`
26005fi
26006
cristy8b350f62009-11-15 23:12:43 +000026007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo_n "checking if DPS package is complete... " >&6; }
26009 if test $passed -gt 0; then
26010 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo "no -- some components failed test" >&6; }
26013 have_dps='no (failed tests)'
26014 CPPFLAGS="$PERSIST_CPPFLAGS"
26015 else
26016 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26017 LIBS="$DPS_LIBS $LIBS"
26018
cristy8b350f62009-11-15 23:12:43 +000026019$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026020
cristy8b350f62009-11-15 23:12:43 +000026021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026022$as_echo "yes" >&6; }
26023 have_dps='yes'
26024 fi
26025 else
cristy8b350f62009-11-15 23:12:43 +000026026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026027$as_echo "no" >&6; }
26028 CPPFLAGS=$PERSIST_CPPFLAGS
26029 fi
26030fi
26031 if test "$have_dps" = 'yes'; then
26032 DPS_DELEGATE_TRUE=
26033 DPS_DELEGATE_FALSE='#'
26034else
26035 DPS_DELEGATE_TRUE='#'
26036 DPS_DELEGATE_FALSE=
26037fi
26038
26039
26040
26041
26042#
26043# Check for DJVU delegate library.
26044#
26045
26046# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026047if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026048 withval=$with_djvu; with_djvu=$withval
26049else
26050 with_djvu='yes'
26051fi
26052
26053
26054if test "$with_djvu" != 'yes'; then
26055 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26056fi
26057
26058have_djvu='no'
26059DJVU_LIBS=''
26060if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026062$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026064$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026066$as_echo "" >&6; }
26067 failed=0
26068 passed=0
cristy8b350f62009-11-15 23:12:43 +000026069 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26070if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026071 passed=`expr $passed + 1`
26072else
26073 failed=`expr $failed + 1`
26074fi
26075
26076
cristy8b350f62009-11-15 23:12:43 +000026077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026078$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026079if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026080 $as_echo_n "(cached) " >&6
26081else
26082 ac_check_lib_save_LIBS=$LIBS
26083LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026085/* end confdefs.h. */
26086
26087/* Override any GCC internal prototype to avoid an error.
26088 Use char because int might match the return type of a GCC
26089 builtin and then its argument prototype would still apply. */
26090#ifdef __cplusplus
26091extern "C"
26092#endif
26093char ddjvu_context_create ();
26094int
26095main ()
26096{
26097return ddjvu_context_create ();
26098 ;
26099 return 0;
26100}
26101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026103 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26104else
cristy8b350f62009-11-15 23:12:43 +000026105 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026106fi
cristy8b350f62009-11-15 23:12:43 +000026107rm -f core conftest.err conftest.$ac_objext \
26108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026109LIBS=$ac_check_lib_save_LIBS
26110fi
cristy8b350f62009-11-15 23:12:43 +000026111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026112$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026113if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026114 passed=`expr $passed + 1`
26115else
26116 failed=`expr $failed + 1`
26117fi
26118
cristy8b350f62009-11-15 23:12:43 +000026119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026120$as_echo_n "checking if DJVU package is complete... " >&6; }
26121 if test $passed -gt 0; then
26122 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026124$as_echo "no -- some components failed test" >&6; }
26125 have_djvu='no (failed tests)'
26126 else
26127 DJVU_LIBS='-ldjvulibre'
26128 LIBS="$DJVU_LIBS $LIBS"
26129
cristy8b350f62009-11-15 23:12:43 +000026130$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026131
cristy8b350f62009-11-15 23:12:43 +000026132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026133$as_echo "yes" >&6; }
26134 have_djvu='yes'
26135 fi
26136 else
cristy8b350f62009-11-15 23:12:43 +000026137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026138$as_echo "no" >&6; }
26139 fi
26140fi
26141 if test "$have_djvu" = 'yes'; then
26142 DJVU_DELEGATE_TRUE=
26143 DJVU_DELEGATE_FALSE='#'
26144else
26145 DJVU_DELEGATE_TRUE='#'
26146 DJVU_DELEGATE_FALSE=
26147fi
26148
26149
26150
26151
26152#
cristy430a7312010-01-21 20:44:04 +000026153# Set DejaVu font directory.
26154#
26155
26156# Check whether --with-dejavu-font-dir was given.
26157if test "${with_dejavu_font_dir+set}" = set; then :
26158 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26159else
26160 with_dejavu_font_dir='default'
26161fi
26162
26163
26164if test "$with_dejavu_font_dir" != 'default'; then
26165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26166fi
26167
26168
26169#
cristy3ed852e2009-09-05 21:47:34 +000026170# Check for FFTW delegate library.
26171#
26172
26173# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026174if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026175 withval=$with_fftw; with_fftw=$withval
26176else
26177 with_fftw='yes'
26178fi
26179
26180
26181if test "$with_fftw" != 'yes'; then
26182 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26183fi
26184
26185have_fftw='no'
26186FFTW_LIBS=''
26187if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026189$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026191$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026193$as_echo "" >&6; }
26194 failed=0
26195 passed=0
cristy8b350f62009-11-15 23:12:43 +000026196 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26197if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026198 passed=`expr $passed + 1`
26199else
26200 failed=`expr $failed + 1`
26201fi
26202
26203
cristy8b350f62009-11-15 23:12:43 +000026204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026205$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026206if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026207 $as_echo_n "(cached) " >&6
26208else
26209 ac_check_lib_save_LIBS=$LIBS
26210LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026212/* end confdefs.h. */
26213
26214/* Override any GCC internal prototype to avoid an error.
26215 Use char because int might match the return type of a GCC
26216 builtin and then its argument prototype would still apply. */
26217#ifdef __cplusplus
26218extern "C"
26219#endif
26220char fftw_execute ();
26221int
26222main ()
26223{
26224return fftw_execute ();
26225 ;
26226 return 0;
26227}
26228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026229if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026230 ac_cv_lib_fftw3_fftw_execute=yes
26231else
cristy8b350f62009-11-15 23:12:43 +000026232 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026233fi
cristy8b350f62009-11-15 23:12:43 +000026234rm -f core conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026236LIBS=$ac_check_lib_save_LIBS
26237fi
cristy8b350f62009-11-15 23:12:43 +000026238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026239$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026240if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026241 passed=`expr $passed + 1`
26242else
26243 failed=`expr $failed + 1`
26244fi
26245
cristy8b350f62009-11-15 23:12:43 +000026246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo_n "checking if FFTW package is complete... " >&6; }
26248 if test $passed -gt 0; then
26249 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo "no -- some components failed test" >&6; }
26252 have_fftw='no (failed tests)'
26253 else
26254 FFTW_LIBS='-lfftw3'
26255 LIBS="$FFTW_LIBS $LIBS"
26256
cristy8b350f62009-11-15 23:12:43 +000026257$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026258
cristy8b350f62009-11-15 23:12:43 +000026259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026260$as_echo "yes" >&6; }
26261 have_fftw='yes'
26262 fi
26263 else
cristy8b350f62009-11-15 23:12:43 +000026264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026265$as_echo "no" >&6; }
26266 fi
26267fi
26268 if test "$have_fftw" = 'yes'; then
26269 FFTW_DELEGATE_TRUE=
26270 FFTW_DELEGATE_FALSE='#'
26271else
26272 FFTW_DELEGATE_TRUE='#'
26273 FFTW_DELEGATE_FALSE=
26274fi
26275
26276
26277
26278
26279#
26280# Check for FlashPIX delegate library.
26281#
26282
26283# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026284if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026285 withval=$with_fpx; with_fpx=$withval
26286else
26287 with_fpx='yes'
26288fi
26289
26290
26291if test "$with_fpx" != 'yes'; then
26292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26293fi
26294
26295have_fpx='no'
26296FPX_LIBS=''
26297if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026299$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026301$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026303$as_echo "" >&6; }
26304 failed=0
26305 passed=0
26306 ac_ext=cpp
26307ac_cpp='$CXXCPP $CPPFLAGS'
26308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26311
26312
cristy8b350f62009-11-15 23:12:43 +000026313ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26314if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 passed=`expr $passed + 1`
26316else
26317 failed=`expr $failed + 1`
26318fi
26319
26320
cristy8b350f62009-11-15 23:12:43 +000026321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026322$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026323if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026324 $as_echo_n "(cached) " >&6
26325else
26326 ac_check_lib_save_LIBS=$LIBS
26327LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026329/* end confdefs.h. */
26330
26331/* Override any GCC internal prototype to avoid an error.
26332 Use char because int might match the return type of a GCC
26333 builtin and then its argument prototype would still apply. */
26334#ifdef __cplusplus
26335extern "C"
26336#endif
26337char FPX_OpenImageByFilename ();
26338int
26339main ()
26340{
26341return FPX_OpenImageByFilename ();
26342 ;
26343 return 0;
26344}
26345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026346if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026347 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26348else
cristy8b350f62009-11-15 23:12:43 +000026349 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026350fi
cristy8b350f62009-11-15 23:12:43 +000026351rm -f core conftest.err conftest.$ac_objext \
26352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026353LIBS=$ac_check_lib_save_LIBS
26354fi
cristy8b350f62009-11-15 23:12:43 +000026355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026357if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 passed=`expr $passed + 1`
26359else
26360 failed=`expr $failed + 1`
26361fi
26362
26363 ac_ext=c
26364ac_cpp='$CPP $CPPFLAGS'
26365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26367ac_compiler_gnu=$ac_cv_c_compiler_gnu
26368
cristy8b350f62009-11-15 23:12:43 +000026369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26371 if test $passed -gt 0; then
26372 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026374$as_echo "no -- some components failed test" >&6; }
26375 have_fpx='no (failed tests)'
26376 else
26377 FPX_LIBS='-lfpx'
26378
cristy8b350f62009-11-15 23:12:43 +000026379$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026380
cristy8b350f62009-11-15 23:12:43 +000026381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026382$as_echo "yes" >&6; }
26383 have_fpx='yes'
26384 PERLMAINCC="$CXX"
26385 fi
26386 else
cristy8b350f62009-11-15 23:12:43 +000026387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026388$as_echo "no" >&6; }
26389 fi
26390fi
26391 if test "$have_fpx" = 'yes'; then
26392 FPX_DELEGATE_TRUE=
26393 FPX_DELEGATE_FALSE='#'
26394else
26395 FPX_DELEGATE_TRUE='#'
26396 FPX_DELEGATE_FALSE=
26397fi
26398
26399
26400
26401
26402#
26403# Check for fontconfig delegate library.
26404#
26405
26406# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026407if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026408 withval=$with_fontconfig; with_fontconfig=$withval
26409else
26410 with_fontconfig=$have_x
26411fi
26412
26413
26414if test "$with_fontconfig" != 'yes'; then
26415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26416fi
26417
26418have_fontconfig='no'
26419FONTCONFIG_CFLAGS=""
26420FONTCONFIG_LIBS=""
26421FONTCONFIG_PKG=""
26422if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026424$as_echo "-------------------------------------------------------------" >&6; }
26425
26426pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo_n "checking for FONTCONFIG... " >&6; }
26429
26430if test -n "$FONTCONFIG_CFLAGS"; then
26431 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26432 elif test -n "$PKG_CONFIG"; then
26433 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026435 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26436 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26438 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026439 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26440else
26441 pkg_failed=yes
26442fi
26443 else
26444 pkg_failed=untried
26445fi
26446if test -n "$FONTCONFIG_LIBS"; then
26447 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26448 elif test -n "$PKG_CONFIG"; then
26449 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026451 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26452 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26454 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026455 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26456else
26457 pkg_failed=yes
26458fi
26459 else
26460 pkg_failed=untried
26461fi
26462
26463
26464
26465if test $pkg_failed = yes; then
26466
26467if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26468 _pkg_short_errors_supported=yes
26469else
26470 _pkg_short_errors_supported=no
26471fi
26472 if test $_pkg_short_errors_supported = yes; then
26473 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26474 else
26475 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26476 fi
26477 # Put the nasty error message in config.log where it belongs
26478 echo "$FONTCONFIG_PKG_ERRORS" >&5
26479
cristy8b350f62009-11-15 23:12:43 +000026480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026481$as_echo "no" >&6; }
26482 have_fontconfig=no
26483elif test $pkg_failed = untried; then
26484 have_fontconfig=no
26485else
26486 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26487 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026489$as_echo "yes" >&6; }
26490 have_fontconfig=yes
26491fi
cristy8b350f62009-11-15 23:12:43 +000026492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026493$as_echo "" >&6; }
26494fi
26495
26496if test "$have_fontconfig" = 'yes'; then
26497
cristy8b350f62009-11-15 23:12:43 +000026498$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026499
cristyd09bcf92010-03-25 03:04:45 +000026500 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026501 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026502 fi
cristy3ed852e2009-09-05 21:47:34 +000026503fi
26504
26505 if test "$have_fontconfig" = 'yes'; then
26506 FONTCONFIG_DELEGATE_TRUE=
26507 FONTCONFIG_DELEGATE_FALSE='#'
26508else
26509 FONTCONFIG_DELEGATE_TRUE='#'
26510 FONTCONFIG_DELEGATE_FALSE=
26511fi
26512
26513
26514
26515
26516
26517#
26518# Check for freetype delegate library.
26519#
26520
26521# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026522if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026523 withval=$with_freetype; with_freetype=$withval
26524else
26525 with_freetype='yes'
26526fi
26527
26528
26529
26530if test "$with_freetype" != 'yes'; then
26531 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26532fi
26533
26534have_freetype='no'
26535FREETYPE_LIBS=''
26536if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026538$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026540$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026542$as_echo "" >&6; }
26543 failed=0
26544 passed=0
cristy66291112009-10-03 22:44:36 +000026545 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026546 PERSIST_CPPFLAGS="$CPPFLAGS"
26547 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26548 :
26549 else
26550 freetype_config=''
26551 for ac_prog in freetype-config
26552do
26553 # Extract the first word of "$ac_prog", so it can be a program name with args.
26554set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026556$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026557if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026558 $as_echo_n "(cached) " >&6
26559else
26560 if test -n "$freetype_config"; then
26561 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26562else
26563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26564for as_dir in $PATH
26565do
26566 IFS=$as_save_IFS
26567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26570 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026572 break 2
26573 fi
26574done
cristy8b350f62009-11-15 23:12:43 +000026575 done
cristy3ed852e2009-09-05 21:47:34 +000026576IFS=$as_save_IFS
26577
26578fi
26579fi
26580freetype_config=$ac_cv_prog_freetype_config
26581if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026583$as_echo "$freetype_config" >&6; }
26584else
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo "no" >&6; }
26587fi
26588
26589
26590 test -n "$freetype_config" && break
26591done
26592 if test -n "$freetype_config"; then
26593 freetype_cflags=`$freetype_config --cflags`
26594 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000026595 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000026596 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26597 fi
26598 fi
26599
26600 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000026601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000026602$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026603if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026604 $as_echo_n "(cached) " >&6
26605else
26606 ac_check_lib_save_LIBS=$LIBS
26607LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026609/* end confdefs.h. */
26610
26611/* Override any GCC internal prototype to avoid an error.
26612 Use char because int might match the return type of a GCC
26613 builtin and then its argument prototype would still apply. */
26614#ifdef __cplusplus
26615extern "C"
26616#endif
26617char FT_Init_FreeType ();
26618int
26619main ()
26620{
26621return FT_Init_FreeType ();
26622 ;
26623 return 0;
26624}
26625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026627 ac_cv_lib_freetype_FT_Init_FreeType=yes
26628else
cristy8b350f62009-11-15 23:12:43 +000026629 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000026630fi
cristy8b350f62009-11-15 23:12:43 +000026631rm -f core conftest.err conftest.$ac_objext \
26632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026633LIBS=$ac_check_lib_save_LIBS
26634fi
cristy8b350f62009-11-15 23:12:43 +000026635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000026636$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026637if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026638 FREETYPE_LIBS='-lfreetype'
26639fi
26640
26641 if test "$FREETYPE_LIBS" != ''; then
26642 passed=`expr $passed + 1`
26643 else
26644 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000026645 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026646 fi
26647 fi
26648
cristy8b350f62009-11-15 23:12:43 +000026649 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26650if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026651 FT2BUILD_H='#include <ft2build.h>'
26652else
26653 ft2build=''
26654fi
26655
26656
cristy8b350f62009-11-15 23:12:43 +000026657 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26658"
26659if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026660 have_freetype_h='yes'
26661else
26662 have_freetype_h='no'
26663fi
26664
26665
26666 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26667 passed=`expr $passed + 1`
26668 else
26669 failed=`expr $failed + 1`
26670 CPPFLAGS="$PERSIST_CPPFLAGS"
26671 fi
26672
cristy8b350f62009-11-15 23:12:43 +000026673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026674$as_echo_n "checking if FreeType package is complete... " >&6; }
26675 if test $passed -gt 0; then
26676 if test $failed -gt 0; then
26677 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026679$as_echo "no -- some components failed test" >&6; }
26680 have_freetype='no (failed tests)'
26681 else
26682 LIBS="$FREETYPE_LIBS $LIBS"
26683
cristy8b350f62009-11-15 23:12:43 +000026684$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026685
26686 if test "$ac_cv_header_ft2build_h" = 'yes'; then
26687
cristy8b350f62009-11-15 23:12:43 +000026688$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026689
26690 fi
cristy8b350f62009-11-15 23:12:43 +000026691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026692$as_echo "yes" >&6; }
26693 have_freetype='yes'
26694 fi
26695 else
cristy8b350f62009-11-15 23:12:43 +000026696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026697$as_echo "no" >&6; }
26698 fi
26699fi
26700 if test "$have_freetype" = 'yes'; then
26701 FREETYPE_DELEGATE_TRUE=
26702 FREETYPE_DELEGATE_FALSE='#'
26703else
26704 FREETYPE_DELEGATE_TRUE='#'
26705 FREETYPE_DELEGATE_FALSE=
26706fi
26707
26708
26709
26710
26711
26712#
26713# Check for Ghostscript library or framework.
26714#
26715# Test for iapi.h & test for gsapi_new_instance in -lgs
26716# or -framework Ghostscript
26717
26718
26719# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000026720if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026721 withval=$with_gslib; with_gslib=$withval
26722else
26723 with_gslib='no'
26724fi
26725
26726
cristyb7931f12009-09-25 10:22:21 +000026727gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000026728if test "$with_gslib" != 'yes'; then
26729 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26730fi
26731
26732have_gslib='no'
26733GS_LIBS=''
26734if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026736$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000026738$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026740$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000026741 framework=0
cristy3ed852e2009-09-05 21:47:34 +000026742 failed=0
26743 passed=0
cristy8b350f62009-11-15 23:12:43 +000026744 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26745if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026746 passed=`expr $passed + 1`
26747else
26748 failed=`expr $failed + 1`
26749fi
26750
26751
cristy8b350f62009-11-15 23:12:43 +000026752 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26753if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 passed=`expr $passed + 1`
26755else
26756 failed=`expr $failed + 1`
26757fi
26758
26759
cristy8b350f62009-11-15 23:12:43 +000026760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000026761$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026762if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026763 $as_echo_n "(cached) " >&6
26764else
26765 ac_check_framework_save_LIBS=$LIBS
26766LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026768/* end confdefs.h. */
26769
26770/* Override any GCC internal prototype to avoid an error.
26771 Use char because int might match the return type of a GCC
26772 builtin and then its argument prototype would still apply. */
26773#ifdef __cplusplus
26774extern "C"
26775#endif
26776char gsapi_new_instance ();
26777int
26778main ()
26779{
26780return gsapi_new_instance ();
26781 ;
26782 return 0;
26783}
26784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026785if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026786 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26787else
cristy8b350f62009-11-15 23:12:43 +000026788 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026789fi
cristy8b350f62009-11-15 23:12:43 +000026790rm -f core conftest.err conftest.$ac_objext \
26791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026792LIBS=$ac_check_framework_save_LIBS
26793fi
cristy8b350f62009-11-15 23:12:43 +000026794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026795$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026796if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026797 framework=`expr $framework + 1`
26798else
cristy8b350f62009-11-15 23:12:43 +000026799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000026800$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026801if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026802 $as_echo_n "(cached) " >&6
26803else
26804 ac_check_lib_save_LIBS=$LIBS
26805LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026807/* end confdefs.h. */
26808
26809/* Override any GCC internal prototype to avoid an error.
26810 Use char because int might match the return type of a GCC
26811 builtin and then its argument prototype would still apply. */
26812#ifdef __cplusplus
26813extern "C"
26814#endif
26815char gsapi_new_instance ();
26816int
26817main ()
26818{
26819return gsapi_new_instance ();
26820 ;
26821 return 0;
26822}
26823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026824if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026825 ac_cv_lib_gs_gsapi_new_instance=yes
26826else
cristy8b350f62009-11-15 23:12:43 +000026827 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026828fi
cristy8b350f62009-11-15 23:12:43 +000026829rm -f core conftest.err conftest.$ac_objext \
26830 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026831LIBS=$ac_check_lib_save_LIBS
26832fi
cristy8b350f62009-11-15 23:12:43 +000026833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026834$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026835if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026836 passed=`expr $passed + 1`
26837else
26838 failed=`expr $failed + 1`
26839fi
26840
26841fi
cristy8b350f62009-11-15 23:12:43 +000026842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026843$as_echo_n "checking if Ghostscript package is complete... " >&6; }
26844 if test $passed -gt 0; then
26845 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026847$as_echo "no -- some components failed test" >&6; }
26848 have_gslib='no (failed tests)'
26849 else
26850 if test $framework -gt 0; then
26851 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000026852 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000026853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000026854$as_echo "yes, using framework." >&6; }
26855 else
cristy8b350f62009-11-15 23:12:43 +000026856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000026857$as_echo "yes, using library." >&6; }
26858 GS_LIBS='-lgs'
26859 fi
26860 LIBS="$GS_LIBS $LIBS"
26861
cristy8b350f62009-11-15 23:12:43 +000026862$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026863
26864 have_gslib='yes'
26865 fi
26866 else
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026868$as_echo "no" >&6; }
26869 fi
26870fi
26871 if test "$have_gslib" = 'yes'; then
26872 GS_DELEGATE_TRUE=
26873 GS_DELEGATE_FALSE='#'
26874else
26875 GS_DELEGATE_TRUE='#'
26876 GS_DELEGATE_FALSE=
26877fi
26878
26879
26880
26881# Set default font search path
26882
26883# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026884if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026885 withval=$with_fontpath; with_fontpath=$withval
26886else
26887 with_fontpath=''
26888fi
26889
26890
26891if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26892 with_fontpath=''
26893else
26894
26895cat >>confdefs.h <<_ACEOF
26896#define MAGICK_FONT_PATH "$with_fontpath"
26897_ACEOF
26898
26899fi
26900if test "$with_fontpath=" != ''; then
26901 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26902fi
26903
26904# Set Ghostscript font directory
26905
26906# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026907if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026908 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26909else
26910 with_gs_font_dir='default'
26911fi
26912
26913
26914if test "$with_gs_font_dir" != 'default'; then
26915 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26916fi
26917
26918
26919#
26920# Check for GVC delegate library.
26921#
26922
26923# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026924if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 withval=$with_gvc; with_gvc=$withval
26926else
26927 with_gvc='yes'
26928fi
26929
26930
26931if test "$with_gvc" != 'yes'; then
26932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26933fi
26934
26935GVC_PKG=""
26936if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026938$as_echo "-------------------------------------------------------------" >&6; }
26939
26940pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026942$as_echo_n "checking for GVC... " >&6; }
26943
26944if test -n "$GVC_CFLAGS"; then
26945 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26946 elif test -n "$PKG_CONFIG"; then
26947 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026949 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26950 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26952 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026953 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26954else
26955 pkg_failed=yes
26956fi
26957 else
26958 pkg_failed=untried
26959fi
26960if test -n "$GVC_LIBS"; then
26961 pkg_cv_GVC_LIBS="$GVC_LIBS"
26962 elif test -n "$PKG_CONFIG"; then
26963 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026965 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26966 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26968 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026969 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26970else
26971 pkg_failed=yes
26972fi
26973 else
26974 pkg_failed=untried
26975fi
26976
26977
26978
26979if test $pkg_failed = yes; then
26980
26981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26982 _pkg_short_errors_supported=yes
26983else
26984 _pkg_short_errors_supported=no
26985fi
26986 if test $_pkg_short_errors_supported = yes; then
26987 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26988 else
26989 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26990 fi
26991 # Put the nasty error message in config.log where it belongs
26992 echo "$GVC_PKG_ERRORS" >&5
26993
cristy8b350f62009-11-15 23:12:43 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026995$as_echo "no" >&6; }
26996 have_gvc=no
26997elif test $pkg_failed = untried; then
26998 have_gvc=no
26999else
27000 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27001 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027003$as_echo "yes" >&6; }
27004 have_gvc=yes
27005fi
cristy8b350f62009-11-15 23:12:43 +000027006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027007$as_echo "" >&6; }
27008fi
27009
27010if test "$have_gvc" = 'yes'; then
27011
cristy8b350f62009-11-15 23:12:43 +000027012$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027013
27014 if test "$with_modules" = 'no'; then
27015 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27016 fi
27017fi
27018
27019 if test "$have_gvc" = 'yes'; then
27020 GVC_DELEGATE_TRUE=
27021 GVC_DELEGATE_FALSE='#'
27022else
27023 GVC_DELEGATE_TRUE='#'
27024 GVC_DELEGATE_FALSE=
27025fi
27026
27027
27028
27029
27030
27031#
27032# Check for JBIG delegate library.
27033#
27034
27035
27036# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027037if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027038 withval=$with_jbig; with_jbig=$withval
27039else
27040 with_jbig='yes'
27041fi
27042
27043
27044have_jbig='no'
27045JBIG_LIBS=''
27046if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027048$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027050$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027052$as_echo "" >&6; }
27053 failed=0
27054 passed=0
cristy8b350f62009-11-15 23:12:43 +000027055 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27056if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027057 passed=`expr $passed + 1`
27058else
27059 failed=`expr $failed + 1`
27060fi
27061
27062
cristy8b350f62009-11-15 23:12:43 +000027063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027064$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027065if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027066 $as_echo_n "(cached) " >&6
27067else
27068 ac_check_lib_save_LIBS=$LIBS
27069LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027071/* end confdefs.h. */
27072
27073/* Override any GCC internal prototype to avoid an error.
27074 Use char because int might match the return type of a GCC
27075 builtin and then its argument prototype would still apply. */
27076#ifdef __cplusplus
27077extern "C"
27078#endif
27079char jbg_dec_init ();
27080int
27081main ()
27082{
27083return jbg_dec_init ();
27084 ;
27085 return 0;
27086}
27087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027088if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027089 ac_cv_lib_jbig_jbg_dec_init=yes
27090else
cristy8b350f62009-11-15 23:12:43 +000027091 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027092fi
cristy8b350f62009-11-15 23:12:43 +000027093rm -f core conftest.err conftest.$ac_objext \
27094 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027095LIBS=$ac_check_lib_save_LIBS
27096fi
cristy8b350f62009-11-15 23:12:43 +000027097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027098$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027099if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027100 passed=`expr $passed + 1`
27101else
27102 failed=`expr $failed + 1`
27103fi
27104
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo_n "checking if JBIG package is complete... " >&6; }
27107 if test $passed -gt 0; then
27108 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo "no -- some components failed test" >&6; }
27111 have_jbig='no (failed tests)'
27112 else
27113 JBIG_LIBS='-ljbig'
27114 LIBS="$JBIG_LIBS $LIBS"
27115
cristy8b350f62009-11-15 23:12:43 +000027116$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027117
cristy8b350f62009-11-15 23:12:43 +000027118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027119$as_echo "yes" >&6; }
27120 have_jbig='yes'
27121 fi
27122 else
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "no" >&6; }
27125 fi
27126fi
27127 if test "$have_jbig" = 'yes'; then
27128 JBIG_DELEGATE_TRUE=
27129 JBIG_DELEGATE_FALSE='#'
27130else
27131 JBIG_DELEGATE_TRUE='#'
27132 JBIG_DELEGATE_FALSE=
27133fi
27134
27135
27136
27137
27138#
27139# Check for JPEG delegate library.
27140#
27141
27142# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027143if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027144 withval=$with_jpeg; with_jpeg=$withval
27145else
27146 with_jpeg='yes'
27147fi
27148
27149
27150if test "$with_jpeg" != 'yes'; then
27151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27152fi
27153
27154have_jpeg='no'
27155JPEG_LIBS=''
27156if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027160$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "" >&6; }
27163 failed=0
27164 passed=0
cristy8b350f62009-11-15 23:12:43 +000027165 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27166if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027167 passed=`expr $passed + 1`
27168else
27169 failed=`expr $failed + 1`
27170fi
27171
27172
cristy8b350f62009-11-15 23:12:43 +000027173 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27174if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027175 passed=`expr $passed + 1`
27176else
27177 failed=`expr $failed + 1`
27178fi
27179
27180
cristy8b350f62009-11-15 23:12:43 +000027181 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27182if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027183 passed=`expr $passed + 1`
27184else
27185 failed=`expr $failed + 1`
27186fi
27187
27188
cristy8b350f62009-11-15 23:12:43 +000027189 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27190if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027191 passed=`expr $passed + 1`
27192else
27193 failed=`expr $failed + 1`
27194fi
27195
27196
cristy8b350f62009-11-15 23:12:43 +000027197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027198$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027199if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027200 $as_echo_n "(cached) " >&6
27201else
27202 ac_check_lib_save_LIBS=$LIBS
27203LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027205/* end confdefs.h. */
27206
27207/* Override any GCC internal prototype to avoid an error.
27208 Use char because int might match the return type of a GCC
27209 builtin and then its argument prototype would still apply. */
27210#ifdef __cplusplus
27211extern "C"
27212#endif
27213char jpeg_read_header ();
27214int
27215main ()
27216{
27217return jpeg_read_header ();
27218 ;
27219 return 0;
27220}
27221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027223 ac_cv_lib_jpeg_jpeg_read_header=yes
27224else
cristy8b350f62009-11-15 23:12:43 +000027225 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027226fi
cristy8b350f62009-11-15 23:12:43 +000027227rm -f core conftest.err conftest.$ac_objext \
27228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027229LIBS=$ac_check_lib_save_LIBS
27230fi
cristy8b350f62009-11-15 23:12:43 +000027231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027232$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027233if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027234 passed=`expr $passed + 1`
27235else
27236 failed=`expr $failed + 1`
27237fi
27238
27239
27240# Test for compatible JPEG library
27241if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027244if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 $as_echo_n "(cached) " >&6
27246else
cristy8b350f62009-11-15 23:12:43 +000027247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027248/* end confdefs.h. */
27249#include <stdio.h>
27250#include <stdlib.h>
27251#include <jpeglib.h>
27252
27253int
27254main ()
27255{
27256
27257#if JPEG_LIB_VERSION < 62
27258#error IJG JPEG library must be version 6b or newer!
27259#endif
27260return 0;
27261
27262 ;
27263 return 0;
27264}
27265_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027266if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27268else
cristy8b350f62009-11-15 23:12:43 +000027269 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027270fi
cristy3ed852e2009-09-05 21:47:34 +000027271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27272fi
cristy8b350f62009-11-15 23:12:43 +000027273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27275fi
cristy8b350f62009-11-15 23:12:43 +000027276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027277$as_echo_n "checking if JPEG package is complete... " >&6; }
27278 if test $passed -gt 0; then
27279 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027281$as_echo "no -- some components failed test" >&6; }
27282 have_jpeg='no (failed tests)'
27283 else
27284 JPEG_LIBS='-ljpeg'
27285 LIBS="$JPEG_LIBS $LIBS"
27286
cristy8b350f62009-11-15 23:12:43 +000027287$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027288
cristy8b350f62009-11-15 23:12:43 +000027289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027290$as_echo "yes" >&6; }
27291 have_jpeg='yes'
27292 fi
27293 else
cristy8b350f62009-11-15 23:12:43 +000027294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo "no" >&6; }
27296 fi
27297fi
27298 if test "$have_jpeg" = 'yes'; then
27299 JPEG_DELEGATE_TRUE=
27300 JPEG_DELEGATE_FALSE='#'
27301else
27302 JPEG_DELEGATE_TRUE='#'
27303 JPEG_DELEGATE_FALSE=
27304fi
27305
27306
27307
27308
27309#
27310# Check for JPEG Version 2 delegate library.
27311#
27312
27313# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027314if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 withval=$with_jp2; with_jp2=$withval
27316else
27317 with_jp2='yes'
27318fi
27319
27320
27321if test "$with_jp2" != 'yes'; then
27322 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27323fi
27324
27325have_jp2='no'
27326JP2_LIBS=''
27327if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027329$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027331$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027333$as_echo "" >&6; }
27334 failed=0
27335 passed=0
cristy8b350f62009-11-15 23:12:43 +000027336 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27337if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027338 passed=`expr $passed + 1`
27339else
27340 failed=`expr $failed + 1`
27341fi
27342
27343
cristy8b350f62009-11-15 23:12:43 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027346if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027347 $as_echo_n "(cached) " >&6
27348else
27349 ac_check_lib_save_LIBS=$LIBS
27350LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027352/* end confdefs.h. */
27353
27354/* Override any GCC internal prototype to avoid an error.
27355 Use char because int might match the return type of a GCC
27356 builtin and then its argument prototype would still apply. */
27357#ifdef __cplusplus
27358extern "C"
27359#endif
27360char jas_stream_fopen ();
27361int
27362main ()
27363{
27364return jas_stream_fopen ();
27365 ;
27366 return 0;
27367}
27368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027369if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027370 ac_cv_lib_jasper_jas_stream_fopen=yes
27371else
cristy8b350f62009-11-15 23:12:43 +000027372 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027373fi
cristy8b350f62009-11-15 23:12:43 +000027374rm -f core conftest.err conftest.$ac_objext \
27375 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027376LIBS=$ac_check_lib_save_LIBS
27377fi
cristy8b350f62009-11-15 23:12:43 +000027378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027379$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027380if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027381 passed=`expr $passed + 1`
27382else
27383 failed=`expr $failed + 1`
27384fi
27385
cristy8b350f62009-11-15 23:12:43 +000027386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027387$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27388 if test $passed -gt 0; then
27389 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027391$as_echo "no -- some components failed test" >&6; }
27392 have_jp2='no (failed tests)'
27393 else
27394 JP2_LIBS='-ljasper'
27395 LIBS="$JP2_LIBS $LIBS"
27396
cristy8b350f62009-11-15 23:12:43 +000027397$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027398
cristy8b350f62009-11-15 23:12:43 +000027399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027400$as_echo "yes" >&6; }
27401 have_jp2='yes'
27402 fi
27403 else
cristy8b350f62009-11-15 23:12:43 +000027404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027405$as_echo "no" >&6; }
27406 fi
27407fi
27408 if test "$have_jp2" = 'yes'; then
27409 JP2_DELEGATE_TRUE=
27410 JP2_DELEGATE_FALSE='#'
27411else
27412 JP2_DELEGATE_TRUE='#'
27413 JP2_DELEGATE_FALSE=
27414fi
27415
27416
27417
27418
27419#
27420# Check for LCMS delegate library.
27421#
27422
27423# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027424if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027425 withval=$with_lcms; with_lcms=$withval
27426else
27427 with_lcms='yes'
27428fi
27429
27430
27431if test "$with_lcms" != 'yes'; then
27432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27433fi
27434
27435have_lcms='no'
27436LCMS_LIBS=''
27437if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027439$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027441$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027443$as_echo "" >&6; }
27444 failed=0
27445 passed=0
27446 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000027447 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27448if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27449 have_lcms_header='yes'
27450fi
27451
27452
27453 if test "$have_lcms_header" = 'yes'; then
27454 passed=`expr $passed + 1`
27455
27456$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27457
27458 else
27459 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
27460if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
27461 have_lcms_header='yes'
27462fi
27463
27464
27465 if test "$have_lcms_header" = 'yes'; then
27466 passed=`expr $passed + 1`
27467
27468$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
27469
27470 else
27471 failed=`expr $failed + 1`
27472 fi
27473 fi
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
27475$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
27476if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
27477 $as_echo_n "(cached) " >&6
27478else
27479 ac_check_lib_save_LIBS=$LIBS
27480LIBS="-llcms2 $LIBS"
27481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27482/* end confdefs.h. */
27483
27484/* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27487#ifdef __cplusplus
27488extern "C"
27489#endif
27490char cmsOpenProfileFromMem ();
27491int
27492main ()
27493{
27494return cmsOpenProfileFromMem ();
27495 ;
27496 return 0;
27497}
27498_ACEOF
27499if ac_fn_c_try_link "$LINENO"; then :
27500 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
27501else
27502 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
27503fi
27504rm -f core conftest.err conftest.$ac_objext \
27505 conftest$ac_exeext conftest.$ac_ext
27506LIBS=$ac_check_lib_save_LIBS
27507fi
27508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
27509$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
27510if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
27511 passed=`expr $passed + 1`
27512else
27513 failed=`expr $failed + 1`
27514fi
27515
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
27517$as_echo_n "checking if LCMS2 package is complete... " >&6; }
27518 if test $passed -gt 0; then
27519 if test $failed -gt 0; then
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27521$as_echo "no -- some components failed test" >&6; }
27522 have_lcms='no (failed tests)'
27523 else
27524 LCMS_LIBS='-llcms2'
27525 LIBS="$LCMS_LIBS $LIBS"
27526
27527$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27528
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27530$as_echo "yes" >&6; }
27531 have_lcms='yes'
27532 fi
27533 else
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27535$as_echo "no" >&6; }
27536 fi
27537fi
27538
27539if test "$with_lcms" != 'no'; then
27540if test "$have_lcms" == 'no'; then
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27542$as_echo "-------------------------------------------------------------" >&6; }
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
27544$as_echo_n "checking for LCMS... " >&6; }
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27546$as_echo "" >&6; }
27547 failed=0
27548 passed=0
27549 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000027550 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27551if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027552 have_lcms_header='yes'
27553fi
27554
27555
27556 if test "$have_lcms_header" = 'yes'; then
27557 passed=`expr $passed + 1`
27558
cristy8b350f62009-11-15 23:12:43 +000027559$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027560
27561 else
cristy8b350f62009-11-15 23:12:43 +000027562 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27563if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027564 have_lcms_header='yes'
27565fi
27566
27567
27568 if test "$have_lcms_header" = 'yes'; then
27569 passed=`expr $passed + 1`
27570
cristy8b350f62009-11-15 23:12:43 +000027571$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027572
27573 else
27574 failed=`expr $failed + 1`
27575 fi
27576 fi
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000027578$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027579if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027580 $as_echo_n "(cached) " >&6
27581else
27582 ac_check_lib_save_LIBS=$LIBS
27583LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027585/* end confdefs.h. */
27586
27587/* Override any GCC internal prototype to avoid an error.
27588 Use char because int might match the return type of a GCC
27589 builtin and then its argument prototype would still apply. */
27590#ifdef __cplusplus
27591extern "C"
27592#endif
27593char cmsOpenProfileFromMem ();
27594int
27595main ()
27596{
27597return cmsOpenProfileFromMem ();
27598 ;
27599 return 0;
27600}
27601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027603 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27604else
cristy8b350f62009-11-15 23:12:43 +000027605 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000027606fi
cristy8b350f62009-11-15 23:12:43 +000027607rm -f core conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027609LIBS=$ac_check_lib_save_LIBS
27610fi
cristy8b350f62009-11-15 23:12:43 +000027611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027612$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027613if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027614 passed=`expr $passed + 1`
27615else
27616 failed=`expr $failed + 1`
27617fi
27618
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking if LCMS package is complete... " >&6; }
27621 if test $passed -gt 0; then
27622 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo "no -- some components failed test" >&6; }
27625 have_lcms='no (failed tests)'
27626 else
27627 LCMS_LIBS='-llcms'
27628 LIBS="$LCMS_LIBS $LIBS"
27629
cristy8b350f62009-11-15 23:12:43 +000027630$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027631
cristy8b350f62009-11-15 23:12:43 +000027632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027633$as_echo "yes" >&6; }
27634 have_lcms='yes'
27635 fi
27636 else
cristy8b350f62009-11-15 23:12:43 +000027637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027638$as_echo "no" >&6; }
27639 fi
27640fi
cristyd09bcf92010-03-25 03:04:45 +000027641fi
cristy3ed852e2009-09-05 21:47:34 +000027642 if test "$have_lcms" = 'yes'; then
27643 LCMS_DELEGATE_TRUE=
27644 LCMS_DELEGATE_FALSE='#'
27645else
27646 LCMS_DELEGATE_TRUE='#'
27647 LCMS_DELEGATE_FALSE=
27648fi
27649
27650
27651
27652
27653#
27654# Check for the LQR (Liquid Rescale) delegate library.
27655#
27656
27657# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000027658if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027659 withval=$with_lqr; with_lqr=$withval
27660else
27661 with_lqr='yes'
27662fi
27663
27664
27665if test "$with_lqr" != 'yes'; then
27666 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27667fi
27668
27669have_lqr='no'
27670LQR_CFLAGS=""
27671LQR_LIBS=""
27672LQR_PKG=""
27673if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027675$as_echo "-------------------------------------------------------------" >&6; }
27676
27677pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027679$as_echo_n "checking for LQR... " >&6; }
27680
27681if test -n "$LQR_CFLAGS"; then
27682 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27683 elif test -n "$PKG_CONFIG"; then
27684 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027686 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27687 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27689 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027690 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27691else
27692 pkg_failed=yes
27693fi
27694 else
27695 pkg_failed=untried
27696fi
27697if test -n "$LQR_LIBS"; then
27698 pkg_cv_LQR_LIBS="$LQR_LIBS"
27699 elif test -n "$PKG_CONFIG"; then
27700 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027702 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27703 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27705 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027706 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27707else
27708 pkg_failed=yes
27709fi
27710 else
27711 pkg_failed=untried
27712fi
27713
27714
27715
27716if test $pkg_failed = yes; then
27717
27718if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27719 _pkg_short_errors_supported=yes
27720else
27721 _pkg_short_errors_supported=no
27722fi
27723 if test $_pkg_short_errors_supported = yes; then
27724 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27725 else
27726 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27727 fi
27728 # Put the nasty error message in config.log where it belongs
27729 echo "$LQR_PKG_ERRORS" >&5
27730
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo "no" >&6; }
27733 have_lqr=no
27734elif test $pkg_failed = untried; then
27735 have_lqr=no
27736else
27737 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27738 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027740$as_echo "yes" >&6; }
27741 have_lqr=yes
27742fi
cristy8b350f62009-11-15 23:12:43 +000027743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027744$as_echo "" >&6; }
27745fi
27746
27747if test "$have_lqr" = 'yes'; then
27748
cristy8b350f62009-11-15 23:12:43 +000027749$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027750
27751 CFLAGS="$LQR_CFLAGS $CFLAGS"
27752fi
27753
27754 if test "$have_lqr" = 'yes'; then
27755 LQR_DELEGATE_TRUE=
27756 LQR_DELEGATE_FALSE='#'
27757else
27758 LQR_DELEGATE_TRUE='#'
27759 LQR_DELEGATE_FALSE=
27760fi
27761
27762
27763
27764
27765
27766#
27767# Check for the OpenEXR delegate library.
27768#
27769
27770# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000027771if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027772 withval=$with_openexr; with_openexr=$withval
27773else
27774 with_openexr='yes'
27775fi
27776
27777
27778if test "$with_openexr" != 'yes'; then
27779 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27780fi
27781
27782have_openexr='no'
27783OPENEXR_CFLAGS=""
27784OPENEXR_LIBS=""
27785OPENEXR_PKG=""
27786if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027788$as_echo "-------------------------------------------------------------" >&6; }
27789
27790pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo_n "checking for OPENEXR... " >&6; }
27793
27794if test -n "$OPENEXR_CFLAGS"; then
27795 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27796 elif test -n "$PKG_CONFIG"; then
27797 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027799 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27800 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27802 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027803 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27804else
27805 pkg_failed=yes
27806fi
27807 else
27808 pkg_failed=untried
27809fi
27810if test -n "$OPENEXR_LIBS"; then
27811 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27812 elif test -n "$PKG_CONFIG"; then
27813 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027815 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27816 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27818 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027819 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27820else
27821 pkg_failed=yes
27822fi
27823 else
27824 pkg_failed=untried
27825fi
27826
27827
27828
27829if test $pkg_failed = yes; then
27830
27831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27832 _pkg_short_errors_supported=yes
27833else
27834 _pkg_short_errors_supported=no
27835fi
27836 if test $_pkg_short_errors_supported = yes; then
27837 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27838 else
27839 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27840 fi
27841 # Put the nasty error message in config.log where it belongs
27842 echo "$OPENEXR_PKG_ERRORS" >&5
27843
cristy8b350f62009-11-15 23:12:43 +000027844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027845$as_echo "no" >&6; }
27846 have_openexr=no
27847elif test $pkg_failed = untried; then
27848 have_openexr=no
27849else
27850 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27851 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo "yes" >&6; }
27854 have_openexr=yes
27855fi
cristy8b350f62009-11-15 23:12:43 +000027856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027857$as_echo "" >&6; }
27858fi
27859
27860if test "$have_openexr" = 'yes'; then
27861
cristy8b350f62009-11-15 23:12:43 +000027862$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027863
27864 if test "$with_modules" = 'no'; then
27865 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27866 fi
27867fi
27868
27869 if test "$have_openexr" = 'yes'; then
27870 OPENEXR_DELEGATE_TRUE=
27871 OPENEXR_DELEGATE_FALSE='#'
27872else
27873 OPENEXR_DELEGATE_TRUE='#'
27874 OPENEXR_DELEGATE_FALSE=
27875fi
27876
27877
27878
27879
27880
27881#
27882# Check for PNG delegate library.
27883#
27884
27885# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000027886if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 withval=$with_png; with_png=$withval
27888else
27889 with_png='yes'
27890fi
27891
27892
27893if test "$with_png" != 'yes'; then
27894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
27895fi
27896
27897have_png='no'
27898PNG_LIBS=''
27899if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027901$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027903$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027905$as_echo "" >&6; }
27906 failed=0
27907 passed=0
cristy8b350f62009-11-15 23:12:43 +000027908 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
27909if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027910 passed=`expr $passed + 1`
27911else
27912 failed=`expr $failed + 1`
27913fi
27914
27915
cristy8b350f62009-11-15 23:12:43 +000027916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000027917$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027918if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027919 $as_echo_n "(cached) " >&6
27920else
27921 ac_check_lib_save_LIBS=$LIBS
27922LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027924/* end confdefs.h. */
27925
27926/* Override any GCC internal prototype to avoid an error.
27927 Use char because int might match the return type of a GCC
27928 builtin and then its argument prototype would still apply. */
27929#ifdef __cplusplus
27930extern "C"
27931#endif
27932char png_get_io_ptr ();
27933int
27934main ()
27935{
27936return png_get_io_ptr ();
27937 ;
27938 return 0;
27939}
27940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027941if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 ac_cv_lib_png_png_get_io_ptr=yes
27943else
cristy8b350f62009-11-15 23:12:43 +000027944 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000027945fi
cristy8b350f62009-11-15 23:12:43 +000027946rm -f core conftest.err conftest.$ac_objext \
27947 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027948LIBS=$ac_check_lib_save_LIBS
27949fi
cristy8b350f62009-11-15 23:12:43 +000027950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000027951$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027952if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027953 passed=`expr $passed + 1`
27954else
27955 failed=`expr $failed + 1`
27956fi
27957
cristy8b350f62009-11-15 23:12:43 +000027958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo_n "checking if PNG package is complete... " >&6; }
27960 if test $passed -gt 0; then
27961 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo "no -- some components failed test" >&6; }
27964 have_png='no (failed tests)'
27965 else
27966 PNG_LIBS='-lpng'
27967 LIBS="$PNG_LIBS $LIBS"
27968
cristy8b350f62009-11-15 23:12:43 +000027969$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027970
cristy8b350f62009-11-15 23:12:43 +000027971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027972$as_echo "yes" >&6; }
27973 have_png='yes'
27974 fi
27975 else
cristy8b350f62009-11-15 23:12:43 +000027976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027977$as_echo "no" >&6; }
27978 fi
27979fi
27980 if test "$have_png" = 'yes'; then
27981 PNG_DELEGATE_TRUE=
27982 PNG_DELEGATE_FALSE='#'
27983else
27984 PNG_DELEGATE_TRUE='#'
27985 PNG_DELEGATE_FALSE=
27986fi
27987
27988
27989
27990
27991#
27992# Check for RSVG delegate library.
27993#
27994
27995# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027996if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027997 withval=$with_rsvg; with_rsvg=$withval
27998else
27999 with_rsvg=$have_x
28000fi
28001
28002
28003if test "$with_rsvg" != 'yes'; then
28004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28005fi
28006
28007have_rsvg='no'
28008have_cairo='no'
28009RSVG_CFLAGS=""
28010RSVG_LIBS=""
28011RSVG_PKG=""
28012if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028014$as_echo "-------------------------------------------------------------" >&6; }
28015
28016pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028018$as_echo_n "checking for RSVG... " >&6; }
28019
28020if test -n "$RSVG_CFLAGS"; then
28021 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28022 elif test -n "$PKG_CONFIG"; then
28023 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028024 { { $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 +000028025 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28026 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28028 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028029 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28030else
28031 pkg_failed=yes
28032fi
28033 else
28034 pkg_failed=untried
28035fi
28036if test -n "$RSVG_LIBS"; then
28037 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28038 elif test -n "$PKG_CONFIG"; then
28039 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028040 { { $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 +000028041 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28042 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28044 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028045 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28046else
28047 pkg_failed=yes
28048fi
28049 else
28050 pkg_failed=untried
28051fi
28052
28053
28054
28055if test $pkg_failed = yes; then
28056
28057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28058 _pkg_short_errors_supported=yes
28059else
28060 _pkg_short_errors_supported=no
28061fi
28062 if test $_pkg_short_errors_supported = yes; then
28063 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28064 else
28065 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28066 fi
28067 # Put the nasty error message in config.log where it belongs
28068 echo "$RSVG_PKG_ERRORS" >&5
28069
cristy8b350f62009-11-15 23:12:43 +000028070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo "no" >&6; }
28072 have_rsvg=no
28073elif test $pkg_failed = untried; then
28074 have_rsvg=no
28075else
28076 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28077 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo "yes" >&6; }
28080 have_rsvg=yes
28081fi
cristy8b350f62009-11-15 23:12:43 +000028082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo "" >&6; }
28084
28085pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo_n "checking for CAIRO_SVG... " >&6; }
28088
28089if test -n "$CAIRO_SVG_CFLAGS"; then
28090 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28091 elif test -n "$PKG_CONFIG"; then
28092 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028094 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28095 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28097 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028098 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28099else
28100 pkg_failed=yes
28101fi
28102 else
28103 pkg_failed=untried
28104fi
28105if test -n "$CAIRO_SVG_LIBS"; then
28106 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28107 elif test -n "$PKG_CONFIG"; then
28108 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028110 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28111 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28113 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028114 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28115else
28116 pkg_failed=yes
28117fi
28118 else
28119 pkg_failed=untried
28120fi
28121
28122
28123
28124if test $pkg_failed = yes; then
28125
28126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28127 _pkg_short_errors_supported=yes
28128else
28129 _pkg_short_errors_supported=no
28130fi
28131 if test $_pkg_short_errors_supported = yes; then
28132 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28133 else
28134 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28135 fi
28136 # Put the nasty error message in config.log where it belongs
28137 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28138
cristy8b350f62009-11-15 23:12:43 +000028139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028140$as_echo "no" >&6; }
28141 have_cairo=no
28142elif test $pkg_failed = untried; then
28143 have_cairo=no
28144else
28145 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28146 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028148$as_echo "yes" >&6; }
28149 have_cairo=yes
28150fi
cristy8b350f62009-11-15 23:12:43 +000028151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028152$as_echo "" >&6; }
28153fi
28154
28155if test "$have_rsvg" = 'yes'; then
28156
cristy8b350f62009-11-15 23:12:43 +000028157$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028158
28159 if test "$with_modules" = 'no'; then
28160 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28161 fi
28162fi
28163
28164if test "$have_cairo" = 'yes'; then
28165
cristy8b350f62009-11-15 23:12:43 +000028166$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028167
28168 if test "$with_modules" = 'no'; then
28169 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28170 fi
28171fi
28172
28173 if test "$have_rsvg" = 'yes'; then
28174 RSVG_DELEGATE_TRUE=
28175 RSVG_DELEGATE_FALSE='#'
28176else
28177 RSVG_DELEGATE_TRUE='#'
28178 RSVG_DELEGATE_FALSE=
28179fi
28180
28181 if test "$have_cairo" = 'yes'; then
28182 CAIRO_DELEGATE_TRUE=
28183 CAIRO_DELEGATE_FALSE='#'
28184else
28185 CAIRO_DELEGATE_TRUE='#'
28186 CAIRO_DELEGATE_FALSE=
28187fi
28188
28189
28190
28191
28192
28193#
28194# Check for TIFF delegate library.
28195#
28196
28197# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028198if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028199 withval=$with_tiff; with_tiff=$withval
28200else
28201 with_tiff='yes'
28202fi
28203
28204
28205if test "$with_tiff" != 'yes'; then
28206 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28207fi
28208
28209have_tiff='no'
28210TIFF_LIBS=''
28211if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028213$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028215$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028217$as_echo "" >&6; }
28218 failed=0
28219 passed=0
cristy8b350f62009-11-15 23:12:43 +000028220 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28221if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028222 passed=`expr $passed + 1`
28223else
28224 failed=`expr $failed + 1`
28225fi
28226
28227
cristy8b350f62009-11-15 23:12:43 +000028228 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28229if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028230 passed=`expr $passed + 1`
28231else
28232 failed=`expr $failed + 1`
28233fi
28234
28235
cristy8b350f62009-11-15 23:12:43 +000028236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028237$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028238if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028239 $as_echo_n "(cached) " >&6
28240else
28241 ac_check_lib_save_LIBS=$LIBS
28242LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028244/* end confdefs.h. */
28245
28246/* Override any GCC internal prototype to avoid an error.
28247 Use char because int might match the return type of a GCC
28248 builtin and then its argument prototype would still apply. */
28249#ifdef __cplusplus
28250extern "C"
28251#endif
28252char TIFFOpen ();
28253int
28254main ()
28255{
28256return TIFFOpen ();
28257 ;
28258 return 0;
28259}
28260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 ac_cv_lib_tiff_TIFFOpen=yes
28263else
cristy8b350f62009-11-15 23:12:43 +000028264 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028265fi
cristy8b350f62009-11-15 23:12:43 +000028266rm -f core conftest.err conftest.$ac_objext \
28267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028268LIBS=$ac_check_lib_save_LIBS
28269fi
cristy8b350f62009-11-15 23:12:43 +000028270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028272if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 passed=`expr $passed + 1`
28274else
28275 failed=`expr $failed + 1`
28276fi
28277
cristy8b350f62009-11-15 23:12:43 +000028278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028279$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028280if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028281 $as_echo_n "(cached) " >&6
28282else
28283 ac_check_lib_save_LIBS=$LIBS
28284LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028286/* end confdefs.h. */
28287
28288/* Override any GCC internal prototype to avoid an error.
28289 Use char because int might match the return type of a GCC
28290 builtin and then its argument prototype would still apply. */
28291#ifdef __cplusplus
28292extern "C"
28293#endif
28294char TIFFClientOpen ();
28295int
28296main ()
28297{
28298return TIFFClientOpen ();
28299 ;
28300 return 0;
28301}
28302_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028303if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028304 ac_cv_lib_tiff_TIFFClientOpen=yes
28305else
cristy8b350f62009-11-15 23:12:43 +000028306 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028307fi
cristy8b350f62009-11-15 23:12:43 +000028308rm -f core conftest.err conftest.$ac_objext \
28309 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028310LIBS=$ac_check_lib_save_LIBS
28311fi
cristy8b350f62009-11-15 23:12:43 +000028312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028313$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028314if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028315 passed=`expr $passed + 1`
28316else
28317 failed=`expr $failed + 1`
28318fi
28319
cristy8b350f62009-11-15 23:12:43 +000028320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028321$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028322if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028323 $as_echo_n "(cached) " >&6
28324else
28325 ac_check_lib_save_LIBS=$LIBS
28326LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028328/* end confdefs.h. */
28329
28330/* Override any GCC internal prototype to avoid an error.
28331 Use char because int might match the return type of a GCC
28332 builtin and then its argument prototype would still apply. */
28333#ifdef __cplusplus
28334extern "C"
28335#endif
28336char TIFFIsByteSwapped ();
28337int
28338main ()
28339{
28340return TIFFIsByteSwapped ();
28341 ;
28342 return 0;
28343}
28344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028345if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028346 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28347else
cristy8b350f62009-11-15 23:12:43 +000028348 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028349fi
cristy8b350f62009-11-15 23:12:43 +000028350rm -f core conftest.err conftest.$ac_objext \
28351 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028352LIBS=$ac_check_lib_save_LIBS
28353fi
cristy8b350f62009-11-15 23:12:43 +000028354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028355$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028356if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028357 passed=`expr $passed + 1`
28358else
28359 failed=`expr $failed + 1`
28360fi
28361
cristy8b350f62009-11-15 23:12:43 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028364if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 $as_echo_n "(cached) " >&6
28366else
28367 ac_check_lib_save_LIBS=$LIBS
28368LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028370/* end confdefs.h. */
28371
28372/* Override any GCC internal prototype to avoid an error.
28373 Use char because int might match the return type of a GCC
28374 builtin and then its argument prototype would still apply. */
28375#ifdef __cplusplus
28376extern "C"
28377#endif
28378char TIFFReadRGBATile ();
28379int
28380main ()
28381{
28382return TIFFReadRGBATile ();
28383 ;
28384 return 0;
28385}
28386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028388 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28389else
cristy8b350f62009-11-15 23:12:43 +000028390 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028391fi
cristy8b350f62009-11-15 23:12:43 +000028392rm -f core conftest.err conftest.$ac_objext \
28393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028394LIBS=$ac_check_lib_save_LIBS
28395fi
cristy8b350f62009-11-15 23:12:43 +000028396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028397$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028398if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028399 passed=`expr $passed + 1`
28400else
28401 failed=`expr $failed + 1`
28402fi
28403
cristy8b350f62009-11-15 23:12:43 +000028404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028406if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 $as_echo_n "(cached) " >&6
28408else
28409 ac_check_lib_save_LIBS=$LIBS
28410LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028412/* end confdefs.h. */
28413
28414/* Override any GCC internal prototype to avoid an error.
28415 Use char because int might match the return type of a GCC
28416 builtin and then its argument prototype would still apply. */
28417#ifdef __cplusplus
28418extern "C"
28419#endif
28420char TIFFReadRGBAStrip ();
28421int
28422main ()
28423{
28424return TIFFReadRGBAStrip ();
28425 ;
28426 return 0;
28427}
28428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028430 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28431else
cristy8b350f62009-11-15 23:12:43 +000028432 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028433fi
cristy8b350f62009-11-15 23:12:43 +000028434rm -f core conftest.err conftest.$ac_objext \
28435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028436LIBS=$ac_check_lib_save_LIBS
28437fi
cristy8b350f62009-11-15 23:12:43 +000028438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028439$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028440if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028441 passed=`expr $passed + 1`
28442else
28443 failed=`expr $failed + 1`
28444fi
28445
cristy8b350f62009-11-15 23:12:43 +000028446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028447$as_echo_n "checking if TIFF package is complete... " >&6; }
28448 if test $passed -gt 0; then
28449 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028451$as_echo "no -- some components failed test" >&6; }
28452 have_tiff='no (failed tests)'
28453 else
28454 TIFF_LIBS='-ltiff'
28455 LIBS="$TIFF_LIBS $LIBS"
28456
cristy8b350f62009-11-15 23:12:43 +000028457$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028458
cristy8b350f62009-11-15 23:12:43 +000028459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028460$as_echo "yes" >&6; }
28461 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028462 for ac_header in tiffconf.h
28463do :
28464 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28465if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028466 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028467#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028468_ACEOF
28469
28470fi
28471
28472done
28473
cristy8b350f62009-11-15 23:12:43 +000028474 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028475 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28476 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028477do :
28478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28479ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28480eval as_val=\$$as_ac_var
28481 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028482 cat >>confdefs.h <<_ACEOF
28483#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28484_ACEOF
28485
28486fi
28487done
28488
28489 fi
28490 else
cristy8b350f62009-11-15 23:12:43 +000028491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028492$as_echo "no" >&6; }
28493 fi
28494fi
28495 if test "$have_tiff" = 'yes'; then
28496 TIFF_DELEGATE_TRUE=
28497 TIFF_DELEGATE_FALSE='#'
28498else
28499 TIFF_DELEGATE_TRUE='#'
28500 TIFF_DELEGATE_FALSE=
28501fi
28502
28503
28504
28505
28506#
28507# Set Windows font directory.
28508#
28509
28510# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028511if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28513else
28514 with_windows_font_dir=''
28515fi
28516
28517if test "$with_windows_font_dir" != '' ; then
28518 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28519fi
28520
28521
28522#
28523# Check for WMF delegate library.
28524#
28525
28526# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028527if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028528 withval=$with_wmf; with_wmf=$withval
28529else
cristy8d63d1d2010-01-06 20:38:37 +000028530 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028531fi
28532
28533
28534if test "$with_wmf" != 'yes'; then
28535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28536fi
28537
28538have_wmf='no'
28539WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000028540if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028542$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028544$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000028547 failed=0
28548 passed=0
28549 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
28550if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
28551 passed=`expr $passed + 1`
28552else
28553 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028554fi
28555
28556
cristy735e8942010-04-02 20:32:57 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
28558$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
28559if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028560 $as_echo_n "(cached) " >&6
28561else
28562 ac_check_lib_save_LIBS=$LIBS
cristy735e8942010-04-02 20:32:57 +000028563LIBS="-lwmf $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028565/* end confdefs.h. */
28566
28567/* Override any GCC internal prototype to avoid an error.
28568 Use char because int might match the return type of a GCC
28569 builtin and then its argument prototype would still apply. */
28570#ifdef __cplusplus
28571extern "C"
28572#endif
cristy735e8942010-04-02 20:32:57 +000028573char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000028574int
28575main ()
28576{
cristy735e8942010-04-02 20:32:57 +000028577return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000028578 ;
28579 return 0;
28580}
28581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028582if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000028583 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000028584else
cristy735e8942010-04-02 20:32:57 +000028585 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000028586fi
cristy8b350f62009-11-15 23:12:43 +000028587rm -f core conftest.err conftest.$ac_objext \
28588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028589LIBS=$ac_check_lib_save_LIBS
28590fi
cristy735e8942010-04-02 20:32:57 +000028591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
28592$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
28593if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
28594 passed=`expr $passed + 1`
28595else
28596 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028597fi
28598
cristy735e8942010-04-02 20:32:57 +000028599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
28600$as_echo_n "checking if WMF package is complete... " >&6; }
28601 if test $passed -gt 0; then
28602 if test $failed -gt 0; then
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28604$as_echo "no -- some components failed test" >&6; }
28605 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000028606 else
cristy735e8942010-04-02 20:32:57 +000028607 WMF_LIBS='-lwmf -lwmflite'
28608 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028609
cristy8b350f62009-11-15 23:12:43 +000028610$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028611
cristy735e8942010-04-02 20:32:57 +000028612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028613$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000028614 have_wmf='yes'
28615 fi
cristy3ed852e2009-09-05 21:47:34 +000028616 else
cristy8b350f62009-11-15 23:12:43 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028618$as_echo "no" >&6; }
28619 fi
28620fi
28621 if test "$have_wmf" = 'yes'; then
28622 WMF_DELEGATE_TRUE=
28623 WMF_DELEGATE_FALSE='#'
28624else
28625 WMF_DELEGATE_TRUE='#'
28626 WMF_DELEGATE_FALSE=
28627fi
28628
28629
28630
28631
28632
cristy735e8942010-04-02 20:32:57 +000028633
cristy3ed852e2009-09-05 21:47:34 +000028634#
28635# Check for XML delegate library.
28636#
28637
28638# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000028639if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028640 withval=$with_xml; with_xml=$withval
28641else
28642 with_xml=$have_x
28643fi
28644
28645
28646if test "$with_xml" != 'yes' ; then
28647 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28648fi
28649
28650have_xml='no'
28651XML_LIBS=''
28652if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028654$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000028656$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028658$as_echo "" >&6; }
28659 PERSIST_LDFLAGS=$LDFLAGS
28660 PERSIST_CPPFLAGS=$CPPFLAGS
28661 xml2_config=''
28662 for ac_prog in xml2-config
28663do
28664 # Extract the first word of "$ac_prog", so it can be a program name with args.
28665set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028668if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028669 $as_echo_n "(cached) " >&6
28670else
28671 if test -n "$xml2_config"; then
28672 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28673else
28674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28675for as_dir in $PATH
28676do
28677 IFS=$as_save_IFS
28678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28681 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028683 break 2
28684 fi
28685done
cristy8b350f62009-11-15 23:12:43 +000028686 done
cristy3ed852e2009-09-05 21:47:34 +000028687IFS=$as_save_IFS
28688
28689fi
28690fi
28691xml2_config=$ac_cv_prog_xml2_config
28692if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000028693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028694$as_echo "$xml2_config" >&6; }
28695else
cristy8b350f62009-11-15 23:12:43 +000028696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028697$as_echo "no" >&6; }
28698fi
28699
28700
28701 test -n "$xml2_config" && break
28702done
28703 if test -n "$xml2_config"; then
28704 # Debian installs libxml headers under /usr/include/libxml2/libxml with
28705 # the shared library installed under /usr/lib, whereas the package
28706 # installs itself under $prefix/libxml and $prefix/lib.
28707 xml2_prefix=`xml2-config --prefix`
28708 if test -d "${xml2_prefix}/include/libxml2"; then
28709 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28710 fi
28711 if test "${xml2_prefix}" != '/usr'; then
28712 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28713 fi
28714 fi
28715 failed=0
28716 passed=0
cristy8b350f62009-11-15 23:12:43 +000028717 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28718if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028719 passed=`expr $passed + 1`
28720else
28721 failed=`expr $failed + 1`
28722fi
28723
28724
cristy8b350f62009-11-15 23:12:43 +000028725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028726$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028727if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028728 $as_echo_n "(cached) " >&6
28729else
28730 ac_check_lib_save_LIBS=$LIBS
28731LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028733/* end confdefs.h. */
28734
28735/* Override any GCC internal prototype to avoid an error.
28736 Use char because int might match the return type of a GCC
28737 builtin and then its argument prototype would still apply. */
28738#ifdef __cplusplus
28739extern "C"
28740#endif
28741char xmlParseExternalEntity ();
28742int
28743main ()
28744{
28745return xmlParseExternalEntity ();
28746 ;
28747 return 0;
28748}
28749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028750if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028751 ac_cv_lib_xml2_xmlParseExternalEntity=yes
28752else
cristy8b350f62009-11-15 23:12:43 +000028753 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000028754fi
cristy8b350f62009-11-15 23:12:43 +000028755rm -f core conftest.err conftest.$ac_objext \
28756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028757LIBS=$ac_check_lib_save_LIBS
28758fi
cristy8b350f62009-11-15 23:12:43 +000028759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000028760$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028761if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028762 passed=`expr $passed + 1`
28763else
28764 failed=`expr $failed + 1`
28765fi
28766
cristy8b350f62009-11-15 23:12:43 +000028767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028768$as_echo_n "checking if XML package is complete... " >&6; }
28769 if test $passed -gt 0; then
28770 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028772$as_echo "no -- some components failed test" >&6; }
28773 have_xml='no (failed tests)'
28774 LDFLAGS="$PERSIST_LDFLAGS"
28775 CPPFLAGS="$PERSIST_CPPFLAGS"
28776 else
28777 XML_LIBS='-lxml2'
28778 LIBS="$XML_LIBS $LIBS"
28779
cristy8b350f62009-11-15 23:12:43 +000028780$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028781
cristy8b350f62009-11-15 23:12:43 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028783$as_echo "yes" >&6; }
28784 have_xml='yes'
28785 fi
28786 else
cristy8b350f62009-11-15 23:12:43 +000028787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028788$as_echo "no" >&6; }
28789 fi
28790fi
28791 if test "$have_xml" = 'yes'; then
28792 XML_DELEGATE_TRUE=
28793 XML_DELEGATE_FALSE='#'
28794else
28795 XML_DELEGATE_TRUE='#'
28796 XML_DELEGATE_FALSE=
28797fi
28798
28799
28800
28801
28802# Substitute compiler name to build/link PerlMagick
28803#
28804
28805
28806#
28807# Configure install Paths
28808#
28809
28810# Subdirectory under lib to place ImageMagick lib files
28811LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28812
28813cat >>confdefs.h <<_ACEOF
28814#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28815_ACEOF
28816
28817
28818# Path to ImageMagick bin directory
28819EXECUTABLE_PATH="${BIN_DIR}"
28820DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28821case "${build_os}" in
28822 mingw* )
28823 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28824 ;;
28825esac
28826
28827cat >>confdefs.h <<_ACEOF
28828#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28829_ACEOF
28830
28831
28832
28833# Path to ImageMagick lib
28834LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28835DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28836case "${build_os}" in
28837 mingw* )
28838 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28839 ;;
28840esac
28841
28842cat >>confdefs.h <<_ACEOF
28843#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28844_ACEOF
28845
28846
28847
28848# Subdirectory under lib to place ImageMagick configuration files
28849CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28850
28851cat >>confdefs.h <<_ACEOF
28852#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
28853_ACEOF
28854
28855CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28856DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28857case "${build_os}" in
28858 mingw* )
28859 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
28860 ;;
28861esac
28862
28863cat >>confdefs.h <<_ACEOF
28864#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
28865_ACEOF
28866
28867
28868
28869#
28870# Subdirectory under lib to place ImageMagick coder module files
28871CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
28872
28873cat >>confdefs.h <<_ACEOF
28874#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
28875_ACEOF
28876
28877CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
28878DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
28879case "${build_os}" in
28880 mingw* )
28881 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
28882 ;;
28883esac
28884
28885cat >>confdefs.h <<_ACEOF
28886#define CODER_PATH "$DEFINE_CODER_PATH"
28887_ACEOF
28888
28889
28890
28891#
28892# Subdirectory under lib to place ImageMagick filter module files
28893FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
28894
28895cat >>confdefs.h <<_ACEOF
28896#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
28897_ACEOF
28898
28899FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
28900DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
28901case "${build_os}" in
28902 mingw* )
28903 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28904 ;;
28905esac
28906
28907cat >>confdefs.h <<_ACEOF
28908#define FILTER_PATH "$DEFINE_FILTER_PATH"
28909_ACEOF
28910
28911
28912
28913#
28914# Path to ImageMagick documentation files
28915DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28916DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28917DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28918case "${build_os}" in
28919 mingw* )
28920 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28921 ;;
28922esac
28923
28924cat >>confdefs.h <<_ACEOF
28925#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28926_ACEOF
28927
28928
28929
28930#
28931# Path to ImageMagick share files
28932SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28933SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28934DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28935case "${build_os}" in
28936 mingw* )
28937 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28938 ;;
28939esac
28940
28941cat >>confdefs.h <<_ACEOF
28942#define SHARE_PATH "$DEFINE_SHARE_PATH"
28943_ACEOF
28944
28945
28946
28947# Subdirectory under share to place ImageMagick configuration files
28948SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28949
28950cat >>confdefs.h <<_ACEOF
28951#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28952_ACEOF
28953
28954SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28955DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28956case "${build_os}" in
28957 mingw* )
28958 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28959 ;;
28960esac
28961
28962cat >>confdefs.h <<_ACEOF
28963#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28964_ACEOF
28965
28966
28967
28968#
28969# program_transform_name is formed for use in a Makefile, so create a
28970# modified version for use in a shell script.
28971configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28972
28973# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000028974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028977$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028979$as_echo "" >&6; }
28980AutotraceDecodeDelegateDefault='autotrace'
28981AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000028982BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000028983BZIPDelegateDefault='bzip2'
28984BrowseDelegateDefault='xdg-open'
28985CGMDecodeDelegateDefault='ralcgm'
28986CatDelegateDefault='cat'
28987DNGDecodeDelegateDefault='ufraw-batch'
28988GVCDecodeDelegateDefault='dot'
28989DVIDecodeDelegateDefault='dvips'
28990EchoDelegateDefault='echo'
28991EditorDelegateDefault='xterm'
28992FIGDecodeDelegateDefault='fig2dev'
28993ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28994DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28995MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28996GnuplotDecodeDelegateDefault='gnuplot'
28997HDRDecodeDelegateDefault='ra_pfm'
28998HPGLDecodeDelegateDefault='hp2xx'
28999HTMLDecodeDelegateDefault='html2ps'
29000ILBMDecodeDelegateDefault='ilbmtoppm'
29001ILBMEncodeDelegateDefault='ppmtoilbm'
29002LPDelegateDefault='lp'
29003LPRDelegateDefault='lpr'
29004LZWDecodeDelegateDefault='uncompress'
29005LZWEncodeDelegateDefault='compress'
29006LaunchDelegateDefault='gimp'
29007MANDelegateDefault='groff'
29008MPEGDecodeDelegateDefault='ffmpeg'
29009MPEGEncodeDelegateDefault='ffmpeg'
29010MVDelegateDefault='mv'
29011PCLDelegateDefault='pcl6'
29012PGPDecodeDelegateDefault='pgpv'
29013POVDelegateDefault='povray'
29014if test "$native_win32_build" = 'yes'; then
29015 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029016elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029017 PSDelegateDefault='gsc'
29018else
29019 PSDelegateDefault='gs'
29020fi
29021RLEEncodeDelegateDefault='rawtorle'
29022RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029023RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029024SCANDecodeDelegateDefault='scanimage'
29025TXTDelegateDefault='enscript'
29026WMFDecodeDelegateDefault='wmf2eps'
29027WWWDecodeDelegateDefault='curl'
29028XPSDelegateDefault='gxps'
29029ZipDelegateDefault='gzip'
29030
29031# Search for delegates
29032# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29033set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029035$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029036if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029037 $as_echo_n "(cached) " >&6
29038else
29039 case $AutotraceDecodeDelegate in
29040 [\\/]* | ?:[\\/]*)
29041 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29042 ;;
29043 *)
29044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29045for as_dir in $PATH
29046do
29047 IFS=$as_save_IFS
29048 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29051 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029053 break 2
29054 fi
29055done
cristy8b350f62009-11-15 23:12:43 +000029056 done
cristy3ed852e2009-09-05 21:47:34 +000029057IFS=$as_save_IFS
29058
29059 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29060 ;;
29061esac
29062fi
29063AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29064if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029066$as_echo "$AutotraceDecodeDelegate" >&6; }
29067else
cristy8b350f62009-11-15 23:12:43 +000029068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029069$as_echo "no" >&6; }
29070fi
29071
29072
29073# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29074set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029076$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029077if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029078 $as_echo_n "(cached) " >&6
29079else
29080 case $AVIDecodeDelegate in
29081 [\\/]* | ?:[\\/]*)
29082 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29083 ;;
29084 *)
29085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29086for as_dir in $PATH
29087do
29088 IFS=$as_save_IFS
29089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29092 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029094 break 2
29095 fi
29096done
cristy8b350f62009-11-15 23:12:43 +000029097 done
cristy3ed852e2009-09-05 21:47:34 +000029098IFS=$as_save_IFS
29099
29100 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29101 ;;
29102esac
29103fi
29104AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29105if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029107$as_echo "$AVIDecodeDelegate" >&6; }
29108else
cristy8b350f62009-11-15 23:12:43 +000029109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029110$as_echo "no" >&6; }
29111fi
29112
29113
29114# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29115set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029117$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029118if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029119 $as_echo_n "(cached) " >&6
29120else
29121 case $BlenderDecodeDelegate in
29122 [\\/]* | ?:[\\/]*)
29123 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29124 ;;
29125 *)
29126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29127for as_dir in $PATH
29128do
29129 IFS=$as_save_IFS
29130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29133 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029135 break 2
29136 fi
29137done
cristy8b350f62009-11-15 23:12:43 +000029138 done
cristy3ed852e2009-09-05 21:47:34 +000029139IFS=$as_save_IFS
29140
29141 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29142 ;;
29143esac
29144fi
29145BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29146if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029148$as_echo "$BlenderDecodeDelegate" >&6; }
29149else
cristy8b350f62009-11-15 23:12:43 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029151$as_echo "no" >&6; }
29152fi
29153
29154
29155# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29156set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029158$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029159if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029160 $as_echo_n "(cached) " >&6
29161else
29162 case $BZIPDelegate in
29163 [\\/]* | ?:[\\/]*)
29164 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29165 ;;
29166 *)
29167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29168for as_dir in $PATH
29169do
29170 IFS=$as_save_IFS
29171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29174 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029176 break 2
29177 fi
29178done
cristy8b350f62009-11-15 23:12:43 +000029179 done
cristy3ed852e2009-09-05 21:47:34 +000029180IFS=$as_save_IFS
29181
29182 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29183 ;;
29184esac
29185fi
29186BZIPDelegate=$ac_cv_path_BZIPDelegate
29187if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029189$as_echo "$BZIPDelegate" >&6; }
29190else
cristy8b350f62009-11-15 23:12:43 +000029191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029192$as_echo "no" >&6; }
29193fi
29194
29195
29196# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29197set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029199$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029200if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029201 $as_echo_n "(cached) " >&6
29202else
29203 case $BrowseDelegate in
29204 [\\/]* | ?:[\\/]*)
29205 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29206 ;;
29207 *)
29208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29209for as_dir in $PATH
29210do
29211 IFS=$as_save_IFS
29212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29215 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029217 break 2
29218 fi
29219done
cristy8b350f62009-11-15 23:12:43 +000029220 done
cristy3ed852e2009-09-05 21:47:34 +000029221IFS=$as_save_IFS
29222
29223 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29224 ;;
29225esac
29226fi
29227BrowseDelegate=$ac_cv_path_BrowseDelegate
29228if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029230$as_echo "$BrowseDelegate" >&6; }
29231else
cristy8b350f62009-11-15 23:12:43 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029233$as_echo "no" >&6; }
29234fi
29235
29236
29237# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29238set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029240$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029241if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029242 $as_echo_n "(cached) " >&6
29243else
29244 case $CGMDecodeDelegate in
29245 [\\/]* | ?:[\\/]*)
29246 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29247 ;;
29248 *)
29249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29250for as_dir in $PATH
29251do
29252 IFS=$as_save_IFS
29253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29256 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029258 break 2
29259 fi
29260done
cristy8b350f62009-11-15 23:12:43 +000029261 done
cristy3ed852e2009-09-05 21:47:34 +000029262IFS=$as_save_IFS
29263
29264 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29265 ;;
29266esac
29267fi
29268CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29269if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo "$CGMDecodeDelegate" >&6; }
29272else
cristy8b350f62009-11-15 23:12:43 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029274$as_echo "no" >&6; }
29275fi
29276
29277
29278# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29279set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029281$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029282if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029283 $as_echo_n "(cached) " >&6
29284else
29285 case $CatDelegate in
29286 [\\/]* | ?:[\\/]*)
29287 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29288 ;;
29289 *)
29290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29291for as_dir in $PATH
29292do
29293 IFS=$as_save_IFS
29294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29297 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029299 break 2
29300 fi
29301done
cristy8b350f62009-11-15 23:12:43 +000029302 done
cristy3ed852e2009-09-05 21:47:34 +000029303IFS=$as_save_IFS
29304
29305 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29306 ;;
29307esac
29308fi
29309CatDelegate=$ac_cv_path_CatDelegate
29310if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029312$as_echo "$CatDelegate" >&6; }
29313else
cristy8b350f62009-11-15 23:12:43 +000029314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029315$as_echo "no" >&6; }
29316fi
29317
29318
29319# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29320set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029322$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029323if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029324 $as_echo_n "(cached) " >&6
29325else
29326 case $DNGDecodeDelegate in
29327 [\\/]* | ?:[\\/]*)
29328 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29329 ;;
29330 *)
29331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29332for as_dir in $PATH
29333do
29334 IFS=$as_save_IFS
29335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29338 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029340 break 2
29341 fi
29342done
cristy8b350f62009-11-15 23:12:43 +000029343 done
cristy3ed852e2009-09-05 21:47:34 +000029344IFS=$as_save_IFS
29345
29346 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29347 ;;
29348esac
29349fi
29350DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29351if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029353$as_echo "$DNGDecodeDelegate" >&6; }
29354else
cristy8b350f62009-11-15 23:12:43 +000029355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029356$as_echo "no" >&6; }
29357fi
29358
29359
29360# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29361set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029363$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029364if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029365 $as_echo_n "(cached) " >&6
29366else
29367 case $GVCDecodeDelegate in
29368 [\\/]* | ?:[\\/]*)
29369 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29370 ;;
29371 *)
29372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29373for as_dir in $PATH
29374do
29375 IFS=$as_save_IFS
29376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29379 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381 break 2
29382 fi
29383done
cristy8b350f62009-11-15 23:12:43 +000029384 done
cristy3ed852e2009-09-05 21:47:34 +000029385IFS=$as_save_IFS
29386
29387 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29388 ;;
29389esac
29390fi
29391GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29392if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029394$as_echo "$GVCDecodeDelegate" >&6; }
29395else
cristy8b350f62009-11-15 23:12:43 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029397$as_echo "no" >&6; }
29398fi
29399
29400
29401# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29402set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029404$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029405if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029406 $as_echo_n "(cached) " >&6
29407else
29408 case $DVIDecodeDelegate in
29409 [\\/]* | ?:[\\/]*)
29410 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29411 ;;
29412 *)
29413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29414for as_dir in $PATH
29415do
29416 IFS=$as_save_IFS
29417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29420 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029422 break 2
29423 fi
29424done
cristy8b350f62009-11-15 23:12:43 +000029425 done
cristy3ed852e2009-09-05 21:47:34 +000029426IFS=$as_save_IFS
29427
29428 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29429 ;;
29430esac
29431fi
29432DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29433if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029435$as_echo "$DVIDecodeDelegate" >&6; }
29436else
cristy8b350f62009-11-15 23:12:43 +000029437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029438$as_echo "no" >&6; }
29439fi
29440
29441
29442# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29443set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029445$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029446if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029447 $as_echo_n "(cached) " >&6
29448else
29449 case $EchoDelegate in
29450 [\\/]* | ?:[\\/]*)
29451 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29452 ;;
29453 *)
29454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29455for as_dir in $PATH
29456do
29457 IFS=$as_save_IFS
29458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29461 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029463 break 2
29464 fi
29465done
cristy8b350f62009-11-15 23:12:43 +000029466 done
cristy3ed852e2009-09-05 21:47:34 +000029467IFS=$as_save_IFS
29468
29469 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29470 ;;
29471esac
29472fi
29473EchoDelegate=$ac_cv_path_EchoDelegate
29474if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029476$as_echo "$EchoDelegate" >&6; }
29477else
cristy8b350f62009-11-15 23:12:43 +000029478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029479$as_echo "no" >&6; }
29480fi
29481
29482
29483# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29484set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029486$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029487if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029488 $as_echo_n "(cached) " >&6
29489else
29490 case $EditorDelegate in
29491 [\\/]* | ?:[\\/]*)
29492 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29493 ;;
29494 *)
29495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29496for as_dir in $PATH
29497do
29498 IFS=$as_save_IFS
29499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29502 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029504 break 2
29505 fi
29506done
cristy8b350f62009-11-15 23:12:43 +000029507 done
cristy3ed852e2009-09-05 21:47:34 +000029508IFS=$as_save_IFS
29509
29510 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29511 ;;
29512esac
29513fi
29514EditorDelegate=$ac_cv_path_EditorDelegate
29515if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029517$as_echo "$EditorDelegate" >&6; }
29518else
cristy8b350f62009-11-15 23:12:43 +000029519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029520$as_echo "no" >&6; }
29521fi
29522
29523
29524# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29525set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029527$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029528if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029529 $as_echo_n "(cached) " >&6
29530else
29531 case $FIGDecodeDelegate in
29532 [\\/]* | ?:[\\/]*)
29533 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29534 ;;
29535 *)
29536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29537for as_dir in $PATH
29538do
29539 IFS=$as_save_IFS
29540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29543 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029545 break 2
29546 fi
29547done
cristy8b350f62009-11-15 23:12:43 +000029548 done
cristy3ed852e2009-09-05 21:47:34 +000029549IFS=$as_save_IFS
29550
29551 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29552 ;;
29553esac
29554fi
29555FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29556if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029558$as_echo "$FIGDecodeDelegate" >&6; }
29559else
cristy8b350f62009-11-15 23:12:43 +000029560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029561$as_echo "no" >&6; }
29562fi
29563
29564
29565# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29566set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029568$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029569if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029570 $as_echo_n "(cached) " >&6
29571else
29572 case $ConvertDelegate in
29573 [\\/]* | ?:[\\/]*)
29574 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29575 ;;
29576 *)
29577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29578for as_dir in $PATH
29579do
29580 IFS=$as_save_IFS
29581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29584 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029586 break 2
29587 fi
29588done
cristy8b350f62009-11-15 23:12:43 +000029589 done
cristy3ed852e2009-09-05 21:47:34 +000029590IFS=$as_save_IFS
29591
29592 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29593 ;;
29594esac
29595fi
29596ConvertDelegate=$ac_cv_path_ConvertDelegate
29597if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029599$as_echo "$ConvertDelegate" >&6; }
29600else
cristy8b350f62009-11-15 23:12:43 +000029601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029602$as_echo "no" >&6; }
29603fi
29604
29605
29606# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29607set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029609$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029610if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029611 $as_echo_n "(cached) " >&6
29612else
29613 case $DisplayDelegate in
29614 [\\/]* | ?:[\\/]*)
29615 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29616 ;;
29617 *)
29618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29619for as_dir in $PATH
29620do
29621 IFS=$as_save_IFS
29622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29625 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627 break 2
29628 fi
29629done
cristy8b350f62009-11-15 23:12:43 +000029630 done
cristy3ed852e2009-09-05 21:47:34 +000029631IFS=$as_save_IFS
29632
29633 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29634 ;;
29635esac
29636fi
29637DisplayDelegate=$ac_cv_path_DisplayDelegate
29638if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029640$as_echo "$DisplayDelegate" >&6; }
29641else
cristy8b350f62009-11-15 23:12:43 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029643$as_echo "no" >&6; }
29644fi
29645
29646
29647# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29648set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029650$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029651if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029652 $as_echo_n "(cached) " >&6
29653else
29654 case $MogrifyDelegate in
29655 [\\/]* | ?:[\\/]*)
29656 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29657 ;;
29658 *)
29659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29660for as_dir in $PATH
29661do
29662 IFS=$as_save_IFS
29663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29666 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029668 break 2
29669 fi
29670done
cristy8b350f62009-11-15 23:12:43 +000029671 done
cristy3ed852e2009-09-05 21:47:34 +000029672IFS=$as_save_IFS
29673
29674 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29675 ;;
29676esac
29677fi
29678MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29679if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029681$as_echo "$MogrifyDelegate" >&6; }
29682else
cristy8b350f62009-11-15 23:12:43 +000029683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029684$as_echo "no" >&6; }
29685fi
29686
29687
29688# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29689set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029691$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029692if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029693 $as_echo_n "(cached) " >&6
29694else
29695 case $GnuplotDecodeDelegate in
29696 [\\/]* | ?:[\\/]*)
29697 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29698 ;;
29699 *)
29700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29701for as_dir in $PATH
29702do
29703 IFS=$as_save_IFS
29704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29707 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029709 break 2
29710 fi
29711done
cristy8b350f62009-11-15 23:12:43 +000029712 done
cristy3ed852e2009-09-05 21:47:34 +000029713IFS=$as_save_IFS
29714
29715 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29716 ;;
29717esac
29718fi
29719GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29720if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029722$as_echo "$GnuplotDecodeDelegate" >&6; }
29723else
cristy8b350f62009-11-15 23:12:43 +000029724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029725$as_echo "no" >&6; }
29726fi
29727
29728
29729# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29730set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029732$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029733if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029734 $as_echo_n "(cached) " >&6
29735else
29736 case $HDRDecodeDelegate in
29737 [\\/]* | ?:[\\/]*)
29738 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29739 ;;
29740 *)
29741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29742for as_dir in $PATH
29743do
29744 IFS=$as_save_IFS
29745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29748 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029750 break 2
29751 fi
29752done
cristy8b350f62009-11-15 23:12:43 +000029753 done
cristy3ed852e2009-09-05 21:47:34 +000029754IFS=$as_save_IFS
29755
29756 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29757 ;;
29758esac
29759fi
29760HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29761if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029763$as_echo "$HDRDecodeDelegate" >&6; }
29764else
cristy8b350f62009-11-15 23:12:43 +000029765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029766$as_echo "no" >&6; }
29767fi
29768
29769
29770# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29771set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029773$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029774if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029775 $as_echo_n "(cached) " >&6
29776else
29777 case $HPGLDecodeDelegate in
29778 [\\/]* | ?:[\\/]*)
29779 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29780 ;;
29781 *)
29782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29783for as_dir in $PATH
29784do
29785 IFS=$as_save_IFS
29786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29789 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791 break 2
29792 fi
29793done
cristy8b350f62009-11-15 23:12:43 +000029794 done
cristy3ed852e2009-09-05 21:47:34 +000029795IFS=$as_save_IFS
29796
29797 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29798 ;;
29799esac
29800fi
29801HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29802if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029804$as_echo "$HPGLDecodeDelegate" >&6; }
29805else
cristy8b350f62009-11-15 23:12:43 +000029806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029807$as_echo "no" >&6; }
29808fi
29809
29810
29811# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29812set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029814$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029815if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029816 $as_echo_n "(cached) " >&6
29817else
29818 case $HTMLDecodeDelegate in
29819 [\\/]* | ?:[\\/]*)
29820 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29821 ;;
29822 *)
29823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29824for as_dir in $PATH
29825do
29826 IFS=$as_save_IFS
29827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29830 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832 break 2
29833 fi
29834done
cristy8b350f62009-11-15 23:12:43 +000029835 done
cristy3ed852e2009-09-05 21:47:34 +000029836IFS=$as_save_IFS
29837
29838 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29839 ;;
29840esac
29841fi
29842HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29843if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029845$as_echo "$HTMLDecodeDelegate" >&6; }
29846else
cristy8b350f62009-11-15 23:12:43 +000029847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029848$as_echo "no" >&6; }
29849fi
29850
29851
29852# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
29853set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029855$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029856if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029857 $as_echo_n "(cached) " >&6
29858else
29859 case $ILBMDecodeDelegate in
29860 [\\/]* | ?:[\\/]*)
29861 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
29862 ;;
29863 *)
29864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29865for as_dir in $PATH
29866do
29867 IFS=$as_save_IFS
29868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29871 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029873 break 2
29874 fi
29875done
cristy8b350f62009-11-15 23:12:43 +000029876 done
cristy3ed852e2009-09-05 21:47:34 +000029877IFS=$as_save_IFS
29878
29879 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
29880 ;;
29881esac
29882fi
29883ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
29884if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029886$as_echo "$ILBMDecodeDelegate" >&6; }
29887else
cristy8b350f62009-11-15 23:12:43 +000029888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029889$as_echo "no" >&6; }
29890fi
29891
29892
29893# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
29894set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029896$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029897if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029898 $as_echo_n "(cached) " >&6
29899else
29900 case $ILBMEncodeDelegate in
29901 [\\/]* | ?:[\\/]*)
29902 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
29903 ;;
29904 *)
29905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29906for as_dir in $PATH
29907do
29908 IFS=$as_save_IFS
29909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29912 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029914 break 2
29915 fi
29916done
cristy8b350f62009-11-15 23:12:43 +000029917 done
cristy3ed852e2009-09-05 21:47:34 +000029918IFS=$as_save_IFS
29919
29920 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29921 ;;
29922esac
29923fi
29924ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29925if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029927$as_echo "$ILBMEncodeDelegate" >&6; }
29928else
cristy8b350f62009-11-15 23:12:43 +000029929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029930$as_echo "no" >&6; }
29931fi
29932
29933
29934# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29935set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029937$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029938if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029939 $as_echo_n "(cached) " >&6
29940else
29941 case $LPDelegate in
29942 [\\/]* | ?:[\\/]*)
29943 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29944 ;;
29945 *)
29946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29947for as_dir in $PATH
29948do
29949 IFS=$as_save_IFS
29950 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29953 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029955 break 2
29956 fi
29957done
cristy8b350f62009-11-15 23:12:43 +000029958 done
cristy3ed852e2009-09-05 21:47:34 +000029959IFS=$as_save_IFS
29960
29961 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29962 ;;
29963esac
29964fi
29965LPDelegate=$ac_cv_path_LPDelegate
29966if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029968$as_echo "$LPDelegate" >&6; }
29969else
cristy8b350f62009-11-15 23:12:43 +000029970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029971$as_echo "no" >&6; }
29972fi
29973
29974
29975# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29976set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029978$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029979if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029980 $as_echo_n "(cached) " >&6
29981else
29982 case $LPRDelegate in
29983 [\\/]* | ?:[\\/]*)
29984 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29985 ;;
29986 *)
29987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29988for as_dir in $PATH
29989do
29990 IFS=$as_save_IFS
29991 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29994 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029996 break 2
29997 fi
29998done
cristy8b350f62009-11-15 23:12:43 +000029999 done
cristy3ed852e2009-09-05 21:47:34 +000030000IFS=$as_save_IFS
30001
30002 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30003 ;;
30004esac
30005fi
30006LPRDelegate=$ac_cv_path_LPRDelegate
30007if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030009$as_echo "$LPRDelegate" >&6; }
30010else
cristy8b350f62009-11-15 23:12:43 +000030011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030012$as_echo "no" >&6; }
30013fi
30014
30015
30016# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30017set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030019$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030020if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030021 $as_echo_n "(cached) " >&6
30022else
30023 case $LZWDecodeDelegate in
30024 [\\/]* | ?:[\\/]*)
30025 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30026 ;;
30027 *)
30028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30029for as_dir in $PATH
30030do
30031 IFS=$as_save_IFS
30032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30035 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030037 break 2
30038 fi
30039done
cristy8b350f62009-11-15 23:12:43 +000030040 done
cristy3ed852e2009-09-05 21:47:34 +000030041IFS=$as_save_IFS
30042
30043 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30044 ;;
30045esac
30046fi
30047LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30048if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030050$as_echo "$LZWDecodeDelegate" >&6; }
30051else
cristy8b350f62009-11-15 23:12:43 +000030052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030053$as_echo "no" >&6; }
30054fi
30055
30056
30057# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30058set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030060$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030061if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030062 $as_echo_n "(cached) " >&6
30063else
30064 case $LZWEncodeDelegate in
30065 [\\/]* | ?:[\\/]*)
30066 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30067 ;;
30068 *)
30069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30070for as_dir in $PATH
30071do
30072 IFS=$as_save_IFS
30073 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30076 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030078 break 2
30079 fi
30080done
cristy8b350f62009-11-15 23:12:43 +000030081 done
cristy3ed852e2009-09-05 21:47:34 +000030082IFS=$as_save_IFS
30083
30084 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30085 ;;
30086esac
30087fi
30088LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30089if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030091$as_echo "$LZWEncodeDelegate" >&6; }
30092else
cristy8b350f62009-11-15 23:12:43 +000030093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030094$as_echo "no" >&6; }
30095fi
30096
30097
30098# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30099set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030101$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030102if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030103 $as_echo_n "(cached) " >&6
30104else
30105 case $LaunchDelegate in
30106 [\\/]* | ?:[\\/]*)
30107 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30108 ;;
30109 *)
30110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30111for as_dir in $PATH
30112do
30113 IFS=$as_save_IFS
30114 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030115 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30117 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030119 break 2
30120 fi
30121done
cristy8b350f62009-11-15 23:12:43 +000030122 done
cristy3ed852e2009-09-05 21:47:34 +000030123IFS=$as_save_IFS
30124
30125 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30126 ;;
30127esac
30128fi
30129LaunchDelegate=$ac_cv_path_LaunchDelegate
30130if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030132$as_echo "$LaunchDelegate" >&6; }
30133else
cristy8b350f62009-11-15 23:12:43 +000030134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030135$as_echo "no" >&6; }
30136fi
30137
30138
30139# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30140set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030142$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030143if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030144 $as_echo_n "(cached) " >&6
30145else
30146 case $MANDelegate in
30147 [\\/]* | ?:[\\/]*)
30148 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30149 ;;
30150 *)
30151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30152for as_dir in $PATH
30153do
30154 IFS=$as_save_IFS
30155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30158 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160 break 2
30161 fi
30162done
cristy8b350f62009-11-15 23:12:43 +000030163 done
cristy3ed852e2009-09-05 21:47:34 +000030164IFS=$as_save_IFS
30165
30166 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30167 ;;
30168esac
30169fi
30170MANDelegate=$ac_cv_path_MANDelegate
30171if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030173$as_echo "$MANDelegate" >&6; }
30174else
cristy8b350f62009-11-15 23:12:43 +000030175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030176$as_echo "no" >&6; }
30177fi
30178
30179
30180# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30181set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030183$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030184if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030185 $as_echo_n "(cached) " >&6
30186else
30187 case $MPEGDecodeDelegate in
30188 [\\/]* | ?:[\\/]*)
30189 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30190 ;;
30191 *)
30192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30193for as_dir in $PATH
30194do
30195 IFS=$as_save_IFS
30196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30199 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201 break 2
30202 fi
30203done
cristy8b350f62009-11-15 23:12:43 +000030204 done
cristy3ed852e2009-09-05 21:47:34 +000030205IFS=$as_save_IFS
30206
30207 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30208 ;;
30209esac
30210fi
30211MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30212if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030214$as_echo "$MPEGDecodeDelegate" >&6; }
30215else
cristy8b350f62009-11-15 23:12:43 +000030216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030217$as_echo "no" >&6; }
30218fi
30219
30220
30221# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30222set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030224$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030225if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030226 $as_echo_n "(cached) " >&6
30227else
30228 case $MPEGEncodeDelegate in
30229 [\\/]* | ?:[\\/]*)
30230 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30231 ;;
30232 *)
30233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30234for as_dir in $PATH
30235do
30236 IFS=$as_save_IFS
30237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30240 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030242 break 2
30243 fi
30244done
cristy8b350f62009-11-15 23:12:43 +000030245 done
cristy3ed852e2009-09-05 21:47:34 +000030246IFS=$as_save_IFS
30247
30248 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30249 ;;
30250esac
30251fi
30252MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30253if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030255$as_echo "$MPEGEncodeDelegate" >&6; }
30256else
cristy8b350f62009-11-15 23:12:43 +000030257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030258$as_echo "no" >&6; }
30259fi
30260
30261
30262# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30263set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030265$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030266if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030267 $as_echo_n "(cached) " >&6
30268else
30269 case $MVDelegate in
30270 [\\/]* | ?:[\\/]*)
30271 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30272 ;;
30273 *)
30274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30275for as_dir in $PATH
30276do
30277 IFS=$as_save_IFS
30278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30281 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030283 break 2
30284 fi
30285done
cristy8b350f62009-11-15 23:12:43 +000030286 done
cristy3ed852e2009-09-05 21:47:34 +000030287IFS=$as_save_IFS
30288
30289 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30290 ;;
30291esac
30292fi
30293MVDelegate=$ac_cv_path_MVDelegate
30294if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030296$as_echo "$MVDelegate" >&6; }
30297else
cristy8b350f62009-11-15 23:12:43 +000030298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030299$as_echo "no" >&6; }
30300fi
30301
30302
30303# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30304set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030306$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030307if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030308 $as_echo_n "(cached) " >&6
30309else
30310 case $PCLDelegate in
30311 [\\/]* | ?:[\\/]*)
30312 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30313 ;;
30314 *)
30315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30316for as_dir in $PATH
30317do
30318 IFS=$as_save_IFS
30319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30322 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030324 break 2
30325 fi
30326done
cristy8b350f62009-11-15 23:12:43 +000030327 done
cristy3ed852e2009-09-05 21:47:34 +000030328IFS=$as_save_IFS
30329
30330 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30331 ;;
30332esac
30333fi
30334PCLDelegate=$ac_cv_path_PCLDelegate
30335if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030337$as_echo "$PCLDelegate" >&6; }
30338else
cristy8b350f62009-11-15 23:12:43 +000030339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030340$as_echo "no" >&6; }
30341fi
30342
30343
30344# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30345set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030347$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030348if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030349 $as_echo_n "(cached) " >&6
30350else
30351 case $PGPDecodeDelegate in
30352 [\\/]* | ?:[\\/]*)
30353 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30354 ;;
30355 *)
30356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30357for as_dir in $PATH
30358do
30359 IFS=$as_save_IFS
30360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30363 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030365 break 2
30366 fi
30367done
cristy8b350f62009-11-15 23:12:43 +000030368 done
cristy3ed852e2009-09-05 21:47:34 +000030369IFS=$as_save_IFS
30370
30371 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30372 ;;
30373esac
30374fi
30375PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30376if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030378$as_echo "$PGPDecodeDelegate" >&6; }
30379else
cristy8b350f62009-11-15 23:12:43 +000030380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030381$as_echo "no" >&6; }
30382fi
30383
30384
30385# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30386set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030388$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030389if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030390 $as_echo_n "(cached) " >&6
30391else
30392 case $POVDelegate in
30393 [\\/]* | ?:[\\/]*)
30394 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30395 ;;
30396 *)
30397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30398for as_dir in $PATH
30399do
30400 IFS=$as_save_IFS
30401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30404 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030406 break 2
30407 fi
30408done
cristy8b350f62009-11-15 23:12:43 +000030409 done
cristy3ed852e2009-09-05 21:47:34 +000030410IFS=$as_save_IFS
30411
30412 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30413 ;;
30414esac
30415fi
30416POVDelegate=$ac_cv_path_POVDelegate
30417if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030419$as_echo "$POVDelegate" >&6; }
30420else
cristy8b350f62009-11-15 23:12:43 +000030421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030422$as_echo "no" >&6; }
30423fi
30424
30425
30426for ac_prog in gsx gsc "$PSDelegateDefault"
30427do
30428 # Extract the first word of "$ac_prog", so it can be a program name with args.
30429set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030432if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030433 $as_echo_n "(cached) " >&6
30434else
30435 case $PSDelegate in
30436 [\\/]* | ?:[\\/]*)
30437 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30438 ;;
30439 *)
30440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30441for as_dir in $PATH
30442do
30443 IFS=$as_save_IFS
30444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30447 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030449 break 2
30450 fi
30451done
cristy8b350f62009-11-15 23:12:43 +000030452 done
cristy3ed852e2009-09-05 21:47:34 +000030453IFS=$as_save_IFS
30454
30455 ;;
30456esac
30457fi
30458PSDelegate=$ac_cv_path_PSDelegate
30459if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030461$as_echo "$PSDelegate" >&6; }
30462else
cristy8b350f62009-11-15 23:12:43 +000030463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030464$as_echo "no" >&6; }
30465fi
30466
30467
30468 test -n "$PSDelegate" && break
30469done
30470test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30471
30472# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30473set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030475$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030476if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030477 $as_echo_n "(cached) " >&6
30478else
30479 case $RLEEncodeDelegate in
30480 [\\/]* | ?:[\\/]*)
30481 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30482 ;;
30483 *)
30484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30485for as_dir in $PATH
30486do
30487 IFS=$as_save_IFS
30488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30491 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030493 break 2
30494 fi
30495done
cristy8b350f62009-11-15 23:12:43 +000030496 done
cristy3ed852e2009-09-05 21:47:34 +000030497IFS=$as_save_IFS
30498
30499 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30500 ;;
30501esac
30502fi
30503RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30504if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030506$as_echo "$RLEEncodeDelegate" >&6; }
30507else
cristy8b350f62009-11-15 23:12:43 +000030508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "no" >&6; }
30510fi
30511
30512
30513# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30514set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030516$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030517if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030518 $as_echo_n "(cached) " >&6
30519else
30520 case $RMDelegate in
30521 [\\/]* | ?:[\\/]*)
30522 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30523 ;;
30524 *)
30525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30526for as_dir in $PATH
30527do
30528 IFS=$as_save_IFS
30529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30532 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030534 break 2
30535 fi
30536done
cristy8b350f62009-11-15 23:12:43 +000030537 done
cristy3ed852e2009-09-05 21:47:34 +000030538IFS=$as_save_IFS
30539
30540 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30541 ;;
30542esac
30543fi
30544RMDelegate=$ac_cv_path_RMDelegate
30545if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030547$as_echo "$RMDelegate" >&6; }
30548else
cristy8b350f62009-11-15 23:12:43 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo "no" >&6; }
30551fi
30552
30553
cristy4689cf02010-02-17 21:15:45 +000030554# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
30555set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
30556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30557$as_echo_n "checking for $ac_word... " >&6; }
30558if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
30559 $as_echo_n "(cached) " >&6
30560else
30561 case $RSVGDecodeDelegate in
30562 [\\/]* | ?:[\\/]*)
30563 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
30564 ;;
30565 *)
30566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30567for as_dir in $PATH
30568do
30569 IFS=$as_save_IFS
30570 test -z "$as_dir" && as_dir=.
30571 for ac_exec_ext in '' $ac_executable_extensions; do
30572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30573 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30575 break 2
30576 fi
30577done
30578 done
30579IFS=$as_save_IFS
30580
30581 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
30582 ;;
30583esac
30584fi
30585RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
30586if test -n "$RSVGDecodeDelegate"; then
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
30588$as_echo "$RSVGDecodeDelegate" >&6; }
30589else
30590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30591$as_echo "no" >&6; }
30592fi
30593
30594
cristy3ed852e2009-09-05 21:47:34 +000030595# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30596set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030598$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030599if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030600 $as_echo_n "(cached) " >&6
30601else
30602 case $SCANDecodeDelegate in
30603 [\\/]* | ?:[\\/]*)
30604 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30605 ;;
30606 *)
30607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30608for as_dir in $PATH
30609do
30610 IFS=$as_save_IFS
30611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30614 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030616 break 2
30617 fi
30618done
cristy8b350f62009-11-15 23:12:43 +000030619 done
cristy3ed852e2009-09-05 21:47:34 +000030620IFS=$as_save_IFS
30621
30622 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30623 ;;
30624esac
30625fi
30626SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30627if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030629$as_echo "$SCANDecodeDelegate" >&6; }
30630else
cristy8b350f62009-11-15 23:12:43 +000030631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632$as_echo "no" >&6; }
30633fi
30634
30635
30636# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30637set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030639$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030640if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030641 $as_echo_n "(cached) " >&6
30642else
30643 case $TXTDelegate in
30644 [\\/]* | ?:[\\/]*)
30645 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30646 ;;
30647 *)
30648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30649for as_dir in $PATH
30650do
30651 IFS=$as_save_IFS
30652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30655 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030657 break 2
30658 fi
30659done
cristy8b350f62009-11-15 23:12:43 +000030660 done
cristy3ed852e2009-09-05 21:47:34 +000030661IFS=$as_save_IFS
30662
30663 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30664 ;;
30665esac
30666fi
30667TXTDelegate=$ac_cv_path_TXTDelegate
30668if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030670$as_echo "$TXTDelegate" >&6; }
30671else
cristy8b350f62009-11-15 23:12:43 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673$as_echo "no" >&6; }
30674fi
30675
30676
30677# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30678set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030680$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030681if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030682 $as_echo_n "(cached) " >&6
30683else
30684 case $WMFDecodeDelegate in
30685 [\\/]* | ?:[\\/]*)
30686 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30687 ;;
30688 *)
30689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30690for as_dir in $PATH
30691do
30692 IFS=$as_save_IFS
30693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30696 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030698 break 2
30699 fi
30700done
cristy8b350f62009-11-15 23:12:43 +000030701 done
cristy3ed852e2009-09-05 21:47:34 +000030702IFS=$as_save_IFS
30703
30704 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30705 ;;
30706esac
30707fi
30708WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30709if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030711$as_echo "$WMFDecodeDelegate" >&6; }
30712else
cristy8b350f62009-11-15 23:12:43 +000030713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030714$as_echo "no" >&6; }
30715fi
30716
30717
30718# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30719set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030721$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030722if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030723 $as_echo_n "(cached) " >&6
30724else
30725 case $WWWDecodeDelegate in
30726 [\\/]* | ?:[\\/]*)
30727 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30728 ;;
30729 *)
30730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30731for as_dir in $PATH
30732do
30733 IFS=$as_save_IFS
30734 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30737 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030739 break 2
30740 fi
30741done
cristy8b350f62009-11-15 23:12:43 +000030742 done
cristy3ed852e2009-09-05 21:47:34 +000030743IFS=$as_save_IFS
30744
30745 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30746 ;;
30747esac
30748fi
30749WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30750if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030752$as_echo "$WWWDecodeDelegate" >&6; }
30753else
cristy8b350f62009-11-15 23:12:43 +000030754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030755$as_echo "no" >&6; }
30756fi
30757
30758
30759# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30760set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030762$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030763if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030764 $as_echo_n "(cached) " >&6
30765else
30766 case $XPSDelegate in
30767 [\\/]* | ?:[\\/]*)
30768 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
30769 ;;
30770 *)
30771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30772for as_dir in $PATH
30773do
30774 IFS=$as_save_IFS
30775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30778 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030780 break 2
30781 fi
30782done
cristy8b350f62009-11-15 23:12:43 +000030783 done
cristy3ed852e2009-09-05 21:47:34 +000030784IFS=$as_save_IFS
30785
30786 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
30787 ;;
30788esac
30789fi
30790XPSDelegate=$ac_cv_path_XPSDelegate
30791if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030793$as_echo "$XPSDelegate" >&6; }
30794else
cristy8b350f62009-11-15 23:12:43 +000030795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030796$as_echo "no" >&6; }
30797fi
30798
30799
30800# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
30801set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030803$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030804if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030805 $as_echo_n "(cached) " >&6
30806else
30807 case $ZipDelegate in
30808 [\\/]* | ?:[\\/]*)
30809 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
30810 ;;
30811 *)
30812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30813for as_dir in $PATH
30814do
30815 IFS=$as_save_IFS
30816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30819 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030821 break 2
30822 fi
30823done
cristy8b350f62009-11-15 23:12:43 +000030824 done
cristy3ed852e2009-09-05 21:47:34 +000030825IFS=$as_save_IFS
30826
30827 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
30828 ;;
30829esac
30830fi
30831ZipDelegate=$ac_cv_path_ZipDelegate
30832if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030834$as_echo "$ZipDelegate" >&6; }
30835else
cristy8b350f62009-11-15 23:12:43 +000030836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837$as_echo "no" >&6; }
30838fi
30839
30840
30841
30842# Prefer lpr to lp; lp needs options tacked on.
30843if test "$LPRDelegate" != no; then
30844 PrintDelegate="$LPRDelegate"
30845else
30846 PrintDelegate="$LPDelegate -c -s"
30847fi
30848
30849
30850# Installed ImageMagick utiltity paths
30851ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
30852DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
30853MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
30854
30855# Set delegate booleans
30856have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
30857have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
30858have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
30859have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
30860have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
30861have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
30862have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
30863have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
30864have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
30865have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
30866have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
30867
30868#
30869# Test for font directories
30870#
30871type_include_files=''
30872
cristy430a7312010-01-21 20:44:04 +000030873# Dejavu fonts.
30874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
30875$as_echo_n "checking for Dejavu fonts directory... " >&6; }
30876dejavu_font_dir=''
30877if test "${with_dejavu_font_dir}" != 'default'; then
30878 dejavu_font_dir="${with_dejavu_font_dir}/"
30879else
30880 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
30881 if test -f "${font_dir}DejaVuSerif.ttf"; then
30882 dejavu_font_dir="${font_dir}"
30883 break 1
30884 fi
30885 done
30886fi
30887if test "${dejavu_font_dir}x" != 'x'; then
30888 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
30890$as_echo "$dejavu_font_dir" >&6; }
30891else
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30893$as_echo "not found!" >&6; };
30894fi
30895
30896
cristy3ed852e2009-09-05 21:47:34 +000030897# Windows
30898windows_font_dir=''
30899if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
30900 windows_font_dir="${with_windows_font_dir}/"
30901fi
cristy430a7312010-01-21 20:44:04 +000030902if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030903 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
30904 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
30905 fi
30906 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
30907 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
30908 fi
30909 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
30910 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
30911 fi
30912fi
cristy430a7312010-01-21 20:44:04 +000030913if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030914 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
30915fi
30916
30917
30918# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000030919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000030920$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
30921ghostscript_font_dir=''
30922if test "${with_gs_font_dir}" != 'default'; then
30923 ghostscript_font_dir="${with_gs_font_dir}/"
30924else
30925 if test "${native_win32_build}" = 'yes'; then
30926 # Native Windows Build
30927 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
30928 if test -f "${font_dir}a010013l.pfb"; then
30929 ghostscript_font_dir="$font_dir"
30930 break 1
30931 fi
30932 done
30933 if test "${PSDelegate}" != 'gswin32c'; then
30934 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
30935 fi
30936 else
30937 # Linux / Mac OS X / Unix Build
30938 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
30939 if test -f "${font_dir}a010013l.pfb"; then
30940 ghostscript_font_dir="${font_dir}"
30941 break 1
30942 fi
30943 done
30944 if test "${ghostscript_font_dir}x" = 'x'; then
30945 if test "$PSDelegate" != 'gs'; then
30946 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
30947 fi
30948 fi
30949 fi
30950fi
30951if test "${ghostscript_font_dir}x" != 'x'; then
30952 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000030953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000030954$as_echo "$ghostscript_font_dir" >&6; }
30955else
cristy8b350f62009-11-15 23:12:43 +000030956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000030957$as_echo "not found!" >&6; };
30958fi
30959
30960case "${build_os}" in
30961 mingw* )
30962 PSDelegate=`$WinPathScript "$PSDelegate" 1`
30963 ;;
30964esac
30965
30966
30967
30968#
30969# Handle case where user doesn't want frozen paths
30970#
30971if test "$with_frozenpaths" != 'yes'; then
30972 # Re-set delegate definitions to default (no paths)
30973 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30974 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30975 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30976 BZIPDelegate="$BZIPDelegateDefault"
30977 BrowseDelegate="$BrowseDelegateDefault"
30978 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30979 CatDelegate="$CatDelegateDefault"
30980 ConvertDelegate="$ConvertDelegateDefault"
30981 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30982 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30983 EchoDelegate="$EchoDelegateDefault"
30984 EditorDelegate="$EditorDelegateDefault"
30985 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30986 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30987 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30988 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30989 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30990 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30991 LPDelegate="$LPDelegateDefault"
30992 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30993 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30994 LaunchDelegate="$LaunchDelegateDefault"
30995 MANDelegate="$MANDelegateDefault"
30996 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30997 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30998 MVDelegate="$MVDelegateDefault"
30999 MogrifyDelegate="$MogrifyDelegateDefault"
31000 PCLDelegate="$PCLDelegateDefault"
31001 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31002 POVDelegate="$POVDelegateDefault"
31003 PSDelegate="$PSDelegateDefault"
31004 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31005 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31006 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031007 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031008 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31009 ShowImageDelegate="$ShowImageDelegateDefault"
31010 TXTDelegate="$TXTDelegateDefault"
31011 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31012 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31013 XPSDelegate="$XPSDelegateDefault"
31014 ZipDelegate="$ZipDelegateDefault"
31015fi
31016
31017# Delegate substitutions
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060#
31061# RPM support.
31062#
31063RPM=''
31064for ac_prog in gnutar gtar tar
31065do
31066 # Extract the first word of "$ac_prog", so it can be a program name with args.
31067set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031069$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031070if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031071 $as_echo_n "(cached) " >&6
31072else
31073 if test -n "$TAR"; then
31074 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31075else
31076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31077for as_dir in $PATH
31078do
31079 IFS=$as_save_IFS
31080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31083 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031085 break 2
31086 fi
31087done
cristy8b350f62009-11-15 23:12:43 +000031088 done
cristy3ed852e2009-09-05 21:47:34 +000031089IFS=$as_save_IFS
31090
31091fi
31092fi
31093TAR=$ac_cv_prog_TAR
31094if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031096$as_echo "$TAR" >&6; }
31097else
cristy8b350f62009-11-15 23:12:43 +000031098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031099$as_echo "no" >&6; }
31100fi
31101
31102
31103 test -n "$TAR" && break
31104done
31105
31106for ac_prog in perl
31107do
31108 # Extract the first word of "$ac_prog", so it can be a program name with args.
31109set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031111$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031112if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031113 $as_echo_n "(cached) " >&6
31114else
31115 if test -n "$PERL"; then
31116 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31117else
31118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31119for as_dir in $PATH
31120do
31121 IFS=$as_save_IFS
31122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31125 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031127 break 2
31128 fi
31129done
cristy8b350f62009-11-15 23:12:43 +000031130 done
cristy3ed852e2009-09-05 21:47:34 +000031131IFS=$as_save_IFS
31132
31133fi
31134fi
31135PERL=$ac_cv_prog_PERL
31136if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031138$as_echo "$PERL" >&6; }
31139else
cristy8b350f62009-11-15 23:12:43 +000031140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031141$as_echo "no" >&6; }
31142fi
31143
31144
31145 test -n "$PERL" && break
31146done
31147
31148for ac_prog in rpmbuild rpm
31149do
31150 # Extract the first word of "$ac_prog", so it can be a program name with args.
31151set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031153$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031154if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031155 $as_echo_n "(cached) " >&6
31156else
31157 if test -n "$RPM"; then
31158 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31159else
31160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31161for as_dir in $PATH
31162do
31163 IFS=$as_save_IFS
31164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31167 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031169 break 2
31170 fi
31171done
cristy8b350f62009-11-15 23:12:43 +000031172 done
cristy3ed852e2009-09-05 21:47:34 +000031173IFS=$as_save_IFS
31174
31175fi
31176fi
31177RPM=$ac_cv_prog_RPM
31178if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031180$as_echo "$RPM" >&6; }
31181else
cristy8b350f62009-11-15 23:12:43 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo "no" >&6; }
31184fi
31185
31186
31187 test -n "$RPM" && break
31188done
31189
31190
31191ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31192
31193
31194AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31195
31196
31197AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31198
31199
31200AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31201
31202
31203 if test "x$RPM" != "x" ; then
31204 RPM_DELEGATE_TRUE=
31205 RPM_DELEGATE_FALSE='#'
31206else
31207 RPM_DELEGATE_TRUE='#'
31208 RPM_DELEGATE_FALSE=
31209fi
31210
31211
31212#
31213# 7ZIP support (http://p7zip.sourceforge.net/)
31214#
31215P7ZIP=''
31216for ac_prog in 7za
31217do
31218 # Extract the first word of "$ac_prog", so it can be a program name with args.
31219set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031221$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031222if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031223 $as_echo_n "(cached) " >&6
31224else
31225 if test -n "$P7ZIP"; then
31226 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31227else
31228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31229for as_dir in $PATH
31230do
31231 IFS=$as_save_IFS
31232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31235 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031237 break 2
31238 fi
31239done
cristy8b350f62009-11-15 23:12:43 +000031240 done
cristy3ed852e2009-09-05 21:47:34 +000031241IFS=$as_save_IFS
31242
31243fi
31244fi
31245P7ZIP=$ac_cv_prog_P7ZIP
31246if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031248$as_echo "$P7ZIP" >&6; }
31249else
cristy8b350f62009-11-15 23:12:43 +000031250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031251$as_echo "no" >&6; }
31252fi
31253
31254
31255 test -n "$P7ZIP" && break
31256done
31257
31258
31259 if test "x$P7ZIP" != "x" ; then
31260 P7ZIP_DELEGATE_TRUE=
31261 P7ZIP_DELEGATE_FALSE='#'
31262else
31263 P7ZIP_DELEGATE_TRUE='#'
31264 P7ZIP_DELEGATE_FALSE=
31265fi
31266
31267
31268#
31269# ZIP support (http://www.info-zip.org/Zip.html)
31270#
31271ZIP=''
31272for ac_prog in zip
31273do
31274 # Extract the first word of "$ac_prog", so it can be a program name with args.
31275set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031277$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031278if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031279 $as_echo_n "(cached) " >&6
31280else
31281 if test -n "$ZIP"; then
31282 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31283else
31284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31285for as_dir in $PATH
31286do
31287 IFS=$as_save_IFS
31288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31291 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293 break 2
31294 fi
31295done
cristy8b350f62009-11-15 23:12:43 +000031296 done
cristy3ed852e2009-09-05 21:47:34 +000031297IFS=$as_save_IFS
31298
31299fi
31300fi
31301ZIP=$ac_cv_prog_ZIP
31302if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031304$as_echo "$ZIP" >&6; }
31305else
cristy8b350f62009-11-15 23:12:43 +000031306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031307$as_echo "no" >&6; }
31308fi
31309
31310
31311 test -n "$ZIP" && break
31312done
31313
31314
31315 if test "x$ZIP" != "x" ; then
31316 ZIP_DELEGATE_TRUE=
31317 ZIP_DELEGATE_FALSE='#'
31318else
31319 ZIP_DELEGATE_TRUE='#'
31320 ZIP_DELEGATE_FALSE=
31321fi
31322
31323
31324#
31325# GhostPCL related configuration.
31326#
31327PCLColorDevice=ppmraw
31328PCLCMYKDevice=bmpsep8
31329PCLMonoDevice=pbmraw
31330if test -z "$PCLVersion"; then
31331 PCLVersion='unknown'
31332fi
31333if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031335$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031337$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031339$as_echo "" >&6; }
31340 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031342$as_echo_n "checking for pcl color device... " >&6; }
31343 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31344 :
31345 else
31346 PCLColorDevice=ppmraw
31347 fi
cristy8b350f62009-11-15 23:12:43 +000031348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031349$as_echo "$PCLColorDevice" >&6; }
31350
31351 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031353$as_echo_n "checking for pcl CMYK device... " >&6; }
31354 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31355 :
31356 else
31357 PCLCMYKDevice=$PCLColorDevice
31358 fi
cristy8b350f62009-11-15 23:12:43 +000031359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031360$as_echo "$PCLCMYKDevice" >&6; }
31361
31362 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031364$as_echo_n "checking for pcl mono device... " >&6; }
31365 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31366 :
31367 else
31368 PCLMonoDevice=$PCLColorDevice
31369 fi
cristy8b350f62009-11-15 23:12:43 +000031370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031371$as_echo "$PCLMonoDevice" >&6; }
31372fi
31373
31374
31375
31376
31377
31378
31379#
31380# GhostXPS related configuration.
31381#
31382XPSColorDevice=ppmraw
31383XPSCMYKDevice=bmpsep8
31384XPSMonoDevice=pbmraw
31385if test -z "$XPSVersion"; then
31386 XPSVersion='unknown'
31387fi
31388if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031390$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031392$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031394$as_echo "" >&6; }
31395 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031397$as_echo_n "checking for xps color device... " >&6; }
31398 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31399 :
31400 else
31401 XPSColorDevice=ppmraw
31402 fi
cristy8b350f62009-11-15 23:12:43 +000031403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031404$as_echo "$XPSColorDevice" >&6; }
31405
31406 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031408$as_echo_n "checking for xps CMYK device... " >&6; }
31409 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31410 :
31411 else
31412 XPSCMYKDevice=$XPSColorDevice
31413 fi
cristy8b350f62009-11-15 23:12:43 +000031414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031415$as_echo "$XPSCMYKDevice" >&6; }
31416
31417 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031419$as_echo_n "checking for xps mono device... " >&6; }
31420 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31421 :
31422 else
31423 XPSMonoDevice=$XPSColorDevice
31424 fi
cristy8b350f62009-11-15 23:12:43 +000031425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo "$XPSMonoDevice" >&6; }
31427fi
31428
31429
31430
31431
31432
31433
31434#
31435# Ghostscript related configuration.
31436#
31437if test "$have_png" = 'yes'; then
31438 GSAlphaDevice=pngalpha
31439else
31440 GSAlphaDevice=pnmraw
31441fi
31442GSColorDevice=pnmraw
31443GSCMYKDevice=pam
31444GSMonoDevice=pbmraw
31445GSPDFDevice=pdfwrite
31446GSPSDevice=pswrite
31447GSEPSDevice=epswrite
31448GSVersion='unknown'
31449if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031451$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031453$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031455$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031457$as_echo_n "checking for Ghostscript version... " >&6; }
31458 if GSVersion=`$PSDelegate --version`; then
31459 :
31460 else
31461 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31462 fi
cristy8b350f62009-11-15 23:12:43 +000031463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031464$as_echo "$GSVersion" >&6; }
31465
31466 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031468$as_echo_n "checking for gs alpha device... " >&6; }
31469 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31470 :
31471 else
31472 GSAlphaDevice=pnmraw
31473 fi
cristy8b350f62009-11-15 23:12:43 +000031474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031475$as_echo "$GSAlphaDevice" >&6; }
31476
31477 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031479$as_echo_n "checking for gs color device... " >&6; }
31480 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31481 :
31482 else
31483 GSColorDevice=pnmraw
31484 fi
cristy8b350f62009-11-15 23:12:43 +000031485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031486$as_echo "$GSColorDevice" >&6; }
31487
31488 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031490$as_echo_n "checking for gs CMYK device... " >&6; }
31491 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31492 :
31493 else
31494 GSCMYKDevice=bmpsep8
31495 fi
cristy8b350f62009-11-15 23:12:43 +000031496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031497$as_echo "$GSCMYKDevice" >&6; }
31498
31499 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031501$as_echo_n "checking for gs mono device... " >&6; }
31502 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31503 :
31504 else
31505 GSMonoDevice=$GSColorDevice
31506 fi
cristy8b350f62009-11-15 23:12:43 +000031507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo "$GSMonoDevice" >&6; }
31509
31510 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000031511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031512$as_echo_n "checking for gs PDF writing device... " >&6; }
31513 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31514 :
31515 else
31516 GSPDFDevice=nodevice
31517 fi
cristy8b350f62009-11-15 23:12:43 +000031518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031519$as_echo "$GSPDFDevice" >&6; }
31520
31521 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000031522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031523$as_echo_n "checking for gs PS writing device... " >&6; }
31524 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31525 :
31526 else
31527 GSPSDevice=nodevice
31528 fi
cristy8b350f62009-11-15 23:12:43 +000031529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031530$as_echo "$GSPSDevice" >&6; }
31531
31532 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000031533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031534$as_echo_n "checking for gs EPS writing device... " >&6; }
31535 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31536 :
31537 else
31538 GSEPSDevice=nodevice
31539 fi
cristy8b350f62009-11-15 23:12:43 +000031540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031541$as_echo "$GSEPSDevice" >&6; }
31542fi
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553#
31554# PerlMagick-related configuration
31555#
31556
31557# Look for PERL if PerlMagick requested
31558# If name/path of desired PERL interpreter is specified, look for that one first
31559have_perl='no'
31560if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031562$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031564$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031566$as_echo "" >&6; }
31567 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031569$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031570if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031571 $as_echo_n "(cached) " >&6
31572else
31573 ac_cv_path_PERL="$with_perl"
31574fi
cristy8b350f62009-11-15 23:12:43 +000031575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031576$as_echo "$ac_cv_path_PERL" >&6; };
31577 PERL=$ac_cv_path_PERL
31578 have_perl="$ac_cv_path_PERL"
31579 else
31580 for ac_prog in perl perl5
31581do
31582 # Extract the first word of "$ac_prog", so it can be a program name with args.
31583set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031585$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031586if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031587 $as_echo_n "(cached) " >&6
31588else
31589 case $PERL in
31590 [\\/]* | ?:[\\/]*)
31591 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31592 ;;
31593 *)
31594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31595for as_dir in $PATH
31596do
31597 IFS=$as_save_IFS
31598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31601 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031603 break 2
31604 fi
31605done
cristy8b350f62009-11-15 23:12:43 +000031606 done
cristy3ed852e2009-09-05 21:47:34 +000031607IFS=$as_save_IFS
31608
31609 ;;
31610esac
31611fi
31612PERL=$ac_cv_path_PERL
31613if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031615$as_echo "$PERL" >&6; }
31616else
cristy8b350f62009-11-15 23:12:43 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031618$as_echo "no" >&6; }
31619fi
31620
31621
31622 test -n "$PERL" && break
31623done
31624 if test "$ac_cv_path_PERL"; then
31625 have_perl="$ac_cv_path_PERL"
31626 fi
31627 fi
31628fi
31629
cristy949301e2010-01-06 01:38:40 +000031630if test "$with_perl" != 'yes' ; then
31631 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31632fi
31633
31634PERL_SUPPORTS_DESTDIR='no'
31635
cristy3ed852e2009-09-05 21:47:34 +000031636with_perl_static='no'
31637with_perl_dynamic='no'
31638if test "$have_perl" != 'no'; then
31639 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31640 with_perl_static='yes'
31641 fi
31642 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31643 with_perl_dynamic='yes'
31644 fi
31645 # Is PERL's MakeMaker new enough to support DESTDIR?
31646 # Make sure we have perl
31647if test -z "$PERL"; then
31648# Extract the first word of "perl", so it can be a program name with args.
31649set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031651$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031652if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031653 $as_echo_n "(cached) " >&6
31654else
31655 if test -n "$PERL"; then
31656 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31657else
31658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31659for as_dir in $PATH
31660do
31661 IFS=$as_save_IFS
31662 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031663 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31665 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000031666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031667 break 2
31668 fi
31669done
cristy8b350f62009-11-15 23:12:43 +000031670 done
cristy3ed852e2009-09-05 21:47:34 +000031671IFS=$as_save_IFS
31672
31673fi
31674fi
31675PERL=$ac_cv_prog_PERL
31676if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031678$as_echo "$PERL" >&6; }
31679else
cristy8b350f62009-11-15 23:12:43 +000031680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031681$as_echo "no" >&6; }
31682fi
31683
31684
31685fi
31686
31687# Check if version of Perl is sufficient
31688ac_perl_version="5.8.1"
31689
31690if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000031691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031692$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31693 # NB: It would be nice to log the error if there is one, but we cannot rely
31694 # on autoconf internals
31695 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31696 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000031697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031698$as_echo "no" >&6; };
31699 PERL_SUPPORTS_DESTDIR='no'
31700 else
cristy8b350f62009-11-15 23:12:43 +000031701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000031702$as_echo "ok" >&6; };
31703 PERL_SUPPORTS_DESTDIR='yes'
31704 fi
31705else
cristy8b350f62009-11-15 23:12:43 +000031706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031707$as_echo "$as_me: WARNING: could not find perl" >&2;}
31708fi
31709
31710fi
31711 if test "$have_perl" != 'no'; then
31712 WITH_PERL_TRUE=
31713 WITH_PERL_FALSE='#'
31714else
31715 WITH_PERL_TRUE='#'
31716 WITH_PERL_FALSE=
31717fi
31718
31719 if test $with_perl_static = 'yes'; then
31720 WITH_PERL_STATIC_TRUE=
31721 WITH_PERL_STATIC_FALSE='#'
31722else
31723 WITH_PERL_STATIC_TRUE='#'
31724 WITH_PERL_STATIC_FALSE=
31725fi
31726
31727 if test $with_perl_dynamic = 'yes'; then
31728 WITH_PERL_DYNAMIC_TRUE=
31729 WITH_PERL_DYNAMIC_FALSE='#'
31730else
31731 WITH_PERL_DYNAMIC_TRUE='#'
31732 WITH_PERL_DYNAMIC_FALSE=
31733fi
31734
31735
31736
31737# Determine path to pick up MagickCore library from for use with building PerlMagick
31738MAGICKCORE_PATH="${LIB_DIR}"
31739if test $with_perl_static = 'yes'; then
31740 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31741 libtool_objdir=$objdir
31742
31743 # Linker search path to library, followed by -lMagickCore
31744 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31745fi
31746
31747
31748# Create a simple string containing format names for all delegate libraries
31749DELEGATES=''
31750if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31751if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
31752if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
31753if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
31754if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
31755if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
31756if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
31757if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
31758if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
31759if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
31760if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
31761if test "$have_jpeg" = 'yes'; then
31762 DELEGATES="$DELEGATES jpeg";
31763 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
31764fi
31765if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
31766if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
31767if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
31768if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
31769if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
31770if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
31771if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
31772if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
31773if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
31774if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
31775if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
31776if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
31777
31778
31779
31780#
31781# Handle special compiler flags
31782#
31783
31784# Add '-p' if prof source profiling support enabled
31785if test "$enable_prof" = 'yes'; then
31786 CFLAGS="-p $CFLAGS"
31787 CXXFLAGS="-p $CXXFLAGS"
31788 LDFLAGS="-p $LDFLAGS"
31789fi
31790
31791# Add '-pg' if gprof source profiling support enabled
31792if test "$enable_gprof" = 'yes'; then
31793 CFLAGS="-pg $CFLAGS"
31794 CXXFLAGS="-pg $CXXFLAGS"
31795 LDFLAGS="-pg $LDFLAGS"
31796fi
31797
31798# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
31799# This is a gcc-specific feature
31800if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031802$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031803if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031804 $as_echo_n "(cached) " >&6
31805else
31806 ac_check_lib_save_LIBS=$LIBS
31807LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031809/* end confdefs.h. */
31810
31811/* Override any GCC internal prototype to avoid an error.
31812 Use char because int might match the return type of a GCC
31813 builtin and then its argument prototype would still apply. */
31814#ifdef __cplusplus
31815extern "C"
31816#endif
31817char _gcov_init ();
31818int
31819main ()
31820{
31821return _gcov_init ();
31822 ;
31823 return 0;
31824}
31825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031827 ac_cv_lib_gcov__gcov_init=yes
31828else
cristy8b350f62009-11-15 23:12:43 +000031829 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031830fi
cristy8b350f62009-11-15 23:12:43 +000031831rm -f core conftest.err conftest.$ac_objext \
31832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031833LIBS=$ac_check_lib_save_LIBS
31834fi
cristy8b350f62009-11-15 23:12:43 +000031835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031837if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031838 cat >>confdefs.h <<_ACEOF
31839#define HAVE_LIBGCOV 1
31840_ACEOF
31841
31842 LIBS="-lgcov $LIBS"
31843
31844fi
31845
cristy8b350f62009-11-15 23:12:43 +000031846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031847$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031848if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031849 $as_echo_n "(cached) " >&6
31850else
31851 ac_check_lib_save_LIBS=$LIBS
31852LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031854/* end confdefs.h. */
31855
31856/* Override any GCC internal prototype to avoid an error.
31857 Use char because int might match the return type of a GCC
31858 builtin and then its argument prototype would still apply. */
31859#ifdef __cplusplus
31860extern "C"
31861#endif
31862char __gcov_init ();
31863int
31864main ()
31865{
31866return __gcov_init ();
31867 ;
31868 return 0;
31869}
31870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031872 ac_cv_lib_gcov___gcov_init=yes
31873else
cristy8b350f62009-11-15 23:12:43 +000031874 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031875fi
cristy8b350f62009-11-15 23:12:43 +000031876rm -f core conftest.err conftest.$ac_objext \
31877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031878LIBS=$ac_check_lib_save_LIBS
31879fi
cristy8b350f62009-11-15 23:12:43 +000031880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031881$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031882if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031883 cat >>confdefs.h <<_ACEOF
31884#define HAVE_LIBGCOV 1
31885_ACEOF
31886
31887 LIBS="-lgcov $LIBS"
31888
31889fi
31890
31891 case "$target_os" in
31892 darwin*)
31893 OSX_GCOV_LDFLAG="-Wl,-single_module"
31894 ;;
31895 *)
31896 OSX_GCOV_LDFLAG=""
31897 ;;
31898 esac
31899
31900 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
31901 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
31902 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
31903fi
31904
31905#
31906# Build library dependency list for libMagickCore
31907#
31908
31909MAGICK_LIBLTDL='' # Libltdl for build
31910MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
31911MAGICK_LTDLDEPS='' # extra libltdl dependencies
31912if test "$with_ltdl" != 'no'
31913then
31914 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
31915 MAGICK_API_LIBLTDL='-lltdl'
31916 fi
31917 MAGICK_LIBLTDL=${LIBLTDL}
31918 MAGICK_LTDLDEPS=${LTDLDEPS}
31919fi
31920
31921
31922
31923if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000031924 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 +000031925else
cristy2e8b51d2009-10-17 18:26:15 +000031926 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 +000031927fi
31928
31929
31930#
31931# Remove extraneous spaces from output variables (asthetic)
31932#
31933X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
31934X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
31935X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
31936X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
31937
31938CC=`echo $CC | sed -e 's/ */ /g'`
31939CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
31940CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
31941CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
31942DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
31943DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
31944LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
31945TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31946MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
31947#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31948
31949# Pass only user-provided LIBS as "global" libraries
31950LIBS=$USER_LIBS
31951
31952#AC_SUBST(CPPFLAGS)
31953
31954#AC_SUBST(LDFLAGS)
31955#AC_SUBST(X_PRE_LIBS)
31956#AC_SUBST(X_LIBS)
31957#AC_SUBST(X_EXTRA_LIBS)
31958
31959MAGICK_CFLAGS=$CFLAGS
31960MAGICK_CXXFLAGS="$CXXFLAGS"
31961MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
31962MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
31963MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
31964MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
31965
31966
31967
31968
31969
31970
31971
31972
31973# Set configured scripts to executable.
31974ac_config_commands="$ac_config_commands default"
31975
31976ac_config_commands="$ac_config_commands MagickCore-config.in"
31977
31978ac_config_commands="$ac_config_commands Magick-config.in"
31979
31980ac_config_commands="$ac_config_commands MagickWand-config.in"
31981
31982ac_config_commands="$ac_config_commands Wand-config.in"
31983
31984ac_config_commands="$ac_config_commands Magick++-config.in"
31985
31986ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31987
31988
cristy8b350f62009-11-15 23:12:43 +000031989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031990$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992$as_echo "Update ImageMagick configuration" >&6; }
31993cat >confcache <<\_ACEOF
31994# This file is a shell script that caches the results of configure
31995# tests run on this system so they can be shared between configure
31996# scripts and configure runs, see configure's option --config-cache.
31997# It is not useful on other systems. If it contains results you don't
31998# want to keep, you may remove or edit it.
31999#
32000# config.status only pays attention to the cache file if you give it
32001# the --recheck option to rerun configure.
32002#
32003# `ac_cv_env_foo' variables (set or unset) will be overridden when
32004# loading this file, other *unset* `ac_cv_foo' will be assigned the
32005# following values.
32006
32007_ACEOF
32008
32009# The following way of writing the cache mishandles newlines in values,
32010# but we know of no workaround that is simple, portable, and efficient.
32011# So, we kill variables containing newlines.
32012# Ultrix sh set writes to stderr and can't be redirected directly,
32013# and sets the high bit in the cache file unless we assign to the vars.
32014(
32015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32016 eval ac_val=\$$ac_var
32017 case $ac_val in #(
32018 *${as_nl}*)
32019 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032021$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32022 esac
32023 case $ac_var in #(
32024 _ | IFS | as_nl) ;; #(
32025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032026 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032027 esac ;;
32028 esac
32029 done
32030
32031 (set) 2>&1 |
32032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32033 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032034 # `set' does not quote correctly, so add quotes: double-quote
32035 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032036 sed -n \
32037 "s/'/'\\\\''/g;
32038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32039 ;; #(
32040 *)
32041 # `set' quotes correctly as required by POSIX, so do not add quotes.
32042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32043 ;;
32044 esac |
32045 sort
32046) |
32047 sed '
32048 /^ac_cv_env_/b end
32049 t clear
32050 :clear
32051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32052 t end
32053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32054 :end' >>confcache
32055if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32056 if test -w "$cache_file"; then
32057 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032059$as_echo "$as_me: updating cache $cache_file" >&6;}
32060 cat confcache >$cache_file
32061 else
cristy8b350f62009-11-15 23:12:43 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032063$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32064 fi
32065fi
32066rm -f confcache
32067
32068test "x$prefix" = xNONE && prefix=$ac_default_prefix
32069# Let make expand exec_prefix.
32070test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32071
32072DEFS=-DHAVE_CONFIG_H
32073
32074ac_libobjs=
32075ac_ltlibobjs=
32076for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32077 # 1. Remove the extension, and $U if already installed.
32078 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32079 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32081 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032082 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32083 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032084done
32085LIBOBJS=$ac_libobjs
32086
32087LTLIBOBJS=$ac_ltlibobjs
32088
32089
32090 if test -n "$EXEEXT"; then
32091 am__EXEEXT_TRUE=
32092 am__EXEEXT_FALSE='#'
32093else
32094 am__EXEEXT_TRUE='#'
32095 am__EXEEXT_FALSE=
32096fi
32097
32098if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032099 as_fn_error "conditional \"AMDEP\" was never defined.
32100Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032101fi
32102if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032103 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32104Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032105fi
cristya0b81c32010-01-22 02:54:33 +000032106if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32107 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32108Usually this means the macro was only invoked conditionally." "$LINENO" 5
32109fi
cristy3ed852e2009-09-05 21:47:34 +000032110if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032111 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32112Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032113fi
32114if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032115 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32116Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032117fi
32118if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032119 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32120Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032121fi
32122if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032123 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32124Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032125fi
32126if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032127 as_fn_error "conditional \"USING_CL\" was never defined.
32128Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032129fi
cristy18304f92009-11-22 15:48:26 +000032130if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32131 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32132Usually this means the macro was only invoked conditionally." "$LINENO" 5
32133fi
cristy3ed852e2009-09-05 21:47:34 +000032134if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032135 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32136Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032137fi
32138if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032139 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32140Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032141fi
32142LT_CONFIG_H=config/config.h
32143
32144 _ltdl_libobjs=
32145 _ltdl_ltlibobjs=
32146 if test -n "$_LT_LIBOBJS"; then
32147 # Remove the extension.
32148 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32149 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32150 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32151 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32152 done
32153 fi
32154 ltdl_LIBOBJS=$_ltdl_libobjs
32155
32156 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32157
32158
cristyfa112112010-01-04 17:48:07 +000032159if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32160 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32161Usually this means the macro was only invoked conditionally." "$LINENO" 5
32162fi
cristy3ed852e2009-09-05 21:47:34 +000032163if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032164 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32165Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032166fi
32167if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032168 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32169Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032170fi
32171if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032172 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32173Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032174fi
32175
32176if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032177 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32178Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032179fi
32180if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032181 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32182Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032183fi
32184if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032185 as_fn_error "conditional \"HasUMEM\" was never defined.
32186Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032187fi
32188if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032189 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32190Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032191fi
32192if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032193 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32194Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032195fi
32196if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032197 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32198Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032199fi
32200if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032201 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32202Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032203fi
32204if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032205 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32206Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032207fi
32208if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032209 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32210Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032211fi
32212if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032213 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32214Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032215fi
32216if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032217 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32218Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032219fi
32220if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032221 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32222Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032223fi
32224if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032225 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32226Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032227fi
32228if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032229 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32230Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032231fi
32232if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032233 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32234Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032235fi
32236if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032237 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32238Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032239fi
32240if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032241 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32242Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032243fi
32244if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032245 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32246Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032247fi
32248if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032249 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32250Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032251fi
32252if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032253 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32254Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032255fi
32256if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032257 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32258Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032259fi
32260if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032261 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32262Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032263fi
32264if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032265 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32266Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032267fi
32268if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032269 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32270Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032271fi
32272if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032273 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32274Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032275fi
32276if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032277 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32278Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032279fi
32280if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032281 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32282Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032283fi
32284if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032285 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32286Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032287fi
32288if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032289 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32290Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032291fi
32292if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032293 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32294Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032295fi
32296if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032297 as_fn_error "conditional \"WITH_PERL\" was never defined.
32298Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032299fi
32300if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032301 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32302Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032303fi
32304if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032305 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32306Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032307fi
32308
32309: ${CONFIG_STATUS=./config.status}
32310ac_write_fail=0
32311ac_clean_files_save=$ac_clean_files
32312ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032313{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032314$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032315as_write_fail=0
32316cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032317#! $SHELL
32318# Generated by $as_me.
32319# Run this file to recreate the current configuration.
32320# Compiler output produced by configure, useful for debugging
32321# configure, is in config.log if it exists.
32322
32323debug=false
32324ac_cs_recheck=false
32325ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032326
cristy8b350f62009-11-15 23:12:43 +000032327SHELL=\${CONFIG_SHELL-$SHELL}
32328export SHELL
32329_ASEOF
32330cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32331## -------------------- ##
32332## M4sh Initialization. ##
32333## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032334
32335# Be more Bourne compatible
32336DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032337if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032338 emulate sh
32339 NULLCMD=:
32340 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32341 # is contrary to our usage. Disable this feature.
32342 alias -g '${1+"$@"}'='"$@"'
32343 setopt NO_GLOB_SUBST
32344else
cristy8b350f62009-11-15 23:12:43 +000032345 case `(set -o) 2>/dev/null` in #(
32346 *posix*) :
32347 set -o posix ;; #(
32348 *) :
32349 ;;
cristy3ed852e2009-09-05 21:47:34 +000032350esac
cristy3ed852e2009-09-05 21:47:34 +000032351fi
32352
32353
cristy3ed852e2009-09-05 21:47:34 +000032354as_nl='
32355'
32356export as_nl
32357# Printing a long string crashes Solaris 7 /usr/bin/printf.
32358as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32359as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32360as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032361# Prefer a ksh shell builtin over an external printf program on Solaris,
32362# but without wasting forks for bash or zsh.
32363if test -z "$BASH_VERSION$ZSH_VERSION" \
32364 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32365 as_echo='print -r --'
32366 as_echo_n='print -rn --'
32367elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032368 as_echo='printf %s\n'
32369 as_echo_n='printf %s'
32370else
32371 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32372 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32373 as_echo_n='/usr/ucb/echo -n'
32374 else
32375 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32376 as_echo_n_body='eval
32377 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032378 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032379 *"$as_nl"*)
32380 expr "X$arg" : "X\\(.*\\)$as_nl";
32381 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32382 esac;
32383 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32384 '
32385 export as_echo_n_body
32386 as_echo_n='sh -c $as_echo_n_body as_echo'
32387 fi
32388 export as_echo_body
32389 as_echo='sh -c $as_echo_body as_echo'
32390fi
32391
32392# The user is always right.
32393if test "${PATH_SEPARATOR+set}" != set; then
32394 PATH_SEPARATOR=:
32395 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32396 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32397 PATH_SEPARATOR=';'
32398 }
32399fi
32400
cristy3ed852e2009-09-05 21:47:34 +000032401
32402# IFS
32403# We need space, tab and new line, in precisely that order. Quoting is
32404# there to prevent editors from complaining about space-tab.
32405# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32406# splitting by setting IFS to empty value.)
32407IFS=" "" $as_nl"
32408
32409# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032410case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032411 *[\\/]* ) as_myself=$0 ;;
32412 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32413for as_dir in $PATH
32414do
32415 IFS=$as_save_IFS
32416 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032417 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32418 done
cristy3ed852e2009-09-05 21:47:34 +000032419IFS=$as_save_IFS
32420
32421 ;;
32422esac
32423# We did not find ourselves, most probably we were run as `sh COMMAND'
32424# in which case we are not to be found in the path.
32425if test "x$as_myself" = x; then
32426 as_myself=$0
32427fi
32428if test ! -f "$as_myself"; then
32429 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032430 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032431fi
32432
cristy8b350f62009-11-15 23:12:43 +000032433# Unset variables that we do not need and which cause bugs (e.g. in
32434# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32435# suppresses any "Segmentation fault" message there. '((' could
32436# trigger a bug in pdksh 5.2.14.
32437for as_var in BASH_ENV ENV MAIL MAILPATH
32438do eval test x\${$as_var+set} = xset \
32439 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032440done
32441PS1='$ '
32442PS2='> '
32443PS4='+ '
32444
32445# NLS nuisances.
32446LC_ALL=C
32447export LC_ALL
32448LANGUAGE=C
32449export LANGUAGE
32450
cristy8b350f62009-11-15 23:12:43 +000032451# CDPATH.
32452(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32453
32454
32455# as_fn_error ERROR [LINENO LOG_FD]
32456# ---------------------------------
32457# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32458# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32459# script with status $?, using 1 if that was 0.
32460as_fn_error ()
32461{
32462 as_status=$?; test $as_status -eq 0 && as_status=1
32463 if test "$3"; then
32464 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32465 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32466 fi
32467 $as_echo "$as_me: error: $1" >&2
32468 as_fn_exit $as_status
32469} # as_fn_error
32470
32471
32472# as_fn_set_status STATUS
32473# -----------------------
32474# Set $? to STATUS, without forking.
32475as_fn_set_status ()
32476{
32477 return $1
32478} # as_fn_set_status
32479
32480# as_fn_exit STATUS
32481# -----------------
32482# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32483as_fn_exit ()
32484{
32485 set +e
32486 as_fn_set_status $1
32487 exit $1
32488} # as_fn_exit
32489
32490# as_fn_unset VAR
32491# ---------------
32492# Portably unset VAR.
32493as_fn_unset ()
32494{
32495 { eval $1=; unset $1;}
32496}
32497as_unset=as_fn_unset
32498# as_fn_append VAR VALUE
32499# ----------------------
32500# Append the text in VALUE to the end of the definition contained in VAR. Take
32501# advantage of any shell optimizations that allow amortized linear growth over
32502# repeated appends, instead of the typical quadratic growth present in naive
32503# implementations.
32504if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32505 eval 'as_fn_append ()
32506 {
32507 eval $1+=\$2
32508 }'
32509else
32510 as_fn_append ()
32511 {
32512 eval $1=\$$1\$2
32513 }
32514fi # as_fn_append
32515
32516# as_fn_arith ARG...
32517# ------------------
32518# Perform arithmetic evaluation on the ARGs, and store the result in the
32519# global $as_val. Take advantage of shells that can avoid forks. The arguments
32520# must be portable across $(()) and expr.
32521if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32522 eval 'as_fn_arith ()
32523 {
32524 as_val=$(( $* ))
32525 }'
32526else
32527 as_fn_arith ()
32528 {
32529 as_val=`expr "$@" || test $? -eq 1`
32530 }
32531fi # as_fn_arith
32532
32533
cristy3ed852e2009-09-05 21:47:34 +000032534if expr a : '\(a\)' >/dev/null 2>&1 &&
32535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32536 as_expr=expr
32537else
32538 as_expr=false
32539fi
32540
32541if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32542 as_basename=basename
32543else
32544 as_basename=false
32545fi
32546
cristy8b350f62009-11-15 23:12:43 +000032547if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32548 as_dirname=dirname
32549else
32550 as_dirname=false
32551fi
cristy3ed852e2009-09-05 21:47:34 +000032552
cristy3ed852e2009-09-05 21:47:34 +000032553as_me=`$as_basename -- "$0" ||
32554$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32555 X"$0" : 'X\(//\)$' \| \
32556 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32557$as_echo X/"$0" |
32558 sed '/^.*\/\([^/][^/]*\)\/*$/{
32559 s//\1/
32560 q
32561 }
32562 /^X\/\(\/\/\)$/{
32563 s//\1/
32564 q
32565 }
32566 /^X\/\(\/\).*/{
32567 s//\1/
32568 q
32569 }
32570 s/.*/./; q'`
32571
cristy8b350f62009-11-15 23:12:43 +000032572# Avoid depending upon Character Ranges.
32573as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32574as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32575as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32576as_cr_digits='0123456789'
32577as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000032578
32579ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000032580case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000032581-n*)
cristy8b350f62009-11-15 23:12:43 +000032582 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000032583 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000032584 xy) ECHO_C='\c';;
32585 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32586 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000032587 esac;;
32588*)
32589 ECHO_N='-n';;
32590esac
cristy3ed852e2009-09-05 21:47:34 +000032591
32592rm -f conf$$ conf$$.exe conf$$.file
32593if test -d conf$$.dir; then
32594 rm -f conf$$.dir/conf$$.file
32595else
32596 rm -f conf$$.dir
32597 mkdir conf$$.dir 2>/dev/null
32598fi
32599if (echo >conf$$.file) 2>/dev/null; then
32600 if ln -s conf$$.file conf$$ 2>/dev/null; then
32601 as_ln_s='ln -s'
32602 # ... but there are two gotchas:
32603 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32604 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32605 # In both cases, we have to default to `cp -p'.
32606 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32607 as_ln_s='cp -p'
32608 elif ln conf$$.file conf$$ 2>/dev/null; then
32609 as_ln_s=ln
32610 else
32611 as_ln_s='cp -p'
32612 fi
32613else
32614 as_ln_s='cp -p'
32615fi
32616rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32617rmdir conf$$.dir 2>/dev/null
32618
cristy8b350f62009-11-15 23:12:43 +000032619
32620# as_fn_mkdir_p
32621# -------------
32622# Create "$as_dir" as a directory, including parents if necessary.
32623as_fn_mkdir_p ()
32624{
32625
32626 case $as_dir in #(
32627 -*) as_dir=./$as_dir;;
32628 esac
32629 test -d "$as_dir" || eval $as_mkdir_p || {
32630 as_dirs=
32631 while :; do
32632 case $as_dir in #(
32633 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32634 *) as_qdir=$as_dir;;
32635 esac
32636 as_dirs="'$as_qdir' $as_dirs"
32637 as_dir=`$as_dirname -- "$as_dir" ||
32638$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32639 X"$as_dir" : 'X\(//\)[^/]' \| \
32640 X"$as_dir" : 'X\(//\)$' \| \
32641 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32642$as_echo X"$as_dir" |
32643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32644 s//\1/
32645 q
32646 }
32647 /^X\(\/\/\)[^/].*/{
32648 s//\1/
32649 q
32650 }
32651 /^X\(\/\/\)$/{
32652 s//\1/
32653 q
32654 }
32655 /^X\(\/\).*/{
32656 s//\1/
32657 q
32658 }
32659 s/.*/./; q'`
32660 test -d "$as_dir" && break
32661 done
32662 test -z "$as_dirs" || eval "mkdir $as_dirs"
32663 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32664
32665
32666} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032667if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032668 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000032669else
32670 test -d ./-p && rmdir ./-p
32671 as_mkdir_p=false
32672fi
32673
32674if test -x / >/dev/null 2>&1; then
32675 as_test_x='test -x'
32676else
32677 if ls -dL / >/dev/null 2>&1; then
32678 as_ls_L_option=L
32679 else
32680 as_ls_L_option=
32681 fi
32682 as_test_x='
32683 eval sh -c '\''
32684 if test -d "$1"; then
32685 test -d "$1/.";
32686 else
cristy8b350f62009-11-15 23:12:43 +000032687 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000032688 -*)set "./$1";;
32689 esac;
cristy8b350f62009-11-15 23:12:43 +000032690 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000032691 ???[sx]*):;;*)false;;esac;fi
32692 '\'' sh
32693 '
32694fi
32695as_executable_p=$as_test_x
32696
32697# Sed expression to map a string onto a valid CPP name.
32698as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32699
32700# Sed expression to map a string onto a valid variable name.
32701as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32702
32703
32704exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000032705## ----------------------------------- ##
32706## Main body of $CONFIG_STATUS script. ##
32707## ----------------------------------- ##
32708_ASEOF
32709test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032710
cristy8b350f62009-11-15 23:12:43 +000032711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32712# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000032713# report actual input values of CONFIG_FILES etc. instead of their
32714# values after options handling.
32715ac_log="
cristyb36feb22010-03-26 16:54:37 +000032716This file was extended by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +000032717generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000032718
32719 CONFIG_FILES = $CONFIG_FILES
32720 CONFIG_HEADERS = $CONFIG_HEADERS
32721 CONFIG_LINKS = $CONFIG_LINKS
32722 CONFIG_COMMANDS = $CONFIG_COMMANDS
32723 $ $0 $@
32724
32725on `(hostname || uname -n) 2>/dev/null | sed 1q`
32726"
32727
32728_ACEOF
32729
32730case $ac_config_files in *"
32731"*) set x $ac_config_files; shift; ac_config_files=$*;;
32732esac
32733
32734case $ac_config_headers in *"
32735"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32736esac
32737
32738
32739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32740# Files that config.status was made for.
32741config_files="$ac_config_files"
32742config_headers="$ac_config_headers"
32743config_commands="$ac_config_commands"
32744
32745_ACEOF
32746
32747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32748ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000032749\`$as_me' instantiates files and other configuration actions
32750from templates according to the current configuration. Unless the files
32751and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000032752
cristy8b350f62009-11-15 23:12:43 +000032753Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000032754
32755 -h, --help print this help, then exit
32756 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000032757 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000032758 -q, --quiet, --silent
32759 do not print progress messages
32760 -d, --debug don't remove temporary files
32761 --recheck update $as_me by reconfiguring in the same conditions
32762 --file=FILE[:TEMPLATE]
32763 instantiate the configuration file FILE
32764 --header=FILE[:TEMPLATE]
32765 instantiate the configuration header FILE
32766
32767Configuration files:
32768$config_files
32769
32770Configuration headers:
32771$config_headers
32772
32773Configuration commands:
32774$config_commands
32775
cristy8b350f62009-11-15 23:12:43 +000032776Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000032777
32778_ACEOF
32779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000032780ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000032781ac_cs_version="\\
cristyb36feb22010-03-26 16:54:37 +000032782ImageMagick config.status 6.6.1
cristycd4c5312009-11-22 01:19:08 +000032783configured by $0, generated by GNU Autoconf 2.65,
32784 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000032785
cristy8b350f62009-11-15 23:12:43 +000032786Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000032787This config.status script is free software; the Free Software Foundation
32788gives unlimited permission to copy, distribute and modify it."
32789
32790ac_pwd='$ac_pwd'
32791srcdir='$srcdir'
32792INSTALL='$INSTALL'
32793MKDIR_P='$MKDIR_P'
32794AWK='$AWK'
32795test -n "\$AWK" || AWK=awk
32796_ACEOF
32797
32798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32799# The default lists apply if the user does not specify any file.
32800ac_need_defaults=:
32801while test $# != 0
32802do
32803 case $1 in
32804 --*=*)
32805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32807 ac_shift=:
32808 ;;
32809 *)
32810 ac_option=$1
32811 ac_optarg=$2
32812 ac_shift=shift
32813 ;;
32814 esac
32815
32816 case $ac_option in
32817 # Handling of the options.
32818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32819 ac_cs_recheck=: ;;
32820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32821 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000032822 --config | --confi | --conf | --con | --co | --c )
32823 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000032824 --debug | --debu | --deb | --de | --d | -d )
32825 debug=: ;;
32826 --file | --fil | --fi | --f )
32827 $ac_shift
32828 case $ac_optarg in
32829 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32830 esac
cristy8b350f62009-11-15 23:12:43 +000032831 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032832 ac_need_defaults=false;;
32833 --header | --heade | --head | --hea )
32834 $ac_shift
32835 case $ac_optarg in
32836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32837 esac
cristy8b350f62009-11-15 23:12:43 +000032838 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032839 ac_need_defaults=false;;
32840 --he | --h)
32841 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000032842 as_fn_error "ambiguous option: \`$1'
32843Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000032844 --help | --hel | -h )
32845 $as_echo "$ac_cs_usage"; exit ;;
32846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32847 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32848 ac_cs_silent=: ;;
32849
32850 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000032851 -*) as_fn_error "unrecognized option: \`$1'
32852Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000032853
cristy8b350f62009-11-15 23:12:43 +000032854 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000032855 ac_need_defaults=false ;;
32856
32857 esac
32858 shift
32859done
32860
32861ac_configure_extra_args=
32862
32863if $ac_cs_silent; then
32864 exec 6>/dev/null
32865 ac_configure_extra_args="$ac_configure_extra_args --silent"
32866fi
32867
32868_ACEOF
32869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32870if \$ac_cs_recheck; then
32871 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32872 shift
32873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32874 CONFIG_SHELL='$SHELL'
32875 export CONFIG_SHELL
32876 exec "\$@"
32877fi
32878
32879_ACEOF
32880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32881exec 5>>config.log
32882{
32883 echo
32884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32885## Running $as_me. ##
32886_ASBOX
32887 $as_echo "$ac_log"
32888} >&5
32889
32890_ACEOF
32891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32892#
32893# INIT-COMMANDS
32894#
32895PACKAGE="$PACKAGE"
32896AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32897
32898
32899# The HP-UX ksh and POSIX shell print the target directory to stdout
32900# if CDPATH is set.
32901(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32902
32903sed_quote_subst='$sed_quote_subst'
32904double_quote_subst='$double_quote_subst'
32905delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000032906SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32907Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32908GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32909EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32910FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32911LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32912macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32913macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32914AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32915DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32916OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32917enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32918enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32919pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32920enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32921host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32922host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32923host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32924build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32925build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32926build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32927NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32928LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32929max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32930ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32931exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32932lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32933lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32934lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32935reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32936reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32937deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32938file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
32939AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
32940AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32941STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
32942RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
32943old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32944old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32945old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32946CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
32947CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32948compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
32949GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
32950lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
32951lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
32952lt_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"`'
32953lt_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"`'
32954objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
32955SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
32956ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
32957MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
32958lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
32959lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
32960lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
32961lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
32962lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
32963need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
32964DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
32965NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
32966LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
32967OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32968OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
32969libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
32970shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32971extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32972archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
32973enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
32974export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32975whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32976compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
32977old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32978old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32979archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32980archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32981module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32982module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32983with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
32984allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32985no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32986hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32987hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32988hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32989hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32990hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32991hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32992hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32993hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32994inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32995link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32996fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32997always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32998export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32999exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33000include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33001prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33002file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33003variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33004need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33005need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33006version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33007runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33008shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33009shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33010libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33011library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33012soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33013postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33014postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33015finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33016finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33017hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33018sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33019sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33020hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33021enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33022enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33023enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33024old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33025striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33026compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33027predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33028postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33029predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33030postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33031compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33032LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33033old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33034compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33035GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33036lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33037lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33038lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33039lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33040lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33041archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33042enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33043export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33044whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33045compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33046old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33047old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33048archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33049archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33050module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33051module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33052with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33053allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33054no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33055hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33056hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33057hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33058hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33059hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33060hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33061hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33062hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33063inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33064link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33065fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33066always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33067export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33068exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33069include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33070prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33071file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33072hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33073compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33074predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33075postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33076predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33077postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33078compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033079
33080LTCC='$LTCC'
33081LTCFLAGS='$LTCFLAGS'
33082compiler='$compiler_DEFAULT'
33083
33084# Quote evaled strings.
33085for var in SED \
33086GREP \
33087EGREP \
33088FGREP \
33089LD \
33090NM \
33091LN_S \
33092lt_SP2NL \
33093lt_NL2SP \
33094reload_flag \
33095deplibs_check_method \
33096file_magic_cmd \
33097AR \
33098AR_FLAGS \
33099STRIP \
33100RANLIB \
33101CC \
33102CFLAGS \
33103compiler \
33104lt_cv_sys_global_symbol_pipe \
33105lt_cv_sys_global_symbol_to_cdecl \
33106lt_cv_sys_global_symbol_to_c_name_address \
33107lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033108SHELL \
33109ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033110lt_prog_compiler_no_builtin_flag \
33111lt_prog_compiler_wl \
33112lt_prog_compiler_pic \
33113lt_prog_compiler_static \
33114lt_cv_prog_compiler_c_o \
33115need_locks \
33116DSYMUTIL \
33117NMEDIT \
33118LIPO \
33119OTOOL \
33120OTOOL64 \
33121shrext_cmds \
33122export_dynamic_flag_spec \
33123whole_archive_flag_spec \
33124compiler_needs_object \
33125with_gnu_ld \
33126allow_undefined_flag \
33127no_undefined_flag \
33128hardcode_libdir_flag_spec \
33129hardcode_libdir_flag_spec_ld \
33130hardcode_libdir_separator \
33131fix_srcfile_path \
33132exclude_expsyms \
33133include_expsyms \
33134file_list_spec \
33135variables_saved_for_relink \
33136libname_spec \
33137library_names_spec \
33138soname_spec \
33139finish_eval \
33140old_striplib \
33141striplib \
33142compiler_lib_search_dirs \
33143predep_objects \
33144postdep_objects \
33145predeps \
33146postdeps \
33147compiler_lib_search_path \
33148LD_CXX \
33149compiler_CXX \
33150lt_prog_compiler_no_builtin_flag_CXX \
33151lt_prog_compiler_wl_CXX \
33152lt_prog_compiler_pic_CXX \
33153lt_prog_compiler_static_CXX \
33154lt_cv_prog_compiler_c_o_CXX \
33155export_dynamic_flag_spec_CXX \
33156whole_archive_flag_spec_CXX \
33157compiler_needs_object_CXX \
33158with_gnu_ld_CXX \
33159allow_undefined_flag_CXX \
33160no_undefined_flag_CXX \
33161hardcode_libdir_flag_spec_CXX \
33162hardcode_libdir_flag_spec_ld_CXX \
33163hardcode_libdir_separator_CXX \
33164fix_srcfile_path_CXX \
33165exclude_expsyms_CXX \
33166include_expsyms_CXX \
33167file_list_spec_CXX \
33168compiler_lib_search_dirs_CXX \
33169predep_objects_CXX \
33170postdep_objects_CXX \
33171predeps_CXX \
33172postdeps_CXX \
33173compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033174 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033175 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033176 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033177 ;;
33178 *)
33179 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33180 ;;
33181 esac
33182done
33183
33184# Double-quote double-evaled strings.
33185for var in reload_cmds \
33186old_postinstall_cmds \
33187old_postuninstall_cmds \
33188old_archive_cmds \
33189extract_expsyms_cmds \
33190old_archive_from_new_cmds \
33191old_archive_from_expsyms_cmds \
33192archive_cmds \
33193archive_expsym_cmds \
33194module_cmds \
33195module_expsym_cmds \
33196export_symbols_cmds \
33197prelink_cmds \
33198postinstall_cmds \
33199postuninstall_cmds \
33200finish_cmds \
33201sys_lib_search_path_spec \
33202sys_lib_dlsearch_path_spec \
33203old_archive_cmds_CXX \
33204old_archive_from_new_cmds_CXX \
33205old_archive_from_expsyms_cmds_CXX \
33206archive_cmds_CXX \
33207archive_expsym_cmds_CXX \
33208module_cmds_CXX \
33209module_expsym_cmds_CXX \
33210export_symbols_cmds_CXX \
33211prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033212 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033213 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033214 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 +000033215 ;;
33216 *)
33217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33218 ;;
33219 esac
33220done
33221
cristy18304f92009-11-22 15:48:26 +000033222# Fix-up fallback echo if it was mangled by the above quoting rules.
33223case \$lt_ECHO in
33224*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33225 ;;
33226esac
33227
cristy3ed852e2009-09-05 21:47:34 +000033228ac_aux_dir='$ac_aux_dir'
33229xsi_shell='$xsi_shell'
33230lt_shell_append='$lt_shell_append'
33231
33232# See if we are running on zsh, and set the options which allow our
33233# commands through without removal of \ escapes INIT.
33234if test -n "\${ZSH_VERSION+set}" ; then
33235 setopt NO_GLOB_SUBST
33236fi
33237
33238
33239 PACKAGE='$PACKAGE'
33240 VERSION='$VERSION'
33241 TIMESTAMP='$TIMESTAMP'
33242 RM='$RM'
33243 ofile='$ofile'
33244
33245
33246
33247
33248
33249
33250_ACEOF
33251
33252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33253
33254# Handling of arguments.
33255for ac_config_target in $ac_config_targets
33256do
33257 case $ac_config_target in
33258 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33259 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33260 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33261 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33262 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33263 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33264 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033265 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033266 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33267 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33268 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33269 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33270 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33271 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33272 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33273 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33274 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33275 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33276 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33277 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33278 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33279 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33280 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33281 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33282 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33283 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33284 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33285 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33286 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33287 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33288 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33289 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33290 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33291 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33292 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33293 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33294 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33295 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33296 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33297 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33298 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33299 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33300 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33301 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33302 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33303 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33304 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33305 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33306 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33307 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33308
cristy8b350f62009-11-15 23:12:43 +000033309 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033310 esac
33311done
33312
33313
33314# If the user did not use the arguments to specify the items to instantiate,
33315# then the envvar interface is used. Set only those that are not.
33316# We use the long form for the default assignment because of an extremely
33317# bizarre bug on SunOS 4.1.3.
33318if $ac_need_defaults; then
33319 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33320 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33321 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33322fi
33323
33324# Have a temporary directory for convenience. Make it in the build tree
33325# simply because there is no reason against having it here, and in addition,
33326# creating and moving files from /tmp can sometimes cause problems.
33327# Hook for its removal unless debugging.
33328# Note that there is a small window in which the directory will not be cleaned:
33329# after its creation but before its name has been assigned to `$tmp'.
33330$debug ||
33331{
33332 tmp=
33333 trap 'exit_status=$?
33334 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33335' 0
cristy8b350f62009-11-15 23:12:43 +000033336 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033337}
33338# Create a (secure) tmp directory for tmp files.
33339
33340{
33341 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33342 test -n "$tmp" && test -d "$tmp"
33343} ||
33344{
33345 tmp=./conf$$-$RANDOM
33346 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033347} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033348
33349# Set up the scripts for CONFIG_FILES section.
33350# No need to generate them if there are no CONFIG_FILES.
33351# This happens for instance with `./config.status config.h'.
33352if test -n "$CONFIG_FILES"; then
33353
33354
cristy8b350f62009-11-15 23:12:43 +000033355ac_cr=`echo X | tr X '\015'`
33356# On cygwin, bash can eat \r inside `` if the user requested igncr.
33357# But we know of no other shell where ac_cr would be empty at this
33358# point, so we can use a bashism as a fallback.
33359if test "x$ac_cr" = x; then
33360 eval ac_cr=\$\'\\r\'
33361fi
cristy3ed852e2009-09-05 21:47:34 +000033362ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33363if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033364 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033365else
33366 ac_cs_awk_cr=$ac_cr
33367fi
33368
33369echo 'BEGIN {' >"$tmp/subs1.awk" &&
33370_ACEOF
33371
33372
33373{
33374 echo "cat >conf$$subs.awk <<_ACEOF" &&
33375 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33376 echo "_ACEOF"
33377} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033378 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033379ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33380ac_delim='%!_!# '
33381for ac_last_try in false false false false false :; do
33382 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033383 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033384
33385 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33386 if test $ac_delim_n = $ac_delim_num; then
33387 break
33388 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033389 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033390 else
33391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33392 fi
33393done
33394rm -f conf$$subs.sh
33395
33396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33397cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33398_ACEOF
33399sed -n '
33400h
33401s/^/S["/; s/!.*/"]=/
33402p
33403g
33404s/^[^!]*!//
33405:repl
33406t repl
33407s/'"$ac_delim"'$//
33408t delim
33409:nl
33410h
cristycd4c5312009-11-22 01:19:08 +000033411s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033412t more1
33413s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33414p
33415n
33416b repl
33417:more1
33418s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33419p
33420g
33421s/.\{148\}//
33422t nl
33423:delim
33424h
cristycd4c5312009-11-22 01:19:08 +000033425s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033426t more2
33427s/["\\]/\\&/g; s/^/"/; s/$/"/
33428p
33429b
33430:more2
33431s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33432p
33433g
33434s/.\{148\}//
33435t delim
33436' <conf$$subs.awk | sed '
33437/^[^""]/{
33438 N
33439 s/\n//
33440}
33441' >>$CONFIG_STATUS || ac_write_fail=1
33442rm -f conf$$subs.awk
33443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33444_ACAWK
33445cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33446 for (key in S) S_is_set[key] = 1
33447 FS = ""
33448
33449}
33450{
33451 line = $ 0
33452 nfields = split(line, field, "@")
33453 substed = 0
33454 len = length(field[1])
33455 for (i = 2; i < nfields; i++) {
33456 key = field[i]
33457 keylen = length(key)
33458 if (S_is_set[key]) {
33459 value = S[key]
33460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33461 len += length(value) + length(field[++i])
33462 substed = 1
33463 } else
33464 len += 1 + keylen
33465 }
33466
33467 print line
33468}
33469
33470_ACAWK
33471_ACEOF
33472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33473if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33474 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33475else
33476 cat
33477fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000033478 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033479_ACEOF
33480
33481# VPATH may cause trouble with some makes, so we remove $(srcdir),
33482# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33483# trailing colons and then remove the whole line if VPATH becomes empty
33484# (actually we leave an empty line to preserve line numbers).
33485if test "x$srcdir" = x.; then
33486 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33487s/:*\$(srcdir):*/:/
33488s/:*\${srcdir}:*/:/
33489s/:*@srcdir@:*/:/
33490s/^\([^=]*=[ ]*\):*/\1/
33491s/:*$//
33492s/^[^=]*=[ ]*$//
33493}'
33494fi
33495
33496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33497fi # test -n "$CONFIG_FILES"
33498
33499# Set up the scripts for CONFIG_HEADERS section.
33500# No need to generate them if there are no CONFIG_HEADERS.
33501# This happens for instance with `./config.status Makefile'.
33502if test -n "$CONFIG_HEADERS"; then
33503cat >"$tmp/defines.awk" <<\_ACAWK ||
33504BEGIN {
33505_ACEOF
33506
33507# Transform confdefs.h into an awk script `defines.awk', embedded as
33508# here-document in config.status, that substitutes the proper values into
33509# config.h.in to produce config.h.
33510
33511# Create a delimiter string that does not exist in confdefs.h, to ease
33512# handling of long lines.
33513ac_delim='%!_!# '
33514for ac_last_try in false false :; do
33515 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33516 if test -z "$ac_t"; then
33517 break
33518 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033519 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033520 else
33521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33522 fi
33523done
33524
33525# For the awk script, D is an array of macro values keyed by name,
33526# likewise P contains macro parameters if any. Preserve backslash
33527# newline sequences.
33528
33529ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33530sed -n '
33531s/.\{148\}/&'"$ac_delim"'/g
33532t rset
33533:rset
33534s/^[ ]*#[ ]*define[ ][ ]*/ /
33535t def
33536d
33537:def
33538s/\\$//
33539t bsnl
33540s/["\\]/\\&/g
33541s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33542D["\1"]=" \3"/p
33543s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33544d
33545:bsnl
33546s/["\\]/\\&/g
33547s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33548D["\1"]=" \3\\\\\\n"\\/p
33549t cont
33550s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33551t cont
33552d
33553:cont
33554n
33555s/.\{148\}/&'"$ac_delim"'/g
33556t clear
33557:clear
33558s/\\$//
33559t bsnlc
33560s/["\\]/\\&/g; s/^/"/; s/$/"/p
33561d
33562:bsnlc
33563s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33564b cont
33565' <confdefs.h | sed '
33566s/'"$ac_delim"'/"\\\
33567"/g' >>$CONFIG_STATUS || ac_write_fail=1
33568
33569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33570 for (key in D) D_is_set[key] = 1
33571 FS = ""
33572}
33573/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33574 line = \$ 0
33575 split(line, arg, " ")
33576 if (arg[1] == "#") {
33577 defundef = arg[2]
33578 mac1 = arg[3]
33579 } else {
33580 defundef = substr(arg[1], 2)
33581 mac1 = arg[2]
33582 }
33583 split(mac1, mac2, "(") #)
33584 macro = mac2[1]
33585 prefix = substr(line, 1, index(line, defundef) - 1)
33586 if (D_is_set[macro]) {
33587 # Preserve the white space surrounding the "#".
33588 print prefix "define", macro P[macro] D[macro]
33589 next
33590 } else {
33591 # Replace #undef with comments. This is necessary, for example,
33592 # in the case of _POSIX_SOURCE, which is predefined and required
33593 # on some systems where configure will not decide to define it.
33594 if (defundef == "undef") {
33595 print "/*", prefix defundef, macro, "*/"
33596 next
33597 }
33598 }
33599}
33600{ print }
33601_ACAWK
33602_ACEOF
33603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000033604 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033605fi # test -n "$CONFIG_HEADERS"
33606
33607
33608eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33609shift
33610for ac_tag
33611do
33612 case $ac_tag in
33613 :[FHLC]) ac_mode=$ac_tag; continue;;
33614 esac
33615 case $ac_mode$ac_tag in
33616 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000033617 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033618 :[FH]-) ac_tag=-:-;;
33619 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33620 esac
33621 ac_save_IFS=$IFS
33622 IFS=:
33623 set x $ac_tag
33624 IFS=$ac_save_IFS
33625 shift
33626 ac_file=$1
33627 shift
33628
33629 case $ac_mode in
33630 :L) ac_source=$1;;
33631 :[FH])
33632 ac_file_inputs=
33633 for ac_f
33634 do
33635 case $ac_f in
33636 -) ac_f="$tmp/stdin";;
33637 *) # Look for the file first in the build tree, then in the source tree
33638 # (if the path is not absolute). The absolute path cannot be DOS-style,
33639 # because $ac_f cannot contain `:'.
33640 test -f "$ac_f" ||
33641 case $ac_f in
33642 [\\/$]*) false;;
33643 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33644 esac ||
cristy8b350f62009-11-15 23:12:43 +000033645 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033646 esac
33647 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000033648 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000033649 done
33650
33651 # Let's still pretend it is `configure' which instantiates (i.e., don't
33652 # use $as_me), people would be surprised to read:
33653 # /* config.h. Generated by config.status. */
33654 configure_input='Generated from '`
33655 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33656 `' by configure.'
33657 if test x"$ac_file" != x-; then
33658 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000033659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033660$as_echo "$as_me: creating $ac_file" >&6;}
33661 fi
33662 # Neutralize special characters interpreted by sed in replacement strings.
33663 case $configure_input in #(
33664 *\&* | *\|* | *\\* )
33665 ac_sed_conf_input=`$as_echo "$configure_input" |
33666 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33667 *) ac_sed_conf_input=$configure_input;;
33668 esac
33669
33670 case $ac_tag in
33671 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000033672 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000033673 esac
33674 ;;
33675 esac
33676
33677 ac_dir=`$as_dirname -- "$ac_file" ||
33678$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33679 X"$ac_file" : 'X\(//\)[^/]' \| \
33680 X"$ac_file" : 'X\(//\)$' \| \
33681 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33682$as_echo X"$ac_file" |
33683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33684 s//\1/
33685 q
33686 }
33687 /^X\(\/\/\)[^/].*/{
33688 s//\1/
33689 q
33690 }
33691 /^X\(\/\/\)$/{
33692 s//\1/
33693 q
33694 }
33695 /^X\(\/\).*/{
33696 s//\1/
33697 q
33698 }
33699 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033700 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033701 ac_builddir=.
33702
33703case "$ac_dir" in
33704.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33705*)
33706 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33707 # A ".." for each directory in $ac_dir_suffix.
33708 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33709 case $ac_top_builddir_sub in
33710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33712 esac ;;
33713esac
33714ac_abs_top_builddir=$ac_pwd
33715ac_abs_builddir=$ac_pwd$ac_dir_suffix
33716# for backward compatibility:
33717ac_top_builddir=$ac_top_build_prefix
33718
33719case $srcdir in
33720 .) # We are building in place.
33721 ac_srcdir=.
33722 ac_top_srcdir=$ac_top_builddir_sub
33723 ac_abs_top_srcdir=$ac_pwd ;;
33724 [\\/]* | ?:[\\/]* ) # Absolute name.
33725 ac_srcdir=$srcdir$ac_dir_suffix;
33726 ac_top_srcdir=$srcdir
33727 ac_abs_top_srcdir=$srcdir ;;
33728 *) # Relative name.
33729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33730 ac_top_srcdir=$ac_top_build_prefix$srcdir
33731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33732esac
33733ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33734
33735
33736 case $ac_mode in
33737 :F)
33738 #
33739 # CONFIG_FILE
33740 #
33741
33742 case $INSTALL in
33743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33744 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33745 esac
33746 ac_MKDIR_P=$MKDIR_P
33747 case $MKDIR_P in
33748 [\\/$]* | ?:[\\/]* ) ;;
33749 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33750 esac
33751_ACEOF
33752
33753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33754# If the template does not know about datarootdir, expand it.
33755# FIXME: This hack should be removed a few years after 2.60.
33756ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000033757ac_sed_dataroot='
33758/datarootdir/ {
33759 p
33760 q
33761}
33762/@datadir@/p
33763/@docdir@/p
33764/@infodir@/p
33765/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000033766/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000033767case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33768*datarootdir*) ac_datarootdir_seen=yes;;
33769*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33772_ACEOF
33773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33774 ac_datarootdir_hack='
33775 s&@datadir@&$datadir&g
33776 s&@docdir@&$docdir&g
33777 s&@infodir@&$infodir&g
33778 s&@localedir@&$localedir&g
33779 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000033780 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000033781esac
33782_ACEOF
33783
33784# Neutralize VPATH when `$srcdir' = `.'.
33785# Shell code in configure.ac might set extrasub.
33786# FIXME: do we really want to maintain this feature?
33787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33788ac_sed_extra="$ac_vpsub
33789$extrasub
33790_ACEOF
33791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33792:t
33793/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33794s|@configure_input@|$ac_sed_conf_input|;t t
33795s&@top_builddir@&$ac_top_builddir_sub&;t t
33796s&@top_build_prefix@&$ac_top_build_prefix&;t t
33797s&@srcdir@&$ac_srcdir&;t t
33798s&@abs_srcdir@&$ac_abs_srcdir&;t t
33799s&@top_srcdir@&$ac_top_srcdir&;t t
33800s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33801s&@builddir@&$ac_builddir&;t t
33802s&@abs_builddir@&$ac_abs_builddir&;t t
33803s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33804s&@INSTALL@&$ac_INSTALL&;t t
33805s&@MKDIR_P@&$ac_MKDIR_P&;t t
33806$ac_datarootdir_hack
33807"
33808eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000033809 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033810
33811test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33812 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33813 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000033814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000033815which seems to be undefined. Please make sure it is defined." >&5
33816$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33817which seems to be undefined. Please make sure it is defined." >&2;}
33818
33819 rm -f "$tmp/stdin"
33820 case $ac_file in
33821 -) cat "$tmp/out" && rm -f "$tmp/out";;
33822 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33823 esac \
cristy8b350f62009-11-15 23:12:43 +000033824 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033825 ;;
33826 :H)
33827 #
33828 # CONFIG_HEADER
33829 #
33830 if test x"$ac_file" != x-; then
33831 {
33832 $as_echo "/* $configure_input */" \
33833 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33834 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000033835 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033836 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000033837 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033838$as_echo "$as_me: $ac_file is unchanged" >&6;}
33839 else
33840 rm -f "$ac_file"
33841 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000033842 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033843 fi
33844 else
33845 $as_echo "/* $configure_input */" \
33846 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000033847 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033848 fi
33849# Compute "$ac_file"'s index in $config_headers.
33850_am_arg="$ac_file"
33851_am_stamp_count=1
33852for _am_header in $config_headers :; do
33853 case $_am_header in
33854 $_am_arg | $_am_arg:* )
33855 break ;;
33856 * )
33857 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33858 esac
33859done
33860echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33861$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33862 X"$_am_arg" : 'X\(//\)[^/]' \| \
33863 X"$_am_arg" : 'X\(//\)$' \| \
33864 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33865$as_echo X"$_am_arg" |
33866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33867 s//\1/
33868 q
33869 }
33870 /^X\(\/\/\)[^/].*/{
33871 s//\1/
33872 q
33873 }
33874 /^X\(\/\/\)$/{
33875 s//\1/
33876 q
33877 }
33878 /^X\(\/\).*/{
33879 s//\1/
33880 q
33881 }
33882 s/.*/./; q'`/stamp-h$_am_stamp_count
33883 ;;
33884
cristy8b350f62009-11-15 23:12:43 +000033885 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886$as_echo "$as_me: executing $ac_file commands" >&6;}
33887 ;;
33888 esac
33889
33890
33891 case $ac_file$ac_mode in
33892 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
33893ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
33894ac_prefix_conf_PKG=`echo MagickCore`
33895ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
33896ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
33897ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
33898if test ".$ac_prefix_conf_INP" = "."; then
33899 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
33900 case "$ac_file" in
33901 *.h) ac_prefix_conf_INP=$ac_file ;;
33902 *)
33903 esac
33904 test ".$ac_prefix_conf_INP" != "." && break
33905 done
33906fi
33907if test ".$ac_prefix_conf_INP" = "."; then
33908 case "$ac_prefix_conf_OUT" in
33909 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
33910 ;;
33911 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
33912 ;;
33913 *) ac_prefix_conf_INP=config.h
33914 ;;
33915 esac
33916fi
33917if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000033918 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033919else
33920 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
33921 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
33922 fi fi
cristy8b350f62009-11-15 23:12:43 +000033923 { $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 +000033924$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
33925 if test -f $ac_prefix_conf_INP ; then
33926 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
33927 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
33928 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
33929 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
33930 echo "#endif/" >>conftest.prefix
33931 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
33932 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
33933 echo "#endif/" >> conftest.prefix
33934 # now executing _script on _DEF input to create _OUT output file
33935 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
33936 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
33937 echo ' ' >>$tmp/pconfig.h
33938 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
33939
33940 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
33941 echo ' ' >>$tmp/pconfig.h
33942 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
33943 echo "#endif" >>$tmp/pconfig.h
33944 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033945 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
33947 else
33948 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
33949$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33950 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
33951 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
33952 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
33953$as_echo X"$ac_prefix_conf_OUT" |
33954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33955 s//\1/
33956 q
33957 }
33958 /^X\(\/\/\)[^/].*/{
33959 s//\1/
33960 q
33961 }
33962 /^X\(\/\/\)$/{
33963 s//\1/
33964 q
33965 }
33966 /^X\(\/\).*/{
33967 s//\1/
33968 q
33969 }
33970 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033971 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033972 rm -f "$ac_prefix_conf_OUT"
33973 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
33974 fi
33975 cp conftest.prefix _configs.sed
33976 else
cristy8b350f62009-11-15 23:12:43 +000033977 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 +000033978 fi
33979 rm -f conftest.*
33980fi
33981 ;;
33982 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33983 # Autoconf 2.62 quotes --file arguments for eval, but not when files
33984 # are listed without --file. Let's play safe and only enable the eval
33985 # if we detect the quoting.
33986 case $CONFIG_FILES in
33987 *\'*) eval set x "$CONFIG_FILES" ;;
33988 *) set x $CONFIG_FILES ;;
33989 esac
33990 shift
33991 for mf
33992 do
33993 # Strip MF so we end up with the name of the file.
33994 mf=`echo "$mf" | sed -e 's/:.*$//'`
33995 # Check whether this is an Automake generated Makefile or not.
33996 # We used to match only the files named `Makefile.in', but
33997 # some people rename them; so instead we look at the file content.
33998 # Grep'ing the first line is not enough: some people post-process
33999 # each Makefile.in and add a new line on top of each file to say so.
34000 # Grep'ing the whole file is not good either: AIX grep has a line
34001 # limit of 2048, but all sed's we know have understand at least 4000.
34002 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34003 dirpart=`$as_dirname -- "$mf" ||
34004$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34005 X"$mf" : 'X\(//\)[^/]' \| \
34006 X"$mf" : 'X\(//\)$' \| \
34007 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34008$as_echo X"$mf" |
34009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34010 s//\1/
34011 q
34012 }
34013 /^X\(\/\/\)[^/].*/{
34014 s//\1/
34015 q
34016 }
34017 /^X\(\/\/\)$/{
34018 s//\1/
34019 q
34020 }
34021 /^X\(\/\).*/{
34022 s//\1/
34023 q
34024 }
34025 s/.*/./; q'`
34026 else
34027 continue
34028 fi
34029 # Extract the definition of DEPDIR, am__include, and am__quote
34030 # from the Makefile without running `make'.
34031 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34032 test -z "$DEPDIR" && continue
34033 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34034 test -z "am__include" && continue
34035 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34036 # When using ansi2knr, U may be empty or an underscore; expand it
34037 U=`sed -n 's/^U = //p' < "$mf"`
34038 # Find all dependency output files, they are included files with
34039 # $(DEPDIR) in their names. We invoke sed twice because it is the
34040 # simplest approach to changing $(DEPDIR) to its actual value in the
34041 # expansion.
34042 for file in `sed -n "
34043 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34044 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34045 # Make sure the directory exists.
34046 test -f "$dirpart/$file" && continue
34047 fdir=`$as_dirname -- "$file" ||
34048$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34049 X"$file" : 'X\(//\)[^/]' \| \
34050 X"$file" : 'X\(//\)$' \| \
34051 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34052$as_echo X"$file" |
34053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34054 s//\1/
34055 q
34056 }
34057 /^X\(\/\/\)[^/].*/{
34058 s//\1/
34059 q
34060 }
34061 /^X\(\/\/\)$/{
34062 s//\1/
34063 q
34064 }
34065 /^X\(\/\).*/{
34066 s//\1/
34067 q
34068 }
34069 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034070 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034071 # echo "creating $dirpart/$file"
34072 echo '# dummy' > "$dirpart/$file"
34073 done
34074 done
34075}
34076 ;;
34077 "libtool":C)
34078
34079 # See if we are running on zsh, and set the options which allow our
34080 # commands through without removal of \ escapes.
34081 if test -n "${ZSH_VERSION+set}" ; then
34082 setopt NO_GLOB_SUBST
34083 fi
34084
34085 cfgfile="${ofile}T"
34086 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34087 $RM "$cfgfile"
34088
34089 cat <<_LT_EOF >> "$cfgfile"
34090#! $SHELL
34091
34092# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34093# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34094# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34095# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34096#
34097# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034098# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034099# Written by Gordon Matzigkeit, 1996
34100#
34101# This file is part of GNU Libtool.
34102#
34103# GNU Libtool is free software; you can redistribute it and/or
34104# modify it under the terms of the GNU General Public License as
34105# published by the Free Software Foundation; either version 2 of
34106# the License, or (at your option) any later version.
34107#
34108# As a special exception to the GNU General Public License,
34109# if you distribute this file as part of a program or library that
34110# is built using GNU Libtool, you may include this file under the
34111# same distribution terms that you use for the rest of that program.
34112#
34113# GNU Libtool is distributed in the hope that it will be useful,
34114# but WITHOUT ANY WARRANTY; without even the implied warranty of
34115# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34116# GNU General Public License for more details.
34117#
34118# You should have received a copy of the GNU General Public License
34119# along with GNU Libtool; see the file COPYING. If not, a copy
34120# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34121# obtained by writing to the Free Software Foundation, Inc.,
34122# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34123
34124
34125# The names of the tagged configurations supported by this script.
34126available_tags="CXX "
34127
34128# ### BEGIN LIBTOOL CONFIG
34129
34130# A sed program that does not truncate output.
34131SED=$lt_SED
34132
34133# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34134Xsed="\$SED -e 1s/^X//"
34135
34136# A grep program that handles long lines.
34137GREP=$lt_GREP
34138
34139# An ERE matcher.
34140EGREP=$lt_EGREP
34141
34142# A literal string matcher.
34143FGREP=$lt_FGREP
34144
34145# Which release of libtool.m4 was used?
34146macro_version=$macro_version
34147macro_revision=$macro_revision
34148
34149# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034150AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034151
34152# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034153DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034154
34155# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034156OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034157
34158# Whether or not to build shared libraries.
34159build_libtool_libs=$enable_shared
34160
34161# Whether or not to build static libraries.
34162build_old_libs=$enable_static
34163
34164# What type of objects to build.
34165pic_mode=$pic_mode
34166
34167# Whether or not to optimize for fast installation.
34168fast_install=$enable_fast_install
34169
34170# The host system.
34171host_alias=$host_alias
34172host=$host
34173host_os=$host_os
34174
34175# The build system.
34176build_alias=$build_alias
34177build=$build
34178build_os=$build_os
34179
34180# A BSD- or MS-compatible name lister.
34181NM=$lt_NM
34182
34183# Whether we need soft or hard links.
34184LN_S=$lt_LN_S
34185
34186# What is the maximum length of a command?
34187max_cmd_len=$max_cmd_len
34188
34189# Object file suffix (normally "o").
34190objext=$ac_objext
34191
34192# Executable file suffix (normally "").
34193exeext=$exeext
34194
34195# whether the shell understands "unset".
34196lt_unset=$lt_unset
34197
34198# turn spaces into newlines.
34199SP2NL=$lt_lt_SP2NL
34200
34201# turn newlines into spaces.
34202NL2SP=$lt_lt_NL2SP
34203
cristy18304f92009-11-22 15:48:26 +000034204# How to create reloadable object files.
34205reload_flag=$lt_reload_flag
34206reload_cmds=$lt_reload_cmds
34207
cristy3ed852e2009-09-05 21:47:34 +000034208# Method to check whether dependent libraries are shared objects.
34209deplibs_check_method=$lt_deplibs_check_method
34210
34211# Command to use when deplibs_check_method == "file_magic".
34212file_magic_cmd=$lt_file_magic_cmd
34213
34214# The archiver.
34215AR=$lt_AR
34216AR_FLAGS=$lt_AR_FLAGS
34217
34218# A symbol stripping program.
34219STRIP=$lt_STRIP
34220
34221# Commands used to install an old-style archive.
34222RANLIB=$lt_RANLIB
34223old_postinstall_cmds=$lt_old_postinstall_cmds
34224old_postuninstall_cmds=$lt_old_postuninstall_cmds
34225
34226# A C compiler.
34227LTCC=$lt_CC
34228
34229# LTCC compiler flags.
34230LTCFLAGS=$lt_CFLAGS
34231
34232# Take the output of nm and produce a listing of raw symbols and C names.
34233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34234
34235# Transform the output of nm in a proper C declaration.
34236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34237
34238# Transform the output of nm in a C name address pair.
34239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34240
34241# Transform the output of nm in a C name address pair when lib prefix is needed.
34242global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34243
34244# The name of the directory that contains temporary libtool files.
34245objdir=$objdir
34246
cristy18304f92009-11-22 15:48:26 +000034247# Shell to use when invoking shell scripts.
34248SHELL=$lt_SHELL
34249
34250# An echo program that does not interpret backslashes.
34251ECHO=$lt_ECHO
34252
cristy3ed852e2009-09-05 21:47:34 +000034253# Used to examine libraries when file_magic_cmd begins with "file".
34254MAGIC_CMD=$MAGIC_CMD
34255
34256# Must we lock files when doing compilation?
34257need_locks=$lt_need_locks
34258
34259# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34260DSYMUTIL=$lt_DSYMUTIL
34261
34262# Tool to change global to local symbols on Mac OS X.
34263NMEDIT=$lt_NMEDIT
34264
34265# Tool to manipulate fat objects and archives on Mac OS X.
34266LIPO=$lt_LIPO
34267
34268# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34269OTOOL=$lt_OTOOL
34270
34271# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34272OTOOL64=$lt_OTOOL64
34273
34274# Old archive suffix (normally "a").
34275libext=$libext
34276
34277# Shared library suffix (normally ".so").
34278shrext_cmds=$lt_shrext_cmds
34279
34280# The commands to extract the exported symbol list from a shared archive.
34281extract_expsyms_cmds=$lt_extract_expsyms_cmds
34282
34283# Variables whose values should be saved in libtool wrapper scripts and
34284# restored at link time.
34285variables_saved_for_relink=$lt_variables_saved_for_relink
34286
34287# Do we need the "lib" prefix for modules?
34288need_lib_prefix=$need_lib_prefix
34289
34290# Do we need a version for libraries?
34291need_version=$need_version
34292
34293# Library versioning type.
34294version_type=$version_type
34295
34296# Shared library runtime path variable.
34297runpath_var=$runpath_var
34298
34299# Shared library path variable.
34300shlibpath_var=$shlibpath_var
34301
34302# Is shlibpath searched before the hard-coded library search path?
34303shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34304
34305# Format of library name prefix.
34306libname_spec=$lt_libname_spec
34307
34308# List of archive names. First name is the real one, the rest are links.
34309# The last name is the one that the linker finds with -lNAME
34310library_names_spec=$lt_library_names_spec
34311
34312# The coded name of the library, if different from the real name.
34313soname_spec=$lt_soname_spec
34314
34315# Command to use after installation of a shared archive.
34316postinstall_cmds=$lt_postinstall_cmds
34317
34318# Command to use after uninstallation of a shared archive.
34319postuninstall_cmds=$lt_postuninstall_cmds
34320
34321# Commands used to finish a libtool library installation in a directory.
34322finish_cmds=$lt_finish_cmds
34323
34324# As "finish_cmds", except a single script fragment to be evaled but
34325# not shown.
34326finish_eval=$lt_finish_eval
34327
34328# Whether we should hardcode library paths into libraries.
34329hardcode_into_libs=$hardcode_into_libs
34330
34331# Compile-time system search path for libraries.
34332sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34333
34334# Run-time system search path for libraries.
34335sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34336
34337# Whether dlopen is supported.
34338dlopen_support=$enable_dlopen
34339
34340# Whether dlopen of programs is supported.
34341dlopen_self=$enable_dlopen_self
34342
34343# Whether dlopen of statically linked programs is supported.
34344dlopen_self_static=$enable_dlopen_self_static
34345
34346# Commands to strip libraries.
34347old_striplib=$lt_old_striplib
34348striplib=$lt_striplib
34349
34350
34351# The linker used to build libraries.
34352LD=$lt_LD
34353
34354# Commands used to build an old-style archive.
34355old_archive_cmds=$lt_old_archive_cmds
34356
34357# A language specific compiler.
34358CC=$lt_compiler
34359
34360# Is the compiler the GNU compiler?
34361with_gcc=$GCC
34362
34363# Compiler flag to turn off builtin functions.
34364no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34365
34366# How to pass a linker flag through the compiler.
34367wl=$lt_lt_prog_compiler_wl
34368
34369# Additional compiler flags for building library objects.
34370pic_flag=$lt_lt_prog_compiler_pic
34371
34372# Compiler flag to prevent dynamic linking.
34373link_static_flag=$lt_lt_prog_compiler_static
34374
34375# Does compiler simultaneously support -c and -o options?
34376compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34377
34378# Whether or not to add -lc for building shared libraries.
34379build_libtool_need_lc=$archive_cmds_need_lc
34380
34381# Whether or not to disallow shared libs when runtime libs are static.
34382allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34383
34384# Compiler flag to allow reflexive dlopens.
34385export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34386
34387# Compiler flag to generate shared objects directly from archives.
34388whole_archive_flag_spec=$lt_whole_archive_flag_spec
34389
34390# Whether the compiler copes with passing no objects directly.
34391compiler_needs_object=$lt_compiler_needs_object
34392
34393# Create an old-style archive from a shared archive.
34394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34395
34396# Create a temporary old-style archive to link instead of a shared archive.
34397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34398
34399# Commands used to build a shared archive.
34400archive_cmds=$lt_archive_cmds
34401archive_expsym_cmds=$lt_archive_expsym_cmds
34402
34403# Commands used to build a loadable module if different from building
34404# a shared archive.
34405module_cmds=$lt_module_cmds
34406module_expsym_cmds=$lt_module_expsym_cmds
34407
34408# Whether we are building with GNU ld or not.
34409with_gnu_ld=$lt_with_gnu_ld
34410
34411# Flag that allows shared libraries with undefined symbols to be built.
34412allow_undefined_flag=$lt_allow_undefined_flag
34413
34414# Flag that enforces no undefined symbols.
34415no_undefined_flag=$lt_no_undefined_flag
34416
34417# Flag to hardcode \$libdir into a binary during linking.
34418# This must work even if \$libdir does not exist
34419hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34420
34421# If ld is used when linking, flag to hardcode \$libdir into a binary
34422# during linking. This must work even if \$libdir does not exist.
34423hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34424
34425# Whether we need a single "-rpath" flag with a separated argument.
34426hardcode_libdir_separator=$lt_hardcode_libdir_separator
34427
34428# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34429# DIR into the resulting binary.
34430hardcode_direct=$hardcode_direct
34431
34432# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34433# DIR into the resulting binary and the resulting library dependency is
34434# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34435# library is relocated.
34436hardcode_direct_absolute=$hardcode_direct_absolute
34437
34438# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34439# into the resulting binary.
34440hardcode_minus_L=$hardcode_minus_L
34441
34442# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34443# into the resulting binary.
34444hardcode_shlibpath_var=$hardcode_shlibpath_var
34445
34446# Set to "yes" if building a shared library automatically hardcodes DIR
34447# into the library and all subsequent libraries and executables linked
34448# against it.
34449hardcode_automatic=$hardcode_automatic
34450
34451# Set to yes if linker adds runtime paths of dependent libraries
34452# to runtime path list.
34453inherit_rpath=$inherit_rpath
34454
34455# Whether libtool must link a program against all its dependency libraries.
34456link_all_deplibs=$link_all_deplibs
34457
34458# Fix the shell variable \$srcfile for the compiler.
34459fix_srcfile_path=$lt_fix_srcfile_path
34460
34461# Set to "yes" if exported symbols are required.
34462always_export_symbols=$always_export_symbols
34463
34464# The commands to list exported symbols.
34465export_symbols_cmds=$lt_export_symbols_cmds
34466
34467# Symbols that should not be listed in the preloaded symbols.
34468exclude_expsyms=$lt_exclude_expsyms
34469
34470# Symbols that must always be exported.
34471include_expsyms=$lt_include_expsyms
34472
34473# Commands necessary for linking programs (against libraries) with templates.
34474prelink_cmds=$lt_prelink_cmds
34475
34476# Specify filename containing input files.
34477file_list_spec=$lt_file_list_spec
34478
34479# How to hardcode a shared library path into an executable.
34480hardcode_action=$hardcode_action
34481
34482# The directories searched by this compiler when creating a shared library.
34483compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34484
34485# Dependencies to place before and after the objects being linked to
34486# create a shared library.
34487predep_objects=$lt_predep_objects
34488postdep_objects=$lt_postdep_objects
34489predeps=$lt_predeps
34490postdeps=$lt_postdeps
34491
34492# The library search path used internally by the compiler when linking
34493# a shared library.
34494compiler_lib_search_path=$lt_compiler_lib_search_path
34495
34496# ### END LIBTOOL CONFIG
34497
34498_LT_EOF
34499
34500 case $host_os in
34501 aix3*)
34502 cat <<\_LT_EOF >> "$cfgfile"
34503# AIX sometimes has problems with the GCC collect2 program. For some
34504# reason, if we set the COLLECT_NAMES environment variable, the problems
34505# vanish in a puff of smoke.
34506if test "X${COLLECT_NAMES+set}" != Xset; then
34507 COLLECT_NAMES=
34508 export COLLECT_NAMES
34509fi
34510_LT_EOF
34511 ;;
34512 esac
34513
34514
34515ltmain="$ac_aux_dir/ltmain.sh"
34516
34517
34518 # We use sed instead of cat because bash on DJGPP gets confused if
34519 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34520 # text mode, it properly converts lines to CR/LF. This bash problem
34521 # is reportedly fixed, but why not run on old versions too?
34522 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34523 || (rm -f "$cfgfile"; exit 1)
34524
34525 case $xsi_shell in
34526 yes)
34527 cat << \_LT_EOF >> "$cfgfile"
34528
34529# func_dirname file append nondir_replacement
34530# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34531# otherwise set result to NONDIR_REPLACEMENT.
34532func_dirname ()
34533{
34534 case ${1} in
34535 */*) func_dirname_result="${1%/*}${2}" ;;
34536 * ) func_dirname_result="${3}" ;;
34537 esac
34538}
34539
34540# func_basename file
34541func_basename ()
34542{
34543 func_basename_result="${1##*/}"
34544}
34545
34546# func_dirname_and_basename file append nondir_replacement
34547# perform func_basename and func_dirname in a single function
34548# call:
34549# dirname: Compute the dirname of FILE. If nonempty,
34550# add APPEND to the result, otherwise set result
34551# to NONDIR_REPLACEMENT.
34552# value returned in "$func_dirname_result"
34553# basename: Compute filename of FILE.
34554# value retuned in "$func_basename_result"
34555# Implementation must be kept synchronized with func_dirname
34556# and func_basename. For efficiency, we do not delegate to
34557# those functions but instead duplicate the functionality here.
34558func_dirname_and_basename ()
34559{
34560 case ${1} in
34561 */*) func_dirname_result="${1%/*}${2}" ;;
34562 * ) func_dirname_result="${3}" ;;
34563 esac
34564 func_basename_result="${1##*/}"
34565}
34566
34567# func_stripname prefix suffix name
34568# strip PREFIX and SUFFIX off of NAME.
34569# PREFIX and SUFFIX must not contain globbing or regex special
34570# characters, hashes, percent signs, but SUFFIX may contain a leading
34571# dot (in which case that matches only a dot).
34572func_stripname ()
34573{
34574 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34575 # positional parameters, so assign one to ordinary parameter first.
34576 func_stripname_result=${3}
34577 func_stripname_result=${func_stripname_result#"${1}"}
34578 func_stripname_result=${func_stripname_result%"${2}"}
34579}
34580
34581# func_opt_split
34582func_opt_split ()
34583{
34584 func_opt_split_opt=${1%%=*}
34585 func_opt_split_arg=${1#*=}
34586}
34587
34588# func_lo2o object
34589func_lo2o ()
34590{
34591 case ${1} in
34592 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34593 *) func_lo2o_result=${1} ;;
34594 esac
34595}
34596
34597# func_xform libobj-or-source
34598func_xform ()
34599{
34600 func_xform_result=${1%.*}.lo
34601}
34602
34603# func_arith arithmetic-term...
34604func_arith ()
34605{
34606 func_arith_result=$(( $* ))
34607}
34608
34609# func_len string
34610# STRING may not start with a hyphen.
34611func_len ()
34612{
34613 func_len_result=${#1}
34614}
34615
34616_LT_EOF
34617 ;;
34618 *) # Bourne compatible functions.
34619 cat << \_LT_EOF >> "$cfgfile"
34620
34621# func_dirname file append nondir_replacement
34622# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34623# otherwise set result to NONDIR_REPLACEMENT.
34624func_dirname ()
34625{
34626 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000034627 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000034628 if test "X$func_dirname_result" = "X${1}"; then
34629 func_dirname_result="${3}"
34630 else
34631 func_dirname_result="$func_dirname_result${2}"
34632 fi
34633}
34634
34635# func_basename file
34636func_basename ()
34637{
cristy18304f92009-11-22 15:48:26 +000034638 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000034639}
34640
34641
34642# func_stripname prefix suffix name
34643# strip PREFIX and SUFFIX off of NAME.
34644# PREFIX and SUFFIX must not contain globbing or regex special
34645# characters, hashes, percent signs, but SUFFIX may contain a leading
34646# dot (in which case that matches only a dot).
34647# func_strip_suffix prefix name
34648func_stripname ()
34649{
34650 case ${2} in
cristy18304f92009-11-22 15:48:26 +000034651 .*) func_stripname_result=`$ECHO "X${3}" \
34652 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34653 *) func_stripname_result=`$ECHO "X${3}" \
34654 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000034655 esac
34656}
34657
34658# sed scripts:
34659my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34660my_sed_long_arg='1s/^-[^=]*=//'
34661
34662# func_opt_split
34663func_opt_split ()
34664{
cristy18304f92009-11-22 15:48:26 +000034665 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34666 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000034667}
34668
34669# func_lo2o object
34670func_lo2o ()
34671{
cristy18304f92009-11-22 15:48:26 +000034672 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000034673}
34674
34675# func_xform libobj-or-source
34676func_xform ()
34677{
cristy18304f92009-11-22 15:48:26 +000034678 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000034679}
34680
34681# func_arith arithmetic-term...
34682func_arith ()
34683{
34684 func_arith_result=`expr "$@"`
34685}
34686
34687# func_len string
34688# STRING may not start with a hyphen.
34689func_len ()
34690{
34691 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34692}
34693
34694_LT_EOF
34695esac
34696
34697case $lt_shell_append in
34698 yes)
34699 cat << \_LT_EOF >> "$cfgfile"
34700
34701# func_append var value
34702# Append VALUE to the end of shell variable VAR.
34703func_append ()
34704{
34705 eval "$1+=\$2"
34706}
34707_LT_EOF
34708 ;;
34709 *)
34710 cat << \_LT_EOF >> "$cfgfile"
34711
34712# func_append var value
34713# Append VALUE to the end of shell variable VAR.
34714func_append ()
34715{
34716 eval "$1=\$$1\$2"
34717}
34718
34719_LT_EOF
34720 ;;
34721 esac
34722
34723
34724 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34725 || (rm -f "$cfgfile"; exit 1)
34726
34727 mv -f "$cfgfile" "$ofile" ||
34728 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34729 chmod +x "$ofile"
34730
34731
34732 cat <<_LT_EOF >> "$ofile"
34733
34734# ### BEGIN LIBTOOL TAG CONFIG: CXX
34735
34736# The linker used to build libraries.
34737LD=$lt_LD_CXX
34738
34739# Commands used to build an old-style archive.
34740old_archive_cmds=$lt_old_archive_cmds_CXX
34741
34742# A language specific compiler.
34743CC=$lt_compiler_CXX
34744
34745# Is the compiler the GNU compiler?
34746with_gcc=$GCC_CXX
34747
34748# Compiler flag to turn off builtin functions.
34749no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34750
34751# How to pass a linker flag through the compiler.
34752wl=$lt_lt_prog_compiler_wl_CXX
34753
34754# Additional compiler flags for building library objects.
34755pic_flag=$lt_lt_prog_compiler_pic_CXX
34756
34757# Compiler flag to prevent dynamic linking.
34758link_static_flag=$lt_lt_prog_compiler_static_CXX
34759
34760# Does compiler simultaneously support -c and -o options?
34761compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34762
34763# Whether or not to add -lc for building shared libraries.
34764build_libtool_need_lc=$archive_cmds_need_lc_CXX
34765
34766# Whether or not to disallow shared libs when runtime libs are static.
34767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34768
34769# Compiler flag to allow reflexive dlopens.
34770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34771
34772# Compiler flag to generate shared objects directly from archives.
34773whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34774
34775# Whether the compiler copes with passing no objects directly.
34776compiler_needs_object=$lt_compiler_needs_object_CXX
34777
34778# Create an old-style archive from a shared archive.
34779old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34780
34781# Create a temporary old-style archive to link instead of a shared archive.
34782old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34783
34784# Commands used to build a shared archive.
34785archive_cmds=$lt_archive_cmds_CXX
34786archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34787
34788# Commands used to build a loadable module if different from building
34789# a shared archive.
34790module_cmds=$lt_module_cmds_CXX
34791module_expsym_cmds=$lt_module_expsym_cmds_CXX
34792
34793# Whether we are building with GNU ld or not.
34794with_gnu_ld=$lt_with_gnu_ld_CXX
34795
34796# Flag that allows shared libraries with undefined symbols to be built.
34797allow_undefined_flag=$lt_allow_undefined_flag_CXX
34798
34799# Flag that enforces no undefined symbols.
34800no_undefined_flag=$lt_no_undefined_flag_CXX
34801
34802# Flag to hardcode \$libdir into a binary during linking.
34803# This must work even if \$libdir does not exist
34804hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34805
34806# If ld is used when linking, flag to hardcode \$libdir into a binary
34807# during linking. This must work even if \$libdir does not exist.
34808hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34809
34810# Whether we need a single "-rpath" flag with a separated argument.
34811hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34812
34813# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34814# DIR into the resulting binary.
34815hardcode_direct=$hardcode_direct_CXX
34816
34817# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34818# DIR into the resulting binary and the resulting library dependency is
34819# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34820# library is relocated.
34821hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34822
34823# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34824# into the resulting binary.
34825hardcode_minus_L=$hardcode_minus_L_CXX
34826
34827# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34828# into the resulting binary.
34829hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34830
34831# Set to "yes" if building a shared library automatically hardcodes DIR
34832# into the library and all subsequent libraries and executables linked
34833# against it.
34834hardcode_automatic=$hardcode_automatic_CXX
34835
34836# Set to yes if linker adds runtime paths of dependent libraries
34837# to runtime path list.
34838inherit_rpath=$inherit_rpath_CXX
34839
34840# Whether libtool must link a program against all its dependency libraries.
34841link_all_deplibs=$link_all_deplibs_CXX
34842
34843# Fix the shell variable \$srcfile for the compiler.
34844fix_srcfile_path=$lt_fix_srcfile_path_CXX
34845
34846# Set to "yes" if exported symbols are required.
34847always_export_symbols=$always_export_symbols_CXX
34848
34849# The commands to list exported symbols.
34850export_symbols_cmds=$lt_export_symbols_cmds_CXX
34851
34852# Symbols that should not be listed in the preloaded symbols.
34853exclude_expsyms=$lt_exclude_expsyms_CXX
34854
34855# Symbols that must always be exported.
34856include_expsyms=$lt_include_expsyms_CXX
34857
34858# Commands necessary for linking programs (against libraries) with templates.
34859prelink_cmds=$lt_prelink_cmds_CXX
34860
34861# Specify filename containing input files.
34862file_list_spec=$lt_file_list_spec_CXX
34863
34864# How to hardcode a shared library path into an executable.
34865hardcode_action=$hardcode_action_CXX
34866
34867# The directories searched by this compiler when creating a shared library.
34868compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34869
34870# Dependencies to place before and after the objects being linked to
34871# create a shared library.
34872predep_objects=$lt_predep_objects_CXX
34873postdep_objects=$lt_postdep_objects_CXX
34874predeps=$lt_predeps_CXX
34875postdeps=$lt_postdeps_CXX
34876
34877# The library search path used internally by the compiler when linking
34878# a shared library.
34879compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34880
34881# ### END LIBTOOL TAG CONFIG: CXX
34882_LT_EOF
34883
34884 ;;
34885 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
34886 "Magick-config.in":C) chmod +x magick/Magick-config ;;
34887 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
34888 "Wand-config.in":C) chmod +x wand/Wand-config ;;
34889 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
34890 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
34891
34892 esac
34893done # for ac_tag
34894
34895
cristy8b350f62009-11-15 23:12:43 +000034896as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000034897_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000034898ac_clean_files=$ac_clean_files_save
34899
34900test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000034901 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034902
34903
34904# configure is writing to config.log, and then calls config.status.
34905# config.status does its own redirection, appending to config.log.
34906# Unfortunately, on DOS this fails, as config.log is still kept open
34907# by configure, so config.status won't be able to write to it; its
34908# output is simply discarded. So we exec the FD to /dev/null,
34909# effectively closing config.log, so it can be properly (re)opened and
34910# appended to by config.status. When coming back to configure, we
34911# need to make the FD available again.
34912if test "$no_create" != yes; then
34913 ac_cs_success=:
34914 ac_config_status_args=
34915 test "$silent" = yes &&
34916 ac_config_status_args="$ac_config_status_args --quiet"
34917 exec 5>/dev/null
34918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34919 exec 5>>config.log
34920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34921 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000034922 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000034923fi
34924if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000034925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000034926$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34927fi
34928
34929
34930rm -f magick-version
34931
cristy430a7312010-01-21 20:44:04 +000034932result_dejavu_font_dir='none'
34933if test "${dejavu_font_dir}x" != 'x'; then
34934 result_dejavu_font_dir=$dejavu_font_dir
34935fi
34936
cristy3ed852e2009-09-05 21:47:34 +000034937result_ghostscript_font_dir='none'
34938if test "${ghostscript_font_dir}x" != 'x'; then
34939 result_ghostscript_font_dir=$ghostscript_font_dir
34940fi
34941
34942result_windows_font_dir='none'
34943if test "${windows_font_dir}x" != 'x'; then
34944 result_windows_font_dir=${windows_font_dir}
34945fi
34946
cristy8b350f62009-11-15 23:12:43 +000034947{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000034948ImageMagick is configured as follows. Please verify that this configuration
34949matches your expectations.
34950
34951Host system type: $host
34952Build system type: $build
34953
34954 Option Value
34955-------------------------------------------------------------------------------
34956Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34957Static libraries --enable-static=$enable_static $libtool_build_static_libs
34958Module support --with-modules=$with_modules $with_modules
34959GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34960Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34961High Dynamic Range Imagery
34962 --enable-hdri=$enable_hdri $enable_hdri
34963
34964Delegate Configuration:
34965BZLIB --with-bzlib=$with_bzlib $have_bzlib
34966Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000034967Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000034968DJVU --with-djvu=$with_djvu $have_djvu
34969DPS --with-dps=$with_dps $have_dps
34970FFTW --with-fftw=$with_fftw $have_fftw
34971FlashPIX --with-fpx=$with_fpx $have_fpx
34972FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34973FreeType --with-freetype=$with_freetype $have_freetype
34974GhostPCL None $PCLDelegate ($PCLVersion)
34975GhostXPS None $XPSDelegate ($XPSVersion)
34976Ghostscript None $PSDelegate ($GSVersion)
34977Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34978Ghostscript lib --with-gslib=$with_gslib $have_gslib
34979Graphviz --with-gvc=$with_gvc $have_gvc
34980JBIG --with-jbig=$with_jbig $have_jbig
34981JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34982JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34983LCMS --with-lcms=$with_lcms $have_lcms
34984LQR --with-lqr=$with_lqr $have_lqr
34985Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34986OpenEXR --with-openexr=$with_openexr $have_openexr
34987PERL --with-perl=$with_perl $have_perl
34988PNG --with-png=$with_png $have_png
34989RSVG --with-rsvg=$with_rsvg $have_rsvg
34990TIFF --with-tiff=$with_tiff $have_tiff
34991Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34992WMF --with-wmf=$with_wmf $have_wmf
34993X11 --with-x=$with_x $have_x
34994XML --with-xml=$with_xml $have_xml
34995ZLIB --with-zlib=$with_zlib $have_zlib
34996
34997X11 Configuration:
34998 X_CFLAGS = $X_CFLAGS
34999 X_PRE_LIBS = $X_PRE_LIBS
35000 X_LIBS = $X_LIBS
35001 X_EXTRA_LIBS = $X_EXTRA_LIBS
35002
35003Options used to compile and link:
35004 PREFIX = $PREFIX_DIR
35005 EXEC-PREFIX = $EXEC_PREFIX_DIR
35006 VERSION = $PACKAGE_VERSION
35007 CC = $CC
35008 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035009 CPPFLAGS = $MAGICK_CPPFLAGS
35010 PCFLAGS = $MAGICK_PCFLAGS
35011 DEFS = $DEFS
35012 LDFLAGS = $LDFLAGS
35013 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35014 LIBS = $MAGICK_LIBS
35015 CXX = $CXX
35016 CXXFLAGS = $CXXFLAGS
35017" >&5
35018$as_echo "
35019ImageMagick is configured as follows. Please verify that this configuration
35020matches your expectations.
35021
35022Host system type: $host
35023Build system type: $build
35024
35025 Option Value
35026-------------------------------------------------------------------------------
35027Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35028Static libraries --enable-static=$enable_static $libtool_build_static_libs
35029Module support --with-modules=$with_modules $with_modules
35030GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35031Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35032High Dynamic Range Imagery
35033 --enable-hdri=$enable_hdri $enable_hdri
35034
35035Delegate Configuration:
35036BZLIB --with-bzlib=$with_bzlib $have_bzlib
35037Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035038Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035039DJVU --with-djvu=$with_djvu $have_djvu
35040DPS --with-dps=$with_dps $have_dps
35041FFTW --with-fftw=$with_fftw $have_fftw
35042FlashPIX --with-fpx=$with_fpx $have_fpx
35043FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35044FreeType --with-freetype=$with_freetype $have_freetype
35045GhostPCL None $PCLDelegate ($PCLVersion)
35046GhostXPS None $XPSDelegate ($XPSVersion)
35047Ghostscript None $PSDelegate ($GSVersion)
35048Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35049Ghostscript lib --with-gslib=$with_gslib $have_gslib
35050Graphviz --with-gvc=$with_gvc $have_gvc
35051JBIG --with-jbig=$with_jbig $have_jbig
35052JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35053JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35054LCMS --with-lcms=$with_lcms $have_lcms
35055LQR --with-lqr=$with_lqr $have_lqr
35056Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35057OpenEXR --with-openexr=$with_openexr $have_openexr
35058PERL --with-perl=$with_perl $have_perl
35059PNG --with-png=$with_png $have_png
35060RSVG --with-rsvg=$with_rsvg $have_rsvg
35061TIFF --with-tiff=$with_tiff $have_tiff
35062Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35063WMF --with-wmf=$with_wmf $have_wmf
35064X11 --with-x=$with_x $have_x
35065XML --with-xml=$with_xml $have_xml
35066ZLIB --with-zlib=$with_zlib $have_zlib
35067
35068X11 Configuration:
35069 X_CFLAGS = $X_CFLAGS
35070 X_PRE_LIBS = $X_PRE_LIBS
35071 X_LIBS = $X_LIBS
35072 X_EXTRA_LIBS = $X_EXTRA_LIBS
35073
35074Options used to compile and link:
35075 PREFIX = $PREFIX_DIR
35076 EXEC-PREFIX = $EXEC_PREFIX_DIR
35077 VERSION = $PACKAGE_VERSION
35078 CC = $CC
35079 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035080 CPPFLAGS = $MAGICK_CPPFLAGS
35081 PCFLAGS = $MAGICK_PCFLAGS
35082 DEFS = $DEFS
35083 LDFLAGS = $LDFLAGS
35084 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35085 LIBS = $MAGICK_LIBS
35086 CXX = $CXX
35087 CXXFLAGS = $CXXFLAGS
35088" >&6; }